Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
surface.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2013 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_SHELL_SURFACE_H_
21 #define MIR_SHELL_SURFACE_H_
22 
24 #include "mir/geometry/rectangle.h"
25 #include "mir/frontend/surface.h"
26 
27 #include <string>
28 #include <vector>
29 
30 namespace mir
31 {
32 namespace scene { class SurfaceRanker; }
33 namespace shell
34 {
35 class InputTargeter;
36 
38 {
39 public:
40  virtual std::string name() const = 0;
41  virtual MirSurfaceType type() const = 0;
42  virtual MirSurfaceState state() const = 0;
43  virtual void hide() = 0;
44  virtual void show() = 0;
45  virtual void move_to(geometry::Point const& top_left) = 0;
46  virtual geometry::Point top_left() const = 0;
47 
48  virtual void take_input_focus(std::shared_ptr<InputTargeter> const& targeter) = 0;
49  virtual void set_input_region(std::vector<geometry::Rectangle> const& region) = 0;
50 
51  virtual void allow_framedropping(bool) = 0;
52 
53  virtual void resize(geometry::Size const& size) = 0;
54  virtual void set_transformation(glm::mat4 const& t) = 0;
55 
56  virtual float alpha() const = 0;
57  virtual void set_alpha(float alpha) = 0;
58 };
59 }
60 }
61 
62 #endif /* MIR_SHELL_SURFACE_H_ */
Definition: size.h:30
virtual void set_input_region(std::vector< geometry::Rectangle > const &region)=0
virtual void hide()=0
virtual void take_input_focus(std::shared_ptr< InputTargeter > const &targeter)=0
Definition: point.h:30
virtual MirSurfaceType type() const =0
Definition: surface_buffer_access.h:33
Definition: surface.h:37
virtual std::string name() const =0
virtual geometry::Point top_left() const =0
virtual void set_alpha(float alpha)=0
MirSurfaceState
Definition: common.h:55
virtual void move_to(geometry::Point const &top_left)=0
virtual geometry::Size size() const =0
MirSurfaceType
Definition: common.h:43
virtual MirSurfaceState state() const =0
virtual float alpha() const =0
Definition: surface.h:48
virtual void set_transformation(glm::mat4 const &t)=0
virtual void show()=0
virtual void allow_framedropping(bool)=0
virtual void resize(geometry::Size const &size)=0

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