This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 80
/
gbox3
5029 lines (5029 loc) · 295 KB
/
gbox3
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
quote
$(Expr(:toplevel, :(module GAccessor
import ..Gtk
import ..Gtk.GObject
export group, icon_pixbuf, iter_at_position, from_icon_name, path_at_pos, style_property, use_stock, scale_factor, minimum_key_length, pulse_step, buildable_property, mark, show_preview_entry, start_position, pango_context, object_name, child_visible, preferred_size, max_content_width, level_indentation, transient_for, pixels_with_length, cursor_on_cell, line_count, request_mode, monospace, language, from_pixbuf, current_item, section_type, has_origin, active, cell_at_position, orientation, tab_label_text, sort_indicator, documenters, sort_func, display_name, activatable, child_secondary, tab_vborder, options, inline_completion, activate_on_single_click, background, ellipsize, has_resize_grip, digits, junction_sides, icon_gicon, create_folders, size_of_row, tab_pos, attributes, show_arrow, path, qdata_full, shadow_type, event_window, font_family, realized, row_separator_func, default_left_margin, has_tooltip, sort_order, nth_page, tooltip_row, complete, accept_label, program_name, kinetic_scrolling, device_enabled, description, hover_expand, max_content_height, invisible_char, drop_index, width_chars, startup_id, upper_stepper_sensitivity, item_column, tooltip_window, preferred_width, image_position, action_widget, capture_button_press, menu_label, default_bottom_margin, track_motion, property, data_full, justify, inner_border, progress_pulse_step, focus_on_map, iter_at_line_offset, halign, background_rgba, destroy_count_func, icon_tooltip_markup, window_type, serialize_formats, use_alpha, inconsistent, tab_hborder, file, homogeneous, max_width_chars, modal, extra_widget, baseline_position, ellipsize_mode, default_icon, targets, font_name, item_at_pos, byte_length, iter_at_mark, vadjustment, value_as_int, focus_visible, font_features, deletable, parent, direction, width, tooltip_context, predicted_presentation_time, from_animation, inline_selection, indices, application_info, sensitive, margin_top, flags, data_with_length, text_orientation, attached_to, tearoff_state, current_folder_file, license, size_request, left_margin, hscroll_policy, draw_value, for_attach_widget, opacity, ancestor, single_line_mode, toplevel, selection, modified, preferred_height, column, numeric, bits_per_sample, title, submenu, progress_fraction, fixed_size, fixed_width, label_widget, deserialize_formats, render_icon_surface, label_fill, current_icon_drag_source, search_position_func, meta_marshal, cursor_visible, focus_siblings, do_overwrite_confirmation, step_increment, focus_hadjustment, is_important, top_margin, placeholder_text, toolbar_style, show_tips, line_wrap, flippable, child_non_homogeneous, border_color, font_face, stock_id, website, end_line, preferred_width_for_height, preferred_height_for_width, default_widget, receives_default, font_size, resize_toplevel, visible_rect, uri, pixels_below_lines, urgency_hint, icon_name, yalign, mnemonic_widget, cursor_locations, keep_below, justification, focus_from_sibling, attach_widget, alignment, uri_display, pixels_above_lines, current_page, valign, destroy_with_parent, margin_right, text_column, child_packing, text_alignment, popup_single_match, presentation_time, items, uris, button, search_equal_func, char_count, completion, bin_window, end_position, aligned_area, expanded, row_spacing, select_function, siblings, style_context, range_rect, placement, icon_tooltip_text, resizable, slider_size_fixed, min_content_height, image, n_pages, stock, margin_bottom, vscroll_policy, default, type_hint, gravity, alternative_button_order, default_response, iter_at_line, background_area, model, accel_group, added, cursor, parent_window, default_right_margin, is_locked, font, adjustment, option, max_length, center_widget, layout, menu, can_default, right_margin, area, translator_credits, filename, visual, current_uri, state, storage_type, short_name, from_resource, header_bar, selected_rows, iter_location, show_not_found, accept_focus, target, expander_column, depth, preview_text, child1, slice, clipboard, action_area, default_sort_func, cell_data_func, show_border, website_label, cell_area, lines, bounds, can_create_tags, from_stock, response_sensitive, user_data, pixbuf, lower_stepper_sensitivity, allocation, headers_clickable, sizing, logo_icon_name, n_items, handle_window, from_file, slider_range, min_slider_size, hscrollbar, accel_path, action_target, sort_type, icon_from_gicon, copy_target_list, rules_hint, application, line_wrap_mode, window, icon_size, double_buffered, priority, hide_titlebar_when_maximized, icon_activatable, iter_at_child_anchor, bottom_margin, icon_from_file, visible_func, show_hidden, internal_child, deleted, reserve_toggle_size, no_show_all, vscrollbar, markup_column, visibility, input_purpose, hexpand_set, upper, preview_file, monitor, use_underline, rowstride, accessible, choice, tooltip_item, text_area, wide_handle, markup_with_mnemonic, valuesv, tooltip_cell, groups, icon_from_icon_name, frame_clock, label, objects, action, from_surface, reorderable, proxy, sibling_index, xalign, row_drag_data, sort_column_id, hexpand, data, indices_with_depth, arrow_tooltip_markup, level, default_icon_list, vexpand, nth_item, string_from_iter, drag_dest_row, interactive_debugging, use_size, propagate_natural_width, default_size, has_user_ref_count, update_policy, hover_selection, support_multidevice, proxy_menu_item, length, overwrite_mode, format, resize_mode, action_name, type_from_name, use_preview_label, tooltip_markup, events, wrap_mode, start_iter, text_size_group, page_increment, wrap, item_width, iter_at_line_index, margin_left, settings, filenames, copyright, version, height, text, filter, detailed_action_name, mode, wmclass, child, object_type, icon_drag_source, columns, layout_offsets, start_line, fill_level, allocated_width, focus_vadjustment, iter_first, relief, snap_to_ticks, fraction, mapped, radio, preview_widget, resize_grip_area, editable, show_expanders, item_orientation, enable_search, debug_updates, font_options, composite_name, gicon, match_func, select_multiple, show_style, input_hints, chars, inverted, icon_from_pixbuf, pixbuf_column, context_id, role, reserve_indicator, child_requisition, clickable, tab_reorderable, qdata, icon_at_pos, alternative_button_order_from_array, restrict_to_fill_level, tabs, keep_above, icon, children, current_name, hadjustment, action_target_value, has_alpha, authors, filter_func, icon_set, pixels, device_events, expand, wrap_license, decorated, requisition, policy, cell_allocation, widget, max_width, selectable, visible_vertical, n_channels, current_path_string, drag_dest_item, increments, overwrite, skip_taskbar_hint, item_row, rgba, frame_counter, limit, cursor_hadjustment, relief_style, current_folder, preview_uri, value, headers_visible, show_private, edit_widget, icon_widget, use_markup, pointer, show_size, marshal, has_selection, position, visible, scale, accepts_tab, buffer, text_length, drop_highlight_item, private_hint, response_for_widget, cell_rect, column_drag_function, applications, min_content_width, style, visible_column, popup_completion, use_font, refresh_interval, margin_end, label_align, column_spacing, allocated_baseline, has_window, left_gravity, x_offset, icon_from_stock, titlebar, value_pos, vexpand_set, fit_model, dest_row_at_pos, app_paintable, cancel_label, search_column, background_color, range, menu_label_text, focus_cell, completion_prefix, border_width, allocated_size, draw_sensitive, default_geometry, valign_with_baseline, column_types, insert, data_type, option_group, selected_items, color, scrollable, path_for_child, iter_from_string, logo, indent, round_digits, action_group, border_window_size, state_flags, visible_range, selection_mode, text_with_mnemonic, overlay_scrolling, spacing, edited_cell, cells, local_only, grid_lines, files, active_text, mnemonic_keyval, object, icon_list, default_attributes, auto_startup_notification, use_drag_window, line_yrange, iter_at_offset, section, modifier_mask, modify_func, rubber_banding, always_show_image, artists, item_index, margin, fixed_height_from_font, activates_default, column_type, lower, clip, message_area, item_padding, from_gicon, selected, has_frame, geometry_hints, screen, animation, comments, show_tabs, child2, minimum_increment, tag_table, search_entry, mime_type, disabled, cell_data, focus_chain, icon_factory, tooltip_column, preview_widget_active, dest_item_at_pos, colorspace, frame_time, from_icon_set, end_iter, name, icon_stock, focus_on_click, widget_for_response, extensions, license_type, show_events, line_at_y, ppd_name, icon_storage_type, track_visited_links, target_list, can_focus, iter, visible_horizontal, tab_label, font_map, page_size, min_width, reallocate_redraws, font_desc, mime_types, group_name, display, padding, content_area, size, propagate_natural_height, paste_target_list, template_child, skip_pager_hint, n_columns, margin_start, allocated_height, default_top_margin, preview_filename, icon_area, enable_tree_lines, app_info, translation_domain, selection_bound, render_icon_pixbuf, mnemonic_modifier, iter_at_location, age, mnemonics_visible, pixels_inside_wrap, redraw_on_allocate, show_icons, displayed_row, icon_sensitive, tooltip_text, angle, fixed_height_mode, focus, paper_sizes, preferred_height_and_baseline_for_width, pixel_size, root_window, pattern, content_type, current_folder_uri, show_fill_level, draw, show_text, selection_bounds, tree_view, entry, visited, arrow_tooltip_text, tab_detachable, right_justified, focus_child, markup, border
function marshal(closure::Gtk.GClosure, marshal_)
ccall((:g_closure_set_marshal, Gtk.GLib.libgobject), Nothing, (Ptr{Gtk.GClosure}, Ptr{Nothing}), closure, marshal_)
return closure
end
function meta_marshal(closure::Gtk.GClosure, marshal_data, meta_marshal_)
ccall((:g_closure_set_meta_marshal, Gtk.GLib.libgobject), Nothing, (Ptr{Gtk.GClosure}, Ptr{Nothing}, Ptr{Nothing}), closure, marshal_data, meta_marshal_)
return closure
end
function property(object::Gtk.GObject, property_name, value)
ccall((:g_object_set_property, Gtk.GLib.libgobject), Nothing, (Ptr{Gtk.GObject}, Ptr{UInt8}, Ptr{Nothing}), object, property_name, value)
return object
end
function qdata(object::Gtk.GObject, quark)
return ccall((:g_object_get_qdata, Gtk.GLib.libgobject), Ptr{Nothing}, (Ptr{Gtk.GObject}, UInt32), object, quark)
end
function qdata(object::Gtk.GObject, quark, data)
ccall((:g_object_set_qdata, Gtk.GLib.libgobject), Nothing, (Ptr{Gtk.GObject}, UInt32, Ptr{Nothing}), object, quark, data)
return object
end
function qdata_full(object::Gtk.GObject, quark, data, destroy)
ccall((:g_object_set_qdata_full, Gtk.GLib.libgobject), Nothing, (Ptr{Gtk.GObject}, UInt32, Ptr{Nothing}, Ptr{Nothing}), object, quark, data, destroy)
return object
end
function data(object::Gtk.GObject, key)
return ccall((:g_object_get_data, Gtk.GLib.libgobject), Ptr{Nothing}, (Ptr{Gtk.GObject}, Ptr{UInt8}), object, key)
end
function data(object::Gtk.GObject, key, data_)
ccall((:g_object_set_data, Gtk.GLib.libgobject), Nothing, (Ptr{Gtk.GObject}, Ptr{UInt8}, Ptr{Nothing}), object, key, data_)
return object
end
function data_full(object::Gtk.GObject, key, data, destroy)
ccall((:g_object_set_data_full, Gtk.GLib.libgobject), Nothing, (Ptr{Gtk.GObject}, Ptr{UInt8}, Ptr{Nothing}, Ptr{Nothing}), object, key, data, destroy)
return object
end
function show_events(show_events_::Bool)
ccall((:gdk_set_show_events, Gtk.libgdk), Nothing, (Cint,), show_events_)
return show_events_
end
function frame_counter(timings::Gtk.GdkFrameTimings)
return ccall((:gdk_frame_timings_get_frame_counter, Gtk.libgdk), Clonglong, (Ptr{Gtk.GdkFrameTimings},), timings)
end
function complete(timings::Gtk.GdkFrameTimings)
return convert(Bool, ccall((:gdk_frame_timings_get_complete, Gtk.libgdk), Cint, (Ptr{Gtk.GdkFrameTimings},), timings))
end
function frame_time(timings::Gtk.GdkFrameTimings)
return ccall((:gdk_frame_timings_get_frame_time, Gtk.libgdk), Clonglong, (Ptr{Gtk.GdkFrameTimings},), timings)
end
function presentation_time(timings::Gtk.GdkFrameTimings)
return ccall((:gdk_frame_timings_get_presentation_time, Gtk.libgdk), Clonglong, (Ptr{Gtk.GdkFrameTimings},), timings)
end
function refresh_interval(timings::Gtk.GdkFrameTimings)
return ccall((:gdk_frame_timings_get_refresh_interval, Gtk.libgdk), Clonglong, (Ptr{Gtk.GdkFrameTimings},), timings)
end
function predicted_presentation_time(timings::Gtk.GdkFrameTimings)
return ccall((:gdk_frame_timings_get_predicted_presentation_time, Gtk.libgdk), Clonglong, (Ptr{Gtk.GdkFrameTimings},), timings)
end
function debug_updates(setting::Bool)
ccall((:gdk_window_set_debug_updates, Gtk.libgdk), Nothing, (Cint,), setting)
return setting
end
function colorspace(pixbuf::Gtk.GdkPixbuf)
return ccall((:gdk_pixbuf_get_colorspace, Gtk.libgdk_pixbuf), Cint, (Ptr{Gtk.GObject},), pixbuf)
end
function n_channels(pixbuf::Gtk.GdkPixbuf)
return ccall((:gdk_pixbuf_get_n_channels, Gtk.libgdk_pixbuf), Cint, (Ptr{Gtk.GObject},), pixbuf)
end
function has_alpha(pixbuf::Gtk.GdkPixbuf)
return convert(Bool, ccall((:gdk_pixbuf_get_has_alpha, Gtk.libgdk_pixbuf), Cint, (Ptr{Gtk.GObject},), pixbuf))
end
function bits_per_sample(pixbuf::Gtk.GdkPixbuf)
return ccall((:gdk_pixbuf_get_bits_per_sample, Gtk.libgdk_pixbuf), Cint, (Ptr{Gtk.GObject},), pixbuf)
end
function pixels(pixbuf::Gtk.GdkPixbuf)
return ccall((:gdk_pixbuf_get_pixels, Gtk.libgdk_pixbuf), Ptr{Cuchar}, (Ptr{Gtk.GObject},), pixbuf)
end
function width(pixbuf::Gtk.GdkPixbuf)
return ccall((:gdk_pixbuf_get_width, Gtk.libgdk_pixbuf), Cint, (Ptr{Gtk.GObject},), pixbuf)
end
function height(pixbuf::Gtk.GdkPixbuf)
return ccall((:gdk_pixbuf_get_height, Gtk.libgdk_pixbuf), Cint, (Ptr{Gtk.GObject},), pixbuf)
end
function rowstride(pixbuf::Gtk.GdkPixbuf)
return ccall((:gdk_pixbuf_get_rowstride, Gtk.libgdk_pixbuf), Cint, (Ptr{Gtk.GObject},), pixbuf)
end
function byte_length(pixbuf::Gtk.GdkPixbuf)
return ccall((:gdk_pixbuf_get_byte_length, Gtk.libgdk_pixbuf), Culonglong, (Ptr{Gtk.GObject},), pixbuf)
end
function pixels_with_length(pixbuf::Gtk.GdkPixbuf)
length = Gtk.mutable(UInt32)
return (ccall((:gdk_pixbuf_get_pixels_with_length, Gtk.libgdk_pixbuf), Ptr{Cuchar}, (Ptr{Gtk.GObject}, Ptr{UInt32}), pixbuf, length), length[])
end
function option(pixbuf::Gtk.GdkPixbuf, key, value)
ccall((:gdk_pixbuf_set_option, Gtk.libgdk_pixbuf), Cint, (Ptr{Gtk.GObject}, Ptr{UInt8}, Ptr{UInt8}), pixbuf, key, value)
return pixbuf
end
function option(pixbuf::Gtk.GdkPixbuf, key)
return ccall((:gdk_pixbuf_get_option, Gtk.libgdk_pixbuf), Ptr{UInt8}, (Ptr{Gtk.GObject}, Ptr{UInt8}), pixbuf, key)
end
function options(pixbuf::Gtk.GdkPixbuf)
return ccall((:gdk_pixbuf_get_options, Gtk.libgdk_pixbuf), Ptr{Nothing}, (Ptr{Gtk.GObject},), pixbuf)
end
function name(format::Gtk.GdkPixbufFormat)
return ccall((:gdk_pixbuf_format_get_name, Gtk.libgdk_pixbuf), Ptr{UInt8}, (Ptr{Gtk.GdkPixbufFormat},), format)
end
function description(format::Gtk.GdkPixbufFormat)
return ccall((:gdk_pixbuf_format_get_description, Gtk.libgdk_pixbuf), Ptr{UInt8}, (Ptr{Gtk.GdkPixbufFormat},), format)
end
function mime_types(format::Gtk.GdkPixbufFormat)
return ccall((:gdk_pixbuf_format_get_mime_types, Gtk.libgdk_pixbuf), Ptr{Ptr{UInt8}}, (Ptr{Gtk.GdkPixbufFormat},), format)
end
function extensions(format::Gtk.GdkPixbufFormat)
return ccall((:gdk_pixbuf_format_get_extensions, Gtk.libgdk_pixbuf), Ptr{Ptr{UInt8}}, (Ptr{Gtk.GdkPixbufFormat},), format)
end
function disabled(format::Gtk.GdkPixbufFormat, disabled_)
ccall((:gdk_pixbuf_format_set_disabled, Gtk.libgdk_pixbuf), Nothing, (Ptr{Gtk.GdkPixbufFormat}, Cint), format, disabled_)
return format
end
function license(format::Gtk.GdkPixbufFormat)
return ccall((:gdk_pixbuf_format_get_license, Gtk.libgdk_pixbuf), Ptr{UInt8}, (Ptr{Gtk.GdkPixbufFormat},), format)
end
function is_locked(accel_group::Gtk.GtkAccelGroup)
return convert(Bool, ccall((:gtk_accel_group_get_is_locked, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), accel_group))
end
function modifier_mask(accel_group::Gtk.GtkAccelGroup)
return ccall((:gtk_accel_group_get_modifier_mask, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), accel_group)
end
function no_show_all(widget::Gtk.GtkWidget, no_show_all_)
ccall((:gtk_widget_set_no_show_all, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, no_show_all_)
return widget
end
function no_show_all(widget::Gtk.GtkWidget)
return convert(Bool, ccall((:gtk_widget_get_no_show_all, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget))
end
function frame_clock(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_frame_clock, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject},), widget)
end
function request_mode(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_request_mode, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget)
end
function preferred_width(widget::Gtk.GtkWidget)
natural_width = Gtk.mutable(Cint)
minimum_width = Gtk.mutable(Cint)
ccall((:gtk_widget_get_preferred_width, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Cint}, Ptr{Cint}), widget, minimum_width, natural_width)
return (minimum_width[], natural_width[])
end
function preferred_height_for_width(widget::Gtk.GtkWidget, width)
natural_height = Gtk.mutable(Cint)
minimum_height = Gtk.mutable(Cint)
ccall((:gtk_widget_get_preferred_height_for_width, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Ptr{Cint}, Ptr{Cint}), widget, width, minimum_height, natural_height)
return (minimum_height[], natural_height[])
end
function preferred_height(widget::Gtk.GtkWidget)
natural_height = Gtk.mutable(Cint)
minimum_height = Gtk.mutable(Cint)
ccall((:gtk_widget_get_preferred_height, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Cint}, Ptr{Cint}), widget, minimum_height, natural_height)
return (minimum_height[], natural_height[])
end
function preferred_width_for_height(widget::Gtk.GtkWidget, height)
natural_width = Gtk.mutable(Cint)
minimum_width = Gtk.mutable(Cint)
ccall((:gtk_widget_get_preferred_width_for_height, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Ptr{Cint}, Ptr{Cint}), widget, height, minimum_width, natural_width)
return (minimum_width[], natural_width[])
end
function preferred_height_and_baseline_for_width(widget::Gtk.GtkWidget, width)
natural_baseline = Gtk.mutable(Cint)
minimum_baseline = Gtk.mutable(Cint)
natural_height = Gtk.mutable(Cint)
minimum_height = Gtk.mutable(Cint)
ccall((:gtk_widget_get_preferred_height_and_baseline_for_width, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Ptr{Cint}), widget, width, minimum_height, natural_height, minimum_baseline, natural_baseline)
return (minimum_height[], natural_height[], minimum_baseline[], natural_baseline[])
end
function preferred_size(widget::Gtk.GtkWidget)
natural_size = Gtk.mutable(Gtk.GtkRequisition)
minimum_size = Gtk.mutable(Gtk.GtkRequisition)
ccall((:gtk_widget_get_preferred_size, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GtkRequisition}, Ptr{Gtk.GtkRequisition}), widget, minimum_size, natural_size)
return (minimum_size[], natural_size[])
end
function child_requisition(widget::Gtk.GtkWidget)
requisition = Gtk.mutable(Gtk.GtkRequisition)
ccall((:gtk_widget_get_child_requisition, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GtkRequisition}), widget, requisition)
return requisition[]
end
function accel_path(widget::Gtk.GtkWidget, accel_path_, accel_group)
ccall((:gtk_widget_set_accel_path, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{UInt8}, Ptr{Gtk.GObject}), widget, accel_path_, accel_group)
return widget
end
function can_focus(widget::Gtk.GtkWidget, can_focus_)
ccall((:gtk_widget_set_can_focus, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, can_focus_)
return widget
end
function can_focus(widget::Gtk.GtkWidget)
return convert(Bool, ccall((:gtk_widget_get_can_focus, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget))
end
function focus_on_click(widget::Gtk.GtkWidget, focus_on_click_)
ccall((:gtk_widget_set_focus_on_click, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, focus_on_click_)
return widget
end
function focus_on_click(widget::Gtk.GtkWidget)
return convert(Bool, ccall((:gtk_widget_get_focus_on_click, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget))
end
function can_default(widget::Gtk.GtkWidget, can_default_)
ccall((:gtk_widget_set_can_default, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, can_default_)
return widget
end
function can_default(widget::Gtk.GtkWidget)
return convert(Bool, ccall((:gtk_widget_get_can_default, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget))
end
function receives_default(widget::Gtk.GtkWidget, receives_default_)
ccall((:gtk_widget_set_receives_default, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, receives_default_)
return widget
end
function receives_default(widget::Gtk.GtkWidget)
return convert(Bool, ccall((:gtk_widget_get_receives_default, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget))
end
function name(widget::Gtk.GtkWidget, name_)
ccall((:gtk_widget_set_name, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{UInt8}), widget, name_)
return widget
end
function name(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_name, Gtk.libgtk), Ptr{UInt8}, (Ptr{Gtk.GObject},), widget)
end
function state(widget::Gtk.GtkWidget, state_)
ccall((:gtk_widget_set_state, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, state_)
return widget
end
function state(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_state, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget)
end
function state_flags(widget::Gtk.GtkWidget, flags, clear)
ccall((:gtk_widget_set_state_flags, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Cint), widget, flags, clear)
return widget
end
function state_flags(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_state_flags, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget)
end
function sensitive(widget::Gtk.GtkWidget, sensitive_)
ccall((:gtk_widget_set_sensitive, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, sensitive_)
return widget
end
function sensitive(widget::Gtk.GtkWidget)
return convert(Bool, ccall((:gtk_widget_get_sensitive, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget))
end
function visible(widget::Gtk.GtkWidget, visible_)
ccall((:gtk_widget_set_visible, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, visible_)
return widget
end
function visible(widget::Gtk.GtkWidget)
return convert(Bool, ccall((:gtk_widget_get_visible, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget))
end
function has_window(widget::Gtk.GtkWidget, has_window_)
ccall((:gtk_widget_set_has_window, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, has_window_)
return widget
end
function has_window(widget::Gtk.GtkWidget)
return convert(Bool, ccall((:gtk_widget_get_has_window, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget))
end
function realized(widget::Gtk.GtkWidget, realized_)
ccall((:gtk_widget_set_realized, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, realized_)
return widget
end
function realized(widget::Gtk.GtkWidget)
return convert(Bool, ccall((:gtk_widget_get_realized, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget))
end
function mapped(widget::Gtk.GtkWidget, mapped_)
ccall((:gtk_widget_set_mapped, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, mapped_)
return widget
end
function mapped(widget::Gtk.GtkWidget)
return convert(Bool, ccall((:gtk_widget_get_mapped, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget))
end
function app_paintable(widget::Gtk.GtkWidget, app_paintable_)
ccall((:gtk_widget_set_app_paintable, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, app_paintable_)
return widget
end
function app_paintable(widget::Gtk.GtkWidget)
return convert(Bool, ccall((:gtk_widget_get_app_paintable, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget))
end
function double_buffered(widget::Gtk.GtkWidget, double_buffered_)
ccall((:gtk_widget_set_double_buffered, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, double_buffered_)
return widget
end
function double_buffered(widget::Gtk.GtkWidget)
return convert(Bool, ccall((:gtk_widget_get_double_buffered, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget))
end
function redraw_on_allocate(widget::Gtk.GtkWidget, redraw_on_allocate_)
ccall((:gtk_widget_set_redraw_on_allocate, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, redraw_on_allocate_)
return widget
end
function parent(widget::Gtk.GtkWidget, parent_)
ccall((:gtk_widget_set_parent, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GObject}), widget, parent_)
return widget
end
function parent(widget::Gtk.GtkWidget)
return convert(Gtk.GtkWidget, ccall((:gtk_widget_get_parent, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject},), widget))
end
function parent_window(widget::Gtk.GtkWidget, parent_window_)
ccall((:gtk_widget_set_parent_window, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Nothing}), widget, parent_window_)
return widget
end
function parent_window(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_parent_window, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject},), widget)
end
function child_visible(widget::Gtk.GtkWidget, is_visible)
ccall((:gtk_widget_set_child_visible, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, is_visible)
return widget
end
function child_visible(widget::Gtk.GtkWidget)
return convert(Bool, ccall((:gtk_widget_get_child_visible, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget))
end
function window(widget::Gtk.GtkWidget, window_)
ccall((:gtk_widget_set_window, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Nothing}), widget, window_)
return widget
end
function window(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_window, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject},), widget)
end
function allocated_width(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_allocated_width, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget)
end
function allocated_height(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_allocated_height, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget)
end
function allocated_baseline(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_allocated_baseline, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget)
end
function allocated_size(widget::Gtk.GtkWidget)
baseline = Gtk.mutable(Cint)
allocation = Gtk.mutable(Gtk.GdkRectangle)
ccall((:gtk_widget_get_allocated_size, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GdkRectangle}, Ptr{Cint}), widget, allocation, baseline)
return (allocation[], baseline[])
end
function allocation(widget::Gtk.GtkWidget)
allocation_ = Gtk.mutable(Gtk.GdkRectangle)
ccall((:gtk_widget_get_allocation, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GdkRectangle}), widget, allocation_)
return allocation_[]
end
function allocation(widget::Gtk.GtkWidget, allocation_)
ccall((:gtk_widget_set_allocation, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GdkRectangle}), widget, allocation_)
return widget
end
function clip(widget::Gtk.GtkWidget, clip_)
ccall((:gtk_widget_set_clip, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GdkRectangle}), widget, clip_)
return widget
end
function clip(widget::Gtk.GtkWidget)
clip_ = Gtk.mutable(Gtk.GdkRectangle)
ccall((:gtk_widget_get_clip, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GdkRectangle}), widget, clip_)
return clip_[]
end
function requisition(widget::Gtk.GtkWidget)
requisition_ = Gtk.mutable(Gtk.GtkRequisition)
ccall((:gtk_widget_get_requisition, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GtkRequisition}), widget, requisition_)
return requisition_[]
end
function size_request(widget::Gtk.GtkWidget, width, height)
ccall((:gtk_widget_set_size_request, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Cint), widget, width, height)
return widget
end
function size_request(widget::Gtk.GtkWidget)
height = Gtk.mutable(Cint)
width = Gtk.mutable(Cint)
ccall((:gtk_widget_get_size_request, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Cint}, Ptr{Cint}), widget, width, height)
return (width[], height[])
end
function events(widget::Gtk.GtkWidget, events_)
ccall((:gtk_widget_set_events, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, events_)
return widget
end
function device_events(widget::Gtk.GtkWidget, device, events)
ccall((:gtk_widget_set_device_events, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Nothing}, Cint), widget, device, events)
return widget
end
function opacity(widget::Gtk.GtkWidget, opacity_)
ccall((:gtk_widget_set_opacity, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cdouble), widget, opacity_)
return widget
end
function opacity(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_opacity, Gtk.libgtk), Cdouble, (Ptr{Gtk.GObject},), widget)
end
function device_enabled(widget::Gtk.GtkWidget, device, enabled)
ccall((:gtk_widget_set_device_enabled, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Nothing}, Cint), widget, device, enabled)
return widget
end
function device_enabled(widget::Gtk.GtkWidget, device)
return convert(Bool, ccall((:gtk_widget_get_device_enabled, Gtk.libgtk), Cint, (Ptr{Gtk.GObject}, Ptr{Nothing}), widget, device))
end
function toplevel(widget::Gtk.GtkWidget)
return convert(Gtk.GtkWidget, ccall((:gtk_widget_get_toplevel, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject},), widget))
end
function ancestor(widget::Gtk.GtkWidget, widget_type)
return convert(Gtk.GtkWidget, ccall((:gtk_widget_get_ancestor, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject}, Culonglong), widget, widget_type))
end
function visual(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_visual, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject},), widget)
end
function visual(widget::Gtk.GtkWidget, visual_)
ccall((:gtk_widget_set_visual, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Nothing}), widget, visual_)
return widget
end
function screen(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_screen, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject},), widget)
end
function scale_factor(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_scale_factor, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget)
end
function display(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_display, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject},), widget)
end
function root_window(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_root_window, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject},), widget)
end
function settings(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_settings, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject},), widget)
end
function clipboard(widget::Gtk.GtkWidget, selection)
return ccall((:gtk_widget_get_clipboard, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject}, Ptr{Nothing}), widget, selection)
end
function hexpand(widget::Gtk.GtkWidget)
return convert(Bool, ccall((:gtk_widget_get_hexpand, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget))
end
function hexpand(widget::Gtk.GtkWidget, expand)
ccall((:gtk_widget_set_hexpand, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, expand)
return widget
end
function hexpand_set(widget::Gtk.GtkWidget)
return convert(Bool, ccall((:gtk_widget_get_hexpand_set, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget))
end
function hexpand_set(widget::Gtk.GtkWidget, set)
ccall((:gtk_widget_set_hexpand_set, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, set)
return widget
end
function vexpand(widget::Gtk.GtkWidget)
return convert(Bool, ccall((:gtk_widget_get_vexpand, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget))
end
function vexpand(widget::Gtk.GtkWidget, expand)
ccall((:gtk_widget_set_vexpand, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, expand)
return widget
end
function vexpand_set(widget::Gtk.GtkWidget)
return convert(Bool, ccall((:gtk_widget_get_vexpand_set, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget))
end
function vexpand_set(widget::Gtk.GtkWidget, set)
ccall((:gtk_widget_set_vexpand_set, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, set)
return widget
end
function support_multidevice(widget::Gtk.GtkWidget)
return convert(Bool, ccall((:gtk_widget_get_support_multidevice, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget))
end
function support_multidevice(widget::Gtk.GtkWidget, support_multidevice_)
ccall((:gtk_widget_set_support_multidevice, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, support_multidevice_)
return widget
end
function accessible(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_accessible, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject},), widget)
end
function halign(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_halign, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget)
end
function halign(widget::Gtk.GtkWidget, align)
ccall((:gtk_widget_set_halign, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, align)
return widget
end
function valign(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_valign, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget)
end
function valign_with_baseline(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_valign_with_baseline, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget)
end
function valign(widget::Gtk.GtkWidget, align)
ccall((:gtk_widget_set_valign, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, align)
return widget
end
function margin_left(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_margin_left, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget)
end
function margin_left(widget::Gtk.GtkWidget, margin)
ccall((:gtk_widget_set_margin_left, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, margin)
return widget
end
function margin_right(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_margin_right, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget)
end
function margin_right(widget::Gtk.GtkWidget, margin)
ccall((:gtk_widget_set_margin_right, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, margin)
return widget
end
function margin_start(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_margin_start, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget)
end
function margin_start(widget::Gtk.GtkWidget, margin)
ccall((:gtk_widget_set_margin_start, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, margin)
return widget
end
function margin_end(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_margin_end, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget)
end
function margin_end(widget::Gtk.GtkWidget, margin)
ccall((:gtk_widget_set_margin_end, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, margin)
return widget
end
function margin_top(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_margin_top, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget)
end
function margin_top(widget::Gtk.GtkWidget, margin)
ccall((:gtk_widget_set_margin_top, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, margin)
return widget
end
function margin_bottom(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_margin_bottom, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget)
end
function margin_bottom(widget::Gtk.GtkWidget, margin)
ccall((:gtk_widget_set_margin_bottom, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, margin)
return widget
end
function events(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_events, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget)
end
function device_events(widget::Gtk.GtkWidget, device)
return ccall((:gtk_widget_get_device_events, Gtk.libgtk), Cint, (Ptr{Gtk.GObject}, Ptr{Nothing}), widget, device)
end
function pointer(widget::Gtk.GtkWidget)
y = Gtk.mutable(Cint)
x = Gtk.mutable(Cint)
ccall((:gtk_widget_get_pointer, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Cint}, Ptr{Cint}), widget, x, y)
return (x[], y[])
end
function pango_context(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_pango_context, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject},), widget)
end
function font_options(widget::Gtk.GtkWidget, options)
ccall((:gtk_widget_set_font_options, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Nothing}), widget, options)
return widget
end
function font_options(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_font_options, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject},), widget)
end
function composite_name(widget::Gtk.GtkWidget, name)
ccall((:gtk_widget_set_composite_name, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{UInt8}), widget, name)
return widget
end
function composite_name(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_composite_name, Gtk.libgtk), Ptr{UInt8}, (Ptr{Gtk.GObject},), widget)
end
function property(widget::Gtk.GtkWidget, property_name, value)
return ccall((:gtk_widget_style_get_property, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{UInt8}, Ptr{Nothing}), widget, property_name, value)
end
function direction(widget::Gtk.GtkWidget, dir)
ccall((:gtk_widget_set_direction, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, dir)
return widget
end
function direction(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_direction, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget)
end
function tooltip_window(widget::Gtk.GtkWidget, custom_window)
ccall((:gtk_widget_set_tooltip_window, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GObject}), widget, custom_window)
return widget
end
function tooltip_window(widget::Gtk.GtkWidget)
return convert(Gtk.GtkWindow, ccall((:gtk_widget_get_tooltip_window, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject},), widget))
end
function tooltip_text(widget::Gtk.GtkWidget, text)
ccall((:gtk_widget_set_tooltip_text, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{UInt8}), widget, text)
return widget
end
function tooltip_text(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_tooltip_text, Gtk.libgtk), Ptr{UInt8}, (Ptr{Gtk.GObject},), widget)
end
function tooltip_markup(widget::Gtk.GtkWidget, markup)
ccall((:gtk_widget_set_tooltip_markup, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{UInt8}), widget, markup)
return widget
end
function tooltip_markup(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_tooltip_markup, Gtk.libgtk), Ptr{UInt8}, (Ptr{Gtk.GObject},), widget)
end
function has_tooltip(widget::Gtk.GtkWidget, has_tooltip_)
ccall((:gtk_widget_set_has_tooltip, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), widget, has_tooltip_)
return widget
end
function has_tooltip(widget::Gtk.GtkWidget)
return convert(Bool, ccall((:gtk_widget_get_has_tooltip, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), widget))
end
function style_context(widget::Gtk.GtkWidget)
return convert(Gtk.GtkStyleContext, ccall((:gtk_widget_get_style_context, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject},), widget))
end
function path(widget::Gtk.GtkWidget)
return convert(Gtk.GtkWidgetPath, ccall((:gtk_widget_get_path, Gtk.libgtk), Ptr{Gtk.GtkWidgetPath}, (Ptr{Gtk.GObject},), widget))
end
function modifier_mask(widget::Gtk.GtkWidget, intent)
return ccall((:gtk_widget_get_modifier_mask, Gtk.libgtk), Cint, (Ptr{Gtk.GObject}, Cint), widget, intent)
end
function template_child(widget::Gtk.GtkWidget, widget_type, name)
return convert(Gtk.GObject, ccall((:gtk_widget_get_template_child, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject}, Culonglong, Ptr{UInt8}), widget, widget_type, name))
end
function action_group(widget::Gtk.GtkWidget, prefix)
return ccall((:gtk_widget_get_action_group, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject}, Ptr{UInt8}), widget, prefix)
end
function font_map(widget::Gtk.GtkWidget, font_map_)
ccall((:gtk_widget_set_font_map, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Nothing}), widget, font_map_)
return widget
end
function font_map(widget::Gtk.GtkWidget)
return ccall((:gtk_widget_get_font_map, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject},), widget)
end
function border_width(container::Gtk.GtkContainer, border_width_)
ccall((:gtk_container_set_border_width, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, UInt32), container, border_width_)
return container
end
function border_width(container::Gtk.GtkContainer)
return ccall((:gtk_container_get_border_width, Gtk.libgtk), UInt32, (Ptr{Gtk.GObject},), container)
end
function resize_mode(container::Gtk.GtkContainer, resize_mode_)
ccall((:gtk_container_set_resize_mode, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), container, resize_mode_)
return container
end
function resize_mode(container::Gtk.GtkContainer)
return ccall((:gtk_container_get_resize_mode, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), container)
end
function children(container::Gtk.GtkContainer)
return ccall((:gtk_container_get_children, Gtk.libgtk), Ptr{Gtk._GList{Nothing}}, (Ptr{Gtk.GObject},), container)
end
function focus_chain(container::Gtk.GtkContainer, focusable_widgets)
ccall((:gtk_container_set_focus_chain, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk._GList{Nothing}}), container, focusable_widgets)
return container
end
function focus_chain(container::Gtk.GtkContainer)
focusable_widgets = Gtk.mutable(Ptr{Gtk._GList{Nothing}})
return (convert(Bool, ccall((:gtk_container_get_focus_chain, Gtk.libgtk), Cint, (Ptr{Gtk.GObject}, Ptr{Ptr{Gtk._GList{Nothing}}}), container, focusable_widgets)), focusable_widgets[])
end
function reallocate_redraws(container::Gtk.GtkContainer, needs_redraws)
ccall((:gtk_container_set_reallocate_redraws, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), container, needs_redraws)
return container
end
function focus_child(container::Gtk.GtkContainer, child)
ccall((:gtk_container_set_focus_child, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GObject}), container, child)
return container
end
function focus_child(container::Gtk.GtkContainer)
return convert(Gtk.GtkWidget, ccall((:gtk_container_get_focus_child, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject},), container))
end
function focus_vadjustment(container::Gtk.GtkContainer, adjustment)
ccall((:gtk_container_set_focus_vadjustment, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GObject}), container, adjustment)
return container
end
function focus_vadjustment(container::Gtk.GtkContainer)
return convert(Gtk.GtkAdjustment, ccall((:gtk_container_get_focus_vadjustment, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject},), container))
end
function focus_hadjustment(container::Gtk.GtkContainer, adjustment)
ccall((:gtk_container_set_focus_hadjustment, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GObject}), container, adjustment)
return container
end
function focus_hadjustment(container::Gtk.GtkContainer)
return convert(Gtk.GtkAdjustment, ccall((:gtk_container_get_focus_hadjustment, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject},), container))
end
function property(container::Gtk.GtkContainer, child, property_name, value)
ccall((:gtk_container_child_set_property, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GObject}, Ptr{UInt8}, Ptr{Nothing}), container, child, property_name, value)
return container
end
function path_for_child(container::Gtk.GtkContainer, child)
return convert(Gtk.GtkWidgetPath, ccall((:gtk_container_get_path_for_child, Gtk.libgtk), Ptr{Gtk.GtkWidgetPath}, (Ptr{Gtk.GObject}, Ptr{Gtk.GObject}), container, child))
end
function child(bin::Gtk.GtkBin)
return convert(Gtk.GtkWidget, ccall((:gtk_bin_get_child, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject},), bin))
end
function title(window::Gtk.GtkWindow, title_)
ccall((:gtk_window_set_title, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{UInt8}), window, title_)
return window
end
function title(window::Gtk.GtkWindow)
return ccall((:gtk_window_get_title, Gtk.libgtk), Ptr{UInt8}, (Ptr{Gtk.GObject},), window)
end
function wmclass(window::Gtk.GtkWindow, wmclass_name, wmclass_class)
ccall((:gtk_window_set_wmclass, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{UInt8}, Ptr{UInt8}), window, wmclass_name, wmclass_class)
return window
end
function role(window::Gtk.GtkWindow, role_)
ccall((:gtk_window_set_role, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{UInt8}), window, role_)
return window
end
function startup_id(window::Gtk.GtkWindow, startup_id_)
ccall((:gtk_window_set_startup_id, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{UInt8}), window, startup_id_)
return window
end
function role(window::Gtk.GtkWindow)
return ccall((:gtk_window_get_role, Gtk.libgtk), Ptr{UInt8}, (Ptr{Gtk.GObject},), window)
end
function position(window::Gtk.GtkWindow, position_)
ccall((:gtk_window_set_position, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, position_)
return window
end
function focus(window::Gtk.GtkWindow, focus_)
ccall((:gtk_window_set_focus, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GObject}), window, focus_)
return window
end
function focus(window::Gtk.GtkWindow)
return convert(Gtk.GtkWidget, ccall((:gtk_window_get_focus, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject},), window))
end
function default(window::Gtk.GtkWindow, default_widget)
ccall((:gtk_window_set_default, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GObject}), window, default_widget)
return window
end
function default_widget(window::Gtk.GtkWindow)
return convert(Gtk.GtkWidget, ccall((:gtk_window_get_default_widget, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject},), window))
end
function transient_for(window::Gtk.GtkWindow, parent)
ccall((:gtk_window_set_transient_for, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GObject}), window, parent)
return window
end
function transient_for(window::Gtk.GtkWindow)
return convert(Gtk.GtkWindow, ccall((:gtk_window_get_transient_for, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject},), window))
end
function attached_to(window::Gtk.GtkWindow, attach_widget)
ccall((:gtk_window_set_attached_to, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GObject}), window, attach_widget)
return window
end
function attached_to(window::Gtk.GtkWindow)
return convert(Gtk.GtkWidget, ccall((:gtk_window_get_attached_to, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject},), window))
end
function opacity(window::Gtk.GtkWindow, opacity_)
ccall((:gtk_window_set_opacity, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cdouble), window, opacity_)
return window
end
function opacity(window::Gtk.GtkWindow)
return ccall((:gtk_window_get_opacity, Gtk.libgtk), Cdouble, (Ptr{Gtk.GObject},), window)
end
function type_hint(window::Gtk.GtkWindow, hint)
ccall((:gtk_window_set_type_hint, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, hint)
return window
end
function type_hint(window::Gtk.GtkWindow)
return ccall((:gtk_window_get_type_hint, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), window)
end
function skip_taskbar_hint(window::Gtk.GtkWindow, setting)
ccall((:gtk_window_set_skip_taskbar_hint, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, setting)
return window
end
function skip_taskbar_hint(window::Gtk.GtkWindow)
return convert(Bool, ccall((:gtk_window_get_skip_taskbar_hint, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), window))
end
function skip_pager_hint(window::Gtk.GtkWindow, setting)
ccall((:gtk_window_set_skip_pager_hint, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, setting)
return window
end
function skip_pager_hint(window::Gtk.GtkWindow)
return convert(Bool, ccall((:gtk_window_get_skip_pager_hint, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), window))
end
function urgency_hint(window::Gtk.GtkWindow, setting)
ccall((:gtk_window_set_urgency_hint, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, setting)
return window
end
function urgency_hint(window::Gtk.GtkWindow)
return convert(Bool, ccall((:gtk_window_get_urgency_hint, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), window))
end
function accept_focus(window::Gtk.GtkWindow, setting)
ccall((:gtk_window_set_accept_focus, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, setting)
return window
end
function accept_focus(window::Gtk.GtkWindow)
return convert(Bool, ccall((:gtk_window_get_accept_focus, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), window))
end
function focus_on_map(window::Gtk.GtkWindow, setting)
ccall((:gtk_window_set_focus_on_map, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, setting)
return window
end
function focus_on_map(window::Gtk.GtkWindow)
return convert(Bool, ccall((:gtk_window_get_focus_on_map, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), window))
end
function destroy_with_parent(window::Gtk.GtkWindow, setting)
ccall((:gtk_window_set_destroy_with_parent, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, setting)
return window
end
function destroy_with_parent(window::Gtk.GtkWindow)
return convert(Bool, ccall((:gtk_window_get_destroy_with_parent, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), window))
end
function hide_titlebar_when_maximized(window::Gtk.GtkWindow, setting)
ccall((:gtk_window_set_hide_titlebar_when_maximized, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, setting)
return window
end
function hide_titlebar_when_maximized(window::Gtk.GtkWindow)
return convert(Bool, ccall((:gtk_window_get_hide_titlebar_when_maximized, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), window))
end
function mnemonics_visible(window::Gtk.GtkWindow, setting)
ccall((:gtk_window_set_mnemonics_visible, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, setting)
return window
end
function mnemonics_visible(window::Gtk.GtkWindow)
return convert(Bool, ccall((:gtk_window_get_mnemonics_visible, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), window))
end
function focus_visible(window::Gtk.GtkWindow, setting)
ccall((:gtk_window_set_focus_visible, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, setting)
return window
end
function focus_visible(window::Gtk.GtkWindow)
return convert(Bool, ccall((:gtk_window_get_focus_visible, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), window))
end
function resizable(window::Gtk.GtkWindow, resizable_)
ccall((:gtk_window_set_resizable, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, resizable_)
return window
end
function resizable(window::Gtk.GtkWindow)
return convert(Bool, ccall((:gtk_window_get_resizable, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), window))
end
function gravity(window::Gtk.GtkWindow, gravity_)
ccall((:gtk_window_set_gravity, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, gravity_)
return window
end
function gravity(window::Gtk.GtkWindow)
return ccall((:gtk_window_get_gravity, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), window)
end
function geometry_hints(window::Gtk.GtkWindow, geometry_widget, geometry, geom_mask)
ccall((:gtk_window_set_geometry_hints, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GObject}, Ptr{Nothing}, Cint), window, geometry_widget, geometry, geom_mask)
return window
end
function screen(window::Gtk.GtkWindow, screen_)
ccall((:gtk_window_set_screen, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Nothing}), window, screen_)
return window
end
function screen(window::Gtk.GtkWindow)
return ccall((:gtk_window_get_screen, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject},), window)
end
function decorated(window::Gtk.GtkWindow, setting)
ccall((:gtk_window_set_decorated, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, setting)
return window
end
function decorated(window::Gtk.GtkWindow)
return convert(Bool, ccall((:gtk_window_get_decorated, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), window))
end
function deletable(window::Gtk.GtkWindow, setting)
ccall((:gtk_window_set_deletable, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, setting)
return window
end
function deletable(window::Gtk.GtkWindow)
return convert(Bool, ccall((:gtk_window_get_deletable, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), window))
end
function icon_list(window::Gtk.GtkWindow, list)
ccall((:gtk_window_set_icon_list, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk._GList{Nothing}}), window, list)
return window
end
function icon_list(window::Gtk.GtkWindow)
return ccall((:gtk_window_get_icon_list, Gtk.libgtk), Ptr{Gtk._GList{Nothing}}, (Ptr{Gtk.GObject},), window)
end
function icon(window::Gtk.GtkWindow, icon_)
ccall((:gtk_window_set_icon, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GObject}), window, icon_)
return window
end
function icon_name(window::Gtk.GtkWindow, name)
ccall((:gtk_window_set_icon_name, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{UInt8}), window, name)
return window
end
function icon_from_file(window::Gtk.GtkWindow, filename, err)
ccall((:gtk_window_set_icon_from_file, Gtk.libgtk), Cint, (Ptr{Gtk.GObject}, Ptr{UInt8}, Ptr{Ptr{Gtk.GError}}), window, filename, err)
return window
end
function icon(window::Gtk.GtkWindow)
return convert(Gtk.GdkPixbuf, ccall((:gtk_window_get_icon, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject},), window))
end
function icon_name(window::Gtk.GtkWindow)
return ccall((:gtk_window_get_icon_name, Gtk.libgtk), Ptr{UInt8}, (Ptr{Gtk.GObject},), window)
end
function default_icon(icon::Gtk.GdkPixbuf)
ccall((:gtk_window_set_default_icon, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject},), icon)
return icon
end
function auto_startup_notification(setting::Bool)
ccall((:gtk_window_set_auto_startup_notification, Gtk.libgtk), Nothing, (Cint,), setting)
return setting
end
function modal(window::Gtk.GtkWindow, modal_)
ccall((:gtk_window_set_modal, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, modal_)
return window
end
function modal(window::Gtk.GtkWindow)
return convert(Bool, ccall((:gtk_window_get_modal, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), window))
end
function has_user_ref_count(window::Gtk.GtkWindow, setting)
ccall((:gtk_window_set_has_user_ref_count, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, setting)
return window
end
function mnemonic_modifier(window::Gtk.GtkWindow, modifier)
ccall((:gtk_window_set_mnemonic_modifier, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, modifier)
return window
end
function mnemonic_modifier(window::Gtk.GtkWindow)
return ccall((:gtk_window_get_mnemonic_modifier, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), window)
end
function keep_above(window::Gtk.GtkWindow, setting)
ccall((:gtk_window_set_keep_above, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, setting)
return window
end
function keep_below(window::Gtk.GtkWindow, setting)
ccall((:gtk_window_set_keep_below, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, setting)
return window
end
function default_size(window::Gtk.GtkWindow, width, height)
ccall((:gtk_window_set_default_size, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Cint), window, width, height)
return window
end
function default_size(window::Gtk.GtkWindow)
height = Gtk.mutable(Cint)
width = Gtk.mutable(Cint)
ccall((:gtk_window_get_default_size, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Cint}, Ptr{Cint}), window, width, height)
return (width[], height[])
end
function size(window::Gtk.GtkWindow)
height = Gtk.mutable(Cint)
width = Gtk.mutable(Cint)
ccall((:gtk_window_get_size, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Cint}, Ptr{Cint}), window, width, height)
return (width[], height[])
end
function position(window::Gtk.GtkWindow)
root_y = Gtk.mutable(Cint)
root_x = Gtk.mutable(Cint)
ccall((:gtk_window_get_position, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Cint}, Ptr{Cint}), window, root_x, root_y)
return (root_x[], root_y[])
end
function default_geometry(window::Gtk.GtkWindow, width, height)
ccall((:gtk_window_set_default_geometry, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Cint), window, width, height)
return window
end
function group(window::Gtk.GtkWindow)
return ccall((:gtk_window_get_group, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject},), window)
end
function window_type(window::Gtk.GtkWindow)
return ccall((:gtk_window_get_window_type, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), window)
end
function application(window::Gtk.GtkWindow)
return ccall((:gtk_window_get_application, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject},), window)
end
function application(window::Gtk.GtkWindow, application_)
ccall((:gtk_window_set_application, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Nothing}), window, application_)
return window
end
function has_resize_grip(window::Gtk.GtkWindow, value)
ccall((:gtk_window_set_has_resize_grip, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), window, value)
return window
end
function has_resize_grip(window::Gtk.GtkWindow)
return convert(Bool, ccall((:gtk_window_get_has_resize_grip, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), window))
end
function resize_grip_area(window::Gtk.GtkWindow)
rect = Gtk.mutable(Gtk.GdkRectangle)
return (convert(Bool, ccall((:gtk_window_get_resize_grip_area, Gtk.libgtk), Cint, (Ptr{Gtk.GObject}, Ptr{Gtk.GdkRectangle}), window, rect)), rect[])
end
function titlebar(window::Gtk.GtkWindow, titlebar_)
ccall((:gtk_window_set_titlebar, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GObject}), window, titlebar_)
return window
end
function titlebar(window::Gtk.GtkWindow)
return convert(Gtk.GtkWidget, ccall((:gtk_window_get_titlebar, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject},), window))
end
function interactive_debugging(enable::Bool)
ccall((:gtk_window_set_interactive_debugging, Gtk.libgtk), Nothing, (Cint,), enable)
return enable
end
function response_sensitive(dialog::Gtk.GtkDialog, response_id, setting)
ccall((:gtk_dialog_set_response_sensitive, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Cint), dialog, response_id, setting)
return dialog
end
function default_response(dialog::Gtk.GtkDialog, response_id)
ccall((:gtk_dialog_set_default_response, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), dialog, response_id)
return dialog
end
function widget_for_response(dialog::Gtk.GtkDialog, response_id)
return convert(Gtk.GtkWidget, ccall((:gtk_dialog_get_widget_for_response, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject}, Cint), dialog, response_id))
end
function response_for_widget(dialog::Gtk.GtkDialog, widget)
return ccall((:gtk_dialog_get_response_for_widget, Gtk.libgtk), Cint, (Ptr{Gtk.GObject}, Ptr{Gtk.GObject}), dialog, widget)
end
function alternative_button_order(dialog::Gtk.GtkDialog, first_response_id)
ccall((:gtk_dialog_set_alternative_button_order, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), dialog, first_response_id)
return dialog
end
function alternative_button_order_from_array(dialog::Gtk.GtkDialog, n_params, new_order)
ccall((:gtk_dialog_set_alternative_button_order_from_array, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Ptr{Cint}), dialog, n_params, new_order)
return dialog
end
function action_area(dialog::Gtk.GtkDialog)
return convert(Gtk.GtkWidget, ccall((:gtk_dialog_get_action_area, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject},), dialog))
end
function content_area(dialog::Gtk.GtkDialog)
return convert(Gtk.GtkWidget, ccall((:gtk_dialog_get_content_area, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject},), dialog))
end
function header_bar(dialog::Gtk.GtkDialog)
return convert(Gtk.GtkWidget, ccall((:gtk_dialog_get_header_bar, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject},), dialog))
end
function program_name(about::Gtk.GtkAboutDialog)
return ccall((:gtk_about_dialog_get_program_name, Gtk.libgtk), Ptr{UInt8}, (Ptr{Gtk.GObject},), about)
end
function program_name(about::Gtk.GtkAboutDialog, name)
ccall((:gtk_about_dialog_set_program_name, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{UInt8}), about, name)
return about
end
function version(about::Gtk.GtkAboutDialog)
return ccall((:gtk_about_dialog_get_version, Gtk.libgtk), Ptr{UInt8}, (Ptr{Gtk.GObject},), about)
end
function version(about::Gtk.GtkAboutDialog, version_)