Mir
display_listener_wrapper.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 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 
24 namespace mir {
25  namespace compositor { class DisplayListener; }
26 }
27 
28 namespace miroil
29 {
30 
32 {
33 public:
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 
40 private:
41  std::shared_ptr<mir::compositor::DisplayListener> const& display_listener;
42 };
43 
44 }
45 
46 #endif /* MIROIL_DISPLAY_LISTENER_WRAPPER_H */

Copyright © 2012-2022 Canonical Ltd.
Generated on Thu Sep 8 12:37:23 UTC 2022
This documentation is licensed under the GPL version 2 or 3.