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 #include <memory>
20 
21 namespace mir {
22  namespace geometry { struct Rectangle; }
23  namespace compositor { class DisplayListener; }
24 }
25 
26 namespace miroil
27 {
28 
30 {
31 public:
32  DisplayListenerWrapper(std::shared_ptr<mir::compositor::DisplayListener> const& display_listener);
34 
37 
38 private:
39  std::shared_ptr<mir::compositor::DisplayListener> const& display_listener;
40 };
41 
42 }
43 
44 #endif /* MIROIL_DISPLAY_LISTENER_WRAPPER_H */
Definition: display_listener_wrapper.h:30
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: splash_session.h:24
Definition: compositor.h:21
Definition: rectangle.h:34

Copyright © 2012-2022 Canonical Ltd.
Generated on Thu Mar 3 22:46:49 UTC 2022
This documentation is licensed under the GPL version 2 or 3.