Mir
common.h
Go to the documentation of this file.
1 /*
2  * Simple definitions common to client and server.
3  *
4  * Copyright © 2013-2016 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 2 or 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 
25 
26 //for clang
27 #ifndef __has_feature
28  #define __has_feature(x) 0 // Compatibility with non-clang
29 #endif
30 
31 //for clang
32 #ifndef __has_extension
33  #define __has_extension __has_feature // Compatibility with pre-3.0
34 #endif
35 
36 #if __GNUC__ >= 6 || \
37  (__has_extension(attribute_deprecated_with_message) && \
38  __has_extension(enumerator_attributes))
39  #define MIR_DEPRECATED_ENUM(ENUM, INSTEAD) \
40  ENUM MIR_FOR_REMOVAL_IN_VERSION_1("Use " #INSTEAD " instead")
41 #else
42  #define MIR_DEPRECATED_ENUM(ENUM, INSTEAD) \
43  ENUM
44 #endif
45 
49 /* This is C code. Not C++. */
50 
55 typedef enum MirSurfaceAttrib
56 {
57  /* Do not specify values...code relies on 0...N ordering. */
68  /* Must be last */
70 } MirSurfaceAttrib MIR_FOR_REMOVAL_IN_VERSION_1("use MirWindowAttrib");
71 
76 typedef enum MirWindowAttrib
77 {
78  /* Do not specify values...code relies on 0...N ordering. */
89  /* Must be last */
92 
93 typedef enum MirSurfaceType
94 {
107 } MirSurfaceType MIR_FOR_REMOVAL_IN_VERSION_1("use MirWindowType");
108 
109 typedef enum MirWindowType
110 {
122 } MirWindowType;
123 
124 typedef enum MirSurfaceState
125 {
131  /* mir_surface_state_semimaximized,
132  Omitted for now, since it's functionally a subset of vertmaximized and
133  differs only in the X coordinate. */
139 } MirSurfaceState MIR_FOR_REMOVAL_IN_VERSION_1("use MirWindowState");
140 
141 typedef enum MirWindowState
142 {
148  /* mir_window_state_semimaximized,
149  Omitted for now, since it's functionally a subset of vertmaximized and
150  differs only in the X coordinate. */
157 
159 {
162 } MirSurfaceFocusState MIR_FOR_REMOVAL_IN_VERSION_1("use MirWindowFocusState");
163 
165 {
169 
171 {
174 } MirSurfaceVisibility MIR_FOR_REMOVAL_IN_VERSION_1("use MirWindowFocusState");
175 
177 {
181 
182 typedef enum MirLifecycleState
183 {
188 
189 typedef enum MirPowerMode
190 {
191  mir_power_mode_on, /* Display in use. */
192  mir_power_mode_standby, /* Blanked, low power. */
193  mir_power_mode_suspend, /* Blanked, lowest power. */
194  mir_power_mode_off /* Powered down. */
195 } MirPowerMode;
196 
197 typedef enum MirOutputType
198 {
199  mir_output_type_unknown = 0, /* DRM_MODE_CONNECTOR_Unknown */
200  mir_output_type_vga = 1, /* DRM_MODE_CONNECTOR_VGA */
201  mir_output_type_dvii = 2, /* DRM_MODE_CONNECTOR_DVII */
202  mir_output_type_dvid = 3, /* DRM_MODE_CONNECTOR_DVID */
203  mir_output_type_dvia = 4, /* DRM_MODE_CONNECTOR_DVIA */
204  mir_output_type_composite = 5, /* DRM_MODE_CONNECTOR_Composite */
205  mir_output_type_svideo = 6, /* DRM_MODE_CONNECTOR_SVIDEO */
206  mir_output_type_lvds = 7, /* DRM_MODE_CONNECTOR_LVDS */
207  mir_output_type_component = 8, /* DRM_MODE_CONNECTOR_Component */
208  mir_output_type_ninepindin = 9, /* DRM_MODE_CONNECTOR_9PinDIN */
209  mir_output_type_displayport = 10, /* DRM_MODE_CONNECTOR_DisplayPort */
210  mir_output_type_hdmia = 11, /* DRM_MODE_CONNECTOR_HDMIA */
211  mir_output_type_hdmib = 12, /* DRM_MODE_CONNECTOR_HDMIB */
212  mir_output_type_tv = 13, /* DRM_MODE_CONNECTOR_TV */
213  mir_output_type_edp = 14, /* DRM_MODE_CONNECTOR_eDP */
214  mir_output_type_virtual = 15, /* DRM_MODE_CONNECTOR_VIRTUAL */
215  mir_output_type_dsi = 16, /* DRM_MODE_CONNECTOR_DSI */
216  mir_output_type_dpi = 17, /* DRM_MODE_CONNECTOR_DPI */
217 } MirOutputType;
218 
220 {
225 
244 typedef enum MirPixelFormat
245 {
257  /*
258  * TODO: Big endian support would require additional formats in order to
259  * composite software surfaces using OpenGL (GL_RGBA/GL_BGRA_EXT):
260  * mir_pixel_format_rgb[ax]_8888
261  * mir_pixel_format_bgr[ax]_8888
262  */
263  mir_pixel_formats /* Note: This is always max format + 1 */
265 
266 /* This could be improved... https://bugs.launchpad.net/mir/+bug/1236254 */
267 #define MIR_BYTES_PER_PIXEL(f) ((f) == mir_pixel_format_bgr_888 ? 3 : \
268  (f) == mir_pixel_format_rgb_888 ? 3 : \
269  (f) == mir_pixel_format_rgb_565 ? 2 : \
270  (f) == mir_pixel_format_rgba_5551 ? 2 : \
271  (f) == mir_pixel_format_rgba_4444 ? 2 : \
272  4)
273 
275 typedef enum MirOrientation
276 {
282 
284 typedef enum MirMirrorMode
285 {
289 } MirMirrorMode;
290 
291 typedef enum MirOrientationMode
292 {
304 
305 typedef enum MirEdgeAttachment
306 {
312 
313 // Inspired by GdkGravity
319 {
322 
325 
328 
331 
334 
337 
340 
343 
347 
348 // Inspired by GdkAnchorHints
373 typedef enum MirPlacementHints
374 {
377 
380 
383 
386 
389 
392 
395 
398 
401 
405 
406 
413 typedef enum MirResizeEdge
414 {
424 } MirResizeEdge;
425 
429 typedef enum MirFormFactor
430 {
437 } MirFormFactor;
438 
439 
446 {
454 
458 typedef enum MirShellChrome
459 {
463 
468 #pragma GCC diagnostic push
469 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
471 {
473  MIR_DEPRECATED_ENUM(mir_pointer_confined_to_surface, "mir_pointer_confined_to_window"),
474  mir_pointer_confined_to_window = mir_pointer_confined_to_surface,
476 #pragma GCC diagnostic pop
477 
482 {
486 
494 typedef enum MirDepthLayer
495 {
502 } MirDepthLayer;
503 
504 
507 #endif
mir_window_type_freestyle
@ mir_window_type_freestyle
Definition: common.h:115
mir_surface_type_normal
mir_surface_type_normal
AKA "regular"
Definition: common.h:2
mir_window_states
@ mir_window_states
Definition: common.h:155
mir_window_state_minimized
@ mir_window_state_minimized
Definition: common.h:145
mir_placement_gravity_northeast
@ mir_placement_gravity_northeast
the reference point is at the top right corner.
Definition: common.h:339
mir_pixel_format_abgr_8888
@ mir_pixel_format_abgr_8888
Definition: common.h:247
mir_surface_type_utility
mir_surface_type_utility
AKA "floating"
Definition: common.h:3
mir_depth_layer_background
@ mir_depth_layer_background
For desktop backgrounds and alike (lowest layer)
Definition: common.h:496
mir_subpixel_arrangement_none
@ mir_subpixel_arrangement_none
Device does not have regular subpixels.
Definition: common.h:452
mir_pixel_formats
@ mir_pixel_formats
Definition: common.h:263
mir_resize_edge_southwest
@ mir_resize_edge_southwest
Definition: common.h:422
mir_window_type_gloss
@ mir_window_type_gloss
Definition: common.h:114
mir_orientation_mode_portrait_any
@ mir_orientation_mode_portrait_any
Definition: common.h:297
mir_pixel_format_xbgr_8888
@ mir_pixel_format_xbgr_8888
Definition: common.h:248
mir_placement_gravity_south
@ mir_placement_gravity_south
the reference point is at the middle of the lower edge.
Definition: common.h:333
MirSubpixelArrangement
MirSubpixelArrangement
Physical arrangement of subpixels on the physical output.
Definition: common.h:445
mir_window_state_restored
@ mir_window_state_restored
Definition: common.h:144
mir_surface_attrib_dpi
mir_surface_attrib_dpi
Definition: common.h:10
MirPlacementGravity
MirPlacementGravity
Reference point for aligning a surface relative to a rectangle.
Definition: common.h:318
mir_placement_gravity_southeast
@ mir_placement_gravity_southeast
the reference point is at the lower right corner.
Definition: common.h:345
mir_pixel_format_rgba_5551
@ mir_pixel_format_rgba_5551
Definition: common.h:254
mir_depth_layer_above
@ mir_depth_layer_above
For panels or notifications that want to be above normal windows.
Definition: common.h:500
mir_orientation_mode_portrait
@ mir_orientation_mode_portrait
Definition: common.h:293
mir_surface_state_restored
mir_surface_state_restored
Definition: common.h:3
mir_surface_state_minimized
mir_surface_state_minimized
Definition: common.h:4
mir_mirror_mode_none
@ mir_mirror_mode_none
Definition: common.h:286
MIR_DEPRECATED_ENUM
#define MIR_DEPRECATED_ENUM(ENUM, INSTEAD)
Definition: common.h:42
MirPointerConfinementState
MirPointerConfinementState
Pointer Confinement.
Definition: common.h:470
mir_orientation_right
@ mir_orientation_right
Definition: common.h:280
mir_power_mode_suspend
@ mir_power_mode_suspend
Definition: common.h:193
mir_shell_chrome_low
@ mir_shell_chrome_low
Definition: common.h:461
mir_pixel_format_rgba_4444
@ mir_pixel_format_rgba_4444
Definition: common.h:255
mir_surface_attrib_type
mir_surface_attrib_type
Definition: common.h:3
mir_mirror_mode_horizontal
@ mir_mirror_mode_horizontal
Definition: common.h:288
mir_surface_attribs
mir_surface_attribs
Definition: common.h:15
mir_output_type_dvid
@ mir_output_type_dvid
Definition: common.h:202
mir_resize_edge_northeast
@ mir_resize_edge_northeast
Definition: common.h:421
mir_mirror_mode_vertical
@ mir_mirror_mode_vertical
Definition: common.h:287
MirOutputType
MirOutputType
Definition: common.h:197
mir_output_type_hdmib
@ mir_output_type_hdmib
Definition: common.h:211
mir_pixel_format_bgr_888
@ mir_pixel_format_bgr_888
Definition: common.h:251
mir_surface_focused
mir_surface_focused
Definition: common.h:4
mir_window_state_hidden
@ mir_window_state_hidden
Definition: common.h:153
mir_window_focus_state_unfocused
@ mir_window_focus_state_unfocused
Definition: common.h:166
mir_surface_type_overlay
mir_surface_type_overlay
Definition: common.h:5
mir_form_factor_unknown
@ mir_form_factor_unknown
Definition: common.h:431
mir_surface_state_fullscreen
mir_surface_state_fullscreen
Definition: common.h:10
mir_depth_layer_overlay
@ mir_depth_layer_overlay
For overlays such as lock screens (heighest layer)
Definition: common.h:501
mir_surface_state_horizmaximized
mir_surface_state_horizmaximized
Definition: common.h:11
mir_orientation_mode_landscape_any
@ mir_orientation_mode_landscape_any
Definition: common.h:299
mir_form_factor_tv
@ mir_form_factor_tv
Definition: common.h:435
mir_resize_edge_east
@ mir_resize_edge_east
Definition: common.h:417
mir_surface_states
mir_surface_states
Definition: common.h:15
mir_window_attrib_visibility
@ mir_window_attrib_visibility
Definition: common.h:87
mir_output_type_svideo
@ mir_output_type_svideo
Definition: common.h:205
mir_surface_type_satellite
mir_surface_type_satellite
AKA "toolbox"/"toolbar"
Definition: common.h:11
mir_surface_attrib_state
mir_surface_attrib_state
Definition: common.h:4
MirPlacementHints
MirPlacementHints
Positioning hints for aligning a window relative to a rectangle.
Definition: common.h:373
MirPromptSessionState
MirPromptSessionState
Definition: common.h:219
mir_placement_gravity_northwest
@ mir_placement_gravity_northwest
the reference point is at the top left corner.
Definition: common.h:336
mir_placement_hints_slide_any
@ mir_placement_hints_slide_any
allow sliding window on both axes
Definition: common.h:400
mir_resize_edge_north
@ mir_resize_edge_north
Definition: common.h:418
mir_surface_visibility_occluded
mir_surface_visibility_occluded
Definition: common.h:2
mir_window_types
@ mir_window_types
Definition: common.h:121
mir_output_type_displayport
@ mir_output_type_displayport
Definition: common.h:209
mir_window_type_menu
@ mir_window_type_menu
Definition: common.h:116
MirEdgeAttachment
MirEdgeAttachment
Definition: common.h:305
MirPixelFormat
MirPixelFormat
32-bit pixel formats (8888): The order of components in the enum matches the order of the components ...
Definition: common.h:244
mir_form_factor_projector
@ mir_form_factor_projector
Definition: common.h:436
mir_edge_attachment_horizontal
@ mir_edge_attachment_horizontal
Definition: common.h:308
mir_window_attrib_dpi
@ mir_window_attrib_dpi
Definition: common.h:86
mir_placement_gravity_west
@ mir_placement_gravity_west
the reference point is at the middle of the left edge.
Definition: common.h:324
mir_subpixel_arrangement_unknown
@ mir_subpixel_arrangement_unknown
Arrangement of subpixels cannot be determined.
Definition: common.h:447
mir_surface_type_inputmethod
mir_surface_type_inputmethod
AKA "OSK" or handwriting etc.
Definition: common.h:10
MirWindowFocusState
MirWindowFocusState
Definition: common.h:164
mir_placement_hints_flip_y
@ mir_placement_hints_flip_y
allow flipping anchors vertically
Definition: common.h:379
mir_resize_edge_southeast
@ mir_resize_edge_southeast
Definition: common.h:423
mir_window_type_tip
@ mir_window_type_tip
AKA "tooltip"
Definition: common.h:119
mir_placement_hints_flip_x
@ mir_placement_hints_flip_x
allow flipping anchors horizontally
Definition: common.h:376
mir_window_state_fullscreen
@ mir_window_state_fullscreen
Definition: common.h:151
MirResizeEdge
MirResizeEdge
Hints for resizing a window.
Definition: common.h:413
mir_window_visibility_exposed
@ mir_window_visibility_exposed
Definition: common.h:179
mir_surface_type_tip
mir_surface_type_tip
AKA "tooltip"
Definition: common.h:12
mir_resize_edge_south
@ mir_resize_edge_south
Definition: common.h:419
mir_output_type_dsi
@ mir_output_type_dsi
Definition: common.h:215
mir_form_factor_monitor
@ mir_form_factor_monitor
Definition: common.h:434
mir_surface_attrib_preferred_orientation
mir_surface_attrib_preferred_orientation
Definition: common.h:12
mir_placement_hints_resize_x
@ mir_placement_hints_resize_x
allow resizing window horizontally
Definition: common.h:388
mir_output_type_dpi
@ mir_output_type_dpi
Definition: common.h:216
mir_surface_visibility_exposed
mir_surface_visibility_exposed
Definition: common.h:4
mir_edge_attachment_any
@ mir_edge_attachment_any
Definition: common.h:309
mir_surface_attrib_visibility
mir_surface_attrib_visibility
Definition: common.h:11
mir_window_state_attached
@ mir_window_state_attached
Used for panels, notifications and other windows attached to output edges.
Definition: common.h:154
mir_subpixel_arrangement_horizontal_rgb
@ mir_subpixel_arrangement_horizontal_rgb
Subpixels are arranged horizontally, R, G, B from left to right.
Definition: common.h:448
mir_form_factor_tablet
@ mir_form_factor_tablet
Definition: common.h:433
mir_placement_hints_flip_any
@ mir_placement_hints_flip_any
allow flipping anchors on both axes
Definition: common.h:397
MirPowerMode
MirPowerMode
Definition: common.h:189
MirWindowAttrib
MirWindowAttrib
Attributes of a window that the client and server/shell may wish to get or set over the wire.
Definition: common.h:76
mir_subpixel_arrangement_horizontal_bgr
@ mir_subpixel_arrangement_horizontal_bgr
Subpixels are arranged horizontally, B, G, R from left to right.
Definition: common.h:449
mir_surface_type_menu
mir_surface_type_menu
Definition: common.h:9
MirSurfaceType
MirSurfaceType
Definition: common.h:93
mir_output_type_dvii
@ mir_output_type_dvii
Definition: common.h:201
MirFormFactor
MirFormFactor
Form factor associated with a physical output.
Definition: common.h:429
mir_lifecycle_connection_lost
@ mir_lifecycle_connection_lost
Definition: common.h:186
mir_placement_hints_resize_any
@ mir_placement_hints_resize_any
allow resizing window on both axes
Definition: common.h:403
mir_pointer_confined_to_window
@ mir_pointer_confined_to_window
Definition: common.h:474
mir_pixel_format_rgb_565
@ mir_pixel_format_rgb_565
Definition: common.h:253
mir_orientation_mode_any
@ mir_orientation_mode_any
Definition: common.h:301
mir_output_type_hdmia
@ mir_output_type_hdmia
Definition: common.h:210
mir_surface_state_unknown
mir_surface_state_unknown
Definition: common.h:2
mir_window_type_dialog
@ mir_window_type_dialog
Definition: common.h:113
mir_window_attrib_preferred_orientation
@ mir_window_attrib_preferred_orientation
Definition: common.h:88
mir_power_mode_on
@ mir_power_mode_on
Definition: common.h:191
MirWindowState
MirWindowState
Definition: common.h:141
MirWindowVisibility
MirWindowVisibility
Definition: common.h:176
mir_placement_gravity_east
@ mir_placement_gravity_east
the reference point is at the middle of the right edge.
Definition: common.h:327
deprecations.h
mir_placement_hints_slide_x
@ mir_placement_hints_slide_x
allow sliding window horizontally
Definition: common.h:382
mir_depth_layer_below
@ mir_depth_layer_below
For panels or other controls/decorations below normal windows.
Definition: common.h:497
mir_resize_edge_none
@ mir_resize_edge_none
Definition: common.h:415
mir_output_type_composite
@ mir_output_type_composite
Definition: common.h:204
mir_window_state_horizmaximized
@ mir_window_state_horizmaximized
Definition: common.h:152
mir_output_gamma_unsupported
@ mir_output_gamma_unsupported
Definition: common.h:483
mir_window_type_satellite
@ mir_window_type_satellite
AKA "toolbox"/"toolbar"
Definition: common.h:118
mir_form_factor_phone
@ mir_form_factor_phone
Definition: common.h:432
mir_window_visibility_occluded
@ mir_window_visibility_occluded
Definition: common.h:178
mir_window_attrib_swapinterval
@ mir_window_attrib_swapinterval
Definition: common.h:81
mir_subpixel_arrangement_vertical_bgr
@ mir_subpixel_arrangement_vertical_bgr
Subpixels are arranged vertically, B, G, R from top to bottom.
Definition: common.h:451
MirShellChrome
MirShellChrome
Shell chrome.
Definition: common.h:458
mir_window_attrib_focus
@ mir_window_attrib_focus
Definition: common.h:85
mir_placement_hints_slide_y
@ mir_placement_hints_slide_y
allow sliding window vertically
Definition: common.h:385
mir_surface_attrib_focus
mir_surface_attrib_focus
Definition: common.h:9
mir_orientation_mode_portrait_inverted
@ mir_orientation_mode_portrait_inverted
Definition: common.h:295
mir_depth_layer_application
@ mir_depth_layer_application
For normal application windows.
Definition: common.h:498
mir_placement_gravity_center
@ mir_placement_gravity_center
the reference point is at the center.
Definition: common.h:321
mir_output_type_virtual
@ mir_output_type_virtual
Definition: common.h:214
MIR_FOR_REMOVAL_IN_VERSION_1
enum MirSurfaceAttrib MIR_FOR_REMOVAL_IN_VERSION_1("use MirWindowAttrib")
Attributes of a surface that the client and server/shell may wish to get or set over the wire.
mir_surface_types
mir_surface_types
Definition: common.h:14
mir_output_type_component
@ mir_output_type_component
Definition: common.h:207
MirOutputGammaSupported
MirOutputGammaSupported
Supports gamma correction.
Definition: common.h:481
mir_placement_hints_antipodes
@ mir_placement_hints_antipodes
allow flipping aux_anchor to opposite corner
Definition: common.h:394
mir_prompt_session_state_suspended
@ mir_prompt_session_state_suspended
Definition: common.h:223
mir_window_attrib_state
@ mir_window_attrib_state
Definition: common.h:80
mir_edge_attachment_vertical
@ mir_edge_attachment_vertical
Definition: common.h:307
mir_pixel_format_xrgb_8888
@ mir_pixel_format_xrgb_8888
Definition: common.h:250
mir_window_focus_state_focused
@ mir_window_focus_state_focused
Definition: common.h:167
MirOrientation
MirOrientation
Direction relative to the "natural" orientation of the display.
Definition: common.h:275
MirMirrorMode
MirMirrorMode
Mirroring axis relative to the "natural" orientation of the display.
Definition: common.h:284
mir_window_type_utility
@ mir_window_type_utility
AKA "floating"
Definition: common.h:112
MirSurfaceAttrib
MirSurfaceAttrib
Attributes of a surface that the client and server/shell may wish to get or set over the wire.
Definition: common.h:55
mir_surface_type_freestyle
mir_surface_type_freestyle
Definition: common.h:7
mir_lifecycle_state_resumed
@ mir_lifecycle_state_resumed
Definition: common.h:185
mir_window_state_unknown
@ mir_window_state_unknown
Definition: common.h:143
mir_shell_chrome_normal
@ mir_shell_chrome_normal
Definition: common.h:460
mir_surface_state_maximized
mir_surface_state_maximized
Definition: common.h:5
mir_lifecycle_state_will_suspend
@ mir_lifecycle_state_will_suspend
Definition: common.h:184
mir_placement_gravity_southwest
@ mir_placement_gravity_southwest
the reference point is at the lower left corner.
Definition: common.h:342
mir_subpixel_arrangement_vertical_rgb
@ mir_subpixel_arrangement_vertical_rgb
Subpixels are arranged vertically, R, G, B from top to bottom.
Definition: common.h:450
mir_window_attribs
@ mir_window_attribs
Definition: common.h:90
mir_surface_type_popover
mir_surface_type_popover
Definition: common.h:8
mir_surface_state_hidden
mir_surface_state_hidden
Definition: common.h:12
MirLifecycleState
MirLifecycleState
Definition: common.h:182
mir_pixel_format_rgba_10101002
@ mir_pixel_format_rgba_10101002
Definition: common.h:256
mir_output_type_dvia
@ mir_output_type_dvia
Definition: common.h:203
mir_window_type_normal
@ mir_window_type_normal
AKA "regular"
Definition: common.h:111
mir_window_type_decoration
@ mir_window_type_decoration
Definition: common.h:120
MirSurfaceFocusState
MirSurfaceFocusState
Definition: common.h:158
mir_prompt_session_state_stopped
@ mir_prompt_session_state_stopped
Definition: common.h:221
MirSurfaceState
MirSurfaceState
Definition: common.h:124
MirSurfaceVisibility
MirSurfaceVisibility
Definition: common.h:170
mir_output_type_edp
@ mir_output_type_edp
Definition: common.h:213
mir_power_mode_off
@ mir_power_mode_off
Definition: common.h:194
mir_orientation_mode_landscape_inverted
@ mir_orientation_mode_landscape_inverted
Definition: common.h:296
mir_depth_layer_always_on_top
@ mir_depth_layer_always_on_top
For always-on-top application windows.
Definition: common.h:499
mir_output_gamma_supported
@ mir_output_gamma_supported
Definition: common.h:484
mir_pixel_format_invalid
@ mir_pixel_format_invalid
Definition: common.h:246
mir_surface_unfocused
mir_surface_unfocused
Definition: common.h:2
mir_resize_edge_northwest
@ mir_resize_edge_northwest
Definition: common.h:420
mir_output_type_ninepindin
@ mir_output_type_ninepindin
Definition: common.h:208
mir_pointer_unconfined
@ mir_pointer_unconfined
Definition: common.h:472
mir_window_state_vertmaximized
@ mir_window_state_vertmaximized
Definition: common.h:147
mir_orientation_normal
@ mir_orientation_normal
Definition: common.h:277
mir_window_type_inputmethod
@ mir_window_type_inputmethod
AKA "OSK" or handwriting etc.
Definition: common.h:117
mir_output_type_tv
@ mir_output_type_tv
Definition: common.h:212
mir_pixel_format_rgb_888
@ mir_pixel_format_rgb_888
Definition: common.h:252
mir_output_type_unknown
@ mir_output_type_unknown
Definition: common.h:199
mir_window_attrib_type
@ mir_window_attrib_type
Definition: common.h:79
mir_surface_type_gloss
mir_surface_type_gloss
Definition: common.h:6
MirWindowType
MirWindowType
Definition: common.h:109
mir_orientation_mode_landscape
@ mir_orientation_mode_landscape
Definition: common.h:294
mir_orientation_inverted
@ mir_orientation_inverted
Definition: common.h:279
mir_output_type_vga
@ mir_output_type_vga
Definition: common.h:200
mir_output_type_lvds
@ mir_output_type_lvds
Definition: common.h:206
mir_prompt_session_state_started
@ mir_prompt_session_state_started
Definition: common.h:222
mir_pixel_format_argb_8888
@ mir_pixel_format_argb_8888
Definition: common.h:249
mir_surface_type_dialog
mir_surface_type_dialog
Definition: common.h:4
mir_power_mode_standby
@ mir_power_mode_standby
Definition: common.h:192
MirDepthLayer
MirDepthLayer
Depth layer controls Z ordering of surfaces.
Definition: common.h:494
mir_surface_attrib_swapinterval
mir_surface_attrib_swapinterval
Definition: common.h:8
mir_placement_gravity_north
@ mir_placement_gravity_north
the reference point is in the middle of the top edge.
Definition: common.h:330
mir_resize_edge_west
@ mir_resize_edge_west
Definition: common.h:416
mir_surface_state_attached
mir_surface_state_attached
Used for panels, notifications and other windows attached to output edges.
Definition: common.h:13
mir_surface_state_vertmaximized
mir_surface_state_vertmaximized
Definition: common.h:6
mir_orientation_left
@ mir_orientation_left
Definition: common.h:278
MirOrientationMode
MirOrientationMode
Definition: common.h:291
mir_placement_hints_resize_y
@ mir_placement_hints_resize_y
allow resizing window vertically
Definition: common.h:391
mir_window_state_maximized
@ mir_window_state_maximized
Definition: common.h:146

Copyright © 2012-2021 Canonical Ltd.
Generated on Fri Nov 19 11:53:53 UTC 2021
This documentation is licensed under the GPL version 2 or 3.