File: gtktree.defs

package info (click to toggle)
rep-gtk 1:0.90.8.3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 824 kB
  • sloc: sh: 3,452; ansic: 3,402; lisp: 1,218; makefile: 96
file content (1197 lines) | stat: -rw-r--r-- 25,176 bytes parent folder | download | duplicates (2)
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
;; -*- lisp -*-

;; GtkTreeModel && GtkTreeSelection && GtkTreeView

(define-object GtkTreeModel (GInterface))

(define-flags GtkTreeModelFlags
  (iters-persist GTK_TREE_MODEL_ITERS_PERSIST)
  (list-only GTK_TREE_MODEL_LIST_ONLY))

(define-boxed GtkTreeIter
  (copy gtk_tree_iter_copy)
  (free gtk_tree_iter_free))

(define-boxed GtkTreePath
  (copy gtk_tree_path_copy)
  (free gtk_tree_path_free))

(define-func gtk_tree_path_new
  GtkTreePath
  ())

(define-func gtk_tree_path_new_from_string
  GtkTreePath
  ((string path)))

(define-func gtk_tree_path_new_from_indices
  GtkTreePath
  ((int indices)))

(define-func gtk_tree_path_to_string
  string
  ((GtkTreePath path)))

(define-func gtk_tree_path_new_first
  GtkTreePath
  ())

(define-func gtk_tree_path_append_index
  none
  ((GtkTreePath path)
   (int index)))

(define-func gtk_tree_path_prepend_index
  none
  ((GtkTreePath path)
   (int index)))

(define-func gtk_tree_path_get_depth
  int
  ((GtkTreePath path)))

(define-func gtk_tree_path_get_indices
  none
  ((GtkTreePath path)))

(define-func gtk_tree_path_free
  none
  ((GtkTreePath path)))

(define-func gtk_tree_path_copy
  GtkTreePath
  ((GtkTreePath path)))

(define-func gtk_tree_path_get_type
  type
  ())

(define-func gtk_tree_path_compare
  int
  ((GtkTreePath path1)
   (GtkTreePath path2)))

(define-func gtk_tree_path_next
  none
  ((GtkTreePath path)))

(define-func gtk_tree_path_prev
  none
  ((GtkTreePath path)))

(define-func gtk_tree_path_up
  none
  ((GtkTreePath path)))

(define-func gtk_tree_path_down
  none
  ((GtkTreePath path)))

(define-func gtk_tree_path_is_ancestor
  bool
  ((GtkTreePath path)
   (GtkTreePath descendant)))

(define-func gtk_tree_path_is_descendant
  bool
  ((GtkTreePath path)
   (GtkTreePath ancestor)))

(define-boxed GtkTreeRowReference
  (copy gtk_tree_row_reference_copy)
  (free gtk_tree_row_reference_free))

(define-func gtk_tree_row_reference_get_type
  type
  ())

(define-func gtk_tree_row_reference_new
  GtkTreeRowReference
  ((GtkTreeModel model)
   (GtkTreePath path)))

(define-func gtk_tree_row_reference_new_proxy
  GtkTreeRowReference
  ((GObject proxy)
   (GtkTreeModel model)
   (GtkTreePath path)))

(define-func gtk_tree_row_reference_get_path
  GtkTreePath
  ((GtkTreeRowReference reference)))

(define-func gtk_tree_row_reference_get_model
  GtkTreeModel
  ((GtkTreeRowReference reference)))

(define-func gtk_tree_row_reference_valid
  bool
  ((GtkTreeRowReference reference)))

(define-func gtk_tree_row_reference_copy
  GtkTreeRowReference
  ((GtkTreeRowReference reference)))

(define-func gtk_tree_row_reference_free
  none
  ((GtkTreeRowReference reference)))

(define-func gtk_tree_row_reference_inserted
  none
  ((GObject proxy)
   (GtkTreePath path)))

(define-func gtk_tree_row_reference_deleted
  none
  ((GObject proxy)
   (GtkTreePath path)))

(define-func gtk_tree_row_reference_reordered
  none
  ((GObject proxy)
   (GtkTreePath path)
   (GtkTreeIter iter)
   ((tvec int in) new_order)))

