Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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_change(MirSurfaceAttrib attrib, int value);
40  void resize(geometry::Size const& size);
41 
42 private:
43  frontend::SurfaceId const id;
44  std::shared_ptr<frontend::EventSink> const event_sink;
45 };
46 }
47 }
48 
49 #endif // MIR_SCENE_SURFACE_EVENT_SOURCE_H_
Definition: size.h:30
Definition: surface_observer.h:30
void resize(geometry::Size const &size)
Definition: surface_event_source.cpp:35
SurfaceEventSource(frontend::SurfaceId id, std::shared_ptr< frontend::EventSink > const &event_sink)
Definition: surface_event_source.cpp:27
MirSurfaceAttrib
Attributes of a surface that the client and server/shell may wish to get or set over the wire...
Definition: common.h:34
Definition: surface_event_source.h:32
Definition: int_wrapper.h:27
void attrib_change(MirSurfaceAttrib attrib, int value)
Definition: surface_event_source.cpp:47
int const size
Definition: make_socket_rpc_channel.cpp:50

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Apr 11 21:14:53 UTC 2014