Mir
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
include
shared
mir_toolkit
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
{
36
mir_surface_attrib_type
,
37
mir_surface_attrib_state
,
38
mir_surface_attrib_swapinterval
,
39
mir_surface_attrib_focus
,
40
mir_surface_attrib_enum_max_
41
}
MirSurfaceAttrib
;
42
43
typedef
enum
MirSurfaceType
44
{
45
mir_surface_type_normal
,
46
mir_surface_type_utility
,
47
mir_surface_type_dialog
,
48
mir_surface_type_overlay
,
49
mir_surface_type_freestyle
,
50
mir_surface_type_popover
,
51
mir_surface_type_inputmethod
,
52
mir_surface_type_enum_max_
53
}
MirSurfaceType
;
54
55
typedef
enum
MirSurfaceState
56
{
57
mir_surface_state_unknown
,
58
mir_surface_state_restored
,
59
mir_surface_state_minimized
,
60
mir_surface_state_maximized
,
61
mir_surface_state_vertmaximized
,
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. */
65
mir_surface_state_fullscreen
,
66
mir_surface_state_enum_max_
67
}
MirSurfaceState
;
68
69
typedef
enum
MirSurfaceFocusState
70
{
71
mir_surface_unfocused
= 0,
72
mir_surface_focused
,
73
mir_surface_focus_enum_max_
74
}
MirSurfaceFocusState
;
75
76
typedef
enum
MirLifecycleState
77
{
78
mir_lifecycle_state_will_suspend
,
79
mir_lifecycle_state_resumed
,
80
mir_lifecycle_connection_lost
81
}
MirLifecycleState
;
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