Mir
surface_observers.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: Kevin DuBois <kevin.dubois@canonical.com>
17  */
18 
19 #ifndef MIR_SCENE_SURFACE_OBSERVERS_H_
20 #define MIR_SCENE_SURFACE_OBSERVERS_H_
21 
22 #include "mir/basic_observers.h"
24 
25 namespace mir
26 {
27 namespace scene
28 {
29 
30 class SurfaceObservers : public SurfaceObserver, BasicObservers<SurfaceObserver>
31 {
32 public:
35 
36  void attrib_changed(MirSurfaceAttrib attrib, int value) override;
37  void resized_to(geometry::Size const& size) override;
38  void moved_to(geometry::Point const& top_left) override;
39  void hidden_set_to(bool hide) override;
40  void frame_posted(int frames_available) override;
41  void alpha_set_to(float alpha) override;
42  void orientation_set_to(MirOrientation orientation) override;
43  void transformation_set_to(glm::mat4 const& t) override;
45  void cursor_image_set_to(graphics::CursorImage const& image) override;
46  void client_surface_close_requested() override;
47  void keymap_changed(xkb_rule_names const& names) override;
48  void renamed(char const*) override;
49 };
50 
51 }
52 }
53 
54 #endif /* MIR_SCENE_SURFACE_OBSERVERS_H_ */
void renamed(char const *) override
Definition: basic_surface.cpp:121
Definition: size.h:30
void transformation_set_to(glm::mat4 const &t) override
Definition: basic_surface.cpp:91
All things Mir.
Definition: atomic_callback.h:25
void frame_posted(int frames_available) override
Definition: basic_surface.cpp:73
Definition: point.h:30
void resized_to(geometry::Size const &size) override
Definition: basic_surface.cpp:55
void alpha_set_to(float alpha) override
Definition: basic_surface.cpp:79
void client_surface_close_requested() override
Definition: basic_surface.cpp:109
Definition: surface_observer.h:43
void reception_mode_set_to(input::InputReceptionMode mode) override
Definition: basic_surface.cpp:103
MirOrientation
Direction relative to the "natural" orientation of the display.
Definition: common.h:164
void moved_to(geometry::Point const &top_left) override
Definition: basic_surface.cpp:61
Definition: cursor_image.h:30
void keymap_changed(xkb_rule_names const &names) override
Definition: basic_surface.cpp:115
void cursor_image_set_to(graphics::CursorImage const &image) override
Definition: basic_surface.cpp:97
void orientation_set_to(MirOrientation orientation) override
Definition: basic_surface.cpp:85
MirSurfaceAttrib
Attributes of a surface that the client and server/shell may wish to get or set over the wire...
Definition: common.h:34
void attrib_changed(MirSurfaceAttrib attrib, int value) override
Definition: basic_surface.cpp:49
Definition: basic_observers.h:28
Definition: surface_observers.h:30
void hidden_set_to(bool hide) override
Definition: basic_surface.cpp:67
InputReceptionMode
Definition: input_reception_mode.h:27
int const size
Definition: make_socket_rpc_channel.cpp:51

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Oct 8 16:20:16 UTC 2015