/usr/include/mircommon/mir_toolkit/common.h is in mircommon-dev 0.1.8+14.04.20140411-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | /*
* Simple definitions common to client and server.
*
* Copyright © 2013 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Author: Daniel van Vugt <daniel.van.vugt@canonical.com>
*/
#ifndef MIR_COMMON_H_
#define MIR_COMMON_H_
/**
* \addtogroup mir_toolkit
* @{
*/
/* This is C code. Not C++. */
/**
* Attributes of a surface that the client and server/shell may wish to
* get or set over the wire.
*/
typedef enum MirSurfaceAttrib
{
mir_surface_attrib_type,
mir_surface_attrib_state,
mir_surface_attrib_swapinterval,
mir_surface_attrib_focus,
mir_surface_attribs
} MirSurfaceAttrib;
typedef enum MirSurfaceType
{
mir_surface_type_normal,
mir_surface_type_utility,
mir_surface_type_dialog,
mir_surface_type_overlay,
mir_surface_type_freestyle,
mir_surface_type_popover,
mir_surface_type_inputmethod,
mir_surface_types
} MirSurfaceType;
typedef enum MirSurfaceState
{
mir_surface_state_unknown,
mir_surface_state_restored,
mir_surface_state_minimized,
mir_surface_state_maximized,
mir_surface_state_vertmaximized,
/* mir_surface_state_semimaximized,
Omitted for now, since it's functionally a subset of vertmaximized and
differs only in the X coordinate. */
mir_surface_state_fullscreen,
mir_surface_states
} MirSurfaceState;
typedef enum MirSurfaceFocusState
{
mir_surface_unfocused = 0,
mir_surface_focused
} MirSurfaceFocusState;
typedef enum MirLifecycleState
{
mir_lifecycle_state_will_suspend,
mir_lifecycle_state_resumed,
mir_lifecycle_connection_lost
} MirLifecycleState;
typedef enum MirPowerMode
{
mir_power_mode_on, /* Display in use. */
mir_power_mode_standby, /* Blanked, low power. */
mir_power_mode_suspend, /* Blanked, lowest power. */
mir_power_mode_off /* Powered down. */
} MirPowerMode;
/**
* The order of components in a format enum matches the
* order of the components as they would be written in an
* integer representing a pixel value of that format.
*
* For example, abgr_8888 corresponds to 0xAABBGGRR, which will
* end up as R,G,B,A in memory in a little endian system, and
* as A,B,G,R in memory in a big endian system.
*/
typedef enum MirPixelFormat
{
mir_pixel_format_invalid,
mir_pixel_format_abgr_8888,
mir_pixel_format_xbgr_8888,
mir_pixel_format_argb_8888,
mir_pixel_format_xrgb_8888,
mir_pixel_format_bgr_888,
mir_pixel_formats
} MirPixelFormat;
/* This could be improved... https://bugs.launchpad.net/mir/+bug/1236254 */
#define MIR_BYTES_PER_PIXEL(f) (((f) == mir_pixel_format_bgr_888) ? 3 : 4)
typedef enum MirOrientation
{
mir_orientation_normal = 0,
mir_orientation_left = 90,
mir_orientation_inverted = 180,
mir_orientation_right = 270
} MirOrientation;
/**@}*/
#endif
|