1;; From gdkcursor.h
2
3(define-enum-extended CursorType
4  (in-module "Gdk")
5  (c-name "GdkCursorType")
6  (values
7    '("x-cursor" "GDK_X_CURSOR" "0")
8    '("arrow" "GDK_ARROW" "2")
9    '("based-arrow-down" "GDK_BASED_ARROW_DOWN" "4")
10    '("based-arrow-up" "GDK_BASED_ARROW_UP" "6")
11    '("boat" "GDK_BOAT" "8")
12    '("bogosity" "GDK_BOGOSITY" "10")
13    '("bottom-left-corner" "GDK_BOTTOM_LEFT_CORNER" "12")
14    '("bottom-right-corner" "GDK_BOTTOM_RIGHT_CORNER" "14")
15    '("bottom-side" "GDK_BOTTOM_SIDE" "16")
16    '("bottom-tee" "GDK_BOTTOM_TEE" "18")
17    '("box-spiral" "GDK_BOX_SPIRAL" "20")
18    '("center-ptr" "GDK_CENTER_PTR" "22")
19    '("circle" "GDK_CIRCLE" "24")
20    '("clock" "GDK_CLOCK" "26")
21    '("coffee-mug" "GDK_COFFEE_MUG" "28")
22    '("cross" "GDK_CROSS" "30")
23    '("cross-reverse" "GDK_CROSS_REVERSE" "32")
24    '("crosshair" "GDK_CROSSHAIR" "34")
25    '("diamond-cross" "GDK_DIAMOND_CROSS" "36")
26    '("dot" "GDK_DOT" "38")
27    '("dotbox" "GDK_DOTBOX" "40")
28    '("double-arrow" "GDK_DOUBLE_ARROW" "42")
29    '("draft-large" "GDK_DRAFT_LARGE" "44")
30    '("draft-small" "GDK_DRAFT_SMALL" "46")
31    '("draped-box" "GDK_DRAPED_BOX" "48")
32    '("exchange" "GDK_EXCHANGE" "50")
33    '("fleur" "GDK_FLEUR" "52")
34    '("gobbler" "GDK_GOBBLER" "54")
35    '("gumby" "GDK_GUMBY" "56")
36    '("hand1" "GDK_HAND1" "58")
37    '("hand2" "GDK_HAND2" "60")
38    '("heart" "GDK_HEART" "62")
39    '("icon" "GDK_ICON" "64")
40    '("iron-cross" "GDK_IRON_CROSS" "66")
41    '("left-ptr" "GDK_LEFT_PTR" "68")
42    '("left-side" "GDK_LEFT_SIDE" "70")
43    '("left-tee" "GDK_LEFT_TEE" "72")
44    '("leftbutton" "GDK_LEFTBUTTON" "74")
45    '("ll-angle" "GDK_LL_ANGLE" "76")
46    '("lr-angle" "GDK_LR_ANGLE" "78")
47    '("man" "GDK_MAN" "80")
48    '("middlebutton" "GDK_MIDDLEBUTTON" "82")
49    '("mouse" "GDK_MOUSE" "84")
50    '("pencil" "GDK_PENCIL" "86")
51    '("pirate" "GDK_PIRATE" "88")
52    '("plus" "GDK_PLUS" "90")
53    '("question-arrow" "GDK_QUESTION_ARROW" "92")
54    '("right-ptr" "GDK_RIGHT_PTR" "94")
55    '("right-side" "GDK_RIGHT_SIDE" "96")
56    '("right-tee" "GDK_RIGHT_TEE" "98")
57    '("rightbutton" "GDK_RIGHTBUTTON" "100")
58    '("rtl-logo" "GDK_RTL_LOGO" "102")
59    '("sailboat" "GDK_SAILBOAT" "104")
60    '("sb-down-arrow" "GDK_SB_DOWN_ARROW" "106")
61    '("sb-h-double-arrow" "GDK_SB_H_DOUBLE_ARROW" "108")
62    '("sb-left-arrow" "GDK_SB_LEFT_ARROW" "110")
63    '("sb-right-arrow" "GDK_SB_RIGHT_ARROW" "112")
64    '("sb-up-arrow" "GDK_SB_UP_ARROW" "114")
65    '("sb-v-double-arrow" "GDK_SB_V_DOUBLE_ARROW" "116")
66    '("shuttle" "GDK_SHUTTLE" "118")
67    '("sizing" "GDK_SIZING" "120")
68    '("spider" "GDK_SPIDER" "122")
69    '("spraycan" "GDK_SPRAYCAN" "124")
70    '("star" "GDK_STAR" "126")
71    '("target" "GDK_TARGET" "128")
72    '("tcross" "GDK_TCROSS" "130")
73    '("top-left-arrow" "GDK_TOP_LEFT_ARROW" "132")
74    '("top-left-corner" "GDK_TOP_LEFT_CORNER" "134")
75    '("top-right-corner" "GDK_TOP_RIGHT_CORNER" "136")
76    '("top-side" "GDK_TOP_SIDE" "138")
77    '("top-tee" "GDK_TOP_TEE" "140")
78    '("trek" "GDK_TREK" "142")
79    '("ul-angle" "GDK_UL_ANGLE" "144")
80    '("umbrella" "GDK_UMBRELLA" "146")
81    '("ur-angle" "GDK_UR_ANGLE" "148")
82    '("watch" "GDK_WATCH" "150")
83    '("xterm" "GDK_XTERM" "152")
84    '("last-cursor" "GDK_LAST_CURSOR" "153")
85    '("blank-cursor" "GDK_BLANK_CURSOR" "-2")
86    '("cursor-is-pixmap" "GDK_CURSOR_IS_PIXMAP" "-1")
87  )
88)
89
90;; From gdkdnd.h
91
92(define-flags-extended DragAction
93  (in-module "Gdk")
94  (c-name "GdkDragAction")
95  (values
96    '("default" "GDK_ACTION_DEFAULT" "1 << 0")
97    '("copy" "GDK_ACTION_COPY" "1 << 1")
98    '("move" "GDK_ACTION_MOVE" "1 << 2")
99    '("link" "GDK_ACTION_LINK" "1 << 3")
100    '("private" "GDK_ACTION_PRIVATE" "1 << 4")
101    '("ask" "GDK_ACTION_ASK" "1 << 5")
102  )
103)
104
105(define-enum-extended DragProtocol
106  (in-module "Gdk")
107  (c-name "GdkDragProtocol")
108  (values
109    '("motif" "GDK_DRAG_PROTO_MOTIF" "0")
110    '("xdnd" "GDK_DRAG_PROTO_XDND" "1")
111    '("none" "GDK_DRAG_PROTO_NONE" "2")
112    '("win32-dropfiles" "GDK_DRAG_PROTO_WIN32_DROPFILES" "3")
113    '("ole2" "GDK_DRAG_PROTO_OLE2" "4")
114    '("local" "GDK_DRAG_PROTO_LOCAL" "5")
115  )
116)
117
118;; From gdkevents.h
119
120(define-enum-extended FilterReturn
121  (in-module "Gdk")
122  (c-name "GdkFilterReturn")
123  (values
124    '("continue" "GDK_FILTER_CONTINUE" "0")
125    '("remove" "GDK_FILTER_REMOVE" "1")
126  )
127)
128
129(define-enum-extended EventType
130  (in-module "Gdk")
131  (c-name "GdkEventType")
132  (values
133    '("nothing" "GDK_NOTHING" "-1")
134    '("delete" "GDK_DELETE" "0")
135    '("destroy" "GDK_DESTROY" "1")
136    '("expose" "GDK_EXPOSE" "2")
137    '("motion-notify" "GDK_MOTION_NOTIFY" "3")
138    '("button-press" "GDK_BUTTON_PRESS" "4")
139    '("2button-press" "GDK_2BUTTON_PRESS" "5")
140    '("3button-press" "GDK_3BUTTON_PRESS" "6")
141    '("button-release" "GDK_BUTTON_RELEASE" "7")
142    '("key-press" "GDK_KEY_PRESS" "8")
143    '("key-release" "GDK_KEY_RELEASE" "9")
144    '("enter-notify" "GDK_ENTER_NOTIFY" "10")
145    '("leave-notify" "GDK_LEAVE_NOTIFY" "11")
146    '("focus-change" "GDK_FOCUS_CHANGE" "12")
147    '("configure" "GDK_CONFIGURE" "13")
148    '("map" "GDK_MAP" "14")
149    '("unmap" "GDK_UNMAP" "15")
150    '("property-notify" "GDK_PROPERTY_NOTIFY" "16")
151    '("selection-clear" "GDK_SELECTION_CLEAR" "17")
152    '("selection-request" "GDK_SELECTION_REQUEST" "18")
153    '("selection-notify" "GDK_SELECTION_NOTIFY" "19")
154    '("proximity-in" "GDK_PROXIMITY_IN" "20")
155    '("proximity-out" "GDK_PROXIMITY_OUT" "21")
156    '("drag-enter" "GDK_DRAG_ENTER" "22")
157    '("drag-leave" "GDK_DRAG_LEAVE" "23")
158    '("drag-motion" "GDK_DRAG_MOTION" "24")
159    '("drag-status" "GDK_DRAG_STATUS" "25")
160    '("drop-start" "GDK_DROP_START" "26")
161    '("drop-finished" "GDK_DROP_FINISHED" "27")
162    '("client-event" "GDK_CLIENT_EVENT" "28")
163    '("visibility-notify" "GDK_VISIBILITY_NOTIFY" "29")
164    '("no-expose" "GDK_NO_EXPOSE" "30")
165    '("scroll" "GDK_SCROLL" "31")
166    '("window-state" "GDK_WINDOW_STATE" "32")
167    '("setting" "GDK_SETTING" "33")
168    '("owner-change" "GDK_OWNER_CHANGE" "34")
169    '("grab-broken" "GDK_GRAB_BROKEN" "35")
170    '("damage" "GDK_DAMAGE" "36")
171    '("event-last" "GDK_EVENT_LAST" "37")
172  )
173)
174
175(define-flags-extended EventMask
176  (in-module "Gdk")
177  (c-name "GdkEventMask")
178  (values
179    '("exposure-mask" "GDK_EXPOSURE_MASK" "1 << 1")
180    '("pointer-motion-mask" "GDK_POINTER_MOTION_MASK" "1 << 2")
181    '("pointer-motion-hint-mask" "GDK_POINTER_MOTION_HINT_MASK" "1 << 3")
182    '("button-motion-mask" "GDK_BUTTON_MOTION_MASK" "1 << 4")
183    '("button1-motion-mask" "GDK_BUTTON1_MOTION_MASK" "1 << 5")
184    '("button2-motion-mask" "GDK_BUTTON2_MOTION_MASK" "1 << 6")
185    '("button3-motion-mask" "GDK_BUTTON3_MOTION_MASK" "1 << 7")
186    '("button-press-mask" "GDK_BUTTON_PRESS_MASK" "1 << 8")
187    '("button-release-mask" "GDK_BUTTON_RELEASE_MASK" "1 << 9")
188    '("key-press-mask" "GDK_KEY_PRESS_MASK" "1 << 10")
189    '("key-release-mask" "GDK_KEY_RELEASE_MASK" "1 << 11")
190    '("enter-notify-mask" "GDK_ENTER_NOTIFY_MASK" "1 << 12")
191    '("leave-notify-mask" "GDK_LEAVE_NOTIFY_MASK" "1 << 13")
192    '("focus-change-mask" "GDK_FOCUS_CHANGE_MASK" "1 << 14")
193    '("structure-mask" "GDK_STRUCTURE_MASK" "1 << 15")
194    '("property-change-mask" "GDK_PROPERTY_CHANGE_MASK" "1 << 16")
195    '("visibility-notify-mask" "GDK_VISIBILITY_NOTIFY_MASK" "1 << 17")
196    '("proximity-in-mask" "GDK_PROXIMITY_IN_MASK" "1 << 18")
197    '("proximity-out-mask" "GDK_PROXIMITY_OUT_MASK" "1 << 19")
198    '("substructure-mask" "GDK_SUBSTRUCTURE_MASK" "1 << 20")
199    '("scroll-mask" "GDK_SCROLL_MASK" "1 << 21")
200    '("all-events-mask" "GDK_ALL_EVENTS_MASK" "0x3FFFFE")
201  )
202)
203
204(define-enum-extended VisibilityState
205  (in-module "Gdk")
206  (c-name "GdkVisibilityState")
207  (values
208    '("unobscured" "GDK_VISIBILITY_UNOBSCURED" "0")
209    '("partial" "GDK_VISIBILITY_PARTIAL" "1")
210    '("fully-obscured" "GDK_VISIBILITY_FULLY_OBSCURED" "2")
211  )
212)
213
214(define-enum-extended ScrollDirection
215  (in-module "Gdk")
216  (c-name "GdkScrollDirection")
217  (values
218    '("up" "GDK_SCROLL_UP" "0")
219    '("down" "GDK_SCROLL_DOWN" "1")
220    '("left" "GDK_SCROLL_LEFT" "2")
221    '("right" "GDK_SCROLL_RIGHT" "3")
222  )
223)
224
225(define-enum-extended NotifyType
226  (in-module "Gdk")
227  (c-name "GdkNotifyType")
228  (values
229    '("ancestor" "GDK_NOTIFY_ANCESTOR" "0")
230    '("virtual" "GDK_NOTIFY_VIRTUAL" "1")
231    '("inferior" "GDK_NOTIFY_INFERIOR" "2")
232    '("nonlinear" "GDK_NOTIFY_NONLINEAR" "3")
233    '("nonlinear-virtual" "GDK_NOTIFY_NONLINEAR_VIRTUAL" "4")
234    '("unknown" "GDK_NOTIFY_UNKNOWN" "5")
235  )
236)
237
238(define-enum-extended CrossingMode
239  (in-module "Gdk")
240  (c-name "GdkCrossingMode")
241  (values
242    '("normal" "GDK_CROSSING_NORMAL" "0")
243    '("grab" "GDK_CROSSING_GRAB" "1")
244    '("ungrab" "GDK_CROSSING_UNGRAB" "2")
245    '("gtk-grab" "GDK_CROSSING_GTK_GRAB" "3")
246    '("gtk-ungrab" "GDK_CROSSING_GTK_UNGRAB" "4")
247    '("state-changed" "GDK_CROSSING_STATE_CHANGED" "5")
248  )
249)
250
251(define-enum-extended PropertyState
252  (in-module "Gdk")
253  (c-name "GdkPropertyState")
254  (values
255    '("new-value" "GDK_PROPERTY_NEW_VALUE" "0")
256    '("delete" "GDK_PROPERTY_DELETE" "1")
257  )
258)
259
260(define-flags-extended WindowState
261  (in-module "Gdk")
262  (c-name "GdkWindowState")
263  (values
264    '("withdrawn" "GDK_WINDOW_STATE_WITHDRAWN" "1 << 0")
265    '("iconified" "GDK_WINDOW_STATE_ICONIFIED" "1 << 1")
266    '("maximized" "GDK_WINDOW_STATE_MAXIMIZED" "1 << 2")
267    '("sticky" "GDK_WINDOW_STATE_STICKY" "1 << 3")
268    '("fullscreen" "GDK_WINDOW_STATE_FULLSCREEN" "1 << 4")
269    '("above" "GDK_WINDOW_STATE_ABOVE" "1 << 5")
270    '("below" "GDK_WINDOW_STATE_BELOW" "1 << 6")
271  )
272)
273
274(define-enum-extended SettingAction
275  (in-module "Gdk")
276  (c-name "GdkSettingAction")
277  (values
278    '("new" "GDK_SETTING_ACTION_NEW" "0")
279    '("changed" "GDK_SETTING_ACTION_CHANGED" "1")
280    '("deleted" "GDK_SETTING_ACTION_DELETED" "2")
281  )
282)
283
284(define-enum-extended OwnerChange
285  (in-module "Gdk")
286  (c-name "GdkOwnerChange")
287  (values
288    '("new-owner" "GDK_OWNER_CHANGE_NEW_OWNER" "0")
289    '("destroy" "GDK_OWNER_CHANGE_DESTROY" "1")
290    '("close" "GDK_OWNER_CHANGE_CLOSE" "2")
291  )
292)
293
294;; From gdkfont.h
295
296(define-enum-extended FontType
297  (in-module "Gdk")
298  (c-name "GdkFontType")
299  (values
300    '("font" "GDK_FONT_FONT" "0")
301    '("fontset" "GDK_FONT_FONTSET" "1")
302  )
303)
304
305;; From gdkgc.h
306
307(define-enum-extended CapStyle
308  (in-module "Gdk")
309  (c-name "GdkCapStyle")
310  (values
311    '("not-last" "GDK_CAP_NOT_LAST" "0")
312    '("butt" "GDK_CAP_BUTT" "1")
313    '("round" "GDK_CAP_ROUND" "2")
314    '("projecting" "GDK_CAP_PROJECTING" "3")
315  )
316)
317
318(define-enum-extended Fill
319  (in-module "Gdk")
320  (c-name "GdkFill")
321  (values
322    '("solid" "GDK_SOLID" "0")
323    '("tiled" "GDK_TILED" "1")
324    '("stippled" "GDK_STIPPLED" "2")
325    '("opaque-stippled" "GDK_OPAQUE_STIPPLED" "3")
326  )
327)
328
329(define-enum-extended Function
330  (in-module "Gdk")
331  (c-name "GdkFunction")
332  (values
333    '("copy" "GDK_COPY" "0")
334    '("invert" "GDK_INVERT" "1")
335    '("xor" "GDK_XOR" "2")
336    '("clear" "GDK_CLEAR" "3")
337    '("and" "GDK_AND" "4")
338    '("and-reverse" "GDK_AND_REVERSE" "5")
339    '("and-invert" "GDK_AND_INVERT" "6")
340    '("noop" "GDK_NOOP" "7")
341    '("or" "GDK_OR" "8")
342    '("equiv" "GDK_EQUIV" "9")
343    '("or-reverse" "GDK_OR_REVERSE" "10")
344    '("copy-invert" "GDK_COPY_INVERT" "11")
345    '("or-invert" "GDK_OR_INVERT" "12")
346    '("nand" "GDK_NAND" "13")
347    '("nor" "GDK_NOR" "14")
348    '("set" "GDK_SET" "15")
349  )
350)
351
352(define-enum-extended JoinStyle
353  (in-module "Gdk")
354  (c-name "GdkJoinStyle")
355  (values
356    '("miter" "GDK_JOIN_MITER" "0")
357    '("round" "GDK_JOIN_ROUND" "1")
358    '("bevel" "GDK_JOIN_BEVEL" "2")
359  )
360)
361
362(define-enum-extended LineStyle
363  (in-module "Gdk")
364  (c-name "GdkLineStyle")
365  (values
366    '("solid" "GDK_LINE_SOLID" "0")
367    '("on-off-dash" "GDK_LINE_ON_OFF_DASH" "1")
368    '("double-dash" "GDK_LINE_DOUBLE_DASH" "2")
369  )
370)
371
372(define-enum-extended SubwindowMode
373  (in-module "Gdk")
374  (c-name "GdkSubwindowMode")
375  (values
376    '("clip-by-children" "GDK_CLIP_BY_CHILDREN" "0")
377    '("include-inferiors" "GDK_INCLUDE_INFERIORS" "1")
378  )
379)
380
381(define-flags-extended GCValuesMask
382  (in-module "Gdk")
383  (c-name "GdkGCValuesMask")
384  (values
385    '("foreground" "GDK_GC_FOREGROUND" "1 << 0")
386    '("background" "GDK_GC_BACKGROUND" "1 << 1")
387    '("font" "GDK_GC_FONT" "1 << 2")
388    '("function" "GDK_GC_FUNCTION" "1 << 3")
389    '("fill" "GDK_GC_FILL" "1 << 4")
390    '("tile" "GDK_GC_TILE" "1 << 5")
391    '("stipple" "GDK_GC_STIPPLE" "1 << 6")
392    '("clip-mask" "GDK_GC_CLIP_MASK" "1 << 7")
393    '("subwindow" "GDK_GC_SUBWINDOW" "1 << 8")
394    '("ts-x-origin" "GDK_GC_TS_X_ORIGIN" "1 << 9")
395    '("ts-y-origin" "GDK_GC_TS_Y_ORIGIN" "1 << 10")
396    '("clip-x-origin" "GDK_GC_CLIP_X_ORIGIN" "1 << 11")
397    '("clip-y-origin" "GDK_GC_CLIP_Y_ORIGIN" "1 << 12")
398    '("exposures" "GDK_GC_EXPOSURES" "1 << 13")
399    '("line-width" "GDK_GC_LINE_WIDTH" "1 << 14")
400    '("line-style" "GDK_GC_LINE_STYLE" "1 << 15")
401    '("cap-style" "GDK_GC_CAP_STYLE" "1 << 16")
402    '("join-style" "GDK_GC_JOIN_STYLE" "1 << 17")
403  )
404)
405
406;; From gdkimage.h
407
408(define-enum-extended ImageType
409  (in-module "Gdk")
410  (c-name "GdkImageType")
411  (values
412    '("normal" "GDK_IMAGE_NORMAL" "0")
413    '("shared" "GDK_IMAGE_SHARED" "1")
414    '("fastest" "GDK_IMAGE_FASTEST" "2")
415  )
416)
417
418;; From gdkinput.h
419
420(define-enum-extended ExtensionMode
421  (in-module "Gdk")
422  (c-name "GdkExtensionMode")
423  (values
424    '("none" "GDK_EXTENSION_EVENTS_NONE" "0")
425    '("all" "GDK_EXTENSION_EVENTS_ALL" "1")
426    '("cursor" "GDK_EXTENSION_EVENTS_CURSOR" "2")
427  )
428)
429
430(define-enum-extended InputSource
431  (in-module "Gdk")
432  (c-name "GdkInputSource")
433  (values
434    '("mouse" "GDK_SOURCE_MOUSE" "0")
435    '("pen" "GDK_SOURCE_PEN" "1")
436    '("eraser" "GDK_SOURCE_ERASER" "2")
437    '("cursor" "GDK_SOURCE_CURSOR" "3")
438  )
439)
440
441(define-enum-extended InputMode
442  (in-module "Gdk")
443  (c-name "GdkInputMode")
444  (values
445    '("disabled" "GDK_MODE_DISABLED" "0")
446    '("screen" "GDK_MODE_SCREEN" "1")
447    '("window" "GDK_MODE_WINDOW" "2")
448  )
449)
450
451(define-enum-extended AxisUse
452  (in-module "Gdk")
453  (c-name "GdkAxisUse")
454  (values
455    '("ignore" "GDK_AXIS_IGNORE" "0")
456    '("x" "GDK_AXIS_X" "1")
457    '("y" "GDK_AXIS_Y" "2")
458    '("pressure" "GDK_AXIS_PRESSURE" "3")
459    '("xtilt" "GDK_AXIS_XTILT" "4")
460    '("ytilt" "GDK_AXIS_YTILT" "5")
461    '("wheel" "GDK_AXIS_WHEEL" "6")
462    '("last" "GDK_AXIS_LAST" "7")
463  )
464)
465
466;; From gdkinternals.h
467
468(define-flags-extended ColorInfoFlags
469  (in-module "Gdk")
470  (c-name "GdkColorInfoFlags")
471  (values
472    '("e" "GDK_COLOR_WRITEABLE" "1 << 0")
473  )
474)
475
476(define-flags-extended DebugFlag
477  (in-module "Gdk")
478  (c-name "GdkDebugFlag")
479  (values
480    '("misc" "GDK_DEBUG_MISC" "1 << 0")
481    '("events" "GDK_DEBUG_EVENTS" "1 << 1")
482    '("dnd" "GDK_DEBUG_DND" "1 << 2")
483    '("xim" "GDK_DEBUG_XIM" "1 << 3")
484    '("nograbs" "GDK_DEBUG_NOGRABS" "1 << 4")
485    '("colormap" "GDK_DEBUG_COLORMAP" "1 << 5")
486    '("gdkrgb" "GDK_DEBUG_GDKRGB" "1 << 6")
487    '("gc" "GDK_DEBUG_GC" "1 << 7")
488    '("pixmap" "GDK_DEBUG_PIXMAP" "1 << 8")
489    '("image" "GDK_DEBUG_IMAGE" "1 << 9")
490    '("input" "GDK_DEBUG_INPUT" "1 <<10")
491    '("cursor" "GDK_DEBUG_CURSOR" "1 <<11")
492    '("multihead" "GDK_DEBUG_MULTIHEAD" "1 <<12")
493    '("xinerama" "GDK_DEBUG_XINERAMA" "1 <<13")
494    '("draw" "GDK_DEBUG_DRAW" "1 <<14")
495    '("eventloop" "GDK_DEBUG_EVENTLOOP" "1 <<15")
496  )
497)
498
499(define-enum-extended ArgType
500  (in-module "Gdk")
501  (c-name "GdkArgType")
502  (values
503    '("string" "GDK_ARG_STRING" "0")
504    '("int" "GDK_ARG_INT" "1")
505    '("bool" "GDK_ARG_BOOL" "2")
506    '("nobool" "GDK_ARG_NOBOOL" "3")
507    '("callback" "GDK_ARG_CALLBACK" "4")
508  )
509)
510
511(define-flags-extended EventFlags
512  (in-module "Gdk")
513  (c-name "GdkEventFlags")
514  (values
515    '("g" "GDK_EVENT_PENDING" "1 << 0")
516  )
517)
518
519;; From gdkproperty.h
520
521(define-enum-extended PropMode
522  (in-module "Gdk")
523  (c-name "GdkPropMode")
524  (values
525    '("replace" "GDK_PROP_MODE_REPLACE" "0")
526    '("prepend" "GDK_PROP_MODE_PREPEND" "1")
527    '("append" "GDK_PROP_MODE_APPEND" "2")
528  )
529)
530
531;; From gdkregion.h
532
533(define-enum-extended FillRule
534  (in-module "Gdk")
535  (c-name "GdkFillRule")
536  (values
537    '("even-odd-rule" "GDK_EVEN_ODD_RULE" "0")
538    '("winding-rule" "GDK_WINDING_RULE" "1")
539  )
540)
541
542(define-enum-extended OverlapType
543  (in-module "Gdk")
544  (c-name "GdkOverlapType")
545  (values
546    '("in" "GDK_OVERLAP_RECTANGLE_IN" "0")
547    '("out" "GDK_OVERLAP_RECTANGLE_OUT" "1")
548    '("part" "GDK_OVERLAP_RECTANGLE_PART" "2")
549  )
550)
551
552;; From gdkrgb.h
553
554(define-enum-extended RgbDither
555  (in-module "Gdk")
556  (c-name "GdkRgbDither")
557  (values
558    '("none" "GDK_RGB_DITHER_NONE" "0")
559    '("normal" "GDK_RGB_DITHER_NORMAL" "1")
560    '("max" "GDK_RGB_DITHER_MAX" "2")
561  )
562)
563
564;; From gdktypes.h
565
566(define-enum-extended ByteOrder
567  (in-module "Gdk")
568  (c-name "GdkByteOrder")
569  (values
570    '("lsb-first" "GDK_LSB_FIRST" "0")
571    '("msb-first" "GDK_MSB_FIRST" "1")
572  )
573)
574
575(define-flags-extended ModifierType
576  (in-module "Gdk")
577  (c-name "GdkModifierType")
578  (values
579    '("shift-mask" "GDK_SHIFT_MASK" "1 << 0")
580    '("lock-mask" "GDK_LOCK_MASK" "1 << 1")
581    '("control-mask" "GDK_CONTROL_MASK" "1 << 2")
582    '("mod1-mask" "GDK_MOD1_MASK" "1 << 3")
583    '("mod2-mask" "GDK_MOD2_MASK" "1 << 4")
584    '("mod3-mask" "GDK_MOD3_MASK" "1 << 5")
585    '("mod4-mask" "GDK_MOD4_MASK" "1 << 6")
586    '("mod5-mask" "GDK_MOD5_MASK" "1 << 7")
587    '("button1-mask" "GDK_BUTTON1_MASK" "1 << 8")
588    '("button2-mask" "GDK_BUTTON2_MASK" "1 << 9")
589    '("button3-mask" "GDK_BUTTON3_MASK" "1 << 10")
590    '("button4-mask" "GDK_BUTTON4_MASK" "1 << 11")
591    '("button5-mask" "GDK_BUTTON5_MASK" "1 << 12")
592    '("super-mask" "GDK_SUPER_MASK" "1 << 26")
593    '("hyper-mask" "GDK_HYPER_MASK" "1 << 27")
594    '("meta-mask" "GDK_META_MASK" "1 << 28")
595    '("release-mask" "GDK_RELEASE_MASK" "1 << 30")
596    '("modifier-mask" "GDK_MODIFIER_MASK" "0x5c001fff")
597  )
598)
599
600(define-flags-extended InputCondition
601  (in-module "Gdk")
602  (c-name "GdkInputCondition")
603  (values
604    '("read" "GDK_INPUT_READ" "1 << 0")
605    '("write" "GDK_INPUT_WRITE" "1 << 1")
606    '("exception" "GDK_INPUT_EXCEPTION" "1 << 2")
607  )
608)
609
610(define-enum-extended Status
611  (in-module "Gdk")
612  (c-name "GdkStatus")
613  (values
614    '("ok" "GDK_OK" "0")
615    '("error" "GDK_ERROR" "-1")
616    '("error-param" "GDK_ERROR_PARAM" "-2")
617    '("error-file" "GDK_ERROR_FILE" "-3")
618    '("error-mem" "GDK_ERROR_MEM" "-4")
619  )
620)
621
622(define-enum-extended GrabStatus
623  (in-module "Gdk")
624  (c-name "GdkGrabStatus")
625  (values
626    '("success" "GDK_GRAB_SUCCESS" "0")
627    '("already-grabbed" "GDK_GRAB_ALREADY_GRABBED" "1")
628    '("invalid-time" "GDK_GRAB_INVALID_TIME" "2")
629    '("not-viewable" "GDK_GRAB_NOT_VIEWABLE" "3")
630    '("frozen" "GDK_GRAB_FROZEN" "4")
631  )
632)
633
634;; From gdkvisual.h
635
636(define-enum-extended VisualType
637  (in-module "Gdk")
638  (c-name "GdkVisualType")
639  (values
640    '("static-gray" "GDK_VISUAL_STATIC_GRAY" "0")
641    '("grayscale" "GDK_VISUAL_GRAYSCALE" "1")
642    '("static-color" "GDK_VISUAL_STATIC_COLOR" "2")
643    '("pseudo-color" "GDK_VISUAL_PSEUDO_COLOR" "3")
644    '("true-color" "GDK_VISUAL_TRUE_COLOR" "4")
645    '("direct-color" "GDK_VISUAL_DIRECT_COLOR" "5")
646  )
647)
648
649;; From gdkwindow.h
650
651(define-enum-extended WindowClass
652  (in-module "Gdk")
653  (c-name "GdkWindowClass")
654  (values
655    '("output" "GDK_INPUT_OUTPUT" "0")
656    '("only" "GDK_INPUT_ONLY" "1")
657  )
658)
659
660(define-enum-extended WindowType
661  (in-module "Gdk")
662  (c-name "GdkWindowType")
663  (values
664    '("root" "GDK_WINDOW_ROOT" "0")
665    '("toplevel" "GDK_WINDOW_TOPLEVEL" "1")
666    '("child" "GDK_WINDOW_CHILD" "2")
667    '("dialog" "GDK_WINDOW_DIALOG" "3")
668    '("temp" "GDK_WINDOW_TEMP" "4")
669    '("foreign" "GDK_WINDOW_FOREIGN" "5")
670    '("offscreen" "GDK_WINDOW_OFFSCREEN" "6")
671  )
672)
673
674(define-flags-extended WindowAttributesType
675  (in-module "Gdk")
676  (c-name "GdkWindowAttributesType")
677  (values
678    '("title" "GDK_WA_TITLE" "1 << 1")
679    '("x" "GDK_WA_X" "1 << 2")
680    '("y" "GDK_WA_Y" "1 << 3")
681    '("cursor" "GDK_WA_CURSOR" "1 << 4")
682    '("colormap" "GDK_WA_COLORMAP" "1 << 5")
683    '("visual" "GDK_WA_VISUAL" "1 << 6")
684    '("wmclass" "GDK_WA_WMCLASS" "1 << 7")
685    '("noredir" "GDK_WA_NOREDIR" "1 << 8")
686    '("type-hint" "GDK_WA_TYPE_HINT" "1 << 9")
687  )
688)
689
690(define-flags-extended WindowHints
691  (in-module "Gdk")
692  (c-name "GdkWindowHints")
693  (values
694    '("pos" "GDK_HINT_POS" "1 << 0")
695    '("min-size" "GDK_HINT_MIN_SIZE" "1 << 1")
696    '("max-size" "GDK_HINT_MAX_SIZE" "1 << 2")
697    '("base-size" "GDK_HINT_BASE_SIZE" "1 << 3")
698    '("aspect" "GDK_HINT_ASPECT" "1 << 4")
699    '("resize-inc" "GDK_HINT_RESIZE_INC" "1 << 5")
700    '("win-gravity" "GDK_HINT_WIN_GRAVITY" "1 << 6")
701    '("user-pos" "GDK_HINT_USER_POS" "1 << 7")
702    '("user-size" "GDK_HINT_USER_SIZE" "1 << 8")
703  )
704)
705
706(define-enum-extended WindowTypeHint
707  (in-module "Gdk")
708  (c-name "GdkWindowTypeHint")
709  (values
710    '("normal" "GDK_WINDOW_TYPE_HINT_NORMAL" "0")
711    '("dialog" "GDK_WINDOW_TYPE_HINT_DIALOG" "1")
712    '("menu" "GDK_WINDOW_TYPE_HINT_MENU" "2")
713    '("toolbar" "GDK_WINDOW_TYPE_HINT_TOOLBAR" "3")
714    '("splashscreen" "GDK_WINDOW_TYPE_HINT_SPLASHSCREEN" "4")
715    '("utility" "GDK_WINDOW_TYPE_HINT_UTILITY" "5")
716    '("dock" "GDK_WINDOW_TYPE_HINT_DOCK" "6")
717    '("desktop" "GDK_WINDOW_TYPE_HINT_DESKTOP" "7")
718    '("dropdown-menu" "GDK_WINDOW_TYPE_HINT_DROPDOWN_MENU" "8")
719    '("popup-menu" "GDK_WINDOW_TYPE_HINT_POPUP_MENU" "9")
720    '("tooltip" "GDK_WINDOW_TYPE_HINT_TOOLTIP" "10")
721    '("notification" "GDK_WINDOW_TYPE_HINT_NOTIFICATION" "11")
722    '("combo" "GDK_WINDOW_TYPE_HINT_COMBO" "12")
723    '("dnd" "GDK_WINDOW_TYPE_HINT_DND" "13")
724  )
725)
726
727(define-flags-extended WMDecoration
728  (in-module "Gdk")
729  (c-name "GdkWMDecoration")
730  (values
731    '("all" "GDK_DECOR_ALL" "1 << 0")
732    '("border" "GDK_DECOR_BORDER" "1 << 1")
733    '("resizeh" "GDK_DECOR_RESIZEH" "1 << 2")
734    '("title" "GDK_DECOR_TITLE" "1 << 3")
735    '("menu" "GDK_DECOR_MENU" "1 << 4")
736    '("minimize" "GDK_DECOR_MINIMIZE" "1 << 5")
737    '("maximize" "GDK_DECOR_MAXIMIZE" "1 << 6")
738  )
739)
740
741(define-flags-extended WMFunction
742  (in-module "Gdk")
743  (c-name "GdkWMFunction")
744  (values
745    '("all" "GDK_FUNC_ALL" "1 << 0")
746    '("resize" "GDK_FUNC_RESIZE" "1 << 1")
747    '("move" "GDK_FUNC_MOVE" "1 << 2")
748    '("minimize" "GDK_FUNC_MINIMIZE" "1 << 3")
749    '("maximize" "GDK_FUNC_MAXIMIZE" "1 << 4")
750    '("close" "GDK_FUNC_CLOSE" "1 << 5")
751  )
752)
753
754(define-enum-extended Gravity
755  (in-module "Gdk")
756  (c-name "GdkGravity")
757  (values
758    '("north-west" "GDK_GRAVITY_NORTH_WEST" "1")
759    '("north" "GDK_GRAVITY_NORTH" "2")
760    '("north-east" "GDK_GRAVITY_NORTH_EAST" "3")
761    '("west" "GDK_GRAVITY_WEST" "4")
762    '("center" "GDK_GRAVITY_CENTER" "5")
763    '("east" "GDK_GRAVITY_EAST" "6")
764    '("south-west" "GDK_GRAVITY_SOUTH_WEST" "7")
765    '("south" "GDK_GRAVITY_SOUTH" "8")
766    '("south-east" "GDK_GRAVITY_SOUTH_EAST" "9")
767    '("static" "GDK_GRAVITY_STATIC" "10")
768  )
769)
770
771(define-enum-extended WindowEdge
772  (in-module "Gdk")
773  (c-name "GdkWindowEdge")
774  (values
775    '("north-west" "GDK_WINDOW_EDGE_NORTH_WEST" "0")
776    '("north" "GDK_WINDOW_EDGE_NORTH" "1")
777    '("north-east" "GDK_WINDOW_EDGE_NORTH_EAST" "2")
778    '("west" "GDK_WINDOW_EDGE_WEST" "3")
779    '("east" "GDK_WINDOW_EDGE_EAST" "4")
780    '("south-west" "GDK_WINDOW_EDGE_SOUTH_WEST" "5")
781    '("south" "GDK_WINDOW_EDGE_SOUTH" "6")
782    '("south-east" "GDK_WINDOW_EDGE_SOUTH_EAST" "7")
783  )
784)
785
786