Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
common.h
Go to the documentation of this file.
1 /*
2  * Simple definitions common to client and server.
3  *
4  * Copyright © 2013 Canonical Ltd.
5  *
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License version 3 as
8  * published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * Author: Daniel van Vugt <daniel.van.vugt@canonical.com>
19  */
20 
21 #ifndef MIR_COMMON_H_
22 #define MIR_COMMON_H_
23 
28 /* This is C code. Not C++. */
29 
34 typedef enum MirSurfaceAttrib
35 {
42 
43 typedef enum MirSurfaceType
44 {
54 
55 typedef enum MirSurfaceState
56 {
62  /* mir_surface_state_semimaximized,
63  Omitted for now, since it's functionally a subset of vertmaximized and
64  differs only in the X coordinate. */
68 
70 {
74 
75 typedef enum MirLifecycleState
76 {
81 
82 typedef enum MirPowerMode
83 {
84  mir_power_mode_on, /* Display in use. */
85  mir_power_mode_standby, /* Blanked, low power. */
86  mir_power_mode_suspend, /* Blanked, lowest power. */
87  mir_power_mode_off /* Powered down. */
88 } MirPowerMode;
89 
99 typedef enum MirPixelFormat
100 {
109 
110 /* This could be improved... https://bugs.launchpad.net/mir/+bug/1236254 */
111 #define MIR_BYTES_PER_PIXEL(f) (((f) == mir_pixel_format_bgr_888) ? 3 : 4)
112 
113 typedef enum MirOrientation
114 {
120 
123 #endif
Definition: common.h:51
Definition: common.h:37
Definition: common.h:49
Definition: common.h:60
Definition: common.h:40
Definition: common.h:39
Definition: common.h:79
Definition: common.h:47
Definition: common.h:36
Definition: common.h:78
Definition: common.h:65
Definition: common.h:77
Definition: common.h:87
Definition: common.h:71
Definition: common.h:101
Definition: common.h:115
Definition: common.h:105
MirOrientation
Definition: common.h:113
Definition: common.h:103
Definition: common.h:117
Definition: common.h:61
Definition: common.h:118
Definition: common.h:86
MirSurfaceState
Definition: common.h:55
Definition: common.h:116
Definition: common.h:106
Definition: common.h:107
Definition: common.h:46
MirPowerMode
Definition: common.h:82
MirSurfaceAttrib
Attributes of a surface that the client and server/shell may wish to get or set over the wire...
Definition: common.h:34
Definition: common.h:52
MirSurfaceType
Definition: common.h:43
Definition: common.h:48
Definition: common.h:104
Definition: common.h:85
MirPixelFormat
The order of components in a format enum matches the order of the components as they would be written...
Definition: common.h:99
Definition: common.h:66
MirLifecycleState
Definition: common.h:75
Definition: common.h:57
MirSurfaceFocusState
Definition: common.h:69
Definition: common.h:50
Definition: common.h:102
Definition: common.h:58
Definition: common.h:38
Definition: common.h:84
Definition: common.h:72
Definition: common.h:45
Definition: common.h:59

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