Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
surface_coordinator.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2013-14 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 
20 #ifndef MIR_SCENE_SURFACE_COORDINATOR_H_
21 #define MIR_SCENE_SURFACE_COORDINATOR_H_
22 
23 #include <memory>
24 
25 namespace mir
26 {
27 namespace scene
28 {
29 class Surface;
30 struct SurfaceCreationParameters;
31 class SurfaceObserver;
32 class Session;
33 
35 {
36 public:
37  virtual std::shared_ptr<Surface> add_surface(
38  SurfaceCreationParameters const& params,
39  Session* session) = 0;
40 
41  virtual void raise(std::weak_ptr<Surface> const& surface) = 0;
42 
43  virtual void remove_surface(std::weak_ptr<Surface> const& surface) = 0;
44 protected:
45  SurfaceCoordinator() = default;
46  virtual ~SurfaceCoordinator() = default;
47  SurfaceCoordinator(SurfaceCoordinator const&) = delete;
49 };
50 }
51 }
52 
53 
54 #endif /* MIR_SCENE_SURFACE_COORDINATOR_H_ */
All things Mir.
Definition: aging_buffer.h:24
SurfaceCoordinator & operator=(SurfaceCoordinator const &)=delete
virtual void remove_surface(std::weak_ptr< Surface > const &surface)=0
virtual ~SurfaceCoordinator()=default
Definition: session.h:33
Definition: surface_coordinator.h:34
virtual std::shared_ptr< Surface > add_surface(SurfaceCreationParameters const &params, Session *session)=0
Definition: surface_creation_parameters.h:38

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Oct 10 14:07:14 UTC 2014