Mir
null_surface_observer.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2014 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: Robert Carr <robert.carr@canonical.com>
17  */
18 
19 #ifndef MIR_SCENE_NULL_SURFACE_OBSERVER_H_
20 #define MIR_SCENE_NULL_SURFACE_OBSERVER_H_
21 
23 
24 namespace mir
25 {
26 namespace scene
27 {
29 {
30 public:
31  NullSurfaceObserver() = default;
32  virtual ~NullSurfaceObserver() = default;
33 
34  void attrib_changed(MirSurfaceAttrib attrib, int value) override;
35  void resized_to(geometry::Size const& size) override;
36  void moved_to(geometry::Point const& top_left) override;
37  void hidden_set_to(bool hide) override;
38  void frame_posted(int frames_available) override;
39  void alpha_set_to(float alpha) override;
40  void orientation_set_to(MirOrientation orientation) override;
41  void transformation_set_to(glm::mat4 const& t) override;
42  void cursor_image_set_to(graphics::CursorImage const& image) override;
44  void client_surface_close_requested() override;
45 
46 protected:
49 };
50 }
51 }
52 
53 #endif // MIR_SCENE_NULL_SURFACE_OBSERVER_H_
Definition: size.h:30
void client_surface_close_requested() override
Definition: null_surface_observer.cpp:34
All things Mir.
Definition: buffer_stream.h:37
void resized_to(geometry::Size const &size) override
Definition: null_surface_observer.cpp:25
void transformation_set_to(glm::mat4 const &t) override
Definition: null_surface_observer.cpp:31
Definition: point.h:30
void reception_mode_set_to(input::InputReceptionMode mode) override
Definition: null_surface_observer.cpp:32
NullSurfaceObserver & operator=(NullSurfaceObserver const &)=delete
Definition: surface_observer.h:42
MirOrientation
Direction relative to the "natural" orientation of the display.
Definition: common.h:142
void moved_to(geometry::Point const &top_left) override
Definition: null_surface_observer.cpp:26
Definition: cursor_image.h:30
void frame_posted(int frames_available) override
Definition: null_surface_observer.cpp:28
void cursor_image_set_to(graphics::CursorImage const &image) override
Definition: null_surface_observer.cpp:33
Definition: null_surface_observer.h:28
void alpha_set_to(float alpha) override
Definition: null_surface_observer.cpp:29
MirSurfaceAttrib
Attributes of a surface that the client and server/shell may wish to get or set over the wire...
Definition: common.h:36
void hidden_set_to(bool hide) override
Definition: null_surface_observer.cpp:27
void attrib_changed(MirSurfaceAttrib attrib, int value) override
Definition: null_surface_observer.cpp:24
virtual ~NullSurfaceObserver()=default
InputReceptionMode
Definition: input_reception_mode.h:27
void orientation_set_to(MirOrientation orientation) override
Definition: null_surface_observer.cpp:30
int const size
Definition: make_socket_rpc_channel.cpp:51

Copyright © 2012,2013 Canonical Ltd.
Generated on Tue Mar 24 16:15:19 UTC 2015