(define-func gtk_tree_iter_copy
  GtkTreeIter
  ((GtkTreeIter iter)))

(define-func gtk_tree_iter_free
  none
  ((GtkTreeIter iter)))

(define-func gtk_tree_iter_get_type
  type
  ())

(define-func gtk_tree_model_get_iter
  bool
  ((GtkTreeModel model)
   (GtkTreeIter iter)
   (GtkTreePath path)))

(define-func gtk_tree_model_get_iter_from_string
  bool
  ((GtkTreeModel model)
   (GtkTreeIter iter)
   (string path)))

(define-func gtk_tree_model_get_string_from_iter
  string
  ((GtkTreeModel model)
   (GtkTreeIter iter)))

(define-func gtk_tree_model_get_iter_first
  bool
  ((GtkTreeModel model)
   (GtkTreeIter iter)))

(define-func gtk_tree_model_get_path
  GtkTreePath
  ((GtkTreeModel model)
   (GtkTreeIter iter)))

;; XXX not working
;(define-func gtk_tree_model_get_value
;  none
;  ((GtkTreeModel model)
;   (GtkTreeIter iter)
;   (uint column)
;   (GValue value)))

(define-func gtk_tree_model_iter_next
  bool
  ((GtkTreeModel model)
   (GtkTreeIter iter)))

(define-func gtk_tree_model_iter_children
  bool
  ((GtkTreeModel model)
   (GtkTreeIter iter)
   (GtkTreeIter parent)))

(define-func gtk_tree_model_iter_has_child
  bool
  ((GtkTreeModel model)
   (GtkTreeIter iter)))

(define-func gtk_tree_model_iter_n_children
  uint
  ((GtkTreeModel model)
   (GtkTreeIter iter)))

(define-func gtk_tree_model_iter_nth_child
  bool
  ((GtkTreeModel model)
   (GtkTreeIter iter)
   (GtkTreeIter parent)
   (uint child)))

(define-func gtk_tree_model_iter_parent
  bool
  ((GtkTreeModel model)
   (GtkTreeIter iter)
   (GtkTreeIter child)))

(define-func gtk_tree_model_ref_node
  none
  ((GtkTreeModel model)
   (GtkTreeIter iter)))

(define-func gtk_tree_model_unref_node
  none
  ((GtkTreeModel model)
   (GtkTreeIter iter)))

(define-func gtk_tree_model_get
  none
  ((GtkTreeModel model)
   (GtkTreeIter iter)))

;; XXX not working on ARM
;(define-func gtk_tree_model_get_valist
;  none
;  ((GtkTreeModel model)
;   (GtkTreeIter iter)
;   (string valist)))

;; XXX not working
;(define-func gtk_tree_model_foreach
;  none
;  ((GtkTreeModel model)
;   (GtkTreeModelForeachFunc func)
;   (GPointer data)))

;; GtkTreeSelection

(define-object GtkTreeSelection (GObject))

(define-func gtk_tree_selection_set_mode
  none
  ((GtkTreeSelection selection)
   (GtkSelectionMode mode)))

(define-func gtk_tree_selection_get_mode
  GtkSelectionMode
  ((GtkTreeSelection selection)))

(define-boxed GtkTreeSelectionFunc
  ((GtkTreeSelection selection)
   (GtkTreeModel model)
   (GtkTreePath path)
   (bool selected)
   (GPointer data)))

(define-boxed GtkTreeViewRowSeparatorFunc
  ((GtkTreeModel model)
   (GtkTreeIter iter)
   (GPointer data)))

(define-boxed GDestroyNotify
  ((GPointer data)))

(define-boxed GtkDestroyNotify
  ((GPointer data)))

(define-func gtk_tree_selection_set_select_function
  none
  ((GtkTreeSelection selection)
   (GtkTreeSelectionFunc func)
   (GPointer data)
   (GtkDestroyNotify destroy)))

(define-func gtk_tree_selection_get_user_data
  GPointer
  ((GtkTreeSelection selection)))

(define-func gtk_tree_selection_get_tree_view
  GtkTreeView
  ((GtkTreeSelection selection)))

