Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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);
35  void resized_to(geometry::Size const& size);
36  void moved_to(geometry::Point const& top_left);
37  void hidden_set_to(bool hide);
38  void frame_posted(int frames_available);
39  void alpha_set_to(float alpha);
40  void orientation_set_to(MirOrientation orientation) override;
41  void transformation_set_to(glm::mat4 const& t);
42  void cursor_image_set_to(graphics::CursorImage const& image);
44 
45 protected:
48 };
49 }
50 }
51 
52 #endif // MIR_SCENE_NULL_SURFACE_OBSERVER_H_
Definition: size.h:30
All things Mir.
Definition: aging_buffer.h:24
Definition: point.h:30
void frame_posted(int frames_available)
Definition: null_surface_observer.cpp:28
NullSurfaceObserver & operator=(NullSurfaceObserver const &)=delete
void transformation_set_to(glm::mat4 const &t)
Definition: null_surface_observer.cpp:31
Definition: surface_observer.h:42
MirOrientation
Direction relative to the "natural" orientation of the display.
Definition: common.h:134
Definition: cursor_image.h:30
void attrib_changed(MirSurfaceAttrib attrib, int value)
Definition: null_surface_observer.cpp:24
void reception_mode_set_to(input::InputReceptionMode mode)
Definition: null_surface_observer.cpp:32
Definition: null_surface_observer.h:28
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 resized_to(geometry::Size const &size)
Definition: null_surface_observer.cpp:25
void alpha_set_to(float alpha)
Definition: null_surface_observer.cpp:29
void moved_to(geometry::Point const &top_left)
Definition: null_surface_observer.cpp:26
void cursor_image_set_to(graphics::CursorImage const &image)
Definition: null_surface_observer.cpp:33
virtual ~NullSurfaceObserver()=default
InputReceptionMode
Definition: input_reception_mode.h:27
void hidden_set_to(bool hide)
Definition: null_surface_observer.cpp: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 Fri Oct 10 14:07:14 UTC 2014