aboutsummaryrefslogtreecommitdiffstats
path: root/libaxl-consts.h
blob: cf6a119956d3a4deb955c94a267b573a6c38c397 (plain) (blame)
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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
/* See LICENSE file for copyright and license details. */

/* libaxl_keycode_t */
#define LIBAXL_ANY_KEY              0

/* libaxl_bool_t */
#define LIBAXL_FALSE                0
#define LIBAXL_TRUE                 1

/* libaxl_timestamp_t */
#define LIBAXL_CURRENT_TIME         0

/* struct libaxl_host.family
   struct libaxl_request_change_hosts.family */
#define LIBAXL_INTERNET             0    /* IPv4 */
#define LIBAXL_DECNET               1    /* DECnet */
#define LIBAXL_CHAOS                2    /* Chaos */
#define LIBAXL_SERVER_INTERPRETED   5    /* Server Interpreted */
#define LIBAXL_INTERNET_V6          6    /* IPv6 */

/* union libaxl_text_item8
   union libaxl_text_item16 */
#define LIBAXL_FONT_SHIFT_INDICATOR 255

/* struct libaxl_coloritem.flags
   struct libaxl_request_store_named_color.flags */
#define LIBAXL_RED                  0x01
#define LIBAXL_GREEN                0x02
#define LIBAXL_BLUE                 0x04

/* struct libaxl_request_set_clip_rectangles.ordering */
#define LIBAXL_UNSORTED             0
#define LIBAXL_YSORTED              1
#define LIBAXL_YXSORTED             2
#define LIBAXL_YXBANDED             3

/* struct libaxl_request_force_screen_saver.mode */
#define LIBAXL_RESET                0
#define LIBAXL_ACTIVATE             1

/* struct libaxl_request_query_best_size.class */
#define LIBAXL_CURSOR               0
#define LIBAXL_TILE                 1
#define LIBAXL_STIPPLE              2

/* struct libaxl_request_circulate_windo.direction */
#define LIBAXL_RAISE_LOWEST         0
#define LIBAXL_LOWER_HIGHEST        1

/* struct libaxl_request_allow_events.mode */
#define LIBAXL_ASYNC_POINTER        0
#define LIBAXL_SYNC_POINTER         1
#define LIBAXL_REPLAY_POINTER       2
#define LIBAXL_ASYNC_KEYBOARD       3
#define LIBAXL_SYNC_KEYBOARD        4
#define LIBAXL_REPLAY_KEYBOARD      5
#define LIBAXL_ASYNC_BOTH           6
#define LIBAXL_SYNC_BOTH            7

/* struct libaxl_request_change_property.mode */
#define LIBAXL_REPLACE              0
#define LIBAXL_PREPEND              1
#define LIBAXL_APPEND               2

/* struct libaxl_request_send_event.destination */
#define LIBAXL_POINTER_WINDOW       0
#define LIBAXL_INPUT_FOCUS          1

/* struct libaxl_event_property_notify.state */
#define LIBAXL_NEW_VALUE            0
#define LIBAXL_DELETED              1

/* struct libaxl_event_colormap_notify.state */
#define LIBAXL_UNINSTALLED          0
#define LIBAXL_INSTALLED            1

/* struct libaxl_event_mapping_notify.request */
#define LIBAXL_MODIFIER             0
#define LIBAXL_KEYBOARD             1
#define LIBAXL_POINTER              2

/* struct libaxl_visual_type.class */
#define LIBAXL_STATIC_GRAY          0
#define LIBAXL_GRAY_SCALE           1
#define LIBAXL_STATIC_COLOR         2
#define LIBAXL_PSEUDO_COLOR         3
#define LIBAXL_TRUE_COLOR           4
#define LIBAXL_DIRECT_COLOR         5

/* circatulation place */
#define LIBAXL_TOP                  0
#define LIBAXL_BOTTOM               1

/* cap style */
#define LIBAXL_CAP_NOT_LAST         0
#define LIBAXL_CAP_BUTT             1
#define LIBAXL_CAP_ROUND            2
#define LIBAXL_CAP_PROJECTING       3

/* join style */
#define LIBAXL_JOIN_MITER           0
#define LIBAXL_JOIN_ROUND           1
#define LIBAXL_JOIN_BEVEL           2

/* map state */
#define LIBAXL_UNMAPPED             0
#define LIBAXL_UNVIEWABLE           1
#define LIBAXL_VIEWABLE             2

/* gcontext function */
#define LIBAXL_CLEAR                0
#define LIBAXL_AND                  1
#define LIBAXL_AND_REVERSE          2
#define LIBAXL_COPY                 3
#define LIBAXL_AND_INVERTED         4
#define LIBAXL_NO_OP                5
#define LIBAXL_XOR                  6
#define LIBAXL_OR                   7
#define LIBAXL_NOR                  8
#define LIBAXL_EQUIV                9
#define LIBAXL_INVERT               10
#define LIBAXL_OR_REVERSE           11
#define LIBAXL_COPY_INVERTED        12
#define LIBAXL_OR_INVERTED          13
#define LIBAXL_NAND                 14
#define LIBAXL_SET                  15

/* close down mode */
#define LIBAXL_DESTROY              0
#define LIBAXL_RETAIN_PERMANENT     1
#define LIBAXL_RETAIN_TEMPORARY     2