;(define-func gtk_tree_selection_get_selected
;  bool
;  ((GtkTreeSelection selection)
;   (GtkTreeModel model)
;   (GtkTreeIter iter)))

;(define-func gtk_tree_selection_get_selected_rows
; (list string)
;  ((GtkTreeSelection selection)
;   (GtkTreeModel model)))

;; GtkCellEditable

(define-object GtkCellEditable (GInterface))

(define-func gtk_cell_editable_start_editing
  none
  ((GtkCellEditable editable)
   (GdkEvent event)))

(define-func gtk_cell_editable_editing_done
  none
  ((GtkCellEditable editable)))

(define-func gtk_cell_editable_remove_widget
  none
  ((GtkCellEditable editable)))

;; GtkCellRenderer

(define-object GtkCellRenderer (GtkObject))

(define-enum GtkCellRendererState
 (selected GTK_CELL_RENDERER_SELECTED)
 (prelit GTK_CELL_RENDERER_PRELIT)
 (insensitive GTK_CELL_RENDERER_INSENSITIVE)
 (sorted GTK_CELL_RENDERER_SORTED)
 (focused GTK_CELL_RENDERER_FOCUSED))

(define-enum GtkCellRendererMode
  (inert GTK_CELL_RENDERER_MODE_INERT)
  (activatable GTK_CELL_RENDERER_MODE_ACTIVATABLE)
  (editable GTK_CELL_RENDERER_MODE_EDITABLE))

(define-func gtk_cell_renderer_get_size
  none
  ((GtkCellRenderer cell)
   (GtkWidget widget)
   ((tvec GdkRectangle in) area)
   ((tvec int in) xoffset)
   ((tvec int in) yoffset)
   ((tvec int in) width)
   ((tvec int in) height)))

(define-func gtk_cell_renderer_render
  none
  ((GtkCellRenderer cell)
   (GdkWindow window)
   (GtkWidget widget)
   ((tvec GdkRectangle in) background_area)
   ((tvec GdkRectangle in) cell_area)
   ((tvec GdkRectangle in) expose_area)
   (GtkCellRendererState state)))

(define-func gtk_cell_renderer_activate
  bool
  ((GtkCellRenderer cell)
   (GdkEvent event)
   (GtkWidget widget)
   ((tvec string in) path)
   ((tvec GdkRectangle in) background_area)
   ((tvec GdkRectangle in) cell_area)
   (GtkCellRendererState state)))

(define-func gtk_cell_renderer_start_editing
  GtkCellEditable
  ((GtkCellRenderer cell)
   (GdkEvent event)
   (GtkWidget widget)
   ((tvec string in) path)
   ((tvec GdkRectangle in) background_area)
   ((tvec GdkRectangle in) cell_area)
   (GtkCellRendererState state)))

(define-func gtk_cell_renderer_stop_editing
  none
  ((GtkCellRenderer cell)
   (bool stop)))

(define-func gtk_cell_renderer_set_fixed_size
  none
  ((GtkCellRenderer cell)
   (int width)
   (int height)))

(define-func gtk_cell_renderer_get_fixed_size
  none
  ((GtkCellRenderer cell)
   ((tvec int in) width)
   ((tvec int in) height)))

;; GtkCellRendererText

(define-object GtkCellRendererText (GtkCellRenderer))

(define-func gtk_cell_renderer_text_new
  GtkCellRenderer
  ())

(define-func gtk_cell_renderer_text_set_fixed_height_from_font
  none
  ((GtkCellRendererText cell)
   (int num_rows)))

;; GtkCellRendererPixbuf

(define-object GtkCellRendererPixbuf (GtkCellRenderer))

(define-func gtk_cell_renderer_pixbuf_new
  GtkCellRenderer
  ())

;; GtkCellRendererAccel

(define-object GtkCellRendererAccel (GtkCellRendererText))

(define-enum GtkCellRendererAccelMode
  (gtk GTK_CELL_RENDERER_ACCEL_MODE_GTK)
  (other GTK_CELL_RENDERER_ACCEL_MODE_OTHER))

