Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 {
75 
76 typedef enum MirLifecycleState
77 {
82 
83 typedef enum MirPowerMode
84 {
85  mir_power_mode_on, /* Display in use. */
86  mir_power_mode_standby, /* Blanked, low power. */
87  mir_power_mode_suspend, /* Blanked, lowest power. */
88  mir_power_mode_off /* Powered down. */
89 } MirPowerMode;
92 #endif

Copyright © 2012,2013 Canonical Ltd.
Generated on Wed Oct 30 18:52:19 UTC 2013