Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
surface_event_source.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: Alan Griffiths <alan@octopull.co.uk>
17  */
18 
19 #ifndef MIR_SCENE_SURFACE_EVENT_SOURCE_H_
20 #define MIR_SCENE_SURFACE_EVENT_SOURCE_H_
21 
25 
26 #include <memory>
27 
28 namespace mir
29 {
30 namespace scene
31 {
33 {
34 public:
37  std::shared_ptr<frontend::EventSink> const& event_sink);
38 
39  void attrib_changed(MirSurfaceAttrib attrib, int value) override;
40  void resized_to(geometry::Size const& size) override;
41  void orientation_set_to(MirOrientation orientation) override;
42 
43 private:
44  frontend::SurfaceId const id;
45  std::shared_ptr<frontend::EventSink> const event_sink;
46 };
47 }
48 }
49 
50 #endif // MIR_SCENE_SURFACE_EVENT_SOURCE_H_
Definition: size.h:30
All things Mir.
Definition: aging_buffer.h:24
void attrib_changed(MirSurfaceAttrib attrib, int value) override
Definition: surface_event_source.cpp:49
void resized_to(geometry::Size const &size) override
Definition: surface_event_source.cpp:37
MirOrientation
Direction relative to the "natural" orientation of the display.
Definition: common.h:134
Definition: null_surface_observer.h:28
SurfaceEventSource(frontend::SurfaceId id, std::shared_ptr< frontend::EventSink > const &event_sink)
Definition: surface_event_source.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
Definition: surface_event_source.h:32
void orientation_set_to(MirOrientation orientation) override
Definition: surface_event_source.cpp:66
Definition: int_wrapper.h:27
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