(define-func gtk_cell_renderer_accel_new
  GtkCellRenderer
  ())

;; GtkCellRendererCombo

(define-object GtkCellRendererCombo (GtkCellRendererText))

(define-func gtk_cell_renderer_combo_new
  GtkCellRenderer
  ())

;; GtkCellRendererProgress

(define-object GtkCellRendererProgress (GtkCellRenderer))

(define-func gtk_cell_renderer_progress_new
  GtkCellRenderer
  ())

;; GtkCellRendererSpin

(define-object GtkCellRendererSpin (GtkCellRendererText))

(define-func gtk_cell_renderer_spin_new
  GtkCellRenderer
  ())

;; GtkCellRendererToggle

(define-object GtkCellRendererToggle (GtkCellRendererText))

(define-func gtk_cell_renderer_toggle_new
  GtkCellRenderer
  ())

(define-func gtk_cell_renderer_toggle_set_radio
  none
  ((GtkCellRendererToggle cell)
   (bool radio)))

(define-func gtk_cell_renderer_toggle_get_radio
  bool
  ((GtkCellRendererToggle cell)))

(define-func gtk_cell_renderer_toggle_set_active
  none
  ((GtkCellRendererToggle cell)
   (bool radio)))

(define-func gtk_cell_renderer_toggle_get_active
  bool
  ((GtkCellRendererToggle cell)))

;; GtkTreeViewColumn [Base]

(define-object GtkTreeViewColumn (GtkObject))

(define-enum GtkTreeViewColumnSizing
  (grow-only GTK_TREE_VIEW_COLUMN_GROW_ONLY)
  (autosize GTK_TREE_VIEW_COLUMN_AUTOSIZE)
  (fixed GTK_TREE_VIEW_COLUMN_FIXED))

(define-func gtk_tree_view_column_new
  GtkTreeViewColumn
  ())

(define-func gtk_tree_view_column_pack_start
  none
  ((GtkTreeViewColumn column)
   (GtkCellRenderer cell)
   (bool expand)))

(define-func gtk_tree_view_column_pack_end
  none
  ((GtkTreeViewColumn column)
   (GtkCellRenderer cell)
   (bool expand)))

(define-func gtk_tree_view_column_clear
  none
  ((GtkTreeViewColumn column)))

(define-func gtk_tree_view_column_add_attribute
  none
  ((GtkTreeViewColumn tv_column)
   (GtkCellRenderer cell)
   ((tvec string in) attr)
   (int column)))

(define-func gtk_tree_view_column_clear_attributes
  none
  ((GtkTreeViewColumn column)
   (GtkCellRenderer cell)))

(define-func gtk_tree_view_column_set_spacing
  none
  ((GtkTreeViewColumn column)
   (int spacing)))

(define-func gtk_tree_view_column_get_spacing
  int
  ((GtkTreeViewColumn column)))

(define-func  gtk_tree_view_column_set_visible
  none
  ((GtkTreeViewColumn column)
   (bool visible)))

(define-func gtk_tree_view_column_get_visible
  bool
  ((GtkTreeViewColumn column)))

(define-func gtk_tree_view_column_set_resizable
  none
  ((GtkTreeViewColumn column)
   (bool resizable)))

(define-func gtk_tree_view_column_get_resizable
  bool
  ((GtkTreeViewColumn column)))

(define-func gtk_tree_view_column_set_sizing
  none
  ((GtkTreeViewColumn column)
   (GtkTreeViewColumnSizing sizing)))

(define-func gtk_tree_view_column_get_sizing
  GtkTreeViewColumnSizing
  ((GtkTreeViewColumn column)))

(define-func gtk_tree_view_column_get_width
  int
  ((GtkTreeViewColumn column)))

(define-func gtk_tree_view_column_set_fixed_width
  none
  ((GtkTreeViewColumn column)
   (int width)))

(define-func gtk_tree_view_column_get_fixed_width
  int
  ((GtkTreeViewColumn column)))

(define-func gtk_tree_view_column_set_min_width
  none
  ((GtkTreeViewColumn column)
   (int width)))

(define-func gtk_tree_view_column_get_min_width
  int
  ((GtkTreeViewColumn column)))