/* visibility state */
#define LIBAXL_UNOBSCURED           0
#define LIBAXL_PARTIALLY_OBSCURED   1
#define LIBAXL_FULLY_OBSCURED       2

/* bitgravity and wingravity */
#define LIBAXL_FORGET               0    /* bitgravity */
#define LIBAXL_UNMAP                0    /* wingravity */
#define LIBAXL_NORTH_WEST           1
#define LIBAXL_NORTH                2
#define LIBAXL_NORTH_EAST           3
#define LIBAXL_WEST                 4
#define LIBAXL_CENTER               5
#define LIBAXL_EAST                 6
#define LIBAXL_SOUTH_WEST           7
#define LIBAXL_SOUTH                8
#define LIBAXL_SOUTH_EAST           9
#define LIBAXL_STATIC               10

/* synchronicity */
#define LIBAXL_SYNCHRONOUS          0
#define LIBAXL_ASYNCHRONOUS         1

/* image formats */
#define LIBAXL_BITMAP               0
#define LIBAXL_XYPIXMAP             1
#define LIBAXL_ZPIXMAP              2

/* buttons */
#define LIBAXL_ANY_BUTTON           0

/* draw directions */
#define LIBAXL_LEFT_TO_RIGHT        0
#define LIBAXL_RIGHT_TO_LEFT        1

/* fill rule */
#define LIBAXL_EVEN_ODD             0
#define LIBAXL_WINDING              1

/* fill style and line style */
#define LIBAXL_SOLID                0
#define LIBAXL_TILED                1    /* fill style */
#define LIBAXL_STIPPLED             2    /* fill style */
#define LIBAXL_OPAQUE_STIPPLED      3    /* fill style */
#define LIBAXL_ON_OFF_DASH          1    /* line style */
#define LIBAXL_DOUBLE_DASH          2    /* line style */

/* polygon shape */
#define LIBAXL_COMPLEX              0
#define LIBAXL_NONCONVEX            1
#define LIBAXL_CONVEX               2

/* arc mode */
#define LIBAXL_CHORD                0
#define LIBAXL_PIE_SLICE            1

/* grab mode (includes LIBAXL_NORMAL) */
#define LIBAXL_GRAB                 1
#define LIBAXL_UNGRAB               2
#define LIBAXL_WHILE_GRABBED        3

/* grab status (includes LIBAXL_SUCCESS) */
#define LIBAXL_ALREADY_GRABBED      1
#define LIBAXL_INVALID_TIME         2
#define LIBAXL_NOT_VIEWABLE         3
#define LIBAXL_FROZEN               4

/* coordinate mode */
#define LIBAXL_ORIGIN               0
#define LIBAXL_PREVIOUS             1

/* enabled status */
#define LIBAXL_DISABLE              0
#define LIBAXL_DISABLED             0
#define LIBAXL_ENABLE               1
#define LIBAXL_ENABLED              1

/* window class */
#define LIBAXL_INPUT_OUTPUT         1
#define LIBAXL_INPUT_ONLY           2

/* subwindow mode */
#define LIBAXL_CLIP_BY_CHILDREN     0
#define LIBAXL_INCLUDE_INFERIORS    1

/* backing store */
#define LIBAXL_NOT_USEFUL           0 /* Not used in `struct libaxl_screen.backing_stores` */
#define LIBAXL_NEVER                0 /* Used in `struct libaxl_screen.backing_stores` */
#define LIBAXL_WHEN_MAPPED          1
#define LIBAXL_ALWAYS               2

/* change mode */
#define LIBAXL_INSERT               0
#define LIBAXL_DELETE               1

/* stack mode */
#define LIBAXL_ABOVE                0
#define LIBAXL_BELOW                1
#define LIBAXL_TOP_IF               2
#define LIBAXL_BOTTOM_IF            3
#define LIBAXL_OPPOSITE             4

/* pointer window detail and window focus details */
#define LIBAXL_ANCESTOR             0
#define LIBAXL_VIRTUAL              1
#define LIBAXL_INFERIOR             2
#define LIBAXL_NONLINEAR            3
#define LIBAXL_NONLINEAR_VIRTUAL    4
/* window focus details */
#define LIBAXL_FOCUS_POINTER        5 /* Just called Pointer in the specification */
#define LIBAXL_FOCUS_POINTER_ROOT   6 /* Just called PointerRoot in the specification */
#define LIBAXL_FOCUS_NONE           7 /* Just called None in the specification */

/* misc. */
#define LIBAXL_ANY_PROPERTY_TYPE    0
#define LIBAXL_ALL_TEMPORARY        0
#define LIBAXL_PARENT_RELATIVE      1
#define LIBAXL_HINT                 1
#define LIBAXL_ALL                  1

/* generic */
#define LIBAXL_NONE                 0
#define LIBAXL_NORMAL               0
#define LIBAXL_SUCCESS              0
#define LIBAXL_BUSY                 1
#define LIBAXL_FAILED               2
#define LIBAXL_NO                   0
#define LIBAXL_YES                  1
#define LIBAXL_DEFAULT              2
#define LIBAXL_OFF                  0
#define LIBAXL_ON                   1
#define LIBAXL_COPY_FROM_PARENT     0
#define LIBAXL_POINTER_ROOT         1
#define LIBAXL_PARENT               2