Mir
display_listener.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2015 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored By: Alan Griffiths <alan@octopull.co.uk>
17  */
18 
19 #ifndef MIR_COMPOSITOR_DISPLAY_LISTENER_H_
20 #define MIR_COMPOSITOR_DISPLAY_LISTENER_H_
21 
22 namespace mir
23 {
24 namespace geometry { struct Rectangle; }
25 namespace compositor
26 {
28 {
29 public:
30  virtual void add_display(geometry::Rectangle const& area) = 0;
31 
32  virtual void remove_display(geometry::Rectangle const& area) = 0;
33 
34 protected:
35  DisplayListener() = default;
36  virtual ~DisplayListener() = default;
37  DisplayListener(DisplayListener const&) = delete;
38  DisplayListener& operator=(DisplayListener const&) = delete;
39 };
40 }
41 }
42 
43 #endif /* MIR_COMPOSITOR_DISPLAY_LISTENER_H_ */
Definition: as_render_target.h:27
Definition: display_listener.h:27
Definition: rectangle.h:33

Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Jun 5 13:49:26 UTC 2017