(define-func gtk_tree_view_column_set_max_width
  none
  ((GtkTreeViewColumn column)
   (int width)))

(define-func gtk_tree_view_column_get_max_width
  int
  ((GtkTreeViewColumn column)))

(define-func gtk_tree_view_column_clicked
  none
  ((GtkTreeViewColumn column)))

;;; XXX Need GList Returntype support
;;(define-func gtk_tree_view_column_get_cell_renderers)

;; GtkTreeViewColumn [Headers]

(define-func gtk_tree_view_column_set_title
  none
  ((GtkTreeViewColumn column)
   ((tvec string in) title)))

(define-func gtk_tree_view_column_get_title
  static_string
  ((GtkTreeViewColumn column)))

(define-func gtk_tree_view_column_set_expand
  none
  ((GtkTreeViewColumn column)
   (bool expand)))

(define-func gtk_tree_view_column_get_expand
  bool
  ((GtkTreeViewColumn column)))

(define-func gtk_tree_view_column_set_clickable
  none
  ((GtkTreeViewColumn column)
   (bool clickable)))

(define-func gtk_tree_view_column_get_clickable
  bool
  ((GtkTreeViewColumn column)))

(define-func gtk_tree_view_column_set_widget
  none
  ((GtkTreeViewColumn column)
   (GtkWidget widget)))

(define-func gtk_tree_view_column_get_widget
  GtkWidget
  ((GtkTreeViewColumn column)))

(define-func gtk_tree_view_column_set_alignment
  none
  ((GtkTreeViewColumn column)
   (double align)))

(define-func gtk_tree_view_column_get_alignment
  double
  ((GtkTreeViewColumn column)))

(define-func gtk_tree_view_column_set_reorderable
  none
  ((GtkTreeViewColumn column)
   (bool reorderable)))

(define-func gtk_tree_view_column_get_reorderable
  bool
  ((GtkTreeViewColumn column)))

;; GtkTreeViewColumn [Sorting]

(define-func gtk_tree_view_column_set_sort_column_id
  none
  ((GtkTreeViewColumn tv_column)
   (int column)))

(define-func gtk_tree_view_column_get_sort_column_id
  int
  ((GtkTreeViewColumn column)))

(define-func gtk_tree_view_column_set_sort_indicator
  none
  ((GtkTreeViewColumn column)
   (bool setting)))

(define-func gtk_tree_view_column_get_sort_indicator
  bool
  ((GtkTreeViewColumn column)))

(define-func gtk_tree_view_column_set_sort_order
  none
  ((GtkTreeViewColumn column)
   (GtkSortType order)))

(define-func gtk_tree_view_column_get_sort_order
  GtkSortType
  ((GtkTreeViewColumn column)))

;; GtkTreeViewColumn [GtkTreeView Interaction]

(define-func gtk_tree_view_column_cell_set_cell_data
  none
  ((GtkTreeViewColumn column)
   (GtkTreeModel model)
   (GtkTreeIter iter)
   (bool is_expander)
   (bool is_expanded)))

(define-func gtk_tree_view_column_cell_get_size
  none
  ((GtkTreeViewColumn column)
   ((tvec GdkRectangle in) area)
   ((tvec int in) xoffset)
   ((tvec int in) yoffset)
   ((tvec int in) width)
   ((tvec int in) height)))

(define-func gtk_tree_view_column_cell_is_visible
  bool
  ((GtkTreeViewColumn column)))

(define-func gtk_tree_view_column_focus_cell
  none
  ((GtkTreeViewColumn column)
   (GtkCellRenderer cell)))

(define-func gtk_tree_view_column_cell_get_position
  bool
  ((GtkTreeViewColumn column)
   (GtkCellRenderer cell)
   ((tvec int in) start)
   ((tvec int in) width)))

(define-func gtk_tree_view_column_queue_resize
  none
  ((GtkTreeViewColumn column)))

(define-func gtk_tree_view_column_get_tree_view
  GtkWidget
  ((GtkTreeViewColumn column)))

;; GtkTreeSortable

(define-object GtkTreeSortable (GInterface))

