1 | ;; -*- scheme -*- |
---|
2 | |
---|
3 | |
---|
4 | ;;; |
---|
5 | ;;; manual portion from gtk-boxed.defs |
---|
6 | ;;; |
---|
7 | |
---|
8 | |
---|
9 | |
---|
10 | ;;; Gtk boxed types |
---|
11 | |
---|
12 | (define-boxed GtkAccelGroup |
---|
13 | gtk_accel_group_ref |
---|
14 | gtk_accel_group_unref) |
---|
15 | |
---|
16 | (define-boxed GtkSelectionData |
---|
17 | ) |
---|
18 | |
---|
19 | (define-boxed GtkStyle |
---|
20 | gtk_style_ref |
---|
21 | gtk_style_unref) |
---|
22 | |
---|
23 | (define-boxed GtkCTreeNode |
---|
24 | ) |
---|
25 | |
---|
26 | ;;; Gdk boxed types |
---|
27 | |
---|
28 | ;(define-boxed GdkPoint |
---|
29 | ; gdk_point_copy |
---|
30 | ; gdk_point_destroy) |
---|
31 | |
---|
32 | (define-boxed GdkColormap |
---|
33 | gdk_colormap_ref |
---|
34 | gdk_colormap_unref) |
---|
35 | |
---|
36 | (define-boxed GdkVisual |
---|
37 | gdk_visual_ref |
---|
38 | gdk_visual_unref) |
---|
39 | |
---|
40 | (define-boxed GdkFont |
---|
41 | gdk_font_ref |
---|
42 | gdk_font_unref) |
---|
43 | |
---|
44 | (define-boxed GdkWindow |
---|
45 | gdk_window_ref |
---|
46 | gdk_window_unref) |
---|
47 | |
---|
48 | (define-boxed GdkDragContext |
---|
49 | gdk_drag_context_ref |
---|
50 | gdk_drag_context_unref) |
---|
51 | (define-boxed GdkEvent |
---|
52 | gdk_event_copy |
---|
53 | gdk_event_free |
---|
54 | "sizeof(GdkEvent)") |
---|
55 | |
---|
56 | (define-boxed GdkColor |
---|
57 | gdk_color_copy |
---|
58 | gdk_color_free |
---|
59 | "sizeof(GdkColor)") |
---|
60 | |
---|
61 | (define-func gtk_style_get_white_interp |
---|
62 | GdkColor |
---|
63 | ((GtkStyle style))) |
---|
64 | |
---|
65 | ;;; Functions |
---|
66 | |
---|
67 | ;; Gdk |
---|
68 | |
---|
69 | (define-func gdk_font_load |
---|
70 | GdkFont |
---|
71 | ((string name))) |
---|
72 | |
---|
73 | ;; main |
---|
74 | |
---|
75 | (define-func gtk_exit |
---|
76 | none |
---|
77 | ((int code (= "0")))) |
---|
78 | |
---|
79 | (define-func gtk_main |
---|
80 | none |
---|
81 | ()) |
---|
82 | |
---|
83 | (define-func gtk_main_quit |
---|
84 | none |
---|
85 | ()) |
---|
86 | |
---|
87 | (define-func gtk_main_iteration |
---|
88 | bool |
---|
89 | ()) |
---|
90 | |
---|
91 | (define-func gtk_timeout_add_interp |
---|
92 | int |
---|
93 | ((int interval) |
---|
94 | (callback function))) |
---|
95 | |
---|
96 | (define-func gtk_timeout_remove |
---|
97 | none |
---|
98 | ((int tag))) |
---|
99 | |
---|
100 | (define-func gtk_idle_add_interp |
---|
101 | int |
---|
102 | ((callback function))) |
---|
103 | |
---|
104 | (define-func gtk_idle_remove |
---|
105 | none |
---|
106 | ((int tag))) |
---|
107 | |
---|
108 | (define-func gtk_input_add_interp |
---|
109 | int |
---|
110 | ((int source) |
---|
111 | (GdkInputCondition condition) |
---|
112 | (callback callback))) |
---|
113 | |
---|
114 | (define-func gtk_input_remove |
---|
115 | none |
---|
116 | ((int tag))) |
---|
117 | |
---|
118 | (define-func gtk_rc_parse |
---|
119 | none |
---|
120 | ((string file))) |
---|
121 | |
---|
122 | (define-func g_mem_chunk_info |
---|
123 | none |
---|
124 | ()) |
---|
125 | |
---|
126 | ;; GtkObject |
---|
127 | |
---|
128 | (define-func gtk_object_destroy |
---|
129 | none |
---|
130 | ((GtkObject object))) |
---|
131 | |
---|
132 | ;; Signals |
---|
133 | |
---|
134 | (define-func gtk_signal_connect_interp |
---|
135 | int |
---|
136 | ((GtkObject object) |
---|
137 | (string name) |
---|
138 | (callback func) |
---|
139 | (bool after (= "0")))) |
---|
140 | |
---|
141 | ;; GtkWidget |
---|
142 | |
---|
143 | (define-object GtkWidget (GtkObject) |
---|
144 | (fields |
---|
145 | (GtkStyle style))) |
---|
146 | |
---|
147 | (define-func gtk_grab_add |
---|
148 | none |
---|
149 | ((GtkWidget widget))) |
---|
150 | |
---|
151 | (define-func gtk_grab_remove |
---|
152 | none |
---|
153 | ((GtkWidget widget))) |
---|
154 | |
---|
155 | (define-func GTK_WIDGET_STATE |
---|
156 | GtkStateType |
---|
157 | ((GtkWidget widget))) |
---|
158 | |
---|
159 | (define-func GTK_WIDGET_FLAGS |
---|
160 | GtkWidgetFlags |
---|
161 | ((GtkWidget widget))) |
---|
162 | |
---|
163 | (define-func GTK_WIDGET_SET_FLAGS |
---|
164 | none |
---|
165 | ((GtkWidget widget) |
---|
166 | (GtkWidgetFlags flags))) |
---|
167 | |
---|
168 | (define-func GTK_WIDGET_UNSET_FLAGS |
---|
169 | none |
---|
170 | ((GtkWidget widget) |
---|
171 | (GtkWidgetFlags flags))) |
---|
172 | |
---|
173 | (define-func gtk_widget_destroy |
---|
174 | none |
---|
175 | ((GtkWidget widget))) |
---|
176 | |
---|
177 | (define-func gtk_widget_unparent |
---|
178 | none |
---|
179 | ((GtkWidget widget))) |
---|
180 | |
---|
181 | (define-func gtk_widget_show |
---|
182 | none |
---|
183 | ((GtkWidget widget))) |
---|
184 | |
---|
185 | (define-func gtk_widget_hide |
---|
186 | none |
---|
187 | ((GtkWidget widget))) |
---|
188 | |
---|
189 | (define-func gtk_widget_map |
---|
190 | none |
---|
191 | ((GtkWidget widget))) |
---|
192 | |
---|
193 | (define-func gtk_widget_unmap |
---|
194 | none |
---|
195 | ((GtkWidget widget))) |
---|
196 | |
---|
197 | (define-func gtk_widget_realize |
---|
198 | none |
---|
199 | ((GtkWidget widget))) |
---|
200 | |
---|
201 | (define-func gtk_widget_unrealize |
---|
202 | none |
---|
203 | ((GtkWidget widget))) |
---|
204 | |
---|
205 | (define-func gtk_widget_add_accelerator |
---|
206 | none |
---|
207 | ((GtkWidget widget) |
---|
208 | (string accel_signal) |
---|
209 | (GtkAccelGroup accel_group) |
---|
210 | (guint accel_key) |
---|
211 | (guint accel_mods) |
---|
212 | (GtkAccelFlags accel_flags))) |
---|
213 | |
---|
214 | (define-func gtk_widget_remove_accelerator |
---|
215 | none |
---|
216 | ((GtkWidget widget) |
---|
217 | (GtkAccelGroup accel_group) |
---|
218 | (guint accel_key) |
---|
219 | (guint accel_mods))) |
---|
220 | |
---|
221 | (define-func gtk_widget_event |
---|
222 | bool |
---|
223 | ((GtkWidget widget) |
---|
224 | (GdkEvent event))) |
---|
225 | |
---|
226 | (define-func gtk_widget_activate |
---|
227 | none |
---|
228 | ((GtkWidget widget))) |
---|
229 | |
---|
230 | (define-func gtk_widget_reparent |
---|
231 | none |
---|
232 | ((GtkWidget widget) |
---|
233 | (GtkWidget new_parent))) |
---|
234 | |
---|
235 | (define-func gtk_widget_popup |
---|
236 | none |
---|
237 | ((GtkWidget widget) |
---|
238 | (int x) |
---|
239 | (int y))) |
---|
240 | |
---|
241 | (define-func gtk_widget_basic |
---|
242 | bool |
---|
243 | ((GtkWidget widget))) |
---|
244 | |
---|
245 | (define-func gtk_widget_grab_focus |
---|
246 | none |
---|
247 | ((GtkWidget widget))) |
---|
248 | |
---|
249 | (define-func gtk_widget_grab_default |
---|
250 | none |
---|
251 | ((GtkWidget widget))) |
---|
252 | |
---|
253 | (define-func gtk_widget_restore_state |
---|
254 | none |
---|
255 | ((GtkWidget widget))) |
---|
256 | |
---|
257 | (define-func gtk_widget_set_name |
---|
258 | none |
---|
259 | ((GtkWidget widget) |
---|
260 | (string name))) |
---|
261 | |
---|
262 | (define-func gtk_widget_get_name |
---|
263 | static_string |
---|
264 | ((GtkWidget widget))) |
---|
265 | |
---|
266 | (define-func gtk_widget_set_state |
---|
267 | none |
---|
268 | ((GtkWidget widget) |
---|
269 | (GtkStateType state))) |
---|
270 | |
---|
271 | (define-func gtk_widget_set_sensitive |
---|
272 | none |
---|
273 | ((GtkWidget widget) |
---|
274 | (bool sensitive))) |
---|
275 | |
---|
276 | (define-func gtk_widget_set_style |
---|
277 | none |
---|
278 | ((GtkWidget widget) |
---|
279 | (GtkStyle style))) |
---|
280 | |
---|
281 | (define-func gtk_widget_set_uposition |
---|
282 | none |
---|
283 | ((GtkWidget widget) |
---|
284 | (int x) |
---|
285 | (int y))) |
---|
286 | |
---|
287 | (define-func gtk_widget_set_usize |
---|
288 | none |
---|
289 | ((GtkWidget widget) |
---|
290 | (int height) |
---|
291 | (int width))) |
---|
292 | |
---|
293 | (define-func gtk_widget_set_events |
---|
294 | none |
---|
295 | ((GtkWidget widget) |
---|
296 | (GdkEventMask events))) |
---|
297 | |
---|
298 | (define-func gtk_widget_set_extension_events |
---|
299 | none |
---|
300 | ((GtkWidget widget) |
---|
301 | (GdkEventMask events))) |
---|
302 | |
---|
303 | (define-func gtk_widget_get_toplevel |
---|
304 | GtkWidget |
---|
305 | ((GtkWidget widget))) |
---|
306 | |
---|
307 | ;(define-func gtk_widget_get_ancestor |
---|
308 | ; GtkWidget |
---|
309 | ; ((GtkWidget widget) |
---|
310 | ; (GtkType type))) |
---|
311 | |
---|
312 | (define-func gtk_widget_get_colormap |
---|
313 | GdkColormap |
---|
314 | ((GtkWidget widget))) |
---|
315 | |
---|
316 | (define-func gtk_widget_get_visual |
---|
317 | GdkVisual |
---|
318 | ((GtkWidget widget))) |
---|
319 | |
---|
320 | (define-func gtk_widget_get_style |
---|
321 | GtkStyle |
---|
322 | ((GtkWidget widget))) |
---|
323 | |
---|
324 | (define-func gtk_widget_get_events |
---|
325 | GdkEventMask |
---|
326 | ((GtkWidget widget))) |
---|
327 | |
---|
328 | (define-func gtk_widget_get_extension_events |
---|
329 | GdkEventMask |
---|
330 | ((GtkWidget widget))) |
---|
331 | |
---|
332 | (define-func gtk_widget_push_colormap |
---|
333 | none |
---|
334 | ((GdkColormap cmap))) |
---|
335 | |
---|
336 | (define-func gtk_widget_push_visual |
---|
337 | none |
---|
338 | ((GdkVisual visual))) |
---|
339 | |
---|
340 | (define-func gtk_widget_push_style |
---|
341 | none |
---|
342 | ((GtkStyle style))) |
---|
343 | |
---|
344 | (define-func gtk_widget_pop_colormap |
---|
345 | none |
---|
346 | ()) |
---|
347 | |
---|
348 | (define-func gtk_widget_pop_visual |
---|
349 | none |
---|
350 | ()) |
---|
351 | |
---|
352 | (define-func gtk_widget_pop_style |
---|
353 | none |
---|
354 | ()) |
---|
355 | |
---|
356 | (define-func gtk_widget_set_default_colormap |
---|
357 | none |
---|
358 | ((GdkColormap cmap))) |
---|
359 | |
---|
360 | (define-func gtk_widget_set_default_visual |
---|
361 | none |
---|
362 | ((GdkVisual visual))) |
---|
363 | |
---|
364 | (define-func gtk_widget_set_default_style |
---|
365 | none |
---|
366 | ((GtkStyle style))) |
---|
367 | |
---|
368 | (define-func gtk_widget_get_default_colormap |
---|
369 | GdkColormap |
---|
370 | ()) |
---|
371 | |
---|
372 | (define-func gtk_widget_get_default_visual |
---|
373 | GdkVisual |
---|
374 | ()) |
---|
375 | |
---|
376 | (define-func gtk_widget_get_default_style |
---|
377 | GtkStyle |
---|
378 | ()) |
---|
379 | |
---|
380 | ;;; Container |
---|
381 | |
---|
382 | (define-object GtkContainer (GtkWidget)) |
---|
383 | |
---|
384 | (define-func gtk_container_border_width |
---|
385 | none |
---|
386 | ((GtkContainer container) |
---|
387 | (int border_width))) |
---|
388 | |
---|
389 | (define-func gtk_container_add |
---|
390 | none |
---|
391 | ((GtkContainer container) |
---|
392 | (GtkWidget widget))) |
---|
393 | |
---|
394 | (define-func gtk_container_remove |
---|
395 | none |
---|
396 | ((GtkContainer container) |
---|
397 | (GtkWidget widget))) |
---|
398 | |
---|
399 | (define-func gtk_container_disable_resize |
---|
400 | none |
---|
401 | ((GtkContainer container))) |
---|
402 | |
---|
403 | (define-func gtk_container_enable_resize |
---|
404 | none |
---|
405 | ((GtkContainer container))) |
---|
406 | |
---|
407 | (define-func gtk_container_block_resize |
---|
408 | none |
---|
409 | ((GtkContainer container))) |
---|
410 | |
---|
411 | (define-func gtk_container_unblock_resize |
---|
412 | none |
---|
413 | ((GtkContainer container))) |
---|
414 | |
---|
415 | (define-func gtk_container_need_resize |
---|
416 | bool |
---|
417 | ((GtkContainer container))) |
---|
418 | |
---|
419 | (define-func gtk_container_focus |
---|
420 | GtkDirectionType |
---|
421 | ((GtkContainer container) |
---|
422 | (GtkDirectionType direction))) |
---|
423 | |
---|
424 | ;;; Bin |
---|
425 | |
---|
426 | (define-object GtkBin (GtkContainer)) |
---|
427 | |
---|
428 | ;;; Window |
---|
429 | |
---|
430 | (define-object GtkWindow (GtkBin)) |
---|
431 | |
---|
432 | (define-func gtk_window_new |
---|
433 | GtkWidget |
---|
434 | ((GtkWindowType type))) |
---|
435 | |
---|
436 | (define-func gtk_window_set_title |
---|
437 | none |
---|
438 | ((GtkWindow window) |
---|
439 | (string title))) |
---|
440 | |
---|
441 | (define-func gtk_window_set_focus |
---|
442 | none |
---|
443 | ((GtkWindow window) |
---|
444 | (GtkWidget focus))) |
---|
445 | |
---|
446 | (define-func gtk_window_set_default |
---|
447 | none |
---|
448 | ((GtkWindow window) |
---|
449 | (GtkWidget default))) |
---|
450 | |
---|
451 | (define-func gtk_window_set_policy |
---|
452 | none |
---|
453 | ((GtkWindow window) |
---|
454 | (bool allow_shrink) |
---|
455 | (bool allow_grow) |
---|
456 | (bool auto_shrink))) |
---|
457 | |
---|
458 | (define-func gtk_window_add_accel_group |
---|
459 | none |
---|
460 | ((GtkWindow window) |
---|
461 | (GtkAccelGroup accel_group))) |
---|
462 | |
---|
463 | (define-func gtk_window_remove_accel_group |
---|
464 | none |
---|
465 | ((GtkWindow window) |
---|
466 | (GtkAccelGroup accel_group))) |
---|
467 | |
---|
468 | (define-func gtk_window_position |
---|
469 | none |
---|
470 | ((GtkWindow window) |
---|
471 | (GtkWindowPosition position))) |
---|
472 | |
---|
473 | ;;; Box |
---|
474 | |
---|
475 | (define-object GtkBox (GtkContainer)) |
---|
476 | |
---|
477 | (define-func gtk_box_pack_start |
---|
478 | none |
---|
479 | ((GtkBox box) |
---|
480 | (GtkWidget child) |
---|
481 | (bool expand (= "TRUE")) |
---|
482 | (bool fill (= "TRUE")) |
---|
483 | (int padding (= "0")))) |
---|
484 | |
---|
485 | (define-func gtk_box_pack_end |
---|
486 | none |
---|
487 | ((GtkBox box) |
---|
488 | (GtkWidget child) |
---|
489 | (bool expand (= "TRUE")) |
---|
490 | (bool fill (= "TRUE")) |
---|
491 | (int padding (= "0")))) |
---|
492 | |
---|
493 | (define-func gtk_box_pack_start_defaults |
---|
494 | none |
---|
495 | ((GtkBox box) |
---|
496 | (GtkWidget child))) |
---|
497 | |
---|
498 | (define-func gtk_box_pack_end_defaults |
---|
499 | none |
---|
500 | ((GtkBox box) |
---|
501 | (GtkWidget child))) |
---|
502 | |
---|
503 | (define-func gtk_box_set_homogeneous |
---|
504 | none |
---|
505 | ((GtkBox box) |
---|
506 | (bool homogenous))) |
---|
507 | |
---|
508 | (define-func gtk_box_set_spacing |
---|
509 | none |
---|
510 | ((GtkBox box) |
---|
511 | (int spacing))) |
---|
512 | |
---|
513 | ;;; Table |
---|
514 | |
---|
515 | (define-object GtkTable (GtkContainer)) |
---|
516 | |
---|
517 | (define-func gtk_table_new |
---|
518 | GtkWidget |
---|
519 | ((int rows) |
---|
520 | (int columns) |
---|
521 | (bool homogenous))) |
---|
522 | |
---|
523 | (define-func gtk_table_attach |
---|
524 | none |
---|
525 | ((GtkTable table) |
---|
526 | (GtkWidget child) |
---|
527 | (int left_attach) |
---|
528 | (int right_attach) |
---|
529 | (int top_attach) |
---|
530 | (int bottom_attach) |
---|
531 | (GtkAttachOptions xoptions (= "GTK_EXPAND|GTK_FILL")) |
---|
532 | (GtkAttachOptions yoptions (= "GTK_EXPAND|GTK_FILL")) |
---|
533 | (int xpadding (= "0")) |
---|
534 | (int ypadding (= "0")))) |
---|
535 | |
---|
536 | (define-func gtk_table_attach_defaults |
---|
537 | none |
---|
538 | ((GtkTable table) |
---|
539 | (GtkWidget child) |
---|
540 | (int left_attach) |
---|
541 | (int right_attach) |
---|
542 | (int top_attach) |
---|
543 | (int bottom_attach))) |
---|
544 | |
---|
545 | (define-func gtk_table_set_row_spacing |
---|
546 | none |
---|
547 | ((GtkTable table) |
---|
548 | (int row) |
---|
549 | (int spacing))) |
---|
550 | |
---|
551 | (define-func gtk_table_set_col_spacing |
---|
552 | none |
---|
553 | ((GtkTable table) |
---|
554 | (int column) |
---|
555 | (int spacing))) |
---|
556 | |
---|
557 | (define-func gtk_table_set_row_spacings |
---|
558 | none |
---|
559 | ((GtkTable table) |
---|
560 | (int spacing))) |
---|
561 | |
---|
562 | (define-func gtk_table_set_col_spacings |
---|
563 | none |
---|
564 | ((GtkTable table) |
---|
565 | (int spacing))) |
---|
566 | |
---|
567 | ;;; Button |
---|
568 | |
---|
569 | (define-object GtkButton (GtkContainer)) |
---|
570 | |
---|
571 | (define-func gtk_button_new |
---|
572 | GtkWidget |
---|
573 | ()) |
---|
574 | |
---|
575 | (define-func gtk_button_new_with_label |
---|
576 | GtkWidget |
---|
577 | ((string label))) |
---|
578 | |
---|
579 | (define-func gtk_button_pressed |
---|
580 | none |
---|
581 | ((GtkButton button))) |
---|
582 | |
---|
583 | (define-func gtk_button_released |
---|
584 | none |
---|
585 | ((GtkButton button))) |
---|
586 | |
---|
587 | (define-func gtk_button_clicked |
---|
588 | none |
---|
589 | ((GtkButton button))) |
---|
590 | |
---|
591 | (define-func gtk_button_enter |
---|
592 | none |
---|
593 | ((GtkButton button))) |
---|
594 | |
---|
595 | (define-func gtk_button_leave |
---|
596 | none |
---|
597 | ((GtkButton button))) |
---|
598 | |
---|
599 | ;;; ToggleButton |
---|
600 | |
---|
601 | (define-object GtkToggleButton (GtkButton)) |
---|
602 | |
---|
603 | (define-func gtk_toggle_button_new |
---|
604 | GtkWidget |
---|
605 | ()) |
---|
606 | |
---|
607 | (define-func gtk_toggle_button_new_with_label |
---|
608 | GtkWidget |
---|
609 | ((string label))) |
---|
610 | |
---|
611 | (define-func gtk_toggle_button_set_mode |
---|
612 | none |
---|
613 | ((GtkToggleButton toggle_button) |
---|
614 | (bool draw_indicator))) |
---|
615 | |
---|
616 | (define-func gtk_toggle_button_set_state |
---|
617 | none |
---|
618 | ((GtkToggleButton toggle_button) |
---|
619 | (bool state))) |
---|
620 | |
---|
621 | (define-func gtk_toggle_button_toggled |
---|
622 | none |
---|
623 | ((GtkToggleButton toggle_button))) |
---|
624 | |
---|
625 | ;;; CheckButton |
---|
626 | |
---|
627 | (define-object GtkCheckButton (GtkToggleButton)) |
---|
628 | |
---|
629 | (define-func gtk_check_button_new |
---|
630 | GtkWidget |
---|
631 | ()) |
---|
632 | |
---|
633 | (define-func gtk_check_button_new_with_label |
---|
634 | GtkWidget |
---|
635 | ((string label))) |
---|
636 | |
---|
637 | ;;; RadioButton |
---|
638 | |
---|
639 | (define-object GtkRadioButton (GtkCheckButton)) |
---|
640 | |
---|
641 | (define-func gtk_radio_button_new_interp |
---|
642 | GtkWidget |
---|
643 | ((GtkRadioButton group (null-ok)))) |
---|
644 | |
---|
645 | (define-func gtk_radio_button_new_with_label_interp |
---|
646 | GtkWidget |
---|
647 | ((GtkRadioButton group (null-ok)) |
---|
648 | (string label))) |
---|
649 | |
---|
650 | ;;; Misc |
---|
651 | |
---|
652 | (define-object GtkMisc (GtkWidget)) |
---|
653 | |
---|
654 | (define-func gtk_misc_set_alignment |
---|
655 | none |
---|
656 | ((GtkMisc misc) |
---|
657 | (float xalign) |
---|
658 | (float yalign))) |
---|
659 | |
---|
660 | (define-func gtk_misc_set_padding |
---|
661 | none |
---|
662 | ((GtkMisc misc) |
---|
663 | (int xpad) |
---|
664 | (int ypad))) |
---|
665 | |
---|
666 | ;;; Label |
---|
667 | |
---|
668 | (define-object GtkLabel (GtkMisc)) |
---|
669 | |
---|
670 | (define-func gtk_label_new |
---|
671 | GtkWidget |
---|
672 | ((string str))) |
---|
673 | |
---|
674 | (define-func gtk_label_set |
---|
675 | none |
---|
676 | ((GtkLabel label) |
---|
677 | (string str))) |
---|
678 | |
---|
679 | (define-func gtk_label_get_interp |
---|
680 | static_string |
---|
681 | ((GtkLabel label))) |
---|
682 | |
---|
683 | ;; VBox |
---|
684 | |
---|
685 | (define-object GtkVBox (GtkBox)) |
---|
686 | |
---|
687 | (define-func gtk_vbox_new |
---|
688 | GtkWidget |
---|
689 | ((bool homogenous) |
---|
690 | (int spacing))) |
---|
691 | |
---|
692 | ;; HBox |
---|
693 | |
---|
694 | (define-object GtkHBox (GtkBox)) |
---|
695 | |
---|
696 | (define-func gtk_hbox_new |
---|
697 | GtkWidget |
---|
698 | ((bool homogenous) |
---|
699 | (int spacing))) |
---|
700 | |
---|
701 | ;; Separator |
---|
702 | |
---|
703 | (define-object GtkSeparator (GtkWidget)) |
---|
704 | |
---|
705 | ;; HSeparator |
---|
706 | |
---|
707 | (define-object GtkHSeparator (GtkSeparator)) |
---|
708 | |
---|
709 | (define-func gtk_hseparator_new |
---|
710 | GtkWidget |
---|
711 | ()) |
---|
712 | |
---|
713 | ;; VSeparator |
---|
714 | |
---|
715 | (define-object GtkVSeparator (GtkSeparator)) |
---|
716 | |
---|
717 | (define-func gtk_vseparator_new |
---|
718 | GtkWidget |
---|
719 | ()) |
---|
720 | |
---|
721 | ;; Frame |
---|
722 | |
---|
723 | (define-object GtkFrame (GtkBin)) |
---|
724 | |
---|
725 | (define-func gtk_frame_new |
---|
726 | GtkWidget |
---|
727 | ((string label (null-ok)))) |
---|
728 | |
---|
729 | (define-func gtk_frame_set_label |
---|
730 | none |
---|
731 | ((GtkFrame frame) |
---|
732 | (string label))) |
---|
733 | |
---|
734 | (define-func gtk_frame_set_label_align |
---|
735 | none |
---|
736 | ((GtkFrame frame) |
---|
737 | (float xalign) |
---|
738 | (float yalign))) |
---|
739 | |
---|
740 | (define-func gtk_frame_set_shadow_type |
---|
741 | none |
---|
742 | ((GtkFrame frame) |
---|
743 | (GtkShadowType type))) |
---|
744 | |
---|
745 | ;; Progress Bar |
---|
746 | |
---|
747 | (define-object GtkProgressBar (GtkWidget) |
---|
748 | (fields |
---|
749 | (float percentage))) |
---|
750 | |
---|
751 | (define-func gtk_progress_bar_new |
---|
752 | GtkWidget |
---|
753 | ()) |
---|
754 | |
---|
755 | (define-func gtk_progress_bar_update |
---|
756 | none |
---|
757 | ((GtkProgressBar progress_bar) |
---|
758 | (float percentage))) |
---|
759 | |
---|
760 | ;(define-func gtk_progress_bar_percentage |
---|
761 | ; float |
---|
762 | ; ((GtkProgressBar progress_bar))) |
---|
763 | |
---|
764 | ;; Tooltips |
---|
765 | |
---|
766 | (define-object GtkTooltips (GtkData)) |
---|
767 | |
---|
768 | (define-func gtk_tooltips_new |
---|
769 | GtkTooltips |
---|
770 | ()) |
---|
771 | |
---|
772 | (define-func gtk_tooltips_destroy |
---|
773 | none |
---|
774 | ((GtkTooltips tooltips))) |
---|
775 | |
---|
776 | (define-func gtk_tooltips_enable |
---|
777 | none |
---|
778 | ((GtkTooltips tooltips))) |
---|
779 | |
---|
780 | (define-func gtk_tooltips_disable |
---|
781 | none |
---|
782 | ((GtkTooltips tooltips))) |
---|
783 | |
---|
784 | (define-func gtk_tooltips_set_delay |
---|
785 | none |
---|
786 | ((GtkTooltips tooltips) |
---|
787 | (int delay))) |
---|
788 | |
---|
789 | (define-func gtk_tooltips_set_tips |
---|
790 | none |
---|
791 | ((GtkTooltips tooltips) |
---|
792 | (GtkWidget widget) |
---|
793 | (string tips_text (null-ok)))) |
---|
794 | |
---|
795 | (define-func gtk_tooltips_set_colors |
---|
796 | none |
---|
797 | ((GtkTooltips tooltips) |
---|
798 | (GdkColor background) |
---|
799 | (GdkColor foreground))) |
---|
800 | |
---|
801 | ;; MenuShell |
---|
802 | |
---|
803 | (define-object GtkMenuShell (GtkContainer)) |
---|
804 | |
---|
805 | (define-func gtk_menu_shell_append |
---|
806 | none |
---|
807 | ((GtkMenuShell menu_shell) |
---|
808 | (GtkWidget child))) |
---|
809 | |
---|
810 | (define-func gtk_menu_shell_prepend |
---|
811 | none |
---|
812 | ((GtkMenuShell menu_shell) |
---|
813 | (GtkWidget child))) |
---|
814 | |
---|
815 | (define-func gtk_menu_shell_insert |
---|
816 | none |
---|
817 | ((GtkMenuShell menu_shell) |
---|
818 | (GtkWidget child) |
---|
819 | (int position))) |
---|
820 | |
---|
821 | (define-func gtk_menu_shell_deactivate |
---|
822 | none |
---|
823 | ((GtkMenuShell menu_shell))) |
---|
824 | |
---|
825 | ;; MenuBar |
---|
826 | |
---|
827 | (define-object GtkMenuBar (GtkMenuShell)) |
---|
828 | |
---|
829 | (define-func gtk_menu_bar_new |
---|
830 | GtkWidget |
---|
831 | ()) |
---|
832 | |
---|
833 | (define-func gtk_menu_bar_append |
---|
834 | none |
---|
835 | ((GtkMenuBar menu_bar) |
---|
836 | (GtkWidget child))) |
---|
837 | |
---|
838 | (define-func gtk_menu_bar_prepend |
---|
839 | none |
---|
840 | ((GtkMenuBar menu_bar) |
---|
841 | (GtkWidget child))) |
---|
842 | |
---|
843 | (define-func gtk_menu_bar_insert |
---|
844 | none |
---|
845 | ((GtkMenuBar menu_bar) |
---|
846 | (GtkWidget child) |
---|
847 | (int position))) |
---|
848 | |
---|
849 | ;; Menu |
---|
850 | |
---|
851 | (define-object GtkMenu (GtkMenuShell)) |
---|
852 | |
---|
853 | (define-func gtk_menu_new |
---|
854 | GtkWidget |
---|
855 | ()) |
---|
856 | |
---|
857 | (define-func gtk_menu_append |
---|
858 | none |
---|
859 | ((GtkMenu menu) |
---|
860 | (GtkWidget child))) |
---|
861 | |
---|
862 | (define-func gtk_menu_prepend |
---|
863 | none |
---|
864 | ((GtkMenu menu) |
---|
865 | (GtkWidget child))) |
---|
866 | |
---|
867 | (define-func gtk_menu_insert |
---|
868 | none |
---|
869 | ((GtkMenu menu) |
---|
870 | (GtkWidget child) |
---|
871 | (int position))) |
---|
872 | |
---|
873 | (define-func gtk_menu_popup_interp |
---|
874 | none |
---|
875 | ((GtkMenu menu) |
---|
876 | (GtkWidget parent_menu_shell) |
---|
877 | (GtkWidget parent_menu_item) |
---|
878 | (int button) |
---|
879 | (int activate_time))) |
---|
880 | |
---|
881 | (define-func gtk_menu_popdown |
---|
882 | none |
---|
883 | ((GtkMenu menu))) |
---|
884 | |
---|
885 | (define-func gtk_menu_get_active |
---|
886 | GtkWidget |
---|
887 | ((GtkMenu menu))) |
---|
888 | |
---|
889 | (define-func gtk_menu_set_active |
---|
890 | none |
---|
891 | ((GtkMenu menu) |
---|
892 | (int index))) |
---|
893 | |
---|
894 | (define-func gtk_menu_set_accel_group |
---|
895 | none |
---|
896 | ((GtkMenu menu) |
---|
897 | (GtkAccelGroup accel_group))) |
---|
898 | |
---|
899 | |
---|
900 | ;; Item |
---|
901 | |
---|
902 | (define-object GtkItem (GtkBin)) |
---|
903 | |
---|
904 | (define-func gtk_item_select |
---|
905 | none |
---|
906 | ((GtkItem item))) |
---|
907 | |
---|
908 | (define-func gtk_item_deselect |
---|
909 | none |
---|
910 | ((GtkItem item))) |
---|
911 | |
---|
912 | (define-func gtk_item_toggle |
---|
913 | none |
---|
914 | ((GtkItem item))) |
---|
915 | |
---|
916 | ;; MenuItem |
---|
917 | |
---|
918 | (define-object GtkMenuItem (GtkItem)) |
---|
919 | |
---|
920 | (define-func gtk_menu_item_new |
---|
921 | GtkWidget |
---|
922 | ()) |
---|
923 | |
---|
924 | (define-func gtk_menu_item_new_with_label |
---|
925 | GtkWidget |
---|
926 | ((string label))) |
---|
927 | |
---|
928 | (define-func gtk_menu_item_set_submenu |
---|
929 | none |
---|
930 | ((GtkMenuItem menu_item) |
---|
931 | (GtkWidget submenu))) |
---|
932 | |
---|
933 | (define-func gtk_menu_item_set_placement |
---|
934 | none |
---|
935 | ((GtkMenuItem menu_item) |
---|
936 | (GtkSubmenuPlacement placement))) |
---|
937 | |
---|
938 | (define-func gtk_menu_item_configure |
---|
939 | none |
---|
940 | ((GtkMenuItem menu_item) |
---|
941 | (bool show_toggle_indicator) |
---|
942 | (bool show_submenu_indicator))) |
---|
943 | |
---|
944 | (define-func gtk_menu_item_select |
---|
945 | none |
---|
946 | ((GtkMenuItem menu_item))) |
---|
947 | |
---|
948 | (define-func gtk_menu_item_deselect |
---|
949 | none |
---|
950 | ((GtkMenuItem menu_item))) |
---|
951 | |
---|
952 | (define-func gtk_menu_item_activate |
---|
953 | none |
---|
954 | ((GtkMenuItem menu_item))) |
---|
955 | |
---|
956 | ;; CheckMenuItem |
---|
957 | |
---|
958 | (define-object GtkCheckMenuItem (GtkMenuItem)) |
---|
959 | |
---|
960 | (define-func gtk_check_menu_item_new |
---|
961 | GtkWidget |
---|
962 | ()) |
---|
963 | |
---|
964 | (define-func gtk_check_menu_item_new_with_label |
---|
965 | GtkWidget |
---|
966 | ((string label))) |
---|
967 | |
---|
968 | (define-func gtk_check_menu_item_set_state |
---|
969 | none |
---|
970 | ((GtkCheckMenuItem check_menu_item) |
---|
971 | (bool state))) |
---|
972 | |
---|
973 | (define-func gtk_check_menu_item_toggled |
---|
974 | none |
---|
975 | ((GtkCheckMenuItem check_menu_item))) |
---|
976 | |
---|
977 | ;; RadioMenuItem |
---|
978 | |
---|
979 | (define-object GtkRadioMenuItem (GtkCheckMenuItem)) |
---|
980 | |
---|
981 | (define-func gtk_radio_menu_item_new_interp |
---|
982 | GtkWidget |
---|
983 | ((GtkRadioMenuItem group (null-ok)))) |
---|
984 | |
---|
985 | (define-func gtk_radio_menu_item_new_with_label_interp |
---|
986 | GtkWidget |
---|
987 | ((GtkRadioMenuItem group (null-ok)) |
---|
988 | (string label))) |
---|
989 | |
---|
990 | ;; OptionMenu |
---|
991 | |
---|
992 | (define-object GtkOptionMenu (GtkButton)) |
---|
993 | |
---|
994 | (define-func gtk_option_menu_new |
---|
995 | GtkWidget |
---|
996 | ()) |
---|
997 | |
---|
998 | (define-func gtk_option_menu_get_menu |
---|
999 | GtkWidget |
---|
1000 | ((GtkOptionMenu option_menu))) |
---|
1001 | |
---|
1002 | (define-func gtk_option_menu_set_menu |
---|
1003 | none |
---|
1004 | ((GtkOptionMenu option_menu) |
---|
1005 | (GtkWidget menu))) |
---|
1006 | |
---|
1007 | (define-func gtk_option_menu_remove_menu |
---|
1008 | none |
---|
1009 | ((GtkOptionMenu option_menu))) |
---|
1010 | |
---|
1011 | (define-func gtk_option_menu_set_history |
---|
1012 | none |
---|
1013 | ((GtkOptionMenu option_menu) |
---|
1014 | (int index))) |
---|
1015 | |
---|
1016 | ;; Pixmaps |
---|
1017 | |
---|
1018 | (define-object GtkPixmap (GtkMisc)) |
---|
1019 | |
---|
1020 | (define-func gtk_pixmap_new_interp |
---|
1021 | GtkWidget |
---|
1022 | ((string xpm_file) |
---|
1023 | (GtkWidget intended_parent))) |
---|
1024 | |
---|
1025 | ;; Data |
---|
1026 | |
---|
1027 | (define-object GtkData (GtkObject)) |
---|
1028 | |
---|
1029 | ;; Adjustment |
---|
1030 | |
---|
1031 | (define-object GtkAdjustment (GtkData)) |
---|
1032 | |
---|
1033 | (define-func gtk_adjustment_new |
---|
1034 | GtkObject |
---|
1035 | ((float value) |
---|
1036 | (float lower) |
---|
1037 | (float upper) |
---|
1038 | (float step_increment) |
---|
1039 | (float page_increment) |
---|
1040 | (float page_size))) |
---|
1041 | |
---|
1042 | ;; ScrolledWidow |
---|
1043 | |
---|
1044 | (define-object GtkScrolledWindow (GtkContainer)) |
---|
1045 | |
---|
1046 | (define-func gtk_scrolled_window_new |
---|
1047 | GtkWidget |
---|
1048 | ((GtkAdjustment hadjustment (null-ok) (= "NULL")) |
---|
1049 | (GtkAdjustment vadjustment (null-ok) (= "NULL")))) |
---|
1050 | |
---|
1051 | (define-func gtk_scrolled_window_get_hadjustment |
---|
1052 | GtkAdjustment |
---|
1053 | ((GtkScrolledWindow scrolled_window))) |
---|
1054 | |
---|
1055 | (define-func gtk_scrolled_window_get_vadjustment |
---|
1056 | GtkAdjustment |
---|
1057 | ((GtkScrolledWindow scrolled_window))) |
---|
1058 | |
---|
1059 | (define-func gtk_scrolled_window_set_policy |
---|
1060 | none |
---|
1061 | ((GtkScrolledWindow scrolled_window) |
---|
1062 | (GtkPolicyType hscrollbar_policy) |
---|
1063 | (GtkPolicyType vscrollbar_policy))) |
---|
1064 | |
---|
1065 | ;; ListItem |
---|
1066 | |
---|
1067 | (define-object GtkListItem (GtkItem)) |
---|
1068 | |
---|
1069 | (define-func gtk_list_item_new |
---|
1070 | GtkWidget |
---|
1071 | ()) |
---|
1072 | |
---|
1073 | (define-func gtk_list_item_new_with_label |
---|
1074 | GtkWidget |
---|
1075 | ((string label))) |
---|
1076 | |
---|
1077 | (define-func gtk_list_item_select |
---|
1078 | none |
---|
1079 | ((GtkListItem list_item))) |
---|
1080 | |
---|
1081 | (define-func gtk_list_item_deselect |
---|
1082 | none |
---|
1083 | ((GtkListItem list_item))) |
---|
1084 | |
---|
1085 | ;; List |
---|
1086 | |
---|
1087 | (define-object GtkList (GtkContainer)) |
---|
1088 | |
---|
1089 | (define-func gtk_list_new |
---|
1090 | GtkWidget |
---|
1091 | ()) |
---|
1092 | |
---|
1093 | (define-func gtk_list_append_item |
---|
1094 | none |
---|
1095 | ((GtkList list) |
---|
1096 | (GtkListItem item))) |
---|
1097 | |
---|
1098 | (define-func gtk_list_prepend_item |
---|
1099 | none |
---|
1100 | ((GtkList list) |
---|
1101 | (GtkListItem item))) |
---|
1102 | |
---|
1103 | ;; XXX many missing |
---|
1104 | |
---|
1105 | (define-func gtk_list_clear_items |
---|
1106 | none |
---|
1107 | ((GtkList list) |
---|
1108 | (int start) |
---|
1109 | (int end))) |
---|
1110 | |
---|
1111 | (define-func gtk_list_select_item |
---|
1112 | none |
---|
1113 | ((GtkList list) |
---|
1114 | (int item))) |
---|
1115 | |
---|
1116 | (define-func gtk_list_unselect_item |
---|
1117 | none |
---|
1118 | ((GtkList list) |
---|
1119 | (int item))) |
---|
1120 | |
---|
1121 | (define-func gtk_list_select_child |
---|
1122 | none |
---|
1123 | ((GtkList list) |
---|
1124 | (GtkWidget child))) |
---|
1125 | |
---|
1126 | (define-func gtk_list_unselect_child |
---|
1127 | none |
---|
1128 | ((GtkList list) |
---|
1129 | (GtkWidget child))) |
---|
1130 | |
---|
1131 | (define-func gtk_list_child_position |
---|
1132 | int |
---|
1133 | ((GtkList list) |
---|
1134 | (GtkWidget child))) |
---|
1135 | |
---|
1136 | (define-func gtk_list_set_selection_mode |
---|
1137 | none |
---|
1138 | ((GtkList list) |
---|
1139 | (GtkSelectionMode mode))) |
---|
1140 | |
---|
1141 | ;; Notebook |
---|
1142 | |
---|
1143 | (define-object GtkNotebook (GtkContainer) |
---|
1144 | (fields |
---|
1145 | (GtkPositionType tab_pos))) |
---|
1146 | |
---|
1147 | (define-func gtk_notebook_new |
---|
1148 | GtkWidget |
---|
1149 | ()) |
---|
1150 | |
---|
1151 | (define-func gtk_notebook_append_page |
---|
1152 | none |
---|
1153 | ((GtkNotebook notebook) |
---|
1154 | (GtkWidget child) |
---|
1155 | (GtkWidget tab_label))) |
---|
1156 | |
---|
1157 | (define-func gtk_notebook_prepend_page |
---|
1158 | none |
---|
1159 | ((GtkNotebook notebook) |
---|
1160 | (GtkWidget child) |
---|
1161 | (GtkWidget tab_label))) |
---|
1162 | |
---|
1163 | (define-func gtk_notebook_insert_page |
---|
1164 | none |
---|
1165 | ((GtkNotebook notebook) |
---|
1166 | (GtkWidget child) |
---|
1167 | (GtkWidget tab_label) |
---|
1168 | (int position))) |
---|
1169 | |
---|
1170 | (define-func gtk_notebook_remove_page |
---|
1171 | none |
---|
1172 | ((GtkNotebook notebook) |
---|
1173 | (int page_num))) |
---|
1174 | |
---|
1175 | (define-func gtk_notebook_current_page |
---|
1176 | int |
---|
1177 | ((GtkNotebook notebook))) |
---|
1178 | |
---|
1179 | (define-func gtk_notebook_set_page |
---|
1180 | none |
---|
1181 | ((GtkNotebook notebook) |
---|
1182 | (int page_num))) |
---|
1183 | |
---|
1184 | (define-func gtk_notebook_next_page |
---|
1185 | none |
---|
1186 | ((GtkNotebook notebook))) |
---|
1187 | |
---|
1188 | (define-func gtk_notebook_prev_page |
---|
1189 | none |
---|
1190 | ((GtkNotebook notebook))) |
---|
1191 | |
---|
1192 | (define-func gtk_notebook_set_tab_pos |
---|
1193 | none |
---|
1194 | ((GtkNotebook notebook) |
---|
1195 | (GtkPositionType pos))) |
---|
1196 | |
---|
1197 | (define-func gtk_notebook_set_show_tabs |
---|
1198 | none |
---|
1199 | ((GtkNotebook notebook) |
---|
1200 | (bool show_tabs))) |
---|
1201 | |
---|
1202 | (define-func gtk_notebook_set_show_border |
---|
1203 | none |
---|
1204 | ((GtkNotebook notebook) |
---|
1205 | (bool show_border))) |
---|
1206 | |
---|
1207 | ;; Entry |
---|
1208 | |
---|
1209 | (define-object GtkEntry (GtkWidget)) |
---|
1210 | |
---|
1211 | (define-func gtk_entry_new |
---|
1212 | GtkWidget |
---|
1213 | ()) |
---|
1214 | |
---|
1215 | (define-func gtk_entry_set_text |
---|
1216 | none |
---|
1217 | ((GtkEntry entry) |
---|
1218 | (string text))) |
---|
1219 | |
---|
1220 | (define-func gtk_entry_append_text |
---|
1221 | none |
---|
1222 | ((GtkEntry entry) |
---|
1223 | (string text))) |
---|
1224 | |
---|
1225 | (define-func gtk_entry_prepend_text |
---|
1226 | none |
---|
1227 | ((GtkEntry entry) |
---|
1228 | (string text))) |
---|
1229 | |
---|
1230 | (define-func gtk_entry_set_position |
---|
1231 | none |
---|
1232 | ((GtkEntry entry) |
---|
1233 | (int position))) |
---|
1234 | |
---|
1235 | (define-func gtk_entry_get_text |
---|
1236 | static_string |
---|
1237 | ((GtkEntry entry))) |
---|
1238 | |
---|
1239 | ;; Text |
---|
1240 | |
---|
1241 | (define-object GtkText (GtkWidget)) |
---|
1242 | |
---|
1243 | (define-func gtk_text_new |
---|
1244 | GtkWidget |
---|
1245 | ((GtkAdjustment hadj (null-ok)) |
---|
1246 | (GtkAdjustment vadj (null-ok)))) |
---|
1247 | |
---|
1248 | (define-func gtk_text_set_editable |
---|
1249 | none |
---|
1250 | ((GtkText text) |
---|
1251 | (bool editable))) |
---|
1252 | |
---|
1253 | (define-func gtk_text_set_adjustments |
---|
1254 | none |
---|
1255 | ((GtkText text) |
---|
1256 | (GtkAdjustment hadj) |
---|
1257 | (GtkAdjustment vadj))) |
---|
1258 | |
---|
1259 | (define-func gtk_text_set_point |
---|
1260 | none |
---|
1261 | ((GtkText text) |
---|
1262 | (uint index))) |
---|
1263 | |
---|
1264 | (define-func gtk_text_get_point |
---|
1265 | uint |
---|
1266 | ((GtkText text))) |
---|
1267 | |
---|
1268 | (define-func gtk_text_get_length |
---|
1269 | uint |
---|
1270 | ((GtkText text))) |
---|
1271 | |
---|
1272 | (define-func gtk_text_freeze |
---|
1273 | none |
---|
1274 | ((GtkText text))) |
---|
1275 | |
---|
1276 | (define-func gtk_text_thaw |
---|
1277 | none |
---|
1278 | ((GtkText text))) |
---|
1279 | |
---|
1280 | (define-func gtk_text_insert |
---|
1281 | none |
---|
1282 | ((GtkText text) |
---|
1283 | (GdkFont font (null-ok)) |
---|
1284 | (GdkColor fore (null-ok)) |
---|
1285 | (GdkColor back (null-ok)) |
---|
1286 | (string chars) |
---|
1287 | (int length))) |
---|
1288 | |
---|
1289 | (define-func gtk_text_backward_delete |
---|
1290 | none |
---|
1291 | ((GtkText text) |
---|
1292 | (uint nchars))) |
---|
1293 | |
---|
1294 | (define-func gtk_text_foreward_delete |
---|
1295 | none |
---|
1296 | ((GtkText text) |
---|
1297 | (uint nchars))) |
---|
1298 | |
---|
1299 | ;; Alignment |
---|
1300 | |
---|
1301 | (define-object GtkAlignment (GtkBin)) |
---|
1302 | |
---|
1303 | (define-func gtk_alignment_new |
---|
1304 | GtkWidget |
---|
1305 | ((float xalign) |
---|
1306 | (float yalign) |
---|
1307 | (float xscale) |
---|
1308 | (float yscale))) |
---|
1309 | |
---|
1310 | (define-func gtk_alignment_set |
---|
1311 | none |
---|
1312 | ((GtkAlignment alignment) |
---|
1313 | (float xalign) |
---|
1314 | (float yalign) |
---|
1315 | (float xscale) |
---|
1316 | (float yscale))) |
---|
1317 | |
---|
1318 | ;; Color |
---|
1319 | |
---|
1320 | ; XXX lots missing |
---|
1321 | |
---|
1322 | (define-func gdk_color_parse_interp |
---|
1323 | GdkColor |
---|
1324 | ((string spec))) |
---|
1325 | |
---|
1326 | ;; Preview |
---|
1327 | |
---|
1328 | (define-object GtkPreview (GtkWidget)) |
---|
1329 | |
---|
1330 | ;; XXX lots missing |
---|
1331 | |
---|
1332 | (define-func gtk_preview_set_install_cmap |
---|
1333 | none |
---|
1334 | ((bool install_cmap))) |
---|
1335 | |
---|
1336 | (define-func gtk_preview_set_reserved |
---|
1337 | none |
---|
1338 | ((int nreserved))) |
---|
1339 | |
---|
1340 | (define-func gtk_preview_get_visual |
---|
1341 | GdkVisual |
---|
1342 | ()) |
---|
1343 | |
---|
1344 | (define-func gtk_preview_get_cmap |
---|
1345 | GdkColormap |
---|
1346 | ()) |
---|
1347 | |
---|
1348 | ;; ColorSelectionDialog |
---|
1349 | |
---|
1350 | (define-object GtkColorSelectionDialog (GtkWindow) |
---|
1351 | (fields |
---|
1352 | (GtkWidget colorsel) |
---|
1353 | (GtkWidget main_vbox) |
---|
1354 | (GtkWidget ok_button) |
---|
1355 | (GtkWidget reset_button) |
---|
1356 | (GtkWidget cancel_button) |
---|
1357 | (GtkWidget help_button))) |
---|
1358 | |
---|
1359 | (define-func gtk_color_selection_dialog_new |
---|
1360 | GtkWidget |
---|
1361 | ((string title))) |
---|
1362 | |
---|
1363 | ;; ColorSelection |
---|
1364 | |
---|
1365 | (define-object GtkColorSelection (GtkVBox)) |
---|
1366 | |
---|
1367 | (define-func gtk_color_selection_new |
---|
1368 | GtkWidget |
---|
1369 | ()) |
---|
1370 | |
---|
1371 | (define-func gtk_color_selection_set_update_policy |
---|
1372 | none |
---|
1373 | ((GtkColorSelection colorsel) |
---|
1374 | (GtkUpdateType policy))) |
---|
1375 | |
---|
1376 | (define-func gtk_color_selection_set_opacity |
---|
1377 | none |
---|
1378 | ((GtkColorSelection colorsel) |
---|
1379 | (bool use_opacity))) |
---|
1380 | |
---|
1381 | ;; Range |
---|
1382 | |
---|
1383 | (define-object GtkRange (GtkWidget)) |
---|
1384 | |
---|
1385 | (define-func gtk_range_get_adjustment |
---|
1386 | GtkAdjustment |
---|
1387 | ((GtkRange range))) |
---|
1388 | |
---|
1389 | (define-func gtk_range_set_update_policy |
---|
1390 | none |
---|
1391 | ((GtkRange range) |
---|
1392 | (GtkUpdateType policy))) |
---|
1393 | |
---|
1394 | (define-func gtk_range_set_adjustment |
---|
1395 | none |
---|
1396 | ((GtkRange range) |
---|
1397 | (GtkAdjustment adjustment))) |
---|
1398 | |
---|
1399 | ;; Scale |
---|
1400 | |
---|
1401 | (define-object GtkScale (GtkRange)) |
---|
1402 | |
---|
1403 | (define-func gtk_scale_set_digits |
---|
1404 | none |
---|
1405 | ((GtkScale scale) |
---|
1406 | (bool digits))) |
---|
1407 | |
---|
1408 | (define-func gtk_scale_set_draw_value |
---|
1409 | none |
---|
1410 | ((GtkScale scale) |
---|
1411 | (bool draw_value))) |
---|
1412 | |
---|
1413 | (define-func gtk_scale_set_value_pos |
---|
1414 | none |
---|
1415 | ((GtkScale scale) |
---|
1416 | (GtkPositionType pos))) |
---|
1417 | |
---|
1418 | ;; HScale |
---|
1419 | |
---|
1420 | (define-object GtkHScale (GtkScale)) |
---|
1421 | |
---|
1422 | (define-func gtk_hscale_new |
---|
1423 | GtkWidget |
---|
1424 | ((GtkAdjustment adjustment))) |
---|
1425 | |
---|
1426 | ;; VScale |
---|
1427 | |
---|
1428 | (define-object GtkVScale (GtkScale)) |
---|
1429 | |
---|
1430 | (define-func gtk_vscale_new |
---|
1431 | GtkWidget |
---|
1432 | ((GtkAdjustment adjustment))) |
---|
1433 | |
---|
1434 | ;; Scrollbar |
---|
1435 | |
---|
1436 | (define-object GtkScrollbar (GtkRange)) |
---|
1437 | |
---|
1438 | ;; HScrollbar |
---|
1439 | |
---|
1440 | (define-object GtkHScrollbar (GtkScrollbar)) |
---|
1441 | |
---|
1442 | (define-func gtk_hscrollbar_new |
---|
1443 | GtkWidget |
---|
1444 | ((GtkAdjustment adjustment))) |
---|
1445 | |
---|
1446 | ;; VScrollbar |
---|
1447 | |
---|
1448 | (define-object GtkVScrollbar (GtkScrollbar)) |
---|
1449 | |
---|
1450 | (define-func gtk_vscrollbar_new |
---|
1451 | GtkWidget |
---|
1452 | ((GtkAdjustment adjustment))) |
---|
1453 | |
---|
1454 | ;; Dialog |
---|
1455 | |
---|
1456 | (define-object GtkDialog (GtkWindow) |
---|
1457 | (fields |
---|
1458 | (GtkWidget vbox) |
---|
1459 | (GtkWidget action_area))) |
---|
1460 | |
---|
1461 | (define-func gtk_dialog_new |
---|
1462 | GtkWidget |
---|
1463 | ()) |
---|
1464 | |
---|
1465 | ;; Paned |
---|
1466 | |
---|
1467 | (define-object GtkPaned (GtkContainer)) |
---|
1468 | |
---|
1469 | (define-func gtk_paned_add1 |
---|
1470 | none |
---|
1471 | ((GtkPaned paned) |
---|
1472 | (GtkWidget child))) |
---|
1473 | |
---|
1474 | (define-func gtk_paned_add2 |
---|
1475 | none |
---|
1476 | ((GtkPaned paned) |
---|
1477 | (GtkWidget child))) |
---|
1478 | |
---|
1479 | (define-func gtk_paned_handle_size |
---|
1480 | none |
---|
1481 | ((GtkPaned paned) |
---|
1482 | (int size))) |
---|
1483 | |
---|
1484 | (define-func gtk_paned_gutter_size |
---|
1485 | none |
---|
1486 | ((GtkPaned paned) |
---|
1487 | (int size))) |
---|
1488 | |
---|
1489 | ;; HPaned |
---|
1490 | |
---|
1491 | (define-object GtkHPaned (GtkPaned)) |
---|
1492 | |
---|
1493 | (define-func gtk_hpaned_new |
---|
1494 | GtkWidget |
---|
1495 | ()) |
---|
1496 | |
---|
1497 | ;; VPaned |
---|
1498 | |
---|
1499 | (define-object GtkVPaned (GtkPaned)) |
---|
1500 | |
---|
1501 | (define-func gtk_vpaned_new |
---|
1502 | GtkWidget |
---|
1503 | ()) |
---|
1504 | |
---|
1505 | ;;; hack |
---|
1506 | |
---|
1507 | ;(define-func panel_register_toy |
---|
1508 | ; none |
---|
1509 | ; ((gpointer panel) |
---|
1510 | ; (GtkWidget applet) |
---|
1511 | ; (string id) |
---|
1512 | ; (string params) |
---|
1513 | ; (int x) |
---|
1514 | ; (int y) |
---|
1515 | ; (int flags))) |
---|
1516 | |
---|
1517 | ;(define-func panel_quit |
---|
1518 | ; none |
---|
1519 | ; ((gpointer panel))) |
---|
1520 | |
---|
1521 | ;(define-func panel_new_applet |
---|
1522 | ; none |
---|
1523 | ; ((gpointer panel) |
---|
1524 | ; (string applet) |
---|
1525 | ; (string params))) |
---|