source: trunk/third/rep-gtk/gdk.defs @ 18404

Revision 18404, 12.2 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18403, which included commits to RCS files with non-trunk default branches.
Line 
1;; -*- scheme -*-
2
3(import "glib.defs")
4
5;;; Gdk enums
6
7(define-enum GdkWindowType
8  (root GDK_WINDOW_ROOT)
9  (toplevel GDK_WINDOW_TOPLEVEL)
10  (child GDK_WINDOW_CHILD)
11  (dialog GDK_WINDOW_DIALOG)
12  (temp GDK_WINDOW_TEMP)
13  (pixmap GDK_WINDOW_FOREIGN))
14
15(define-enum GdkWindowClass
16  (input-output GDK_INPUT_OUTPUT)
17  (input-only GDK_INPUT_ONLY))
18
19(define-enum GdkImageType
20  (normal GDK_IMAGE_NORMAL)
21  (shared GDK_IMAGE_SHARED)
22  (fastest GDK_IMAGE_FASTEST))
23
24(define-enum GdkVisualType
25  (static-gray GDK_VISUAL_STATIC_GRAY)
26  (grayscale GDK_VISUAL_GRAYSCALE)
27  (static-color GDK_VISUAL_STATIC_COLOR)
28  (pseudo-color GDK_VISUAL_PSEUDO_COLOR)
29  (true-color GDK_VISUAL_TRUE_COLOR)
30  (direct-color GDK_VISUAL_DIRECT_COLOR))
31
32(define-flags GdkWindowAttributesType
33  (title GDK_WA_TITLE)
34  (x GDK_WA_X)
35  (y GDK_WA_Y)
36  (cursor GDK_WA_CURSOR)
37  (colormap GDK_WA_COLORMAP)
38  (visual GDK_WA_VISUAL))
39
40(define-flags GdkWindowHints
41  (pos GDK_HINT_POS)
42  (min-size GDK_HINT_MIN_SIZE)
43  (max-size GDK_HINT_MAX_SIZE))
44
45(define-enum GdkFunction
46  (copy GDK_COPY)
47  (invert GDK_INVERT)
48  (xor GDK_XOR))
49
50(define-enum GdkFill
51  (solid GDK_SOLID)
52  (tiled GDK_TILED)
53  (stippled GDK_STIPPLED)
54  (opaque-stippled GDK_OPAQUE_STIPPLED))
55
56(define-enum GdkLineStyle
57  (solid GDK_LINE_SOLID)
58  (on-off-dash GDK_LINE_ON_OFF_DASH)
59  (double-dash GDK_LINE_DOUBLE_DASH))
60
61(define-enum GdkCapStyle
62  (not-last GDK_CAP_NOT_LAST)
63  (butt GDK_CAP_BUTT)
64  (round GDK_CAP_ROUND)
65  (projecting GDK_CAP_PROJECTING))
66
67(define-enum GdkJoinStyle
68  (miter GDK_JOIN_MITER)
69  (round GDK_JOIN_ROUND)
70  (bevel GDK_JOIN_BEVEL))
71
72(define-enum GdkCursorType
73  (cursor GDK_LAST_CURSOR))
74
75(define-enum GdkEventType
76  (nothing GDK_NOTHING)
77  (delete GDK_DELETE)
78  (destroy GDK_DESTROY)
79  (expose GDK_EXPOSE)
80  (motion-notify GDK_MOTION_NOTIFY)
81  (button-press GDK_BUTTON_PRESS)
82  (2button-press GDK_2BUTTON_PRESS)
83  (3button-press GDK_3BUTTON_PRESS)
84  (button-release GDK_BUTTON_RELEASE)
85  (key-press GDK_KEY_PRESS)
86  (key-release GDK_KEY_RELEASE)
87  (enter-notify GDK_ENTER_NOTIFY)
88  (leave-notify GDK_LEAVE_NOTIFY)
89  (focus-change GDK_FOCUS_CHANGE)
90  (configure GDK_CONFIGURE)
91  (map GDK_MAP)
92  (unmap GDK_UNMAP)
93  (property-notify GDK_PROPERTY_NOTIFY)
94  (selection-clear GDK_SELECTION_CLEAR)
95  (selection-request GDK_SELECTION_REQUEST)
96  (selection-notify GDK_SELECTION_NOTIFY)
97  (proximity-in GDK_PROXIMITY_IN)
98  (proximity-out GDK_PROXIMITY_OUT)
99  (drag-enter GDK_DRAG_ENTER)
100  (drag-leave GDK_DRAG_LEAVE)
101  (drag-motion GDK_DRAG_MOTION)
102  (drag-status GDK_DRAG_STATUS)
103  (drop-start GDK_DROP_START)
104  (drop-finished GDK_DROP_FINISHED)
105  (client-event GDK_CLIENT_EVENT)
106  (visibility-notify GDK_VISIBILITY_NOTIFY)
107  (no-expose GDK_NO_EXPOSE))
108
109(define-flags GdkEventMask
110  (exposure-mask GDK_EXPOSURE_MASK)
111  (pointer-motion-mask GDK_POINTER_MOTION_MASK)
112  (pointer-motion-hint-mask GDK_POINTER_MOTION_HINT_MASK)
113  (button-motion-mask GDK_BUTTON_MOTION_MASK)
114  (button1-motion-mask GDK_BUTTON1_MOTION_MASK)
115  (button2-motion-mask GDK_BUTTON2_MOTION_MASK)
116  (button3-motion-mask GDK_BUTTON3_MOTION_MASK)
117  (button-press-mask GDK_BUTTON_PRESS_MASK)
118  (button-release-mask GDK_BUTTON_RELEASE_MASK)
119  (key-press-mask GDK_KEY_PRESS_MASK)
120  (key-release-mask GDK_KEY_RELEASE_MASK)
121  (enter-notify-mask GDK_ENTER_NOTIFY_MASK)
122  (leave-notify-mask GDK_LEAVE_NOTIFY_MASK)
123  (focus-change-mask GDK_FOCUS_CHANGE_MASK)
124  (structure-mask GDK_STRUCTURE_MASK)
125  (all-events-mask GDK_ALL_EVENTS_MASK))
126
127(define-enum GdkNotifyType
128  (ancestor GDK_NOTIFY_ANCESTOR)
129  (virtual GDK_NOTIFY_VIRTUAL)
130  (inferior GDK_NOTIFY_INFERIOR)
131  (nonlinear GDK_NOTIFY_NONLINEAR)
132  (nonlinear-virtual GDK_NOTIFY_NONLINEAR_VIRTUAL)
133  (unknown GDK_NOTIFY_UNKNOWN))
134
135(define-flags GdkModifierType
136  (shift-mask GDK_SHIFT_MASK)
137  (lock-mask GDK_LOCK_MASK)
138  (control-mask GDK_CONTROL_MASK)
139  (mod1-mask GDK_MOD1_MASK)
140  (mod2-mask GDK_MOD2_MASK)
141  (mod3-mask GDK_MOD3_MASK)
142  (mod4-mask GDK_MOD4_MASK)
143  (mod5-mask GDK_MOD5_MASK)
144  (button1-mask GDK_BUTTON1_MASK)
145  (button2-mask GDK_BUTTON2_MASK)
146  (button3-mask GDK_BUTTON3_MASK)
147  (button4-mask GDK_BUTTON4_MASK)
148  (button5-mask GDK_BUTTON5_MASK))
149
150(define-enum GdkSubwindowMode
151  (clip-by-children GDK_CLIP_BY_CHILDREN)
152  (include-inferiors GDK_INCLUDE_INFERIORS))
153
154(define-flags GdkInputCondition
155  (read GDK_INPUT_READ)
156  (write GDK_INPUT_WRITE)
157  (exception GDK_INPUT_EXCEPTION))
158
159(define-enum GdkStatus
160  (ok GDK_OK)
161  (error GDK_ERROR)
162  (error-param GDK_ERROR_PARAM)
163  (error-file GDK_ERROR_FILE)
164  (error-mem GDK_ERROR_MEM))
165
166(define-enum GdkByteOrder
167  (lsb-first GDK_LSB_FIRST)
168  (msb-first GDK_MSB_FIRST))
169
170(define-flags GdkGCValuesMask
171  (foreground GDK_GC_FOREGROUND)
172  (background GDK_GC_BACKGROUND)
173  (font GDK_GC_FONT)
174  (function GDK_GC_FUNCTION)
175  (fill GDK_GC_FILL)
176  (tile GDK_GC_TILE)
177  (stipple GDK_GC_STIPPLE)
178  (clip-mask GDK_GC_CLIP_MASK)
179  (subwindow GDK_GC_SUBWINDOW)
180  (ts-x-origin GDK_GC_TS_X_ORIGIN)
181  (ts-y-origin GDK_GC_TS_Y_ORIGIN)
182  (clip-x-origin GDK_GC_CLIP_X_ORIGIN)
183  (clip-y-origin GDK_GC_CLIP_Y_ORIGIN)
184  (exposures GDK_GC_EXPOSURES)
185  (line-width GDK_GC_LINE_WIDTH)
186  (line-style GDK_GC_LINE_STYLE)
187  (cap-style GDK_GC_CAP_STYLE)
188  (join-style GDK_GC_JOIN_STYLE))
189
190(define-enum GdkSelection
191  ;; FIXME: these are atoms (pointers) not integers
192  (primary "(int) GDK_SELECTION_PRIMARY")
193  (secondary "(int) GDK_SELECTION_SECONDARY"))
194
195(define-enum GdkPropertyState
196  (new-value GDK_PROPERTY_NEW_VALUE)
197  (delete GDK_PROPERTY_DELETE))
198
199(define-enum GdkPropMode
200  (replace GDK_PROP_MODE_REPLACE)
201  (prepend GDK_PROP_MODE_PREPEND)
202  (append GDK_PROP_MODE_APPEND))
203
204(define-enum GdkOverlapType
205  (in GDK_OVERLAP_RECTANGLE_IN)
206  (out GDK_OVERLAP_RECTANGLE_OUT)
207  (part GDK_OVERLAP_RECTANGLE_PART))
208
209(define-flags GdkWMDecoration
210  (all GDK_DECOR_ALL)
211  (border GDK_DECOR_BORDER)
212  (resizeh GDK_DECOR_RESIZEH)
213  (title GDK_DECOR_TITLE)
214  (menu GDK_DECOR_MENU)
215  (minimize GDK_DECOR_MINIMIZE)
216  (maximize GDK_DECOR_MAXIMIZE))
217
218(define-flags GdkWMFunction
219  (all GDK_FUNC_ALL)
220  (resize GDK_FUNC_RESIZE)
221  (move GDK_FUNC_MOVE)
222  (minimize GDK_FUNC_MINIMIZE)
223  (maximize GDK_FUNC_MAXIMIZE)
224  (close GDK_FUNC_CLOSE))
225
226(define-enum GdkVisibilityState
227  (unobscured GDK_VISIBILITY_UNOBSCURED)
228  (partial GDK_VISIBILITY_PARTIAL)
229  (fully-obscured GDK_VISIBILITY_FULLY_OBSCURED))
230
231(define-enum GdkInputSource
232  (mouse GDK_SOURCE_MOUSE)
233  (pen GDK_SOURCE_PEN)
234  (eraser GDK_SOURCE_ERASER)
235  (cursor GDK_SOURCE_CURSOR))
236
237;;; Gdk boxed types
238
239;;(define-boxed GdkPoint
240;;  (copy gdk_point_copy)
241;;  (free gdk_point_destroy))
242
243(define-boxed GdkColormap
244  (copy gdk_colormap_ref)
245  (free gdk_colormap_unref))
246
247;;; XXX FIXME
248(define-boxed GdkVisual
249  (copy g_object_ref)
250  (free g_object_unref))
251
252(define-boxed GdkFont
253  (copy gdk_font_ref)
254  (free gdk_font_unref)
255  (conversion "sgtk_font_conversion"))
256
257(add-options GdkFont (conversion "sgtk_font_conversion"))
258
259(define-boxed GdkWindow
260  (copy gdk_window_ref)
261  (free gdk_window_unref))
262
263(define-boxed GdkEvent
264  (copy gdk_event_copy)
265  (free gdk_event_free)
266  (size "sizeof(GdkEvent)"))
267
268(define-boxed GdkColor
269  (copy gdk_color_copy)
270  (free gdk_color_free)
271  (size "sizeof(GdkColor)")
272  (fields (uint red)
273          (uint green)
274          (uint blue))
275  (conversion "sgtk_color_conversion"))
276
277(add-options GdkColor (conversion "sgtk_color_conversion"))
278
279;;; GdkGC
280
281(define-boxed GdkGC
282  (copy gdk_gc_ref)
283  (free gdk_gc_unref))
284
285(define-func gdk_gc_new
286  (GdkGC (copy nil))
287  ((GdkWindow window)))
288
289(define-func gdk_gc_set_foreground
290  none
291  ((GdkGC gc)
292   (GdkColor color)))
293
294(define-func gdk_gc_set_background
295  none
296  ((GdkGC gc)
297   (GdkColor color)))
298
299(define-func gdk_gc_set_font
300  none
301  ((GdkGC gc)
302   (GdkFont font)))
303
304(define-func gdk_gc_set_function
305  none
306  ((GdkGC gc)
307   (GdkFunction function)))
308
309(define-func gdk_gc_set_fill
310  none
311  ((GdkGC gc)
312   (GdkFill fill)))
313
314;(define-func gdk_gc_set_tile
315;  none
316;  ((GdkGC gc)
317;   (GdkPixmap tile)))
318
319;(define-func gdk_gc_set_stipple
320;  none
321;  ((GdkGC gc)
322;   (GdkPixmap stipple)))
323
324(define-func gdk_gc_set_ts_origin
325  none
326  ((GdkGC gc)
327   (int x)
328   (int y)))
329
330(define-func gdk_gc_set_clip_origin
331  none
332  ((GdkGC gc)
333   (int x)
334   (int y)))
335
336;(define-func gdk_gc_set_clip_mask
337;  none
338;  ((GdkGC gc)
339;   (GdkBitmap mask)))
340
341(define-func gdk_gc_set_subwindow
342  none
343  ((GdkGC gc)
344   (GdkSubwindowMode mode)))
345
346(define-func gdk_gc_set_exposures
347  none
348  ((GdkGC gc)
349   (bool exposures)))
350
351(define-func gdk_gc_set_line_attributes
352  none
353  ((GdkGC gc)
354   (int line_width)
355   (GdkLineStyle line_style)
356   (GdkCapStyle cap_style)
357   (GdkJoinStyle join_style)))
358
359(define-func gdk_draw_line
360  none
361  ((GdkWindow window)
362   (GdkGC gc)
363   (int x1)
364   (int y1)
365   (int x2)
366   (int y2)))
367
368(define-func gdk_draw_lines
369  none
370  ((GdkWindow window)
371   (GdkGC gc)
372   ((cvecr point) points)))
373
374(define-func gdk_draw_rectangle
375  none
376  ((GdkWindow window)
377   (GdkGC gc)
378   (bool filled)
379   (int x)
380   (int y)
381   (int width)
382   (int height)))
383
384(define-func gdk_draw_polygon
385  none
386  ((GdkWindow window)
387   (GdkGC gc)
388   (bool filled)
389   ((cvecr point) points)))
390
391(define-func gdk_draw_arc
392  none
393  ((GdkWindow window)
394   (GdkGC gc)
395   (bool filled)
396   (int x)
397   (int y)
398   (int width)
399   (int height)
400   (int angle1)
401   (int angle2)))
402
403(define-func gdk_draw_string
404  none
405  ((GdkWindow window)
406   (GdkFont font)
407   (GdkGC gc)
408   (int x)
409   (int y)
410   (string string)))
411
412(define-func gdk_window_clear_area
413  none
414  ((GdkWindow window)
415   (int x)
416   (int y)
417   (int width)
418   (int height)))
419
420(define-func gdk_window_clear_area_e
421  none
422  ((GdkWindow window)
423   (int x)
424   (int y)
425   (int width)
426   (int height)))
427
428(define-func gdk_window_xid
429  uint
430  ((GdkWindow window)))
431
432(define-func gdk_pixmap_new
433  GdkWindow
434  ((GdkWindow window (null-ok))
435   (int width)
436   (int height)
437   (int depth (= "-1"))))
438
439(define-func gdk_draw_pixmap
440  none
441  ((GdkWindow drawable)
442   (GdkGC gc)
443   (GdkWindow src)
444   (int xsrc)
445   (int ysrc)
446   (int xdest)
447   (int ydest)
448   (int width)
449   (int height)))
450
451(define-func gdk_set_locale
452  static_string
453  ())
454
455;; Gdk functions
456
457(define-func gdk_font_load
458  (GdkFont (copy nil))
459  ((string name)))
460
461(define-func gdk_fontset_load
462  (GdkFont (copy nil))
463  ((string name)))
464
465(define-func gdk_flush
466  none
467  ())
468
469(define-func gdk_screen_width
470  int
471  ())
472
473(define-func gdk_screen_height
474  int
475  ())
476
477;; Color
478
479;; XXX lots missing
480
481(define-func gdk_color_parse_interp
482  GdkColor
483  ((string spec)))
484
485(define-func gdk_color_intern
486  GdkColor
487  ((GdkColor color)))
488
489(define-func gdk_font_intern
490  GdkFont
491  ((GdkFont font)))
492
493(define-func gdk_event_type
494  GdkEventType
495  ((GdkEvent event)))
496
497(define-func gdk_event_window
498  GdkWindow
499  ((GdkEvent event)))
500
501(define-func gdk_event_send_event
502  bool
503  ((GdkEvent event)))
504
505;(define-func gdk_event_area
506;  GdkRectangle
507;  ((GdkEvent event)))
508
509(define-func gdk_event_visibility_state
510  GdkVisibilityState
511  ((GdkEvent event)))
512
513(define-func gdk_event_time
514  uint
515  ((GdkEvent event)))
516
517(define-func gdk_event_x
518  float
519  ((GdkEvent event)))
520
521(define-func gdk_event_y
522  float
523  ((GdkEvent event)))
524
525(define-func gdk_event_pressure
526  float
527  ((GdkEvent event)))
528
529(define-func gdk_event_xtilt
530  float
531  ((GdkEvent event)))
532
533(define-func gdk_event_ytilt
534  float
535  ((GdkEvent event)))
536
537(define-func gdk_event_button
538  int
539  ((GdkEvent event)))
540
541(define-func gdk_event_button_state
542  bool
543  ((GdkEvent event)))
544
545(define-func gdk_event_is_hint
546  bool
547  ((GdkEvent event)))
548
549(define-func gdk_event_source
550  GdkInputSource
551  ((GdkEvent event)))
552
553(define-func gdk_event_deviceid
554  uint
555  ((GdkEvent event)))
556
557(define-func gdk_event_x_root
558  float
559  ((GdkEvent event)))
560
561(define-func gdk_event_y_root
562  float
563  ((GdkEvent event)))
564
565(define-func gdk_event_key_state
566  bool
567  ((GdkEvent event)))
568
569(define-func gdk_event_keyval
570  uint
571  ((GdkEvent event)))
572
573(define-func gdk_event_string
574  string
575  ((GdkEvent event)))
576
577(define-func gdk_event_subwindow
578  GdkWindow
579  ((GdkEvent event)))
580
581(define-func gdk_event_notify_detail
582  GdkNotifyType
583  ((GdkEvent event)))
584
585(define-func gdk_event_in
586  bool
587  ((GdkEvent event)))
588
589(define-func gdk_event_configure_x
590  int
591  ((GdkEvent event)))
592
593(define-func gdk_event_configure_y
594  int
595  ((GdkEvent event)))
596
597(define-func gdk_event_configure_width
598  int
599  ((GdkEvent event)))
600
601(define-func gdk_event_configure_height
602  int
603  ((GdkEvent event)))
604
605(define-func gdk_get_leader_window_id
606  uint
607  ())
608
609;; Options
610
611(options
612 (includes "#include <gdk/gdk.h>")
613 (init-func "sgtk_init_gtk_gdk_glue")
614 (other-inits "sgtk_init_gtk_glib_glue"))
Note: See TracBrowser for help on using the repository browser.