(define-boxed GtkTreeIterCompareFunc
  ((GtkTreeModel model)
   (GtkTreeIter iter1)
   (GtkTreeIter iter2)
   (GPointer data)))

(define-func gtk_tree_sortable_sort_column_changed
  none
  ((GtkTreeSortable sortable)))

(define-func gtk_tree_sortable_set_sort_column_id
  none
  ((GtkTreeSortable sortable)
   (int column)
   (GtkSortType type)))

(define-func gtk_tree_sortable_get_sort_column_id
  bool
  ((GtkTreeSortable sortable)
   ((tvec int in) column)
   ((tvec GtkSortType in) type)))

(define-func gtk_tree_sortable_set_sort_func
  none
  ((GtkTreeSortable sortable)
   (int column)
   (GtkTreeIterCompareFunc func)
   (GPointer data)
   (GtkDestroyNotify destroy)))

(define-func gtk_tree_sortable_set_default_sort_func
  none
  ((GtkTreeSortable sortable)
   (GtkTreeIterCompareFunc func)
   (GPointer data)
   (GtkDestroyNotify destroy)))

(define-func gtk_tree_sortable_has_default_sort_func
  bool
  ((GtkTreeSortable sortable)))

;; GtkListStore

(define-object GtkListStore (GObject))

(define-func gtk_list_store_new
  GtkListStore
  ((int columns)))

(define-func gtk_list_store_newv
  GtkListStore
  ((int columns)
   ((tvec type in) type)))

(define-func gtk_list_store_set_column_types
  none
  ((GtkListStore store)
   (int columns)
   ((tvec type in) type)))

(define-func gtk_list_store_remove
  none
  ((GtkListStore store)
   (GtkTreeIter iter)))

(define-func gtk_list_store_insert
  none
  ((GtkListStore store)
   (GtkTreeIter iter)
   (int position)))

(define-func gtk_list_store_insert_before
  none
  ((GtkListStore store)
   (GtkTreeIter iter)
   (GtkTreeIter sibling)))

(define-func gtk_list_store_insert_after
  none
  ((GtkListStore store)
   (GtkTreeIter iter)
   (GtkTreeIter sibling)))

(define-func gtk_list_store_prepend
  none
  ((GtkListStore store)
   (GtkTreeIter iter)))

(define-func gtk_list_store_append
  none
  ((GtkListStore store)
   (GtkTreeIter iter)))

(define-func gtk_list_store_clear
  none
  ((GtkListStore store)))

(define-func gtk_list_store_iter_is_valid
  bool
  ((GtkListStore store)
   (GtkTreeIter iter)))

(define-func gtk_list_store_reorder
  none
  ((GtkListStore store)
   (int order)))

(define-func gtk_list_store_swap
  none
  ((GtkListStore store)
   (GtkTreeIter a)
   (GtkTreeIter b)))

(define-func gtk_list_store_move_after
  none
  ((GtkListStore store)
   (GtkTreeIter iter)
   (GtkTreeIter position)))

(define-func gtk_list_store_move_before
  none
  ((GtkListStore store)
   (GtkTreeIter iter)
   (GtkTreeIter position)))

;; GtkTreeView [Base]

(define-object GtkTreeView (GtkContainer))

(define-enum GtkTreeViewDropPosition
  (before GTK_TREE_VIEW_DROP_BEFORE)
  (after GTK_TREE_VIEW_DROP_AFTER)
  (into-before GTK_TREE_VIEW_DROP_INTO_OR_BEFORE)
  (into-after GTK_TREE_VIEW_DROP_INTO_OR_AFTER))

(define-func gtk_tree_view_new
  GtkWidget
  ())

(define-func gtk_tree_view_new_with_model
  GtkWidget
  ((GtkTreeModel model)))

(define-func gtk_tree_view_get_model
  GtkTreeModel
  ((GtkTreeView treeview)))

(define-func gtk_tree_view_set_model
  none
  ((GtkTreeView treeview)
   (GtkTreeModel model)))

(define-func gtk_tree_view_get_selection
  GtkTreeSelection
  ((GtkTreeView tree)))

