Mir
surface_stack_wrapper.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2015 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_SHELL_SURFACE_STACK_WRAPPER_H
20 #define MIR_SHELL_SURFACE_STACK_WRAPPER_H
21 
23 
24 namespace mir
25 {
26 namespace shell
27 {
29 {
30 public:
31  explicit SurfaceStackWrapper(std::shared_ptr<SurfaceStack> const& wrapped);
32 
33  void add_surface(
34  std::shared_ptr<scene::Surface> const&,
35  input::InputReceptionMode new_mode) override;
36 
37  void raise(std::weak_ptr<scene::Surface> const& surface) override;
38 
39  void raise(SurfaceSet const& surfaces) override;
40 
41  void remove_surface(std::weak_ptr<scene::Surface> const& surface) override;
42 
43  auto surface_at(geometry::Point) const -> std::shared_ptr<scene::Surface> override;
44 
45 protected:
46  std::shared_ptr<SurfaceStack> const wrapped;
47 };
48 }
49 }
50 
51 #endif //MIR_SHELL_SURFACE_STACK_WRAPPER_H
void remove_surface(std::weak_ptr< scene::Surface > const &surface) override
Definition: as_render_target.h:27
SurfaceStackWrapper(std::shared_ptr< SurfaceStack > const &wrapped)
Definition: point.h:30
std::shared_ptr< SurfaceStack > const wrapped
Definition: surface_stack_wrapper.h:46
auto surface_at(geometry::Point) const -> std::shared_ptr< scene::Surface > override
std::set< std::weak_ptr< scene::Surface >, std::owner_less< std::weak_ptr< scene::Surface > >> SurfaceSet
Definition: surface_stack.h:43
Definition: surface_stack.h:40
Definition: surface_stack_wrapper.h:28
InputReceptionMode
Definition: input_reception_mode.h:27
void add_surface(std::shared_ptr< scene::Surface > const &, input::InputReceptionMode new_mode) override

Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Mar 27 12:06:55 UTC 2017