-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgtk.defs
4987 lines (3878 loc) · 94 KB
/
gtk.defs
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
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
;; -*- lisp -*-
;; updated for GTK+ 2.24:
;; GtkComboBox, GtkComboBoxText, GtkButton, GtkToggleButton, GtkCheckButton,
;; GtkRadioButton, GtkColorButton, GtkFontButton, GtkFileChooserButton,
;; GtkLinkButton, GtkFontButton, GtkSpinButton, GtkVolumeButton,
;; GtkAboutDialog, GtkAccelGroup, GtkAccelLabel, GtkAccelMap, GtkExpander
;; updated for GTK+ 2.12:
;; GtkButton, GtkToggleButton, GtkCheckButton, GtkRadioButton, GtkFontButton,
;; GtkLinkButton, GtkColorButton, GtkVolumeButton, GtkStatusIcon,
;; GtkBuilder, GtkUIManager, GtkActionGroup, GtkAction, GtkComboBox,
;; GtkComboBoxEntry, GtkExpander, GtkFileChooserButton, GtkSpinButton,
;; GtkScaleButton, GtkTreeViewColumn, GtkCellRenderer, GtkFileChooser,
;; GtkCellRendererText, GtkCellRendererAccel, GtkCellRendererSpin,
;; GtkCellRendererProgress, GtkCellRendererPixbuf, GtkCellRendererToggle,
;; GtkCellRendererCombo, GtkCellEditable, GtkFileFilter, GtkFileChooserWidget,
;; GtkTreePath, GtkTreeSelection, GtkTreeIter, GtkTreeRowReference, GtkTreeModel,
;; GtkAboutDialog, GtkAccelGroup, GtkAccelLabel, GtkListStore, GtkTreeView
;; GtkWindow
;; updated for GTK+ 1.3/2.0:
;; GtkButton, GtkWidget, GtkContainer, GtkFixed, GtkWindow, GtkHandleBox,
;; GtkBox, GtkButtonBox, Gtk[HV]ButtonBox, GtkToolbar, GtkTable,
;; GtkToggleButton, GtkCheckButton, GtkRadioButton, GtkMisc, GtkArrow,
;; GtkLabel, GtkLayout, GtkTipsQuery, GtkVBox, GtkHBox, GtkItem, GtkCombo,
;; GtkStatusBar, GtkGammaCurve, Gtk[HV]Separator, GtkFrame, GtkAspectFrame,
;; GtkProgress, GtkProgressBar, GtkTooltips, GtkMenuShell, GtkMenuBar,
;; GtkMenu, GtkMenuItem, GtkCheckMenuItem, GtkRadioMenuItem, GtkOptionMenu,
;; GtkPixmap, GtkViewport, GtkScrolledWindow, GtkListItem, GtkList,
;; GtkNotebook, GtkEditable, GtkEntry, GtkSpinButton, GtkDrawingArea,
;; GtkCurve, GtkPreview, GtkFileSelection, GtkFontSelectionDialog,
;; GtkColorSelectionDialog, GtkColorSelection, GtkRange, GtkScale,
;; Gtk[HV]Scale, GtkScrollbar, Gtk[HV]Scrollbar, GtkRuler, Gtk[HV]Ruler,
;; GtkDialog, GtkInputDialog, GtkPaned, Gtk[HV]Paned, GtkPlug, GtkSocket,
;; GtkTearOffMenuItem, GtkCalendar, GtkIconFactory, GtkImage,
;; GtkImageMenuItem, GtkInvisible, GtkSeparatorMenuItem
;; Todo: TreeView/TreeModel et al; delete Tree and CList
;;; GTK+ enums
(import "glib.defs")
(import "gdk.defs")
(import "gdk-pixbuf.defs")
(define-enum GtkAnchorType
(center GTK_ANCHOR_CENTER)
(north GTK_ANCHOR_NORTH)
(south GTK_ANCHOR_SOUTH)
(east GTK_ANCHOR_EAST)
(west GTK_ANCHOR_WEST)
(north-west GTK_ANCHOR_NORTH_WEST)
(north-east GTK_ANCHOR_NORTH_EAST)
(south-west GTK_ANCHOR_SOUTH_WEST)
(south-east GTK_ANCHOR_SOUTH_EAST))
(define-enum GtkArrowType
(up GTK_ARROW_UP)
(down GTK_ARROW_DOWN)
(left GTK_ARROW_LEFT)
(right GTK_ARROW_RIGHT)
(none GTK_ARROW_NONE))
(define-flags GtkAttachOptions
(expand GTK_EXPAND)
(shrink GTK_SHRINK)
(fill GTK_FILL))
(define-enum GtkButtonBoxStyle
(default-style GTK_BUTTONBOX_DEFAULT_STYLE)
(spread GTK_BUTTONBOX_SPREAD)
(edge GTK_BUTTONBOX_EDGE)
(start GTK_BUTTONBOX_START)
(end GTK_BUTTONBOX_END)
(center GTK_BUTTONBOX_CENTER))
(define-enum GtkCurveType
(linear GTK_CURVE_TYPE_LINEAR)
(spline GTK_CURVE_TYPE_SPLINE)
(free GTK_CURVE_TYPE_FREE))
(define-enum GtkDeleteType
(chars GTK_DELETE_CHARS)
(word-ends GTK_DELETE_WORD_ENDS)
(words GTK_DELETE_WORDS)
(display-lines GTK_DELETE_DISPLAY_LINES)
(display-line-ends GTK_DELETE_DISPLAY_LINE_ENDS)
(paragraph-ends GTK_DELETE_PARAGRAPH_ENDS)
(paragraphs GTK_DELETE_PARAGRAPHS)
(whitespace GTK_DELETE_WHITESPACE))
(define-enum GtkDirectionType
(tab-forward GTK_DIR_TAB_FORWARD)
(tab-backward GTK_DIR_TAB_BACKWARD)
(up GTK_DIR_UP)
(down GTK_DIR_DOWN)
(left GTK_DIR_LEFT)
(right GTK_DIR_RIGHT))
(define-enum GtkExpanderStyle
(collapsed GTK_EXPANDER_COLLAPSED)
(semi-collapsed GTK_EXPANDER_SEMI_COLLAPSED)
(semi-expanded GTK_EXPANDER_SEMI_EXPANDED)
(expanded GTK_EXPANDER_EXPANDED))
(define-enum GtkIconSize
(invalid GTK_ICON_SIZE_INVALID)
(menu GTK_ICON_SIZE_MENU)
(small-toolbar GTK_ICON_SIZE_SMALL_TOOLBAR)
(large-toolbar GTK_ICON_SIZE_LARGE_TOOLBAR)
(button GTK_ICON_SIZE_BUTTON)
(dnd GTK_ICON_SIZE_DND)
(dialog GTK_ICON_SIZE_DIALOG))
(define-enum GtkTextDirection
(none GTK_TEXT_DIR_NONE)
(ltr GTK_TEXT_DIR_LTR)
(rtl GTK_TEXT_DIR_RTL))
(define-enum GtkSensitivityType
(auto GTK_SENSITIVITY_AUTO)
(on GTK_SENSITIVITY_ON)
(off GTK_SENSITIVITY_OFF))
(define-enum GtkJustification
(left GTK_JUSTIFY_LEFT)
(right GTK_JUSTIFY_RIGHT)
(center GTK_JUSTIFY_CENTER)
(fill GTK_JUSTIFY_FILL))
(define-enum GtkMenuDirectionType
(parent GTK_MENU_DIR_PARENT)
(child GTK_MENU_DIR_CHILD)
(next GTK_MENU_DIR_NEXT)
(prev GTK_MENU_DIR_PREV))
(define-enum GtkMetricType
(pixels GTK_PIXELS)
(inches GTK_INCHES)
(centimeters GTK_CENTIMETERS))
(define-enum GtkMovementStep
(logical-positions GTK_MOVEMENT_LOGICAL_POSITIONS)
(visual-positions GTK_MOVEMENT_VISUAL_POSITIONS)
(words GTK_MOVEMENT_WORDS)
(display-lines GTK_MOVEMENT_DISPLAY_LINES)
(display-line-ends GTK_MOVEMENT_DISPLAY_LINE_ENDS)
(paragraph-ends GTK_MOVEMENT_PARAGRAPH_ENDS)
(paragraphs GTK_MOVEMENT_PARAGRAPHS)
(pages GTK_MOVEMENT_PAGES)
(buffer-ends GTK_MOVEMENT_BUFFER_ENDS)
(horizontal-pages GTK_MOVEMENT_HORIZONTAL_PAGES))
(define-enum GtkScrollStep
(steps GTK_SCROLL_STEPS)
(pages GTK_SCROLL_PAGES)
(ends GTK_SCROLL_ENDS)
(horizontal-steps GTK_SCROLL_HORIZONTAL_STEPS)
(horizontal-pages GTK_SCROLL_HORIZONTAL_PAGES)
(horizontal-ends GTK_SCROLL_HORIZONTAL_ENDS))
(define-enum GtkOrientation
(horizontal GTK_ORIENTATION_HORIZONTAL)
(vertical GTK_ORIENTATION_VERTICAL))
(define-enum GtkCornerType
(top-left GTK_CORNER_TOP_LEFT)
(bottom-left GTK_CORNER_BOTTOM_LEFT)
(top-right GTK_CORNER_TOP_RIGHT)
(bottom-right GTK_CORNER_BOTTOM_RIGHT))
(define-enum GtkPackType
(start GTK_PACK_START)
(end GTK_PACK_END))
(define-enum GtkPathPriorityType
(lowest GTK_PATH_PRIO_LOWEST)
(gtk GTK_PATH_PRIO_GTK)
(application GTK_PATH_PRIO_APPLICATION)
(theme GTK_PATH_PRIO_THEME)
(rc GTK_PATH_PRIO_RC)
(highest GTK_PATH_PRIO_HIGHEST))
(define-enum GtkPathType
(widget GTK_PATH_WIDGET)
(widget-class GTK_PATH_WIDGET_CLASS)
(class GTK_PATH_CLASS))
(define-enum GtkPolicyType
(always GTK_POLICY_ALWAYS)
(automatic GTK_POLICY_AUTOMATIC)
(never GTK_POLICY_NEVER))
(define-enum GtkPositionType
(left GTK_POS_LEFT)
(right GTK_POS_RIGHT)
(top GTK_POS_TOP)
(bottom GTK_POS_BOTTOM))
(define-enum GtkReliefStyle
(normal GTK_RELIEF_NORMAL)
(half GTK_RELIEF_HALF)
(none GTK_RELIEF_NONE))
(define-enum GtkResizeMode
(parent GTK_RESIZE_PARENT)
(queue GTK_RESIZE_QUEUE)
(immediate GTK_RESIZE_IMMEDIATE))
(define-enum GtkScrollType
(none GTK_SCROLL_NONE)
(jump GTK_SCROLL_JUMP)
(step-backward GTK_SCROLL_STEP_BACKWARD)
(step-forward GTK_SCROLL_STEP_FORWARD)
(page-backward GTK_SCROLL_PAGE_BACKWARD)
(page-forward GTK_SCROLL_PAGE_FORWARD)
(step-up GTK_SCROLL_STEP_UP)
(step-down GTK_SCROLL_STEP_DOWN)
(page-up GTK_SCROLL_PAGE_UP)
(page-down GTK_SCROLL_PAGE_DOWN)
(step-left GTK_SCROLL_STEP_LEFT)
(step-right GTK_SCROLL_STEP_RIGHT)
(page-left GTK_SCROLL_PAGE_LEFT)
(page-right GTK_SCROLL_PAGE_RIGHT)
(start GTK_SCROLL_START)
(end GTK_SCROLL_END))
(define-enum GtkSelectionMode
(none GTK_SELECTION_NONE)
(single GTK_SELECTION_SINGLE)
(browse GTK_SELECTION_BROWSE)
(multiple GTK_SELECTION_MULTIPLE))
(define-enum GtkShadowType
(none GTK_SHADOW_NONE)
(in GTK_SHADOW_IN)
(out GTK_SHADOW_OUT)
(etched-in GTK_SHADOW_ETCHED_IN)
(etched-out GTK_SHADOW_ETCHED_OUT))
(define-enum GtkStateType
(normal GTK_STATE_NORMAL)
(active GTK_STATE_ACTIVE)
(prelight GTK_STATE_PRELIGHT)
(selected GTK_STATE_SELECTED)
(insensitive GTK_STATE_INSENSITIVE))
(define-enum GtkToolbarStyle
(icons GTK_TOOLBAR_ICONS)
(text GTK_TOOLBAR_TEXT)
(both GTK_TOOLBAR_BOTH)
(both-horiz GTK_TOOLBAR_BOTH_HORIZ))
(define-enum GtkUpdateType
(continuous GTK_UPDATE_CONTINUOUS)
(discontinuous GTK_UPDATE_DISCONTINUOUS)
(delayed GTK_UPDATE_DELAYED))
(define-enum GtkVisibility
(none GTK_VISIBILITY_NONE)
(partial GTK_VISIBILITY_PARTIAL)
(full GTK_VISIBILITY_FULL))
(define-enum GtkWindowPosition
(none GTK_WIN_POS_NONE)
(center GTK_WIN_POS_CENTER)
(mouse GTK_WIN_POS_MOUSE)
(center-always GTK_WIN_POS_CENTER_ALWAYS)
(center-on-parent GTK_WIN_POS_CENTER_ON_PARENT))
(define-enum GtkWindowType
(toplevel GTK_WINDOW_TOPLEVEL)
(popup GTK_WINDOW_POPUP))
(define-enum GtkWrapMode
(none GTK_WRAP_NONE)
(char GTK_WRAP_CHAR)
(word GTK_WRAP_WORD)
(word-char GTK_WRAP_WORD_CHAR))
(define-enum GtkSortType
(ascending GTK_SORT_ASCENDING)
(descending GTK_SORT_DESCENDING))
(define-enum GtkIMPreeditStyle
(nothing GTK_IM_PREEDIT_NOTHING)
(callback GTK_IM_PREEDIT_CALLBACK)
(none GTK_IM_PREEDIT_NONE))
(define-enum GtkIMStatusStyle
(nothing GTK_IM_STATUS_NOTHING)
(callback GTK_IM_STATUS_CALLBACK)
(none GTK_IM_STATUS_NONE))
(define-enum GtkPackDirection
(rtl GTK_PACK_DIRECTION_RTL)
(ltr GTK_PACK_DIRECTION_LTR)
(ttb GTK_PACK_DIRECTION_TTB)
(btt GTK_PACK_DIRECTION_BTT))
(define-enum GtkPrintPages
(all GTK_PRINT_PAGES_ALL)
(current GTK_PRINT_PAGES_CURRENT)
(ranges GTK_PRINT_PAGES_RANGES))
(define-enum GtkPageSet
(all GTK_PAGE_SET_ALL)
(even GTK_PAGE_SET_EVEN)
(odd GTK_PAGE_SET_ODD))
(define-enum GtkPageOrientation
(portrait GTK_PAGE_ORIENTATION_PORTRAIT)
(landscape GTK_PAGE_ORIENTATION_LANDSCAPE)
(reverse-portrait GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT)
(reverse-landscape GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE))
(define-enum GtkPrintQuality
(low GTK_PRINT_QUALITY_LOW)
(normal GTK_PRINT_QUALITY_NORMAL)
(high GTK_PRINT_QUALITY_HIGH)
(draft GTK_PRINT_QUALITY_DRAFT))
(define-enum GtkUnit
(pixel GTK_UNIT_PIXEL)
(points GTK_UNIT_POINTS)
(inch GTK_UNIT_INCH)
(mm GTK_UNIT_MM))
(define-enum GtkTreeViewGridLines
(none GTK_TREE_VIEW_GRID_LINES_NONE)
(horizontal GTK_TREE_VIEW_GRID_LINES_HORIZONTAL)
(vertical GTK_TREE_VIEW_GRID_LINES_VERTICAL)
(both GTK_TREE_VIEW_GRID_LINES_BOTH))
(define-enum GtkDragResult
(success GTK_DRAG_RESULT_SUCCESS)
(no-target GTK_DRAG_RESULT_NO_TARGET)
(user-cancelled GTK_DRAG_RESULT_USER_CANCELLED)
(timeout-expired GTK_DRAG_RESULT_TIMEOUT_EXPIRED)
(grab-broken GTK_DRAG_RESULT_GRAB_BROKEN)
(error GTK_DRAG_RESULT_ERROR))
;(define-enum GtkMenuFactoryType
; (menu GTK_MENU_FACTORY_MENU)
; (menu-bar GTK_MENU_FACTORY_MENU_BAR)
; (option-menu GTK_MENU_FACTORY_OPTION_MENU))
;(define-enum GtkTroughType
; (none GTK_TROUGH_NONE)
; (start GTK_TROUGH_START)
; (end GTK_TROUGH_END))
(define-flags GtkWidgetFlags
(toplevel GTK_TOPLEVEL)
(no-window GTK_NO_WINDOW)
(realized GTK_REALIZED)
(mapped GTK_MAPPED)
(visible GTK_VISIBLE)
(sensitive GTK_SENSITIVE)
(parent-sensitive GTK_PARENT_SENSITIVE)
(can-focus GTK_CAN_FOCUS)
(has-focus GTK_HAS_FOCUS)
(can-default GTK_CAN_DEFAULT)
(has-default GTK_HAS_DEFAULT)
(has-grab GTK_HAS_GRAB)
(rc-style GTK_RC_STYLE)
(composite-child GTK_COMPOSITE_CHILD)
(no-reparent GTK_NO_REPARENT)
(app-paintable GTK_APP_PAINTABLE)
(receives-default GTK_RECEIVES_DEFAULT)
(double-buffered GTK_DOUBLE_BUFFERED))
(define-enum GtkToolbarChildType
(space GTK_TOOLBAR_CHILD_SPACE)
(button GTK_TOOLBAR_CHILD_BUTTON)
(toggle-button GTK_TOOLBAR_CHILD_TOGGLEBUTTON)
(radio-button GTK_TOOLBAR_CHILD_RADIOBUTTON)
(widget GTK_TOOLBAR_CHILD_WIDGET))
(define-enum GtkTreeViewMode
(line GTK_TREE_VIEW_LINE)
(item GTK_TREE_VIEW_ITEM))
(define-enum GtkFundamentalType
(invalid G_TYPE_INVALID)
(none G_TYPE_NONE)
(char G_TYPE_CHAR)
(uchar G_TYPE_UCHAR)
(bool G_TYPE_BOOLEAN)
(int G_TYPE_INT)
(uint G_TYPE_UINT)
(long G_TYPE_LONG)
(ulong G_TYPE_ULONG)
(float G_TYPE_FLOAT)
(double G_TYPE_DOUBLE)
(string G_TYPE_STRING)
(enum G_TYPE_ENUM)
(flags G_TYPE_FLAGS)
(boxed G_TYPE_BOXED)
(pointer G_TYPE_POINTER)
)
(define-enum GtkSpinButtonUpdatePolicy
(always GTK_UPDATE_ALWAYS)
(if-valid GTK_UPDATE_IF_VALID))
(define-enum GtkSpinType
(step-forward GTK_SPIN_STEP_FORWARD)
(step-backward GTK_SPIN_STEP_BACKWARD)
(page-forward GTK_SPIN_PAGE_FORWARD)
(page-backward GTK_SPIN_PAGE_BACKWARD)
(home GTK_SPIN_HOME)
(end GTK_SPIN_END)
(user-defined GTK_SPIN_USER_DEFINED))
(define-enum GtkCellType
(empty GTK_CELL_EMPTY)
(text GTK_CELL_TEXT)
(pixmap GTK_CELL_PIXMAP)
(pixtext GTK_CELL_PIXTEXT)
(widget GTK_CELL_WIDGET))
(define-enum GtkProgressBarOrientation
(left-to-right GTK_PROGRESS_LEFT_TO_RIGHT)
(right-to-left GTK_PROGRESS_RIGHT_TO_LEFT)
(bottom-to-top GTK_PROGRESS_BOTTOM_TO_TOP)
(top-to-bottom GTK_PROGRESS_TOP_TO_BOTTOM))
(define-flags GtkArgFlags
(readable GTK_ARG_READABLE)
(writeable GTK_ARG_WRITABLE)
(construct GTK_ARG_CONSTRUCT)
(construct-only GTK_ARG_CONSTRUCT_ONLY)
(child-arg GTK_ARG_CHILD_ARG)
(readwrite GTK_ARG_READWRITE))
(define-flags GtkAccelFlags
(visible GTK_ACCEL_VISIBLE)
; (signal-visible GTK_ACCEL_SIGNAL_VISIBLE)
(locked GTK_ACCEL_LOCKED))
(define-flags GtkCalendarDisplayOptions
(show-heading GTK_CALENDAR_SHOW_HEADING)
(show-day-names GTK_CALENDAR_SHOW_DAY_NAMES)
(no-month-changed GTK_CALENDAR_NO_MONTH_CHANGE)
(show-week-numbers GTK_CALENDAR_SHOW_WEEK_NUMBERS)
(week-start-monday GTK_CALENDAR_WEEK_START_MONDAY))
;;; Gtk boxed types
(define-object GtkWidget (GtkObject)
(fields
(GtkStyle style)
(GdkWindow window)
(GtkWidget parent)
(SCM allocation (getter sgtk_gtk_widget_get_allocation))))
(define-boxed GtkTargetEntry
((char target)
(uint flags)
(uint info)))
;; GtkStyle
(define-object GtkStyle (GObject))
(define-func gtk_style_new
GtkStyle
())
(define-func gtk_style_copy
GtkStyle
((GtkStyle style)))
(define-func gtk_style_attach
GtkStyle
((GtkStyle style)
(GdkWindow window)))
(define-func gtk_style_set_background
none
((GtkStyle style)
(GdkWindow window)
(GtkStateType state)))
;(define-func gtk_style_apply_default_background
; none
; ((GtkStyle style)
; (GdkWindow window)
; (bool setbg)
; (GtkStateType state)
; (GdkRectangle rect)
; (int x)
; (int y)
; (int width)
; (int height)))
(define-func gtk_style_get_white_interp
GdkColor
((GtkStyle style)))
(define-func gtk_style_fg_gc
GdkGC
((GtkStyle style)
(GtkStateType state)))
(define-func gtk_style_bg_gc
GdkGC
((GtkStyle style)
(GtkStateType state)))
;;; Functions
;;
;; gtkmain.h
(define-func gtk_set_locale
static_string
())
(define-func gtk_events_pending
int
())
(define-func gtk_main
none
()
(undeferred t))
(define-func gtk_main_level
uint
())
(define-func gtk_main_quit
none
())
(define-func gtk_main_iteration
bool
())
(define-func gtk_main_iteration_do
bool
((bool blocking)))
(define-func gtk_true
bool
())
(define-func gtk_false
bool
())
(define-func gtk_grab_add
none
((GtkWidget widget)))
(define-func gtk_grab_get_current
GtkWidget
())
(define-func gtk_grab_remove
none
((GtkWidget widget)))
(define-func gtk_quit_add_full
uint
((uint main_level)
(full-callback function))
(scm-name "gtk-quit-add")
(protection t))
(define-func gtk_quit_remove
none
((uint handler_id)))
(define-func gtk_timeout_add_full
int
((int interval)
(full-callback function))
(scm-name "gtk-timeout-add")
(protection t))
(define-func gtk_timeout_remove
none
((int tag)))
(define-func gtk_idle_add_full
int
((int priority)
(full-callback function))
(protection t)
(scm-name "gtk-idle-add"))
(define-func gtk_idle_remove
none
((int tag)))
(define-func gtk_input_add_full
int
((file-descriptor source)
(GdkInputCondition condition)
(full-callback callback))
(protection t)
(scm-name "gtk-input-add"))
(define-func gtk_input_remove
none
((int tag)))
(define-func gtk_get_current_event
GdkEvent
())
(define-func gtk_get_current_event_time
ulong
())
;; gtkrc.h
(define-object GtkRcStyle (GObject))
(define-func gtk_rc_add_default_file
none
((string filename)))
;; XXX
;(define-func gtk_rc_set_default_files
; none
; ((tvec string in) filenames))
;
;(define-func gtk_rc_get_default_files
; (tvec string out)
; ())
(define-func gtk_rc_get_style
GtkStyle
((GtkWidget widget)))
(define-func gtk_rc_parse
none
((string file)))
(define-func gtk_rc_parse_string
none
((string style)))
;; GtkObject
(define-object GtkObject (GObject))
(define-func gtk_object_destroy
none
((GtkObject object)))
(define-func GTK_OBJECT_TYPE
type
((GtkObject object)))
;(define-func sgtk_gtk_object_query_args
; SCM
; ((type type))
; (scm-name "gtk-object-query-args"))
;; Signals
;; GtkWidget
(define-object GtkAdjustment (GtkWidget))
(define-func GTK_WIDGET_STATE
GtkStateType
((GtkWidget widget)))
(define-func GTK_WIDGET_FLAGS
GtkWidgetFlags
((GtkWidget widget)))
(define-func GTK_WIDGET_SET_FLAGS
none
((GtkWidget widget)
(GtkWidgetFlags flags)))
(define-func GTK_WIDGET_UNSET_FLAGS
none
((GtkWidget widget)
(GtkWidgetFlags flags)))
;; XXX - gtk_widget_new or gtk_widget_newv would be really useful
;; (maybe also gtk_widget_set(v), gtk_widget_get(v))
(define-func gtk_widget_destroy
none
((GtkWidget widget)))
(define-func gtk_widget_unparent
none
((GtkWidget widget)))
(define-func gtk_widget_show
none
((GtkWidget widget)))
(define-func gtk_widget_show_now
none
((GtkWidget widget)))
(define-func gtk_widget_set_no_show_all
none
((GtkWidget widget)
(bool setting)))
(define-func gtk_widget_get_no_show_all
bool
((GtkWidget widget)))
(define-func gtk_widget_hide
none
((GtkWidget widget)))
(define-func gtk_widget_show_all
none
((GtkWidget widget)))
(define-func gtk_widget_hide_all
none
((GtkWidget widget)))
(define-func gtk_widget_map
none
((GtkWidget widget)))
(define-func gtk_widget_unmap
none
((GtkWidget widget)))
(define-func gtk_widget_realize
none
((GtkWidget widget)))
(define-func gtk_widget_unrealize
none
((GtkWidget widget)))
(define-func gtk_widget_draw_interp
none
((GtkWidget widget)))
(define-func gtk_widget_queue_draw
none
((GtkWidget widget)))
(define-func gtk_widget_queue_draw_area
none
((GtkWidget widget)
(int x)
(int y)
(int width)
(int height)))
(define-func gtk_widget_queue_resize
none
((GtkWidget widget)))
(define-func gtk_widget_queue_resize_no_redraw
none
((GtkWidget widget)))
(define-func gtk_widget_add_accelerator
none
((GtkWidget widget)
(string accel_signal)
(GtkAccelGroup accel_group)
(uint accel_key)
(GdkModifierType accel_mods)
(GtkAccelFlags accel_flags)))
(define-func gtk_widget_remove_accelerator
none
((GtkWidget widget)
(GtkAccelGroup accel_group)
(uint accel_key)
(GdkModifierType accel_mods)))
(define-func gtk_widget_set_accel_path
none
((GtkWidget widget)
(string accel_path)
(GtkAccelGroup group)))
(define-func gtk_widget_list_accel_closures
((list string))
((GtkWidget widget)))
(define-func gtk_widget_can_activate_accel
bool
((GtkWidget widget)
(int signal_id)))
(define-func gtk_widget_mnemonic_activate
bool
((GtkWidget widget)
(bool group_cycling)))
(define-func gtk_widget_event
bool
((GtkWidget widget)
(GdkEvent event)))
(define-func gtk_widget_send_expose
int
((GtkWidget widget)
(GdkEvent event)))
(define-func gtk_widget_activate
none
((GtkWidget widget)))
(define-func gtk_widget_set_scroll_adjustments
bool
((GtkWidget widget)
(GtkAdjustment hadj)
(GtkAdjustment vadj)))
(define-func gtk_widget_reparent
none
((GtkWidget widget)
(GtkWidget new_parent)))
(define-func gtk_widget_intersect
bool
((GtkWidget widget)
((tvec GdkRectangle in) area)
((tvec GdkRectangle in) intersect)))
(define-func gtk_widget_region_intersect
GdkRegion
((GtkWidget widget)
(GdkRegion region)))
(define-func gtk_widget_is_focus
bool
((GtkWidget widget)))
(define-func gtk_widget_grab_focus
none
((GtkWidget widget)))
(define-func gtk_widget_grab_default
none
((GtkWidget widget)))
(define-func gtk_widget_set_name
none
((GtkWidget widget)
(string name)))
(define-func gtk_widget_get_name
static_string
((GtkWidget widget)))
(define-func gtk_widget_set_state
none
((GtkWidget widget)
(GtkStateType state)))
(define-func gtk_widget_set_sensitive
none
((GtkWidget widget)
(bool sensitive)))
(define-func gtk_widget_set_app_paintable
none
((GtkWidget widget)
(bool app_paintable)))
(define-func gtk_widget_set_double_buffered
none
((GtkWidget widget)
(bool double_buffered)))
(define-func gtk_widget_set_redraw_on_allocate
none
((GtkWidget widget)
(bool redraw_on_allocate)))
(define-func gtk_widget_set_parent
none
((GtkWidget widget)
(GtkWidget parent)))
(define-func gtk_widget_set_parent_window
none
((GtkWidget widget)
(GdkWindow parent_window)))
(define-func gtk_widget_set_child_visible
none
((GtkWidget widget)
(bool child_visible)))
(define-func gtk_widget_get_child_visible
bool
((GtkWidget widget)))
(define-func gtk_widget_get_parent
GtkWidget
((GtkWidget widget)))
(define-func gtk_widget_get_parent_window
GdkWindow
((GtkWidget widget)))
(define-func gtk_widget_child_focus
none
((GtkWidget widget)
(GtkDirectionType direction)))
(define-func gtk_widget_set_size_request
none
((GtkWidget widget)
(int width)
(int height)))
(define-func gtk_widget_get_size_request
none
((GtkWidget widget)
((ret int) width)
((ret int) height)))
(define-func gtk_widget_set_events
none
((GtkWidget widget)
(GdkEventMask events)))
(define-func gtk_widget_add_events
none
((GtkWidget widget)
(GdkEventMask events)))
(define-func gtk_widget_set_extension_events
none
((GtkWidget widget)
(GdkEventMask events)))
;(define-func gtk_widget_get_ancestor
; GtkWidget
; ((GtkWidget widget)
; (GtkType type)))
(define-func gtk_widget_get_toplevel
GtkWidget
((GtkWidget widget)))
(define-func gtk_widget_get_colormap
GdkColormap
((GtkWidget widget)))
(define-func gtk_widget_get_visual
GdkVisual
((GtkWidget widget)))
;; XXX - need multiple return values
;; (define-func gtk_widget_get_pointer)
(define-func gtk_widget_is_ancestor
bool
((GtkWidget widget)
(GtkWidget ancestor)))
(define-func gtk_widget_hide_on_delete
bool
((GtkWidget widget)))
(define-func gtk_widget_set_style
none
((GtkWidget widget)
(GtkStyle style)))
(define-func gtk_widget_ensure_style
none
((GtkWidget widget)))
(define-func gtk_widget_get_style
GtkStyle
((GtkWidget widget)))
(define-func gtk_widget_modify_style
none
((GtkWidget widget)
(GtkRcStyle style)))
(define-func gtk_widget_get_modifier_style
GtkRcStyle
((GtkWidget widget)))