(define-func gtk_tree_view_set_hadjustment
  none
  ((GtkTreeView tree)
   (GtkAdjustment adjustment)))

(define-func gtk_tree_view_get_hadjustment
  GtkAdjustment
  ((GtkTreeView tree)))

(define-func gtk_tree_view_set_vadjustment
  none
  ((GtkTreeView tree)
   (GtkAdjustment adjustment)))

(define-func gtk_tree_view_get_vadjustment
  GtkAdjustment
  ((GtkTreeView tree)))

(define-func gtk_tree_view_set_headers_visible
  none
  ((GtkTreeView tree)
   (bool visible)))

(define-func gtk_tree_view_get_headers_visible
  bool
  ((GtkTreeView tree)))

(define-func gtk_tree_view_set_headers_clickable
  none
  ((GtkTreeView tree)
   (bool clickable)))

(define-func gtk_tree_view_get_headers_clickable
  bool
  ((GtkTreeView tree)))

(define-func gtk_tree_view_columns_autosize
  none
  ((GtkTreeView tree)))

(define-func gtk_tree_view_set_rules_hint
  none
  ((GtkTreeView tree)
   (bool hint)))

(define-func gtk_tree_view_get_rules_hint
  bool
  ((GtkTreeView tree)))

;; GtkTreeView [Columns]

(define-func gtk_tree_view_append_column
  int
  ((GtkTreeView tree)
   (GtkTreeViewColumn column)))

(define-func gtk_tree_view_remove_column
  int
  ((GtkTreeView tree)
   (GtkTreeViewColumn column)))

(define-func gtk_tree_view_insert_column
  int
  ((GtkTreeView tree)
   (GtkTreeViewColumn column)
   (int position)))

(define-func gtk_tree_view_get_column
  GtkTreeViewColumn
  ((GtkTreeView tree)
   (int column)))

(define-func gtk_tree_view_move_column_after
  none
  ((GtkTreeView tree)
   (GtkTreeViewColumn column)
   (GtkTreeViewColumn base)))

(define-func gtk_tree_view_set_expander_column
  none
  ((GtkTreeView tree)
   (GtkTreeViewColumn column)))

(define-func gtk_tree_view_get_expander_column
  GtkTreeViewColumn
  ((GtkTreeView tree)))

(define-boxed GtkTreeViewColumnDropFunc
  ((GtkTreeView tree)
   (GtkTreeViewColumn column)
   (GtkTreeViewColumn prev)
   (GtkTreeViewColumn next)
   (GPointer data)))

(define-func gtk_tree_view_set_column_drag_function
  none
  ((GtkTreeView tree)
   (GtkTreeViewColumnDropFunc func)
   (GPointer data)
   (GtkDestroyNotify destroy)))

;; GtkTreeView [Actions]

(define-func gtk_tree_view_scroll_to_point
  none
  ((GtkTreeView tree)
   (int x)
   (int y)))

(define-func gtk_tree_view_scroll_to_cell
  none
  ((GtkTreeView tree)
   (GtkTreePath path)
   (GtkTreeViewColumn column)
   (bool use_align)
   (int row_align)
   (int column_align)))

(define-func gtk_tree_view_row_activated
  none
  ((GtkTreeView tree)
   (GtkTreePath path)
   (GtkTreeViewColumn column)))

(define-func gtk_tree_view_expand_all
  none
  ((GtkTreeView tree)))

(define-func gtk_tree_view_collapse_all
  none
  ((GtkTreeView tree)))

(define-func gtk_tree_view_expand_to_path
  none
  ((GtkTreeView tree)
   (GtkTreePath path)))

(define-func gtk_tree_view_expand_row
  bool
  ((GtkTreeView tree)
   (GtkTreePath path)
   (bool all)))

(define-func gtk_tree_view_collapse_row
  bool
  ((GtkTreeView tree)
   (GtkTreePath path)))

(define-boxed GtkTreeViewMappingFunc
  ((GtkTreeView tree)
   (GtkTreePath path)
   (GPointer data)))

(define-func gtk_tree_view_map_expanded_rows
  none
  ((GtkTreeView tree)
   (GtkTreeViewMappingFunc func)
   (GPointer data)))

