Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
surface_creation_parameters.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 #ifndef MIR_SHELL_SURFACE_CREATION_PARAMETERS_H_
20 #define MIR_SHELL_SURFACE_CREATION_PARAMETERS_H_
21 
22 #include "mir_toolkit/common.h"
23 #include "mir/geometry/point.h"
24 #include "mir/geometry/size.h"
27 #include "mir/scene/depth_id.h"
29 
30 #include <memory>
31 #include <string>
32 
33 namespace mir
34 {
35 namespace shell
36 {
37 
39 {
41 
42  SurfaceCreationParameters& of_name(std::string const& new_name);
43 
45 
47 
49 
51 
53 
55 
57 
59 
60  std::string name;
68 };
69 
72 
74 }
75 }
76 
77 #endif /* MIR_SHELL_SURFACE_CREATION_PARAMETERS_H_ */
Definition: size.h:30
Definition: surface_creation_parameters.h:38
scene::DepthId depth
Definition: surface_creation_parameters.h:65
SurfaceCreationParameters()
Definition: surface_creation_parameters.cpp:26
Definition: point.h:30
MirPixelFormat pixel_format
Definition: surface_creation_parameters.h:64
graphics::BufferUsage buffer_usage
Definition: surface_creation_parameters.h:63
std::string name
Definition: surface_creation_parameters.h:60
input::InputReceptionMode input_mode
Definition: surface_creation_parameters.h:66
SurfaceCreationParameters & of_size(geometry::Size new_size)
Definition: surface_creation_parameters.cpp:40
graphics::DisplayConfigurationOutputId output_id
Definition: surface_creation_parameters.h:67
bool operator==(const SurfaceCreationParameters &lhs, const SurfaceCreationParameters &rhs)
Definition: surface_creation_parameters.cpp:101
unsigned int width
Definition: black_arrow.c:4
BufferUsage
How a buffer is going to be used.
Definition: buffer_properties.h:36
SurfaceCreationParameters & of_pixel_format(MirPixelFormat new_pixel_format)
Definition: surface_creation_parameters.cpp:70
SurfaceCreationParameters & of_buffer_usage(graphics::BufferUsage new_buffer_usage)
Definition: surface_creation_parameters.cpp:62
MirPixelFormat
The order of components in a format enum matches the order of the components as they would be written...
Definition: common.h:99
SurfaceCreationParameters a_surface()
Definition: surface_creation_parameters.cpp:122
unsigned int height
Definition: black_arrow.c:5
geometry::Point top_left
Definition: surface_creation_parameters.h:62
SurfaceCreationParameters & of_position(geometry::Point const &top_left)
Definition: surface_creation_parameters.cpp:55
bool operator!=(const SurfaceCreationParameters &lhs, const SurfaceCreationParameters &rhs)
Definition: surface_creation_parameters.cpp:115
InputReceptionMode
Definition: input_reception_mode.h:27
SurfaceCreationParameters & of_depth(scene::DepthId const &new_depth)
Definition: surface_creation_parameters.cpp:78
SurfaceCreationParameters & with_output_id(graphics::DisplayConfigurationOutputId const &output_id)
Definition: surface_creation_parameters.cpp:93
SurfaceCreationParameters & of_name(std::string const &new_name)
Definition: surface_creation_parameters.cpp:33
geometry::Size size
Definition: surface_creation_parameters.h:61
SurfaceCreationParameters & with_input_mode(input::InputReceptionMode const &new_mode)
Definition: surface_creation_parameters.cpp:86

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