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:
36 
37  void attrib_changed(MirSurfaceAttrib attrib, int value) override;
38  void resized_to(geometry::Size const& size) override;
39  void moved_to(geometry::Point const& top_left) override;
40  void hidden_set_to(bool hide) override;
41  void frame_posted(int frames_available, geometry::Size const& size) override;
42  void alpha_set_to(float alpha) override;
43  void orientation_set_to(MirOrientation orientation) override;
44  void transformation_set_to(glm::mat4 const& t) override;
46  void cursor_image_set_to(graphics::CursorImage const& image) override;
47  void client_surface_close_requested() override;
48  void keymap_changed(MirInputDeviceId id, std::string const& model, std::string const& layout,
49  std::string const& variant, std::string const& options) override;
50  void renamed(char const*) override;
51  void cursor_image_removed() override;
52 };
53 
54 }
55 }
56 
57 #endif /* MIR_SCENE_SURFACE_OBSERVERS_H_ */
void renamed(char const *) override
Definition: basic_surface.cpp:122
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 cursor_image_removed() override
Definition: basic_surface.cpp:128
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:44
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 cursor_image_set_to(graphics::CursorImage const &image) override
Definition: basic_surface.cpp:97
int64_t MirInputDeviceId
Definition: input_event.h:35
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 frame_posted(int frames_available, geometry::Size const &size) override
Definition: basic_surface.cpp:73
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
void keymap_changed(MirInputDeviceId id, std::string const &model, std::string const &layout, std::string const &variant, std::string const &options) override
Definition: basic_surface.cpp:115
InputReceptionMode
Definition: input_reception_mode.h:27
int const size
Definition: make_socket_rpc_channel.cpp:51

Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016