(define-func gtk_tree_view_row_expanded
  bool
  ((GtkTreeView tree)
   (GtkTreePath path)))

(define-func gtk_tree_view_set_reorderable
  none
  ((GtkTreeView tree)
   (bool reorderable)))

(define-func gtk_tree_view_get_reorderable
  bool
  ((GtkTreeView tree)))

(define-func gtk_tree_view_set_cursor
  none
  ((GtkTreeView tree)
   (GtkTreePath path)
   (GtkTreeViewColumn column)
   (bool start_editing)))

(define-func gtk_tree_view_set_cursor_on_cell
  none
  ((GtkTreeView tree)
   (GtkTreePath path)
   (GtkTreeViewColumn column)
   (GtkCellRenderer renderer)
   (bool start_editing)))

(define-func gtk_tree_view_get_cursor
  none
  ((GtkTreeView tree)
   (GtkTreePath path)
   (GtkTreeViewColumn column)))

;; GtkTreeView [Layout]

(define-func gtk_tree_view_get_bin_window
  GdkWindow
  ((GtkTreeView tree)))

(define-func gtk_tree_view_get_path_at_pos
  bool
  ((GtkTreeView tree)
   (int x)
   (int y)
   (GtkTreePath path)
   (GtkTreeViewColumn column)
   (int cell_x)
   (int cell_y)))

(define-func gtk_tree_view_get_cell_area
  none
  ((GtkTreeView tree)
   (GtkTreePath path)
   (GtkTreeViewColumn column)
   ((tvec GdkRectangle in) rect)))

(define-func gtk_tree_view_get_background_area
  none
  ((GtkTreeView tree)
   (GtkTreePath path)
   (GtkTreeViewColumn column)
   ((tvec GdkRectangle in) rect)))

(define-func gtk_tree_view_get_visible_rect
  none
  ((GtkTreeView tree)
   ((tvec GdkRectangle in) rect)))

(define-func gtk_tree_view_get_visible_range
  bool
  ((GtkTreeView tree)
   (GtkTreePath start)
   (GtkTreePath end)))

;; GtkTreeView [D-N-D]

(define-func gtk_tree_view_enable_model_drag_source
  none
  ((GtkTreeView tree)
   (GdkModifierType start_button_mask)
   (GtkTargetEntry target)
   (int targets)
   (GdkDragAction action)))

(define-func gtk_tree_view_enable_model_drag_dest
  none
  ((GtkTreeView tree)
   (GtkTargetEntry target)
   (int targets)
   (GdkDragAction action)))

(define-func gtk_tree_view_unset_rows_drag_source
  none
  ((GtkTreeView tree)))

(define-func gtk_tree_view_unset_rows_drag_dest
  none
  ((GtkTreeView tree)))

(define-enum GtkTreeViewDropPosition
  (before GTK_TREE_VIEW_DROP_BEFORE)
  (after GTK_TREE_VIEW_DROP_AFTER)
  (into-or-before GTK_TREE_VIEW_DROP_INTO_OR_BEFORE)
  (into-or-after GTK_TREE_VIEW_DROP_INTO_OR_AFTER))

(define-func gtk_tree_view_set_drag_dest_row
  none
  ((GtkTreeView tree)
   (GtkTreePath path)
   (GtkTreeViewDropPosition pos)))

(define-func gtk_tree_view_get_drag_dest_row
  none
  ((GtkTreeView tree)
   (GtkTreePath path)
   ((tvec GtkTreeViewDropPosition in) pos)))

(define-func gtk_tree_view_get_dest_row_at_pos
  bool
  ((GtkTreeView tree)
   (int x)
   (int y)
   (GtkTreePath path)
   ((tvec GtkTreeViewDropPosition in) pos)))

(define-func gtk_tree_view_create_row_drag_icon
  GdkPixmap
  ((GtkTreeView tree)
   (GtkTreePath path)))

;; GtkTreeView [Interactive Search]

(define-boxed GtkTreeViewSearchEqualFunc
  ((GtkTreeModel model)
   (int column)
   ((tvec string in) key)
   (GtkTreeIter iter)
   (GPointer data)))