-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
main.cpp
4621 lines (4309 loc) · 284 KB
/
main.cpp
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
/**
* PHP-CPP
*
* Sobre como extender classes
* https://github.com/CopernicaMarketingSoftware/PHP-CPP/issues/211
*
*
*/
#include "main.h"
// https://www.sitepoint.com/developing-php-extensions-c-php-cpp-advanced/
/**
* tell the compiler that the get_module is a pure C function
*/
extern "C"
{
/**
* Function that is called by PHP right after the PHP process
* has started, and that returns an address of an internal PHP
* strucure with all the details and features of your extension
*
* @return void* a pointer to an address that is understood by PHP
*/
PHPCPP_EXPORT void *get_module()
{
// static(!) Php::Extension object that should stay in memory
// for the entire duration of the process (that's why it's static)
static Php::Extension extension("php-gtk3", "1.0");
// Initialize GTK
// gtk_init (0, NULL);
// GObject
Php::Class<GObject_> gobject("GObject");
gobject.method<&GObject_::connect>("connect");
gobject.method<&GObject_::connect_after>("connect_after");
gobject.method<&GObject_::handler_disconnect>("handler_disconnect");
gobject.method<&GObject_::is_connected>("is_connected");
gobject.method<&GObject_::get_property>("get_property");
gobject.method<&GObject_::set_property>("set_property");
gobject.method<&GObject_::get_data>("get_data");
gobject.method<&GObject_::set_data>("set_data");
gobject.method<&GObject_::signal_handler_block>("signal_handler_block");
gobject.method<&GObject_::signal_handler_unblock>("signal_handler_unblock");
gobject.constant("TYPE_INVALID", (int)G_TYPE_INVALID);
gobject.constant("TYPE_NONE", (int)G_TYPE_NONE);
gobject.constant("TYPE_INTERFACE", (int)G_TYPE_INTERFACE);
gobject.constant("TYPE_CHAR", (int)G_TYPE_CHAR);
gobject.constant("TYPE_UCHAR", (int)G_TYPE_UCHAR);
gobject.constant("TYPE_BOOLEAN", (int)G_TYPE_BOOLEAN);
gobject.constant("TYPE_INT", (int)G_TYPE_INT);
gobject.constant("TYPE_UINT", (int)G_TYPE_UINT);
gobject.constant("TYPE_LONG", (int)G_TYPE_LONG);
gobject.constant("TYPE_ULONG", (int)G_TYPE_ULONG);
gobject.constant("TYPE_INT64", (int)G_TYPE_INT64);
gobject.constant("TYPE_UINT64", (int)G_TYPE_UINT64);
gobject.constant("TYPE_ENUM", (int)G_TYPE_ENUM);
gobject.constant("TYPE_FLAGS", (int)G_TYPE_FLAGS);
gobject.constant("TYPE_FLOAT", (int)G_TYPE_FLOAT);
gobject.constant("TYPE_DOUBLE", (int)G_TYPE_DOUBLE);
gobject.constant("TYPE_STRING", (int)G_TYPE_STRING);
gobject.constant("TYPE_PIXBUF", (int)GDK_TYPE_PIXBUF);
gobject.constant("TYPE_POINTER", (int)G_TYPE_POINTER);
gobject.constant("TYPE_BOXED", (int)G_TYPE_BOXED);
gobject.constant("TYPE_PARAM", (int)G_TYPE_PARAM);
gobject.constant("TYPE_OBJECT", (int)G_TYPE_OBJECT);
gobject.constant("TYPE_GTYPE", (int)G_TYPE_GTYPE);
gobject.constant("TYPE_VARIANT", (int)G_TYPE_VARIANT);
gobject.constant("TYPE_CHECKSUM", (int)G_TYPE_CHECKSUM);
// ----- ENUMS
// GtkStateType
Php::Class<Php::Base> gtkstatetype("GtkStateType");
gtkstatetype.constant("NORMAL", GTK_STATE_NORMAL);
gtkstatetype.constant("ACTIVE", GTK_STATE_ACTIVE);
gtkstatetype.constant("PRELIGHT", GTK_STATE_PRELIGHT);
gtkstatetype.constant("SELECTED", GTK_STATE_SELECTED);
gtkstatetype.constant("INSENSITIVE", GTK_STATE_INSENSITIVE);
gtkstatetype.constant("INCONSISTENT", GTK_STATE_INCONSISTENT);
gtkstatetype.constant("FOCUSED", GTK_STATE_FOCUSED);
// GtkAttachOptions
Php::Class<Php::Base> gtkattachoptions("GtkAttachOptions");
gtkattachoptions.constant("EXPAND", GTK_EXPAND);
gtkattachoptions.constant("SHRINK", GTK_SHRINK);
gtkattachoptions.constant("FILL", GTK_FILL);
// GdkByteOrder
Php::Class<Php::Base> gdkbyteorder("GdkByteOrder");
gdkbyteorder.constant("LSB_FIRST", GDK_LSB_FIRST);
gdkbyteorder.constant("MSB_FIRST", GDK_MSB_FIRST);
// GdkVisualType
Php::Class<Php::Base> gdkvisualtype("GdkVisualType");
gdkvisualtype.constant("STATIC_GRAY", GDK_VISUAL_STATIC_GRAY);
gdkvisualtype.constant("STATIC_GRAYSCALE", GDK_VISUAL_GRAYSCALE);
gdkvisualtype.constant("STATIC_COLOR", GDK_VISUAL_STATIC_COLOR);
gdkvisualtype.constant("PSEUDO_COLOR", GDK_VISUAL_PSEUDO_COLOR);
gdkvisualtype.constant("TRUE_COLOR", GDK_VISUAL_TRUE_COLOR);
gdkvisualtype.constant("DIRECT_COLOR", GDK_VISUAL_DIRECT_COLOR);
// GdkWindowType
Php::Class<Php::Base> gdkwindowtype("GdkWindowType");
gdkwindowtype.constant("ROOT", GDK_WINDOW_ROOT);
gdkwindowtype.constant("TOPLEVEL", GDK_WINDOW_TOPLEVEL);
gdkwindowtype.constant("CHILD", GDK_WINDOW_CHILD);
gdkwindowtype.constant("TEMP", GDK_WINDOW_TEMP);
gdkwindowtype.constant("FOREIGN", GDK_WINDOW_FOREIGN);
gdkwindowtype.constant("OFFSCREEN", GDK_WINDOW_OFFSCREEN);
gdkwindowtype.constant("SUBSURFACE", GDK_WINDOW_SUBSURFACE);
// GdkWindowWindowClass
Php::Class<Php::Base> gdkwindowwindowclass("GdkWindowWindowClass");
gdkwindowwindowclass.constant("INPUT_OUTPUT", GDK_INPUT_OUTPUT);
gdkwindowwindowclass.constant("INPUT_ONLY", GDK_INPUT_ONLY);
// GdkWindowHints
Php::Class<Php::Base> gdkwindowhints("GdkWindowHints");
gdkwindowhints.constant("POS", GDK_HINT_POS);
gdkwindowhints.constant("MIN_SIZE", GDK_HINT_MIN_SIZE);
gdkwindowhints.constant("MAX_SIZE", GDK_HINT_MAX_SIZE);
gdkwindowhints.constant("BASE_SIZE", GDK_HINT_BASE_SIZE);
gdkwindowhints.constant("ASPECT", GDK_HINT_ASPECT);
gdkwindowhints.constant("RESIZE_INC", GDK_HINT_RESIZE_INC);
gdkwindowhints.constant("WIN_GRAVITY", GDK_HINT_WIN_GRAVITY);
gdkwindowhints.constant("USER_POS", GDK_HINT_USER_POS);
gdkwindowhints.constant("USER_SIZE", GDK_HINT_USER_SIZE);
// GdkGravity
Php::Class<Php::Base> gdkgravity("GdkGravity");
gdkgravity.constant("NORTH_WEST", GDK_GRAVITY_NORTH_WEST);
gdkgravity.constant("NORTH", GDK_GRAVITY_NORTH);
gdkgravity.constant("NORTH_EAST", GDK_GRAVITY_NORTH_EAST);
gdkgravity.constant("WEST", GDK_GRAVITY_WEST);
gdkgravity.constant("CENTER", GDK_GRAVITY_CENTER);
gdkgravity.constant("EAST", GDK_GRAVITY_EAST);
gdkgravity.constant("SOUTH_WEST", GDK_GRAVITY_SOUTH_WEST);
gdkgravity.constant("SOUTH", GDK_GRAVITY_SOUTH);
gdkgravity.constant("SOUTH_EAST", GDK_GRAVITY_SOUTH_EAST);
gdkgravity.constant("STATIC", GDK_GRAVITY_STATIC);
// GdkAnchorHints
Php::Class<Php::Base> gdkanchorhints("GdkAnchorHints");
gdkanchorhints.constant("FLIP_X", GDK_ANCHOR_FLIP_X);
gdkanchorhints.constant("FLIP_Y", GDK_ANCHOR_FLIP_Y);
gdkanchorhints.constant("SLIDE_X", GDK_ANCHOR_SLIDE_X);
gdkanchorhints.constant("SLIDE_Y", GDK_ANCHOR_SLIDE_Y);
gdkanchorhints.constant("RESIZE_X", GDK_ANCHOR_RESIZE_X);
gdkanchorhints.constant("RESIZE_Y", GDK_ANCHOR_RESIZE_Y);
gdkanchorhints.constant("FLIP", GDK_ANCHOR_FLIP);
gdkanchorhints.constant("SLIDE", GDK_ANCHOR_SLIDE);
gdkanchorhints.constant("RESIZE", GDK_ANCHOR_RESIZE);
// GdkWindowEdge
Php::Class<Php::Base> gdkwindowedge("GdkWindowEdge");
gdkwindowedge.constant("NORTH_WEST", GDK_WINDOW_EDGE_NORTH_WEST);
gdkwindowedge.constant("NORTH", GDK_WINDOW_EDGE_NORTH);
gdkwindowedge.constant("NORTH_EAST", GDK_WINDOW_EDGE_NORTH_EAST);
gdkwindowedge.constant("WEST", GDK_WINDOW_EDGE_WEST);
gdkwindowedge.constant("EAST", GDK_WINDOW_EDGE_EAST);
gdkwindowedge.constant("SOUTH_WEST", GDK_WINDOW_EDGE_SOUTH_WEST);
gdkwindowedge.constant("SOUTH", GDK_WINDOW_EDGE_SOUTH);
gdkwindowedge.constant("SOUTH_EAST", GDK_WINDOW_EDGE_SOUTH_EAST);
// GdkWindowAttributesType
Php::Class<Php::Base> gdkwindowattributestype("GdkWindowAttributesType");
gdkwindowattributestype.constant("TITLE", GDK_WA_TITLE);
gdkwindowattributestype.constant("X", GDK_WA_X);
gdkwindowattributestype.constant("Y", GDK_WA_Y);
gdkwindowattributestype.constant("CURSOR", GDK_WA_CURSOR);
gdkwindowattributestype.constant("VISUAL", GDK_WA_VISUAL);
gdkwindowattributestype.constant("WMCLASS", GDK_WA_WMCLASS);
gdkwindowattributestype.constant("NOREDIR", GDK_WA_NOREDIR);
gdkwindowattributestype.constant("TYPE_HINT", GDK_WA_TYPE_HINT);
// GdkFullscreenMode
Php::Class<Php::Base> gdkfullscreenmode("GdkFullscreenMode");
gdkfullscreenmode.constant("ON_CURRENT_MONITOR", GDK_FULLSCREEN_ON_CURRENT_MONITOR);
gdkfullscreenmode.constant("ON_ALL_MONITORS", GDK_FULLSCREEN_ON_ALL_MONITORS);
// GdkFilterReturn
Php::Class<Php::Base> gdkfilterreturn("GdkFilterReturn");
gdkfilterreturn.constant("CONTINUE", GDK_FILTER_CONTINUE);
gdkfilterreturn.constant("TRANSLATE", GDK_FILTER_TRANSLATE);
gdkfilterreturn.constant("REMOVE", GDK_FILTER_REMOVE);
// GdkModifierIntent
Php::Class<Php::Base> gdkmodifierintent("GdkModifierIntent");
gdkmodifierintent.constant("PRIMARY_ACCELERATOR", GDK_MODIFIER_INTENT_PRIMARY_ACCELERATOR);
gdkmodifierintent.constant("CONTEXT_MENU", GDK_MODIFIER_INTENT_CONTEXT_MENU);
gdkmodifierintent.constant("EXTEND_SELECTION", GDK_MODIFIER_INTENT_EXTEND_SELECTION);
gdkmodifierintent.constant("MODIFY_SELECTION", GDK_MODIFIER_INTENT_MODIFY_SELECTION);
gdkmodifierintent.constant("NO_TEXT_INPUT", GDK_MODIFIER_INTENT_NO_TEXT_INPUT);
gdkmodifierintent.constant("SHIFT_GROUP", GDK_MODIFIER_INTENT_SHIFT_GROUP);
gdkmodifierintent.constant("DEFAULT_MOD_MASK", GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK);
// GdkWMDecoration
Php::Class<Php::Base> gdkwmdecoration("GdkWMDecoration");
gdkwmdecoration.constant("ALL", GDK_DECOR_ALL);
gdkwmdecoration.constant("BORDER", GDK_DECOR_BORDER);
gdkwmdecoration.constant("RESIZEH", GDK_DECOR_RESIZEH);
gdkwmdecoration.constant("TITLE", GDK_DECOR_TITLE);
gdkwmdecoration.constant("MENU", GDK_DECOR_MENU);
gdkwmdecoration.constant("MINIMIZE", GDK_DECOR_MINIMIZE);
gdkwmdecoration.constant("MAXIMIZE", GDK_DECOR_MAXIMIZE);
// GdkWMFunction
Php::Class<Php::Base> gdkwmfunction("GdkWMFunction");
gdkwmfunction.constant("ALL", GDK_FUNC_ALL);
gdkwmfunction.constant("RESIZE", GDK_FUNC_RESIZE);
gdkwmfunction.constant("MOVE", GDK_FUNC_MOVE);
gdkwmfunction.constant("MINIMIZE", GDK_FUNC_MINIMIZE);
gdkwmfunction.constant("MAXIMIZE", GDK_FUNC_MAXIMIZE);
gdkwmfunction.constant("CLOSE", GDK_FUNC_CLOSE);
// GdkWindow
Php::Class<GdkWindow_> gdkwindow("GdkWindow");
gdkwindow.extends(gobject);
gdkwindow.method<&GdkWindow_::beep>("beep");
gdkwindow.method<&GdkWindow_::maximize>("maximize");
gdkwindow.method<&GdkWindow_::get_default_root_window>("get_default_root_window");
gdkwindow.method<&GdkWindow_::get_window_type>("get_window_type");
gdkwindow.method<&GdkWindow_::get_children>("get_children");
gdkwindow.method<&GdkWindow_::get_width>("get_width");
gdkwindow.method<&GdkWindow_::get_height>("get_height");
gdkwindow.method<&GdkWindow_::set_cursor>("set_cursor");
// GtkApplication
Php::Class<GtkApplication_> gtkapplication("GtkApplication");
gtkapplication.extends(gobject);
gtkapplication.method<&GtkApplication_::__construct>("__construct");
gtkapplication.method<&GtkApplication_::add_window>("add_window");
gtkapplication.method<&GtkApplication_::remove_window>("remove_window");
gtkapplication.method<&GtkApplication_::get_windows>("get_windows");
gtkapplication.method<&GtkApplication_::get_window_by_id>("get_window_by_id");
gtkapplication.method<&GtkApplication_::get_active_window>("get_active_window");
gtkapplication.method<&GtkApplication_::inhibit>("inhibit");
gtkapplication.method<&GtkApplication_::uninhibit>("uninhibit");
gtkapplication.method<&GtkApplication_::is_inhibited>("is_inhibited");
gtkapplication.method<&GtkApplication_::prefers_app_menu>("prefers_app_menu");
gtkapplication.method<&GtkApplication_::get_app_menu>("get_app_menu");
gtkapplication.method<&GtkApplication_::set_app_menu>("set_app_menu");
gtkapplication.method<&GtkApplication_::get_menubar>("get_menubar");
gtkapplication.method<&GtkApplication_::set_menubar>("set_menubar");
gtkapplication.method<&GtkApplication_::get_menu_by_id>("get_menu_by_id");
gtkapplication.method<&GtkApplication_::add_accelerator>("add_accelerator");
gtkapplication.method<&GtkApplication_::remove_accelerator>("remove_accelerator");
gtkapplication.method<&GtkApplication_::list_action_descriptions>("list_action_descriptions");
gtkapplication.method<&GtkApplication_::get_accels_for_action>("get_accels_for_action");
gtkapplication.method<&GtkApplication_::set_accels_for_action>("set_accels_for_action");
gtkapplication.method<&GtkApplication_::get_actions_for_accel>("get_actions_for_accel");
gtkapplication.method<&GtkApplication_::window_new>("window_new");
// GtkIconTheme
Php::Class<GtkIconTheme_> gtkicontheme("GtkIconTheme");
gtkicontheme.extends(gobject);
gtkicontheme.method<&GtkIconTheme_::__construct>("__construct");
gtkicontheme.method<&GtkIconTheme_::get_default>("get_default");
gtkicontheme.method<&GtkIconTheme_::get_for_screen>("get_for_screen");
gtkicontheme.method<&GtkIconTheme_::has_icon>("has_icon");
gtkicontheme.method<&GtkIconTheme_::list_icons>("list_icons");
gtkicontheme.method<&GtkIconTheme_::add_resource_path>("add_resource_path");
gtkicontheme.method<&GtkIconTheme_::append_search_path>("append_search_path");
gtkicontheme.method<&GtkIconTheme_::prepend_search_path>("prepend_search_path");
// GApplication
Php::Class<GApplication_> gapplication("GApplication");
gapplication.extends(gobject);
gapplication.method<&GApplication_::id_is_valid>("id_is_valid");
gapplication.method<&GApplication_::__construct>("__construct");
gapplication.method<&GApplication_::get_application_id>("get_application_id");
gapplication.method<&GApplication_::set_application_id>("set_application_id");
gapplication.method<&GApplication_::get_inactivity_timeout>("get_inactivity_timeout");
gapplication.method<&GApplication_::set_inactivity_timeout>("set_inactivity_timeout");
gapplication.method<&GApplication_::get_flags>("get_flags");
gapplication.method<&GApplication_::set_flags>("set_flags");
gapplication.method<&GApplication_::get_resource_base_path>("get_resource_base_path");
gapplication.method<&GApplication_::set_resource_base_path>("set_resource_base_path");
gapplication.method<&GApplication_::get_dbus_connection>("get_dbus_connection");
gapplication.method<&GApplication_::get_dbus_object_path>("get_dbus_object_path");
gapplication.method<&GApplication_::set_action_group>("set_action_group");
gapplication.method<&GApplication_::get_is_registered>("get_is_registered");
gapplication.method<&GApplication_::get_is_remote>("get_is_remote");
// gapplication.method<&GApplication_::register>("register");
gapplication.method<&GApplication_::hold>("hold");
gapplication.method<&GApplication_::release>("release");
gapplication.method<&GApplication_::quit>("quit");
gapplication.method<&GApplication_::activate>("activate");
gapplication.method<&GApplication_::open>("open");
gapplication.method<&GApplication_::send_notification>("send_notification");
gapplication.method<&GApplication_::withdraw_notification>("withdraw_notification");
gapplication.method<&GApplication_::run>("run");
gapplication.method<&GApplication_::add_main_option_entries>("add_main_option_entries");
gapplication.method<&GApplication_::add_main_option>("add_main_option");
gapplication.method<&GApplication_::add_option_group>("add_option_group");
gapplication.method<&GApplication_::set_option_context_parameter_string>("set_option_context_parameter_string");
gapplication.method<&GApplication_::set_option_context_summary>("set_option_context_summary");
gapplication.method<&GApplication_::set_option_context_description>("set_option_context_description");
gapplication.method<&GApplication_::set_default>("set_default");
gapplication.method<&GApplication_::get_default>("get_default");
gapplication.method<&GApplication_::mark_busy>("mark_busy");
gapplication.method<&GApplication_::unmark_busy>("unmark_busy");
gapplication.method<&GApplication_::get_is_busy>("get_is_busy");
gapplication.method<&GApplication_::bind_busy_property>("bind_busy_property");
gapplication.method<&GApplication_::unbind_busy_property>("unbind_busy_property");
gapplication.constant("FLAGS_NONE", G_APPLICATION_FLAGS_NONE);
gapplication.constant("IS_SERVICE", G_APPLICATION_IS_SERVICE);
gapplication.constant("IS_LAUNCHER", G_APPLICATION_IS_LAUNCHER);
gapplication.constant("HANDLES_OPEN", G_APPLICATION_HANDLES_OPEN);
gapplication.constant("HANDLES_COMMAND_LINE", G_APPLICATION_HANDLES_COMMAND_LINE);
gapplication.constant("SEND_ENVIRONMENT", G_APPLICATION_SEND_ENVIRONMENT);
gapplication.constant("NON_UNIQUE", G_APPLICATION_NON_UNIQUE);
gapplication.constant("CAN_OVERRIDE_APP_ID", G_APPLICATION_CAN_OVERRIDE_APP_ID);
// gapplication.constant("ALLOW_REPLACEMENT", G_APPLICATION_ALLOW_REPLACEMENT);
// gapplication.constant("REPLACE", G_APPLICATION_REPLACE);
// GtkApplicationInhibitFlags
Php::Class<Php::Base> gtkapplicationinhibitflag("GtkApplicationInhibitFlags");
gtkapplicationinhibitflag.constant("LOGOUT", GTK_APPLICATION_INHIBIT_LOGOUT);
gtkapplicationinhibitflag.constant("SWITCH", GTK_APPLICATION_INHIBIT_SWITCH);
gtkapplicationinhibitflag.constant("SUSPEND", GTK_APPLICATION_INHIBIT_SUSPEND);
gtkapplicationinhibitflag.constant("IDLE", GTK_APPLICATION_INHIBIT_IDLE);
// GtkWidgetHelpType
Php::Class<Php::Base> gtkwidgethelptype("GtkWidgetHelpType");
gtkwidgethelptype.constant("TOOLTIP", GTK_WIDGET_HELP_TOOLTIP);
gtkwidgethelptype.constant("WHATS_THIS", GTK_WIDGET_HELP_WHATS_THIS);
// GtkTextDirection
Php::Class<Php::Base> gtktextdirection("GtkTextDirection");
gtktextdirection.constant("NONE", GTK_TEXT_DIR_NONE);
gtktextdirection.constant("LTR", GTK_TEXT_DIR_LTR);
gtktextdirection.constant("RTL", GTK_TEXT_DIR_RTL);
// GtkSizeRequestMode
Php::Class<Php::Base> gtksizerequestmode("GtkSizeRequestMode");
gtksizerequestmode.constant("HEIGHT_FOR_WIDTH", GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH);
gtksizerequestmode.constant("WIDTH_FOR_HEIGHT", GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT);
gtksizerequestmode.constant("CONSTANT_SIZE", GTK_SIZE_REQUEST_CONSTANT_SIZE);
// GtkAlign
Php::Class<Php::Base> gtkalign("GtkAlign");
gtkalign.constant("FILL", GTK_ALIGN_FILL);
gtkalign.constant("START", GTK_ALIGN_START);
gtkalign.constant("END", GTK_ALIGN_END);
gtkalign.constant("CENTER", GTK_ALIGN_CENTER);
gtkalign.constant("BASELINE", GTK_ALIGN_BASELINE);
// GtkBorderStyle
Php::Class<Php::Base> gtkborderstyle("GtkBorderStyle");
gtkborderstyle.constant("NONE", GTK_BORDER_STYLE_NONE);
gtkborderstyle.constant("SOLID", GTK_BORDER_STYLE_SOLID);
gtkborderstyle.constant("INSET", GTK_BORDER_STYLE_INSET);
gtkborderstyle.constant("OUTSET", GTK_BORDER_STYLE_OUTSET);
gtkborderstyle.constant("HIDDEN", GTK_BORDER_STYLE_HIDDEN);
gtkborderstyle.constant("DOTTED", GTK_BORDER_STYLE_DOTTED);
gtkborderstyle.constant("DASHED", GTK_BORDER_STYLE_DASHED);
gtkborderstyle.constant("DOUBLE", GTK_BORDER_STYLE_DOUBLE);
gtkborderstyle.constant("GROOVE", GTK_BORDER_STYLE_GROOVE);
gtkborderstyle.constant("RIDGE", GTK_BORDER_STYLE_RIDGE);
// GtkJunctionSides
Php::Class<Php::Base> gtkjunctionsides("GtkJunctionSides");
gtkjunctionsides.constant("NONE", GTK_JUNCTION_NONE);
gtkjunctionsides.constant("CORNER_TOPLEFT", GTK_JUNCTION_CORNER_TOPLEFT);
gtkjunctionsides.constant("CORNER_TOPRIGHT", GTK_JUNCTION_CORNER_TOPRIGHT);
gtkjunctionsides.constant("CORNER_BOTTOMLEFT", GTK_JUNCTION_CORNER_BOTTOMLEFT);
gtkjunctionsides.constant("CORNER_BOTTOMRIGHT", GTK_JUNCTION_CORNER_BOTTOMRIGHT);
gtkjunctionsides.constant("TOP", GTK_JUNCTION_TOP);
gtkjunctionsides.constant("BOTTOM", GTK_JUNCTION_BOTTOM);
gtkjunctionsides.constant("LEFT", GTK_JUNCTION_LEFT);
gtkjunctionsides.constant("RIGHT", GTK_JUNCTION_RIGHT);
// GtkRegionFlags
Php::Class<Php::Base> gtkregionflags("GtkRegionFlags");
gtkregionflags.constant("EVEN", GTK_REGION_EVEN);
gtkregionflags.constant("ODD", GTK_REGION_ODD);
gtkregionflags.constant("FIRST", GTK_REGION_FIRST);
gtkregionflags.constant("LAST", GTK_REGION_LAST);
gtkregionflags.constant("ONLY", GTK_REGION_ONLY);
gtkregionflags.constant("SORTED", GTK_REGION_SORTED);
// GtkStyleContextPrintFlags
Php::Class<Php::Base> gtkstylecontextprintflags("GtkStyleContextPrintFlags");
gtkstylecontextprintflags.constant("NONE", GTK_STYLE_CONTEXT_PRINT_NONE);
gtkstylecontextprintflags.constant("RECURSE", GTK_STYLE_CONTEXT_PRINT_RECURSE);
gtkstylecontextprintflags.constant("SHOW_STYLE", GTK_STYLE_CONTEXT_PRINT_SHOW_STYLE);
// GtkStyleProvider
Php::Class<Php::Base> gtkstyleprovider("GtkStyleProvider");
gtkstyleprovider.constant("PRIORITY_APPLICATION", GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
gtkstyleprovider.constant("PRIORITY_FALLBACK", GTK_STYLE_PROVIDER_PRIORITY_FALLBACK);
gtkstyleprovider.constant("PRIORITY_SETTINGS", GTK_STYLE_PROVIDER_PRIORITY_SETTINGS);
gtkstyleprovider.constant("PRIORITY_THEME", GTK_STYLE_PROVIDER_PRIORITY_THEME);
gtkstyleprovider.constant("PRIORITY_USER", GTK_STYLE_PROVIDER_PRIORITY_USER);
// ----- ENUMS
extension.add(std::move(gtkwidgethelptype));
extension.add(std::move(gtktextdirection));
extension.add(std::move(gtksizerequestmode));
extension.add(std::move(gtkalign));
extension.add(std::move(gtkborderstyle));
extension.add(std::move(gtkjunctionsides));
extension.add(std::move(gtkregionflags));
extension.add(std::move(gtkstylecontextprintflags));
extension.add(std::move(gtkstyleprovider));
// ----- GDK
// Gdk
Php::Class<Gdk_> gdk("Gdk");
gdk.method<&Gdk_::test_simulate_button>("test_simulate_button");
gdk.constant("SHIFT_MASK", GDK_SHIFT_MASK);
gdk.constant("LOCK_MASK", GDK_LOCK_MASK);
gdk.constant("CONTROL_MASK", GDK_CONTROL_MASK);
gdk.constant("MOD1_MASK", GDK_MOD1_MASK);
gdk.constant("MOD2_MASK", GDK_MOD2_MASK);
gdk.constant("MOD3_MASK", GDK_MOD3_MASK);
gdk.constant("MOD4_MASK", GDK_MOD4_MASK);
gdk.constant("MOD5_MASK", GDK_MOD5_MASK);
gdk.constant("BUTTON_MIDDLE", GDK_BUTTON_MIDDLE);
gdk.constant("BUTTON_PRIMARY", GDK_BUTTON_PRIMARY);
gdk.constant("BUTTON_SECONDARY", GDK_BUTTON_SECONDARY);
gdk.constant("BUTTON1_MASK", GDK_BUTTON1_MASK);
gdk.constant("BUTTON2_MASK", GDK_BUTTON2_MASK);
gdk.constant("BUTTON3_MASK", GDK_BUTTON3_MASK);
gdk.constant("BUTTON4_MASK", GDK_BUTTON4_MASK);
gdk.constant("BUTTON5_MASK", GDK_BUTTON5_MASK);
gdk.constant("MODIFIER_RESERVED_13_MASK", GDK_MODIFIER_RESERVED_13_MASK);
gdk.constant("MODIFIER_RESERVED_14_MASK", GDK_MODIFIER_RESERVED_14_MASK);
gdk.constant("MODIFIER_RESERVED_15_MASK", GDK_MODIFIER_RESERVED_15_MASK);
gdk.constant("MODIFIER_RESERVED_16_MASK", GDK_MODIFIER_RESERVED_16_MASK);
gdk.constant("MODIFIER_RESERVED_17_MASK", GDK_MODIFIER_RESERVED_17_MASK);
gdk.constant("MODIFIER_RESERVED_18_MASK", GDK_MODIFIER_RESERVED_18_MASK);
gdk.constant("MODIFIER_RESERVED_19_MASK", GDK_MODIFIER_RESERVED_19_MASK);
gdk.constant("MODIFIER_RESERVED_20_MASK", GDK_MODIFIER_RESERVED_20_MASK);
gdk.constant("MODIFIER_RESERVED_21_MASK", GDK_MODIFIER_RESERVED_21_MASK);
gdk.constant("MODIFIER_RESERVED_22_MASK", GDK_MODIFIER_RESERVED_22_MASK);
gdk.constant("MODIFIER_RESERVED_23_MASK", GDK_MODIFIER_RESERVED_23_MASK);
gdk.constant("MODIFIER_RESERVED_24_MASK", GDK_MODIFIER_RESERVED_24_MASK);
gdk.constant("MODIFIER_RESERVED_25_MASK", GDK_MODIFIER_RESERVED_25_MASK);
gdk.constant("SUPER_MASK", GDK_SUPER_MASK);
gdk.constant("HYPER_MASK", GDK_HYPER_MASK);
gdk.constant("META_MASK", GDK_META_MASK);
gdk.constant("MODIFIER_RESERVED_29_MASK", GDK_MODIFIER_RESERVED_29_MASK);
gdk.constant("RELEASE_MASK", GDK_RELEASE_MASK);
gdk.constant("MODIFIER_MASK", GDK_MODIFIER_MASK);
gdk.constant("WINDOW_TYPE_HINT_NORMAL", GDK_WINDOW_TYPE_HINT_NORMAL);
gdk.constant("WINDOW_TYPE_HINT_DIALOG", GDK_WINDOW_TYPE_HINT_DIALOG);
gdk.constant("WINDOW_TYPE_HINT_MENU", GDK_WINDOW_TYPE_HINT_MENU);
gdk.constant("WINDOW_TYPE_HINT_TOOLBAR", GDK_WINDOW_TYPE_HINT_TOOLBAR);
gdk.constant("WINDOW_TYPE_HINT_SPLASHSCREEN", GDK_WINDOW_TYPE_HINT_SPLASHSCREEN);
gdk.constant("WINDOW_TYPE_HINT_UTILITY", GDK_WINDOW_TYPE_HINT_UTILITY);
gdk.constant("WINDOW_TYPE_HINT_DOCK", GDK_WINDOW_TYPE_HINT_DOCK);
gdk.constant("WINDOW_TYPE_HINT_DESKTOP", GDK_WINDOW_TYPE_HINT_DESKTOP);
gdk.constant("WINDOW_TYPE_HINT_DROPDOWN_MENU", GDK_WINDOW_TYPE_HINT_DROPDOWN_MENU);
gdk.constant("WINDOW_TYPE_HINT_POPUP_MENU", GDK_WINDOW_TYPE_HINT_POPUP_MENU);
gdk.constant("WINDOW_TYPE_HINT_TOOLTIP", GDK_WINDOW_TYPE_HINT_TOOLTIP);
gdk.constant("WINDOW_TYPE_HINT_NOTIFICATION", GDK_WINDOW_TYPE_HINT_NOTIFICATION);
gdk.constant("WINDOW_TYPE_HINT_COMBO", GDK_WINDOW_TYPE_HINT_COMBO);
gdk.constant("WINDOW_TYPE_HINT_DND", GDK_WINDOW_TYPE_HINT_DND);
// gdk.constant("TYPE_PIXBUF", GDK_TYPE_PIXBUF);
gdk.constant("NOTHING", (int)GDK_NOTHING);
gdk.constant("DELETE", (int)GDK_DELETE);
gdk.constant("DESTROY", (int)GDK_DESTROY);
gdk.constant("EXPOSE", (int)GDK_EXPOSE);
gdk.constant("MOTION_NOTIFY", (int)GDK_MOTION_NOTIFY);
gdk.constant("BUTTON_PRESS", (int)GDK_BUTTON_PRESS);
gdk.constant("_2BUTTON_PRESS", (int)GDK_2BUTTON_PRESS);
gdk.constant("DOUBLE_BUTTON_PRESS", (int)GDK_DOUBLE_BUTTON_PRESS);
gdk.constant("_3BUTTON_PRESS", (int)GDK_3BUTTON_PRESS);
gdk.constant("TRIPLE_BUTTON_PRESS", (int)GDK_TRIPLE_BUTTON_PRESS);
gdk.constant("BUTTON_RELEASE", (int)GDK_BUTTON_RELEASE);
gdk.constant("KEY_PRESS", (int)GDK_KEY_PRESS);
gdk.constant("KEY_RELEASE", (int)GDK_KEY_RELEASE);
gdk.constant("ENTER_NOTIFY", (int)GDK_ENTER_NOTIFY);
gdk.constant("LEAVE_NOTIFY", (int)GDK_LEAVE_NOTIFY);
gdk.constant("FOCUS_CHANGE", (int)GDK_FOCUS_CHANGE);
gdk.constant("CONFIGURE", (int)GDK_CONFIGURE);
gdk.constant("MAP", (int)GDK_MAP);
gdk.constant("UNMAP", (int)GDK_UNMAP);
gdk.constant("PROPERTY_NOTIFY", (int)GDK_PROPERTY_NOTIFY);
gdk.constant("SELECTION_CLEAR", (int)GDK_SELECTION_CLEAR);
gdk.constant("SELECTION_REQUEST", (int)GDK_SELECTION_REQUEST);
gdk.constant("SELECTION_NOTIFY", (int)GDK_SELECTION_NOTIFY);
gdk.constant("PROXIMITY_IN", (int)GDK_PROXIMITY_IN);
gdk.constant("PROXIMITY_OUT", (int)GDK_PROXIMITY_OUT);
gdk.constant("DRAG_ENTER", (int)GDK_DRAG_ENTER);
gdk.constant("DRAG_LEAVE", (int)GDK_DRAG_LEAVE);
gdk.constant("DRAG_MOTION", (int)GDK_DRAG_MOTION);
gdk.constant("DRAG_STATUS", (int)GDK_DRAG_STATUS);
gdk.constant("DROP_START", (int)GDK_DROP_START);
gdk.constant("DROP_FINISHED", (int)GDK_DROP_FINISHED);
gdk.constant("CLIENT_EVENT", (int)GDK_CLIENT_EVENT);
gdk.constant("VISIBILITY_NOTIFY", (int)GDK_VISIBILITY_NOTIFY);
gdk.constant("SCROLL", (int)GDK_SCROLL);
gdk.constant("WINDOW_STATE", (int)GDK_WINDOW_STATE);
gdk.constant("SETTING", (int)GDK_SETTING);
gdk.constant("OWNER_CHANGE", (int)GDK_OWNER_CHANGE);
gdk.constant("GRAB_BROKEN", (int)GDK_GRAB_BROKEN);
gdk.constant("DAMAGE", (int)GDK_DAMAGE);
gdk.constant("TOUCH_BEGIN", (int)GDK_TOUCH_BEGIN);
gdk.constant("TOUCH_UPDATE", (int)GDK_TOUCH_UPDATE);
gdk.constant("TOUCH_END", (int)GDK_TOUCH_END);
gdk.constant("TOUCH_CANCEL", (int)GDK_TOUCH_CANCEL);
gdk.constant("TOUCHPAD_SWIPE", (int)GDK_TOUCHPAD_SWIPE);
gdk.constant("TOUCHPAD_PINCH", (int)GDK_TOUCHPAD_PINCH);
gdk.constant("PAD_BUTTON_PRESS", (int)GDK_PAD_BUTTON_PRESS);
gdk.constant("PAD_BUTTON_RELEASE", (int)GDK_PAD_BUTTON_RELEASE);
gdk.constant("PAD_RING", (int)GDK_PAD_RING);
gdk.constant("PAD_STRIP", (int)GDK_PAD_STRIP);
gdk.constant("PAD_GROUP_MODE", (int)GDK_PAD_GROUP_MODE);
gdk.constant("EVENT_LAST", (int)GDK_EVENT_LAST);
// GdkVisual
Php::Class<GdkVisual_> gdkvisual("GdkVisual");
gdkvisual.extends(gobject);
gdkvisual.method<&GdkVisual_::get_blue_pixel_details>("get_blue_pixel_details");
gdkvisual.method<&GdkVisual_::get_green_pixel_details>("get_green_pixel_details");
gdkvisual.method<&GdkVisual_::get_red_pixel_details>("get_red_pixel_details");
gdkvisual.method<&GdkVisual_::get_depth>("get_depth");
gdkvisual.method<&GdkVisual_::get_visual_type>("get_visual_type");
gdkvisual.method<&GdkVisual_::get_screen>("get_screen");
// GdkEvent
Php::Class<GdkEvent_> gdkevent("GdkEvent");
gdkevent.method<&GdkEvent_::__construct>("__construct");
// gdkevent.method<&GdkEvent_::__get>("__get");
gdkevent.property("type", NULL);
gdkevent.property("button", NULL);
gdkevent.property("key", NULL);
// GdkEventButton
Php::Class<GdkEventButton_> gdkeventbutton("GdkEventButton");
gdkeventbutton.method<&GdkEventButton_::__construct>("__construct");
gdkeventbutton.property("type", NULL);
gdkeventbutton.property("send_event", NULL);
gdkeventbutton.property("time", NULL);
gdkeventbutton.property("x", NULL);
gdkeventbutton.property("y", NULL);
gdkeventbutton.property("axes", NULL);
gdkeventbutton.property("state", NULL);
gdkeventbutton.property("button", NULL);
gdkeventbutton.property("x_root", NULL);
gdkeventbutton.property("y_root", NULL);
// GdkCursor
Php::Class<GdkCursor_> gdkcursor("GdkCursor");
gdkcursor.extends(gobject);
gdkcursor.method<&GdkCursor_::__construct>("__construct");
gdkcursor.method<&GdkCursor_::new_for_display>("new_for_display");
gdkcursor.method<&GdkCursor_::new_from_name>("new_from_name");
gdkcursor.method<&GdkCursor_::new_from_pixbuf>("new_from_pixbuf");
gdkcursor.method<&GdkCursor_::get_cursor_type>("get_cursor_type");
gdkcursor.method<&GdkCursor_::get_display>("get_display");
gdkcursor.method<&GdkCursor_::get_image>("get_image");
// GdkCursorType
Php::Class<Php::Base> gdkcursortype("GdkCursorType");
gdkcursortype.constant("X_CURSOR", (int)GDK_X_CURSOR);
gdkcursortype.constant("ARROW", (int)GDK_ARROW);
gdkcursortype.constant("BASED_ARROW_DOWN", (int)GDK_BASED_ARROW_DOWN);
gdkcursortype.constant("BASED_ARROW_UP", (int)GDK_BASED_ARROW_UP);
gdkcursortype.constant("BOAT", (int)GDK_BOAT);
gdkcursortype.constant("BOGOSITY", (int)GDK_BOGOSITY);
gdkcursortype.constant("BOTTOM_LEFT_CORNER", (int)GDK_BOTTOM_LEFT_CORNER);
gdkcursortype.constant("BOTTOM_RIGHT_CORNER", (int)GDK_BOTTOM_RIGHT_CORNER);
gdkcursortype.constant("BOTTOM_SIDE", (int)GDK_BOTTOM_SIDE);
gdkcursortype.constant("BOTTOM_TEE", (int)GDK_BOTTOM_TEE);
gdkcursortype.constant("BOX_SPIRAL", (int)GDK_BOX_SPIRAL);
gdkcursortype.constant("CENTER_PTR", (int)GDK_CENTER_PTR);
gdkcursortype.constant("CIRCLE", (int)GDK_CIRCLE);
gdkcursortype.constant("CLOCK", (int)GDK_CLOCK);
gdkcursortype.constant("COFFEE_MUG", (int)GDK_COFFEE_MUG);
gdkcursortype.constant("CROSS", (int)GDK_CROSS);
gdkcursortype.constant("CROSS_REVERSE", (int)GDK_CROSS_REVERSE);
gdkcursortype.constant("CROSSHAIR", (int)GDK_CROSSHAIR);
gdkcursortype.constant("DIAMOND_CROSS", (int)GDK_DIAMOND_CROSS);
gdkcursortype.constant("DOT", (int)GDK_DOT);
gdkcursortype.constant("DOTBOX", (int)GDK_DOTBOX);
gdkcursortype.constant("DOUBLE_ARROW", (int)GDK_DOUBLE_ARROW);
gdkcursortype.constant("DRAFT_LARGE", (int)GDK_DRAFT_LARGE);
gdkcursortype.constant("DRAFT_SMALL", (int)GDK_DRAFT_SMALL);
gdkcursortype.constant("DRAPED_BOX", (int)GDK_DRAPED_BOX);
gdkcursortype.constant("EXCHANGE", (int)GDK_EXCHANGE);
gdkcursortype.constant("FLEUR", (int)GDK_FLEUR);
gdkcursortype.constant("GOBBLER", (int)GDK_GOBBLER);
gdkcursortype.constant("GUMBY", (int)GDK_GUMBY);
gdkcursortype.constant("HAND1", (int)GDK_HAND1);
gdkcursortype.constant("HAND2", (int)GDK_HAND2);
gdkcursortype.constant("HEART", (int)GDK_HEART);
gdkcursortype.constant("ICON", (int)GDK_ICON);
gdkcursortype.constant("IRON_CROSS", (int)GDK_IRON_CROSS);
gdkcursortype.constant("LEFT_PTR", (int)GDK_LEFT_PTR);
gdkcursortype.constant("LEFT_SIDE", (int)GDK_LEFT_SIDE);
gdkcursortype.constant("LEFT_TEE", (int)GDK_LEFT_TEE);
gdkcursortype.constant("LEFTBUTTON", (int)GDK_LEFTBUTTON);
gdkcursortype.constant("LL_ANGLE", (int)GDK_LL_ANGLE);
gdkcursortype.constant("LR_ANGLE", (int)GDK_LR_ANGLE);
gdkcursortype.constant("MAN", (int)GDK_MAN);
gdkcursortype.constant("MIDDLEBUTTON", (int)GDK_MIDDLEBUTTON);
gdkcursortype.constant("MOUSE", (int)GDK_MOUSE);
gdkcursortype.constant("PENCIL", (int)GDK_PENCIL);
gdkcursortype.constant("PIRATE", (int)GDK_PIRATE);
gdkcursortype.constant("PLUS", (int)GDK_PLUS);
gdkcursortype.constant("QUESTION_ARROW", (int)GDK_QUESTION_ARROW);
gdkcursortype.constant("RIGHT_PTR", (int)GDK_RIGHT_PTR);
gdkcursortype.constant("RIGHT_SIDE", (int)GDK_RIGHT_SIDE);
gdkcursortype.constant("RIGHT_TEE", (int)GDK_RIGHT_TEE);
gdkcursortype.constant("RIGHTBUTTON", (int)GDK_RIGHTBUTTON);
gdkcursortype.constant("RTL_LOGO", (int)GDK_RTL_LOGO);
gdkcursortype.constant("SAILBOAT", (int)GDK_SAILBOAT);
gdkcursortype.constant("SB_DOWN_ARROW", (int)GDK_SB_DOWN_ARROW);
gdkcursortype.constant("SB_H_DOUBLE_ARROW", (int)GDK_SB_H_DOUBLE_ARROW);
gdkcursortype.constant("SB_LEFT_ARROW", (int)GDK_SB_LEFT_ARROW);
gdkcursortype.constant("SB_RIGHT_ARROW", (int)GDK_SB_RIGHT_ARROW);
gdkcursortype.constant("SB_UP_ARROW", (int)GDK_SB_UP_ARROW);
gdkcursortype.constant("SB_V_DOUBLE_ARROW", (int)GDK_SB_V_DOUBLE_ARROW);
gdkcursortype.constant("SHUTTLE", (int)GDK_SHUTTLE);
gdkcursortype.constant("SIZING", (int)GDK_SIZING);
gdkcursortype.constant("SPIDER", (int)GDK_SPIDER);
gdkcursortype.constant("SPRAYCAN", (int)GDK_SPRAYCAN);
gdkcursortype.constant("STAR", (int)GDK_STAR);
gdkcursortype.constant("TARGET", (int)GDK_TARGET);
gdkcursortype.constant("TCROSS", (int)GDK_TCROSS);
gdkcursortype.constant("TOP_LEFT_ARROW", (int)GDK_TOP_LEFT_ARROW);
gdkcursortype.constant("TOP_LEFT_CORNER", (int)GDK_TOP_LEFT_CORNER);
gdkcursortype.constant("TOP_RIGHT_CORNER", (int)GDK_TOP_RIGHT_CORNER);
gdkcursortype.constant("TOP_SIDE", (int)GDK_TOP_SIDE);
gdkcursortype.constant("TOP_TEE", (int)GDK_TOP_TEE);
gdkcursortype.constant("TREK", (int)GDK_TREK);
gdkcursortype.constant("UL_ANGLE", (int)GDK_UL_ANGLE);
gdkcursortype.constant("UMBRELLA", (int)GDK_UMBRELLA);
gdkcursortype.constant("UR_ANGLE", (int)GDK_UR_ANGLE);
gdkcursortype.constant("WATCH", (int)GDK_WATCH);
gdkcursortype.constant("XTERM", (int)GDK_XTERM);
gdkcursortype.constant("LAST_CURSOR", (int)GDK_LAST_CURSOR);
gdkcursortype.constant("BLANK_CURSOR", (int)GDK_BLANK_CURSOR);
gdkcursortype.constant("CURSOR_IS_PIXMAP", (int)GDK_CURSOR_IS_PIXMAP);
// GdkEventMask
Php::Class<Php::Base> gdkeventmask("GdkEventMask");
gdkeventmask.constant("EXPOSURE_MASK", (int)GDK_EXPOSURE_MASK);
gdkeventmask.constant("POINTER_MOTION_MASK", (int)GDK_POINTER_MOTION_MASK);
gdkeventmask.constant("POINTER_MOTION_HINT_MASK", (int)GDK_POINTER_MOTION_HINT_MASK);
gdkeventmask.constant("BUTTON_MOTION_MASK", (int)GDK_BUTTON_MOTION_MASK);
gdkeventmask.constant("BUTTON1_MOTION_MASK", (int)GDK_BUTTON1_MOTION_MASK);
gdkeventmask.constant("BUTTON2_MOTION_MASK", (int)GDK_BUTTON2_MOTION_MASK);
gdkeventmask.constant("BUTTON3_MOTION_MASK", (int)GDK_BUTTON3_MOTION_MASK);
gdkeventmask.constant("BUTTON_PRESS_MASK", (int)GDK_BUTTON_PRESS_MASK);
gdkeventmask.constant("BUTTON_RELEASE_MASK", (int)GDK_BUTTON_RELEASE_MASK);
gdkeventmask.constant("KEY_PRESS_MASK", (int)GDK_KEY_PRESS_MASK);
gdkeventmask.constant("KEY_RELEASE_MASK", (int)GDK_KEY_RELEASE_MASK);
gdkeventmask.constant("ENTER_NOTIFY_MASK", (int)GDK_ENTER_NOTIFY_MASK);
gdkeventmask.constant("LEAVE_NOTIFY_MASK", (int)GDK_LEAVE_NOTIFY_MASK);
gdkeventmask.constant("FOCUS_CHANGE_MASK", (int)GDK_FOCUS_CHANGE_MASK);
gdkeventmask.constant("STRUCTURE_MASK", (int)GDK_STRUCTURE_MASK);
gdkeventmask.constant("PROPERTY_CHANGE_MASK", (int)GDK_PROPERTY_CHANGE_MASK);
gdkeventmask.constant("VISIBILITY_NOTIFY_MASK", (int)GDK_VISIBILITY_NOTIFY_MASK);
gdkeventmask.constant("PROXIMITY_IN_MASK", (int)GDK_PROXIMITY_IN_MASK);
gdkeventmask.constant("PROXIMITY_OUT_MASK", (int)GDK_PROXIMITY_OUT_MASK);
gdkeventmask.constant("SUBSTRUCTURE_MASK", (int)GDK_SUBSTRUCTURE_MASK);
gdkeventmask.constant("SCROLL_MASK", (int)GDK_SCROLL_MASK);
gdkeventmask.constant("TOUCH_MASK", (int)GDK_TOUCH_MASK);
gdkeventmask.constant("SMOOTH_SCROLL_MASK", (int)GDK_SMOOTH_SCROLL_MASK);
gdkeventmask.constant("TOUCHPAD_GESTURE_MASK", (int)GDK_TOUCHPAD_GESTURE_MASK);
gdkeventmask.constant("TABLET_PAD_MASK", (int)GDK_TABLET_PAD_MASK);
gdkeventmask.constant("ALL_EVENTS_MASK", (int)GDK_ALL_EVENTS_MASK);
// GdkThreads
// Php::Class<Php::GdkThreads_> gdkthreads("GdkThreads");
// gdkthreads.method<&GdkThreads_::add_idle>("add_idle");
// GdkScreen
Php::Class<GdkScreen_> gdkscreen("GdkScreen");
// gdkevent.method<&GdkEvent_::__construct>("__construct");
gdkscreen.method<&GdkScreen_::get_rgba_visual>("get_rgba_visual");
gdkscreen.method<&GdkScreen_::get_window_stack>("get_window_stack");
gdkscreen.method<&GdkScreen_::get_default>("get_default");
// GdkDisplay
Php::Class<GdkDisplay_> gdkdisplay("GdkDisplay");
gdkdisplay.extends(gobject);
gdkdisplay.method<&GdkDisplay_::get_default>("get_default");
gdkdisplay.method<&GdkDisplay_::get_primary_monitor>("get_primary_monitor");
gdkdisplay.method<&GdkDisplay_::get_default_screen>("get_default_screen");
// GdkMonitor
Php::Class<GdkMonitor_> gdkmonitor("GdkMonitor");
gdkmonitor.extends(gobject);
gdkmonitor.method<&GdkMonitor_::get_width_mm>("get_width_mm");
gdkmonitor.method<&GdkMonitor_::get_height_mm>("get_height_mm");
gdkmonitor.method<&GdkMonitor_::get_workarea>("get_workarea");
// GdkEventKey
Php::Class<GdkEventKey_> gdkeventkey("GdkEventKey");
gdkeventkey.method<&GdkEventKey_::__construct>("__construct");
gdkeventkey.property("type", NULL);
gdkeventkey.property("send_event", NULL);
gdkeventkey.property("time", NULL);
gdkeventkey.property("state", NULL);
gdkeventkey.property("keyval", NULL);
gdkeventkey.property("length", NULL);
gdkeventkey.property("string", NULL);
gdkeventkey.property("hardware_keycode", NULL);
gdkeventkey.property("keycode", NULL);
gdkeventkey.property("group", NULL);
gdkeventkey.property("is_modifier", NULL);
// GdkEventType
Php::Class<Php::Base> gdkeventtype("GdkEventType");
gdkeventtype.constant("NOTHING", (int)GDK_NOTHING);
gdkeventtype.constant("DELETE", (int)GDK_DELETE);
gdkeventtype.constant("DESTROY", (int)GDK_DESTROY);
gdkeventtype.constant("EXPOSE", (int)GDK_EXPOSE);
gdkeventtype.constant("MOTION_NOTIFY", (int)GDK_MOTION_NOTIFY);
gdkeventtype.constant("BUTTON_PRESS", (int)GDK_BUTTON_PRESS);
gdkeventtype.constant("_2BUTTON_PRESS", (int)GDK_2BUTTON_PRESS);
gdkeventtype.constant("DOUBLE_BUTTON_PRESS", (int)GDK_DOUBLE_BUTTON_PRESS);
gdkeventtype.constant("_3BUTTON_PRESS", (int)GDK_3BUTTON_PRESS);
gdkeventtype.constant("TRIPLE_BUTTON_PRESS", (int)GDK_TRIPLE_BUTTON_PRESS);
gdkeventtype.constant("BUTTON_RELEASE", (int)GDK_BUTTON_RELEASE);
gdkeventtype.constant("KEY_PRESS", (int)GDK_KEY_PRESS);
gdkeventtype.constant("KEY_RELEASE", (int)GDK_KEY_RELEASE);
gdkeventtype.constant("ENTER_NOTIFY", (int)GDK_ENTER_NOTIFY);
gdkeventtype.constant("LEAVE_NOTIFY", (int)GDK_LEAVE_NOTIFY);
gdkeventtype.constant("FOCUS_CHANGE", (int)GDK_FOCUS_CHANGE);
gdkeventtype.constant("CONFIGURE", (int)GDK_CONFIGURE);
gdkeventtype.constant("MAP", (int)GDK_MAP);
gdkeventtype.constant("UNMAP", (int)GDK_UNMAP);
gdkeventtype.constant("PROPERTY_NOTIFY", (int)GDK_PROPERTY_NOTIFY);
gdkeventtype.constant("SELECTION_CLEAR", (int)GDK_SELECTION_CLEAR);
gdkeventtype.constant("SELECTION_REQUEST", (int)GDK_SELECTION_REQUEST);
gdkeventtype.constant("SELECTION_NOTIFY", (int)GDK_SELECTION_NOTIFY);
gdkeventtype.constant("PROXIMITY_IN", (int)GDK_PROXIMITY_IN);
gdkeventtype.constant("PROXIMITY_OUT", (int)GDK_PROXIMITY_OUT);
gdkeventtype.constant("DRAG_ENTER", (int)GDK_DRAG_ENTER);
gdkeventtype.constant("DRAG_LEAVE", (int)GDK_DRAG_LEAVE);
gdkeventtype.constant("DRAG_MOTION", (int)GDK_DRAG_MOTION);
gdkeventtype.constant("DRAG_STATUS", (int)GDK_DRAG_STATUS);
gdkeventtype.constant("DROP_START", (int)GDK_DROP_START);
gdkeventtype.constant("DROP_FINISHED", (int)GDK_DROP_FINISHED);
gdkeventtype.constant("CLIENT_EVENT", (int)GDK_CLIENT_EVENT);
gdkeventtype.constant("VISIBILITY_NOTIFY", (int)GDK_VISIBILITY_NOTIFY);
gdkeventtype.constant("SCROLL", (int)GDK_SCROLL);
gdkeventtype.constant("WINDOW_STATE", (int)GDK_WINDOW_STATE);
gdkeventtype.constant("SETTING", (int)GDK_SETTING);
gdkeventtype.constant("OWNER_CHANGE", (int)GDK_OWNER_CHANGE);
gdkeventtype.constant("GRAB_BROKEN", (int)GDK_GRAB_BROKEN);
gdkeventtype.constant("DAMAGE", (int)GDK_DAMAGE);
gdkeventtype.constant("TOUCH_BEGIN", (int)GDK_TOUCH_BEGIN);
gdkeventtype.constant("TOUCH_UPDATE", (int)GDK_TOUCH_UPDATE);
gdkeventtype.constant("TOUCH_END", (int)GDK_TOUCH_END);
gdkeventtype.constant("TOUCH_CANCEL", (int)GDK_TOUCH_CANCEL);
gdkeventtype.constant("TOUCHPAD_SWIPE", (int)GDK_TOUCHPAD_SWIPE);
gdkeventtype.constant("TOUCHPAD_PINCH", (int)GDK_TOUCHPAD_PINCH);
gdkeventtype.constant("PAD_BUTTON_PRESS", (int)GDK_PAD_BUTTON_PRESS);
gdkeventtype.constant("PAD_BUTTON_RELEASE", (int)GDK_PAD_BUTTON_RELEASE);
gdkeventtype.constant("PAD_RING", (int)GDK_PAD_RING);
gdkeventtype.constant("PAD_STRIP", (int)GDK_PAD_STRIP);
gdkeventtype.constant("PAD_GROUP_MODE", (int)GDK_PAD_GROUP_MODE);
gdkeventtype.constant("EVENT_LAST", (int)GDK_EVENT_LAST);
// GdkPixbuf
Php::Class<GdkPixbuf_> gdkpixbuf("GdkPixbuf");
gdkpixbuf.method<&GdkPixbuf_::__construct>("__construct");
gdkpixbuf.method<&GdkPixbuf_::new_from_file>("new_from_file");
gdkpixbuf.method<&GdkPixbuf_::new_from_file_at_size>("new_from_file_at_size");
gdkpixbuf.method<&GdkPixbuf_::new_from_file_at_scale>("new_from_file_at_scale");
gdkpixbuf.method<&GdkPixbuf_::new_from_gd>("new_from_gd");
gdkpixbuf.method<&GdkPixbuf_::get_file_info>("get_file_info");
gdkpixbuf.method<&GdkPixbuf_::get_colorspace>("get_colorspace");
gdkpixbuf.method<&GdkPixbuf_::get_n_channels>("get_n_channels");
gdkpixbuf.method<&GdkPixbuf_::get_has_alpha>("get_has_alpha");
gdkpixbuf.method<&GdkPixbuf_::get_pixels>("get_pixels");
gdkpixbuf.method<&GdkPixbuf_::get_width>("get_width");
gdkpixbuf.method<&GdkPixbuf_::get_height>("get_height");
gdkpixbuf.method<&GdkPixbuf_::get_rowstride>("get_rowstride");
gdkpixbuf.method<&GdkPixbuf_::get_option>("get_option");
gdkpixbuf.method<&GdkPixbuf_::save>("save");
gdkpixbuf.method<&GdkPixbuf_::get_from_drawable>("get_from_drawable");
gdkpixbuf.method<&GdkPixbuf_::scale_simple>("scale_simple");
gdkpixbuf.method<&GdkPixbuf_::set_data>("set_data");
gdkpixbuf.method<&GdkPixbuf_::get_data>("get_data");
gdkpixbuf.method<&GdkPixbuf_::get_byte_length>("get_byte_length");
// GdkInterpType
Php::Class<Php::Base> gdkinterptype("GdkInterpType");
gdkinterptype.constant("NEAREST", (int)GDK_INTERP_NEAREST);
gdkinterptype.constant("TILES", (int)GDK_INTERP_TILES);
gdkinterptype.constant("BILINEAR", (int)GDK_INTERP_BILINEAR);
gdkinterptype.constant("HYPER", (int)GDK_INTERP_HYPER);
// GdkDrawable
Php::Class<GdkDrawable_> gdkdrawable("GdkDrawable");
// gdkdrawable.method<&GdkDrawable_::parse>("parse");
// gdkdrawable.method<&GdkDrawable_::to_string>("to_string");
// GdkRGBA
Php::Class<GdkRGBA_> gdkrgba("GdkRGBA");
gdkrgba.method<&GdkRGBA_::parse>("parse");
gdkrgba.method<&GdkRGBA_::to_string>("to_string");
// GdkPixbufFormat
Php::Class<GdkPixbufFormat_> gdkpixbufformat("GdkPixbufFormat");
// GdkPixbufAlphaMode
Php::Class<Php::Base> gdkpixbufalphamode("GdkPixbufAlphaMode");
gdkpixbufalphamode.constant("BILEVEL", (int)GDK_PIXBUF_ALPHA_BILEVEL);
gdkpixbufalphamode.constant("FULL", (int)GDK_PIXBUF_ALPHA_FULL);
// GdkModifierType
Php::Class<Php::Base> gdkmodifiertype("GdkModifierType");
gdkmodifiertype.constant("SHIFT_MASK", GDK_SHIFT_MASK);
gdkmodifiertype.constant("LOCK_MASK", GDK_LOCK_MASK);
gdkmodifiertype.constant("CONTROL_MASK", GDK_CONTROL_MASK);
gdkmodifiertype.constant("MOD1_MASK", GDK_MOD1_MASK);
gdkmodifiertype.constant("MOD2_MASK", GDK_MOD2_MASK);
gdkmodifiertype.constant("MOD3_MASK", GDK_MOD3_MASK);
gdkmodifiertype.constant("MOD4_MASK", GDK_MOD4_MASK);
gdkmodifiertype.constant("MOD5_MASK", GDK_MOD5_MASK);
gdkmodifiertype.constant("BUTTON1_MASK", GDK_BUTTON1_MASK);
gdkmodifiertype.constant("BUTTON2_MASK", GDK_BUTTON2_MASK);
gdkmodifiertype.constant("BUTTON3_MASK", GDK_BUTTON3_MASK);
gdkmodifiertype.constant("BUTTON4_MASK", GDK_BUTTON4_MASK);
gdkmodifiertype.constant("BUTTON5_MASK", GDK_BUTTON5_MASK);
gdkmodifiertype.constant("RESERVED_13_MASK", GDK_MODIFIER_RESERVED_13_MASK);
gdkmodifiertype.constant("RESERVED_14_MASK", GDK_MODIFIER_RESERVED_14_MASK);
gdkmodifiertype.constant("RESERVED_15_MASK", GDK_MODIFIER_RESERVED_15_MASK);
gdkmodifiertype.constant("RESERVED_16_MASK", GDK_MODIFIER_RESERVED_16_MASK);
gdkmodifiertype.constant("RESERVED_17_MASK", GDK_MODIFIER_RESERVED_17_MASK);
gdkmodifiertype.constant("RESERVED_18_MASK", GDK_MODIFIER_RESERVED_18_MASK);
gdkmodifiertype.constant("RESERVED_19_MASK", GDK_MODIFIER_RESERVED_19_MASK);
gdkmodifiertype.constant("RESERVED_20_MASK", GDK_MODIFIER_RESERVED_20_MASK);
gdkmodifiertype.constant("RESERVED_21_MASK", GDK_MODIFIER_RESERVED_21_MASK);
gdkmodifiertype.constant("RESERVED_22_MASK", GDK_MODIFIER_RESERVED_22_MASK);
gdkmodifiertype.constant("RESERVED_23_MASK", GDK_MODIFIER_RESERVED_23_MASK);
gdkmodifiertype.constant("RESERVED_24_MASK", GDK_MODIFIER_RESERVED_24_MASK);
gdkmodifiertype.constant("RESERVED_25_MASK", GDK_MODIFIER_RESERVED_25_MASK);
gdkmodifiertype.constant("RESERVED_29_MASK", GDK_MODIFIER_RESERVED_29_MASK);
gdkmodifiertype.constant("SUPER_MASK", GDK_SUPER_MASK);
gdkmodifiertype.constant("HYPER_MASK", GDK_HYPER_MASK);
gdkmodifiertype.constant("META_MASK", GDK_META_MASK);
gdkmodifiertype.constant("RELEASE_MASK", GDK_RELEASE_MASK);
gdkmodifiertype.constant("MODIFIER_MASK", GDK_MODIFIER_MASK);
// GdkColorspace
Php::Class<Php::Base> gdkcolorspace("GdkColorspace");
gdkcolorspace.constant("RGB", (int)GDK_COLORSPACE_RGB);
// Gtk
Php::Class<Gtk_> gtk("Gtk");
gtk.method<&Gtk_::init>("init");
gtk.method<&Gtk_::main>("main");
gtk.method<&Gtk_::main_quit>("main_quit");
gtk.method<&Gtk_::timeout_add>("timeout_add");
gtk.method<&Gtk_::source_remove>("source_remove");
gtk.method<&Gtk_::show_uri_on_window>("show_uri_on_window");
gtk.method<&Gtk_::events_pending>("events_pending");
gtk.method<&Gtk_::main_iteration>("main_iteration");
gtk.method<&Gtk_::get_major_version>("get_major_version");
gtk.method<&Gtk_::get_micro_version>("get_micro_version");
gtk.method<&Gtk_::get_minor_version>("get_minor_version");
gtk.constant("MAJOR_VERSION", GTK_MAJOR_VERSION);
gtk.constant("MICRO_VERSION", GTK_MICRO_VERSION);
gtk.constant("MINOR_VERSION", GTK_MINOR_VERSION);
gtk.constant("ORIENTATION_HORIZONTAL", GTK_ORIENTATION_HORIZONTAL);
gtk.constant("ORIENTATION_VERTICAL", GTK_ORIENTATION_VERTICAL);
gtk.constant("ALIGN_FILL", GTK_ALIGN_FILL);
gtk.constant("ALIGN_START", GTK_ALIGN_START);
gtk.constant("ALIGN_END", GTK_ALIGN_END);
gtk.constant("ALIGN_CENTER", GTK_ALIGN_CENTER);
gtk.constant("ALIGN_BASELINE", GTK_ALIGN_BASELINE);
gtk.constant("WINDOW_TOPLEVEL", GTK_WINDOW_TOPLEVEL);
gtk.constant("WINDOW_POPUP", GTK_WINDOW_POPUP);
gtk.constant("WIN_POS_NONE", GTK_WIN_POS_NONE);
gtk.constant("WIN_POS_CENTER", GTK_WIN_POS_CENTER);
gtk.constant("WIN_POS_MOUSE", GTK_WIN_POS_MOUSE);
gtk.constant("WIN_POS_CENTER_ALWAYS", GTK_WIN_POS_CENTER_ALWAYS);
gtk.constant("WIN_POS_CENTER_ON_PARENT", GTK_WIN_POS_CENTER_ON_PARENT);
gtk.constant("STOCK_OK", GTK_STOCK_OK);
// GtkOrientation
Php::Class<Php::Base> gtkorientation("GtkOrientation");
gtkorientation.constant("HORIZONTAL", GTK_ORIENTATION_HORIZONTAL);
gtkorientation.constant("VERTICAL", GTK_ORIENTATION_VERTICAL);
// GtkPolicyType
Php::Class<Php::Base> gtkpolicytype("GtkPolicyType");
gtkpolicytype.constant("ALWAYS", GTK_POLICY_ALWAYS);
gtkpolicytype.constant("AUTOMATIC", GTK_POLICY_AUTOMATIC);
gtkpolicytype.constant("NEVER", GTK_POLICY_NEVER);
gtkpolicytype.constant("EXTERNAL", GTK_POLICY_EXTERNAL);
// GtkWidget
Php::Class<GtkWidget_> gtkwidget("GtkWidget");
gtkwidget.extends(gobject);
gtkwidget.method<&GtkWidget_::__construct>("__construct");
gtkwidget.method<&GtkWidget_::destroy>("destroy");
gtkwidget.method<&GtkWidget_::in_destruction>("in_destruction");
gtkwidget.method<&GtkWidget_::destroyed>("destroyed");
gtkwidget.method<&GtkWidget_::unparent>("unparent");
gtkwidget.method<&GtkWidget_::show>("show");
gtkwidget.method<&GtkWidget_::show_now>("show_now");
gtkwidget.method<&GtkWidget_::hide>("hide");
gtkwidget.method<&GtkWidget_::show_all>("show_all");
gtkwidget.method<&GtkWidget_::map>("map");
gtkwidget.method<&GtkWidget_::unmap>("unmap");
gtkwidget.method<&GtkWidget_::realize>("realize");
gtkwidget.method<&GtkWidget_::unrealize>("unrealize");
gtkwidget.method<&GtkWidget_::draw>("draw");
gtkwidget.method<&GtkWidget_::queue_draw>("queue_draw");
gtkwidget.method<&GtkWidget_::queue_resize>("queue_resize");
gtkwidget.method<&GtkWidget_::queue_resize_no_redraw>("queue_resize_no_redraw");
gtkwidget.method<&GtkWidget_::queue_allocate>("queue_allocate");
gtkwidget.method<&GtkWidget_::get_frame_clock>("get_frame_clock");
gtkwidget.method<&GtkWidget_::get_scale_factor>("get_scale_factor");
gtkwidget.method<&GtkWidget_::add_tick_callback>("add_tick_callback");
gtkwidget.method<&GtkWidget_::remove_tick_callback>("remove_tick_callback");
gtkwidget.method<&GtkWidget_::size_request>("size_request");
gtkwidget.method<&GtkWidget_::get_child_requisition>("get_child_requisition");
gtkwidget.method<&GtkWidget_::size_allocate>("size_allocate");
gtkwidget.method<&GtkWidget_::size_allocate_with_baseline>("size_allocate_with_baseline");
gtkwidget.method<&GtkWidget_::add_accelerator>("add_accelerator");
gtkwidget.method<&GtkWidget_::remove_accelerator>("remove_accelerator");
gtkwidget.method<&GtkWidget_::set_accel_path>("set_accel_path");
gtkwidget.method<&GtkWidget_::list_accel_closures>("list_accel_closures");
gtkwidget.method<&GtkWidget_::can_activate_accel>("can_activate_accel");
gtkwidget.method<&GtkWidget_::event>("event");
gtkwidget.method<&GtkWidget_::activate>("activate");
gtkwidget.method<&GtkWidget_::reparent>("reparent");
gtkwidget.method<&GtkWidget_::intersect>("intersect");
gtkwidget.method<&GtkWidget_::is_focus>("is_focus");
gtkwidget.method<&GtkWidget_::grab_focus>("grab_focus");
gtkwidget.method<&GtkWidget_::grab_default>("grab_default");
gtkwidget.method<&GtkWidget_::set_name>("set_name");
gtkwidget.method<&GtkWidget_::get_name>("get_name");
gtkwidget.method<&GtkWidget_::set_state>("set_state");
gtkwidget.method<&GtkWidget_::set_sensitive>("set_sensitive");
gtkwidget.method<&GtkWidget_::set_parent>("set_parent");
gtkwidget.method<&GtkWidget_::set_parent_window>("set_parent_window");
gtkwidget.method<&GtkWidget_::get_parent_window>("get_parent_window");
gtkwidget.method<&GtkWidget_::set_events>("set_events");
gtkwidget.method<&GtkWidget_::get_events>("get_events");
gtkwidget.method<&GtkWidget_::add_events>("add_events");
gtkwidget.method<&GtkWidget_::set_device_events>("set_device_events");
gtkwidget.method<&GtkWidget_::get_device_events>("get_device_events");
gtkwidget.method<&GtkWidget_::add_device_events>("add_device_events");
gtkwidget.method<&GtkWidget_::set_device_enabled>("set_device_enabled");
gtkwidget.method<&GtkWidget_::get_device_enabled>("get_device_enabled");
gtkwidget.method<&GtkWidget_::get_toplevel>("get_toplevel");
gtkwidget.method<&GtkWidget_::get_ancestor>("get_ancestor");
gtkwidget.method<&GtkWidget_::get_visual>("get_visual");
gtkwidget.method<&GtkWidget_::set_visual>("set_visual");
gtkwidget.method<&GtkWidget_::get_pointer>("get_pointer");
gtkwidget.method<&GtkWidget_::is_ancestor>("is_ancestor");
gtkwidget.method<&GtkWidget_::translate_coordinates>("translate_coordinates");
gtkwidget.method<&GtkWidget_::hide_on_delete>("hide_on_delete");
gtkwidget.method<&GtkWidget_::set_style>("set_style");
gtkwidget.method<&GtkWidget_::ensure_style>("ensure_style");
gtkwidget.method<&GtkWidget_::get_style>("get_style");
gtkwidget.method<&GtkWidget_::reset_rc_styles>("reset_rc_styles");
gtkwidget.method<&GtkWidget_::get_default_style>("get_default_style");
gtkwidget.method<&GtkWidget_::set_direction>("set_direction");
gtkwidget.method<&GtkWidget_::get_direction>("get_direction");
gtkwidget.method<&GtkWidget_::set_default_direction>("set_default_direction");
gtkwidget.method<&GtkWidget_::get_default_direction>("get_default_direction");
gtkwidget.method<&GtkWidget_::shape_combine_region>("shape_combine_region");
gtkwidget.method<&GtkWidget_::input_shape_combine_region>("input_shape_combine_region");
gtkwidget.method<&GtkWidget_::path>("path");
gtkwidget.method<&GtkWidget_::class_path>("class_path");
gtkwidget.method<&GtkWidget_::get_composite_name>("get_composite_name");
gtkwidget.method<&GtkWidget_::override_background_color>("override_background_color");
gtkwidget.method<&GtkWidget_::override_color>("override_color");
gtkwidget.method<&GtkWidget_::override_font>("override_font");
gtkwidget.method<&GtkWidget_::override_symbolic_color>("override_symbolic_color");
gtkwidget.method<&GtkWidget_::override_cursor>("override_cursor");
gtkwidget.method<&GtkWidget_::modify_style>("modify_style");
gtkwidget.method<&GtkWidget_::get_modifier_style>("get_modifier_style");
gtkwidget.method<&GtkWidget_::modify_fg>("modify_fg");
gtkwidget.method<&GtkWidget_::modify_bg>("modify_bg");
gtkwidget.method<&GtkWidget_::modify_text>("modify_text");
gtkwidget.method<&GtkWidget_::modify_base>("modify_base");
gtkwidget.method<&GtkWidget_::modify_font>("modify_font");
gtkwidget.method<&GtkWidget_::modify_cursor>("modify_cursor");
gtkwidget.method<&GtkWidget_::create_pango_context>("create_pango_context");
gtkwidget.method<&GtkWidget_::get_pango_context>("get_pango_context");
gtkwidget.method<&GtkWidget_::set_font_options>("set_font_options");