Mir
display_listener_wrapper.h
Go to the documentation of this file.
1/*
2 * Copyright (C) Canonical, Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify it under
5 * the terms of the GNU Lesser General Public License version 3, as published by
6 * the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
10 * SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#ifndef MIROIL_DISPLAY_LISTENER_WRAPPER_H
18#define MIROIL_DISPLAY_LISTENER_WRAPPER_H
19
20#include "mir/geometry/forward.h"
21
22#include <memory>
23
24namespace mir {
25 namespace compositor { class DisplayListener; }
26}
27
28namespace miroil
29{
30
32{
33public:
34 DisplayListenerWrapper(std::shared_ptr<mir::compositor::DisplayListener> const& display_listener);
36
37 void add_display(mir::geometry::Rectangle const& area);
38 void remove_display(mir::geometry::Rectangle const& area);
39
40private:
41 std::shared_ptr<mir::compositor::DisplayListener> const& display_listener;
42};
43
44}
45
46#endif /* MIROIL_DISPLAY_LISTENER_WRAPPER_H */
Definition: display_listener_wrapper.h:32
void remove_display(mir::geometry::Rectangle const &area)
void add_display(mir::geometry::Rectangle const &area)
DisplayListenerWrapper(std::shared_ptr< mir::compositor::DisplayListener > const &display_listener)
Definition: display_listener_wrapper.h:25
Basic geometry types. Types for dimensions, displacements, etc. and the operations that they support.
Definition: size.h:27
Definition: runner.h:27
Definition: compositor.h:21

Copyright © 2012-2023 Canonical Ltd.
Generated on Tue 2 May 10:01:24 UTC 2023
This documentation is licensed under the GPL version 2 or 3.