Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 
24 
25 #include <memory>
26 
27 namespace mir
28 {
29 namespace shell
30 {
31 struct SurfaceCreationParameters;
32 }
33 
34 namespace scene
35 {
36 class Surface;
37 class SurfaceObserver;
38 
40 {
41 public:
42  virtual std::shared_ptr<Surface> add_surface(
44  std::shared_ptr<SurfaceObserver> const& observer) = 0;
45 
46  virtual void remove_surface(std::weak_ptr<Surface> const& surface) = 0;
47 protected:
48  SurfaceCoordinator() = default;
49  virtual ~SurfaceCoordinator() = default;
50  SurfaceCoordinator(SurfaceCoordinator const&) = delete;
52 };
53 }
54 }
55 
56 
57 #endif /* MIR_SCENE_SURFACE_COORDINATOR_H_ */
SurfaceCoordinator & operator=(SurfaceCoordinator const &)=delete
Definition: surface_creation_parameters.h:38
virtual void remove_surface(std::weak_ptr< Surface > const &surface)=0
virtual ~SurfaceCoordinator()=default
Definition: surface_ranker.h:31
Definition: surface_coordinator.h:39
virtual std::shared_ptr< Surface > add_surface(shell::SurfaceCreationParameters const &params, std::shared_ptr< SurfaceObserver > const &observer)=0

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