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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
#[repr(u32)]
pub enum DatadeviceError {
ErrorRole = 0,
_not_univariant = 0xffffffff
}
#[repr(u32)]
pub enum DisplayError {
InvalidObject = 0,
InvalidMethod = 1,
NoMemory = 2,
}
#[repr(u32)]
#[derive(PartialEq, Eq)]
pub enum KeyState {
Released = 0,
Pressed = 1,
}
#[repr(u32)]
#[derive(PartialEq, Eq)]
pub enum KeymapFormat {
NoKeymap = 0,
XkbV1 = 1,
}
bitflags!(
flags OutputMode: u32 {
const MODE_CURRENT = 0x1,
const MODE_PREFFERED = 0x2,
}
);
#[repr(i32)]
#[derive(Copy, Clone)]
pub enum OutputSubpixel {
Unknown = 0,
None = 1,
HorizontalRGB = 2,
HorizontalBGR = 3,
VerticalRGB = 4,
VerticalBGR = 5,
}
#[repr(i32)]
#[derive(Copy, Clone)]
pub enum OutputTransform {
Normal = 0,
Rotated90 = 1,
Rotated180 = 2,
Rotated270 = 3,
Flipped = 4,
FlippedRotated90 = 5,
FlippedRotated180 = 6,
FlippedRotated270 = 7,
}
#[repr(u32)]
#[derive(PartialEq, Eq)]
pub enum ScrollAxis {
Vertical = 0,
Horizontal = 1,
}
#[repr(u32)]
#[derive(PartialEq, Eq)]
pub enum ButtonState {
Released = 0,
Pressed = 1,
}
#[repr(u32)]
pub enum PointerError {
ErrorRole = 0,
_not_univariant = 0xffffffff
}
bitflags! {
flags SeatCapability: u32 {
const CAPABILITY_POINTER = 1,
const CAPABILITY_KEYBOARD = 2,
const CAPABILITY_TOUCH = 4,
}
}
#[repr(u32)]
pub enum ShellError {
ErrorRole = 0,
_not_univariant = 0xffffffff
}
#[repr(u32)]
#[derive(PartialEq, Eq)]
pub enum FullscreenMethod {
Default = 0,
Scale = 1,
Driver = 2,
Fill = 3,
}
#[repr(u32)]
#[derive(PartialEq, Eq)]
pub enum ShellSurfaceResize {
None = 0,
Top = 1,
Bottom = 2,
Left = 4,
TopLeft = 5,
BottomLeft = 6,
Right = 8,
TopRight = 9,
BottomRight = 10,
}
bitflags! {
flags ShellSurfaceTransient: u32 {
const NONE = 0x0,
const INACTIVE = 0x1,
}
}
#[repr(u32)]
pub enum ShmError {
InvalidFormat = 0,
InvaliStride = 1,
InvalidFd = 2,
}
#[repr(u32)]
#[derive(PartialEq, Eq)]
pub enum ShmFormat {
ARGB8888 = 0,
XRGB8888 = 1,
C8 = 0x20203843,
RGB332 = 0x38424752,
BGR233 = 0x38524742,
XRGB4444 = 0x32315258,
XBGR4444 = 0x32314258,
RGBX4444 = 0x32315852,
BGRX4444 = 0x32315842,
ARGB4444 = 0x32315241,
ABGR4444 = 0x32314241,
RGBA4444 = 0x32314152,
BGRA4444 = 0x32314142,
XRGB1555 = 0x35315258,
XBGR1555 = 0x35314258,
RGBX5551 = 0x35315852,
BGRX5551 = 0x35315842,
ARGB1555 = 0x35315241,
ABGR1555 = 0x35314241,
RGBA5551 = 0x35314152,
BGRA5551 = 0x35314142,
RGB565 = 0x36314752,
BGR565 = 0x36314742,
RGB888 = 0x34324752,
BGR888 = 0x34324742,
XBGR8888 = 0x34324258,
RGBX8888 = 0x34325852,
BGRX8888 = 0x34325842,
ABGR8888 = 0x34324241,
RGBA8888 = 0x34324152,
BGRA8888 = 0x34324142,
XRGB2101010 = 0x30335258,
XBGR2101010 = 0x30334258,
RGBX1010102 = 0x30335852,
BGRX1010102 = 0x30335842,
ARGB2101010 = 0x30335241,
ABGR2101010 = 0x30334241,
RGBA1010102 = 0x30334152,
BGRA1010102 = 0x30334142,
YUYV = 0x56595559,
YVYU = 0x55595659,
UYVY = 0x59565955,
VYUY = 0x59555956,
AYUV = 0x56555941,
NV12 = 0x3231564e,
NV21 = 0x3132564e,
NV16 = 0x3631564e,
NV61 = 0x3136564e,
YUV410 = 0x39565559,
YVU410 = 0x39555659,
YUV411 = 0x31315559,
YVU411 = 0x31315659,
YUV420 = 0x32315559,
YVU420 = 0x32315659,
YUV422 = 0x36315559,
YVU422 = 0x36315659,
YUV444 = 0x34325559,
YVU444 = 0x34325659,
}
#[repr(u32)]
pub enum SubcompositorError {
BadSurface = 0,
_not_univariant = 0xffffffff
}
#[repr(u32)]
pub enum SubsurfaceError {
BadSurface = 0,
_not_univariant = 0xffffffff
}
#[repr(u32)]
pub enum SurfaceError {
InvalidScale = 0,
InvalidTransform = 1,
}