forked from scorninpc/php-gtk3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
4224 lines (3798 loc) · 268 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_::get_property>("get_property");
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
// 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");
// 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");
// 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);
// ----- 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));
// ----- 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("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", 0);
// GdkEventButton
Php::Class<GdkEventButton_> gdkeventbutton("GdkEventButton");
// gdkevent.method<&GdkEvent_::__construct>("__construct");
// gdkevent.property("type", 0);
// 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");
// 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");
// 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
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");
// GdkEventKey
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_::events_pending>("events_pending");
gtk.method<&Gtk_::main_iteration>("main_iteration");
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);
// 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");
gtkwidget.method<&GtkWidget_::set_font_map>("set_font_map");
gtkwidget.method<&GtkWidget_::get_font_map>("get_font_map");
gtkwidget.method<&GtkWidget_::create_pango_layout>("create_pango_layout");
gtkwidget.method<&GtkWidget_::render_icon>("render_icon");
gtkwidget.method<&GtkWidget_::render_icon_pixbuf>("render_icon_pixbuf");
gtkwidget.method<&GtkWidget_::pop_composite_child>("pop_composite_child");
gtkwidget.method<&GtkWidget_::push_composite_child>("push_composite_child");
gtkwidget.method<&GtkWidget_::queue_draw_area>("queue_draw_area");
gtkwidget.method<&GtkWidget_::queue_draw_region>("queue_draw_region");
gtkwidget.method<&GtkWidget_::set_app_paintable>("set_app_paintable");
gtkwidget.method<&GtkWidget_::set_double_buffered>("set_double_buffered");
gtkwidget.method<&GtkWidget_::set_redraw_on_allocate>("set_redraw_on_allocate");
gtkwidget.method<&GtkWidget_::set_composite_name>("set_composite_name");
gtkwidget.method<&GtkWidget_::mnemonic_activate>("mnemonic_activate");
gtkwidget.method<&GtkWidget_::class_install_style_property>("class_install_style_property");
gtkwidget.method<&GtkWidget_::class_install_style_property_parser>("class_install_style_property_parser");
gtkwidget.method<&GtkWidget_::class_find_style_property>("class_find_style_property");
gtkwidget.method<&GtkWidget_::class_list_style_properties>("class_list_style_properties");
gtkwidget.method<&GtkWidget_::send_expose>("send_expose");
gtkwidget.method<&GtkWidget_::send_focus_change>("send_focus_change");
gtkwidget.method<&GtkWidget_::style_get>("style_get");
gtkwidget.method<&GtkWidget_::style_get_property>("style_get_property");
gtkwidget.method<&GtkWidget_::style_get_valist>("style_get_valist");
gtkwidget.method<&GtkWidget_::style_attach>("style_attach");
gtkwidget.method<&GtkWidget_::class_set_accessible_type>("class_set_accessible_type");
gtkwidget.method<&GtkWidget_::class_set_accessible_role>("class_set_accessible_role");
gtkwidget.method<&GtkWidget_::get_accessible>("get_accessible");
gtkwidget.method<&GtkWidget_::child_focus>("child_focus");
gtkwidget.method<&GtkWidget_::child_notify>("child_notify");
gtkwidget.method<&GtkWidget_::freeze_child_notify>("freeze_child_notify");
gtkwidget.method<&GtkWidget_::get_child_visible>("get_child_visible");
gtkwidget.method<&GtkWidget_::get_parent>("get_parent");
gtkwidget.method<&GtkWidget_::get_settings>("get_settings");
gtkwidget.method<&GtkWidget_::get_clipboard>("get_clipboard");
gtkwidget.method<&GtkWidget_::get_display>("get_display");
gtkwidget.method<&GtkWidget_::get_root_window>("get_root_window");
gtkwidget.method<&GtkWidget_::get_screen>("get_screen");
gtkwidget.method<&GtkWidget_::has_screen>("has_screen");
gtkwidget.method<&GtkWidget_::get_size_request>("get_size_request");
gtkwidget.method<&GtkWidget_::set_child_visible>("set_child_visible");
gtkwidget.method<&GtkWidget_::set_size_request>("set_size_request");
gtkwidget.method<&GtkWidget_::thaw_child_notify>("thaw_child_notify");
gtkwidget.method<&GtkWidget_::set_no_show_all>("set_no_show_all");
gtkwidget.method<&GtkWidget_::get_no_show_all>("get_no_show_all");
gtkwidget.method<&GtkWidget_::list_mnemonic_labels>("list_mnemonic_labels");
gtkwidget.method<&GtkWidget_::add_mnemonic_label>("add_mnemonic_label");
gtkwidget.method<&GtkWidget_::remove_mnemonic_label>("remove_mnemonic_label");
gtkwidget.method<&GtkWidget_::is_composited>("is_composited");
gtkwidget.method<&GtkWidget_::error_bell>("error_bell");
gtkwidget.method<&GtkWidget_::keynav_failed>("keynav_failed");
gtkwidget.method<&GtkWidget_::get_tooltip_markup>("get_tooltip_markup");
gtkwidget.method<&GtkWidget_::set_tooltip_markup>("set_tooltip_markup");
gtkwidget.method<&GtkWidget_::get_tooltip_text>("get_tooltip_text");
gtkwidget.method<&GtkWidget_::set_tooltip_text>("set_tooltip_text");
gtkwidget.method<&GtkWidget_::get_tooltip_window>("get_tooltip_window");
gtkwidget.method<&GtkWidget_::set_tooltip_window>("set_tooltip_window");
gtkwidget.method<&GtkWidget_::get_has_tooltip>("get_has_tooltip");
gtkwidget.method<&GtkWidget_::set_has_tooltip>("set_has_tooltip");
gtkwidget.method<&GtkWidget_::trigger_tooltip_query>("trigger_tooltip_query");
gtkwidget.method<&GtkWidget_::get_window>("get_window");
gtkwidget.method<&GtkWidget_::register_window>("register_window");
gtkwidget.method<&GtkWidget_::unregister_window>("unregister_window");
gtkwidget.method<&GtkWidget_::gtk_cairo_should_draw_window>("gtk_cairo_should_draw_window");
gtkwidget.method<&GtkWidget_::gtk_cairo_transform_to_window>("gtk_cairo_transform_to_window");
gtkwidget.method<&GtkWidget_::get_allocated_width>("get_allocated_width");
gtkwidget.method<&GtkWidget_::get_allocated_height>("get_allocated_height");
gtkwidget.method<&GtkWidget_::get_allocation>("get_allocation");
gtkwidget.method<&GtkWidget_::set_allocation>("set_allocation");
gtkwidget.method<&GtkWidget_::get_allocated_baseline>("get_allocated_baseline");
gtkwidget.method<&GtkWidget_::get_allocated_size>("get_allocated_size");
gtkwidget.method<&GtkWidget_::get_clip>("get_clip");
gtkwidget.method<&GtkWidget_::set_clip>("set_clip");
gtkwidget.method<&GtkWidget_::get_app_paintable>("get_app_paintable");
gtkwidget.method<&GtkWidget_::get_can_default>("get_can_default");
gtkwidget.method<&GtkWidget_::set_can_default>("set_can_default");
gtkwidget.method<&GtkWidget_::get_can_focus>("get_can_focus");
gtkwidget.method<&GtkWidget_::set_can_focus>("set_can_focus");
gtkwidget.method<&GtkWidget_::get_focus_on_click>("get_focus_on_click");
gtkwidget.method<&GtkWidget_::set_focus_on_click>("set_focus_on_click");
gtkwidget.method<&GtkWidget_::get_double_buffered>("get_double_buffered");
gtkwidget.method<&GtkWidget_::get_has_window>("get_has_window");
gtkwidget.method<&GtkWidget_::set_has_window>("set_has_window");
gtkwidget.method<&GtkWidget_::get_sensitive>("get_sensitive");
gtkwidget.method<&GtkWidget_::is_sensitive>("is_sensitive");
gtkwidget.method<&GtkWidget_::get_state>("get_state");
gtkwidget.method<&GtkWidget_::get_visible>("get_visible");
gtkwidget.method<&GtkWidget_::is_visible>("is_visible");
gtkwidget.method<&GtkWidget_::set_visible>("set_visible");
gtkwidget.method<&GtkWidget_::set_state_flags>("set_state_flags");
gtkwidget.method<&GtkWidget_::unset_state_flags>("unset_state_flags");
gtkwidget.method<&GtkWidget_::get_state_flags>("get_state_flags");
gtkwidget.method<&GtkWidget_::has_default>("has_default");
gtkwidget.method<&GtkWidget_::has_focus>("has_focus");
gtkwidget.method<&GtkWidget_::has_visible_focus>("has_visible_focus");
gtkwidget.method<&GtkWidget_::has_grab>("has_grab");
gtkwidget.method<&GtkWidget_::has_rc_style>("has_rc_style");
gtkwidget.method<&GtkWidget_::is_drawable>("is_drawable");
gtkwidget.method<&GtkWidget_::is_toplevel>("is_toplevel");
gtkwidget.method<&GtkWidget_::set_window>("set_window");
gtkwidget.method<&GtkWidget_::set_receives_default>("set_receives_default");
gtkwidget.method<&GtkWidget_::get_receives_default>("get_receives_default");
gtkwidget.method<&GtkWidget_::set_support_multidevice>("set_support_multidevice");
gtkwidget.method<&GtkWidget_::get_support_multidevice>("get_support_multidevice");
gtkwidget.method<&GtkWidget_::set_realized>("set_realized");
gtkwidget.method<&GtkWidget_::get_realized>("get_realized");
gtkwidget.method<&GtkWidget_::set_mapped>("set_mapped");
gtkwidget.method<&GtkWidget_::get_mapped>("get_mapped");
gtkwidget.method<&GtkWidget_::get_requisition>("get_requisition");
gtkwidget.method<&GtkWidget_::device_is_shadowed>("device_is_shadowed");
gtkwidget.method<&GtkWidget_::get_modifier_mask>("get_modifier_mask");
gtkwidget.method<&GtkWidget_::insert_action_group>("insert_action_group");
gtkwidget.method<&GtkWidget_::get_opacity>("get_opacity");
gtkwidget.method<&GtkWidget_::set_opacity>("set_opacity");
gtkwidget.method<&GtkWidget_::list_action_prefixes>("list_action_prefixes");
gtkwidget.method<&GtkWidget_::get_action_group>("get_action_group");
gtkwidget.method<&GtkWidget_::get_path>("get_path");
gtkwidget.method<&GtkWidget_::get_style_context>("get_style_context");
gtkwidget.method<&GtkWidget_::reset_style>("reset_style");
gtkwidget.method<&GtkWidget_::class_get_css_name>("class_get_css_name");
gtkwidget.method<&GtkWidget_::class_set_css_name>("class_set_css_name");
gtkwidget.method<&GtkWidget_::gtk_requisition_new>("gtk_requisition_new");
gtkwidget.method<&GtkWidget_::gtk_requisition_copy>("gtk_requisition_copy");
gtkwidget.method<&GtkWidget_::gtk_requisition_free>("gtk_requisition_free");
gtkwidget.method<&GtkWidget_::get_preferred_height>("get_preferred_height");
gtkwidget.method<&GtkWidget_::get_preferred_width>("get_preferred_width");
gtkwidget.method<&GtkWidget_::get_preferred_height_for_width>("get_preferred_height_for_width");
gtkwidget.method<&GtkWidget_::get_preferred_width_for_height>("get_preferred_width_for_height");
gtkwidget.method<&GtkWidget_::get_preferred_height_and_baseline_for_width>("get_preferred_height_and_baseline_for_width");
gtkwidget.method<&GtkWidget_::get_request_mode>("get_request_mode");
gtkwidget.method<&GtkWidget_::get_preferred_size>("get_preferred_size");
gtkwidget.method<&GtkWidget_::gtk_distribute_natural_allocation>("gtk_distribute_natural_allocation");
gtkwidget.method<&GtkWidget_::get_halign>("get_halign");
gtkwidget.method<&GtkWidget_::set_halign>("set_halign");
gtkwidget.method<&GtkWidget_::get_valign>("get_valign");
gtkwidget.method<&GtkWidget_::get_valign_with_baseline>("get_valign_with_baseline");
gtkwidget.method<&GtkWidget_::set_valign>("set_valign");
gtkwidget.method<&GtkWidget_::get_margin_left>("get_margin_left");
gtkwidget.method<&GtkWidget_::set_margin_left>("set_margin_left");
gtkwidget.method<&GtkWidget_::get_margin_right>("get_margin_right");
gtkwidget.method<&GtkWidget_::set_margin_right>("set_margin_right");
gtkwidget.method<&GtkWidget_::get_margin_start>("get_margin_start");
gtkwidget.method<&GtkWidget_::set_margin_start>("set_margin_start");
gtkwidget.method<&GtkWidget_::get_margin_end>("get_margin_end");
gtkwidget.method<&GtkWidget_::set_margin_end>("set_margin_end");
gtkwidget.method<&GtkWidget_::get_margin_top>("get_margin_top");
gtkwidget.method<&GtkWidget_::set_margin_top>("set_margin_top");
gtkwidget.method<&GtkWidget_::get_margin_bottom>("get_margin_bottom");
gtkwidget.method<&GtkWidget_::set_margin_bottom>("set_margin_bottom");
gtkwidget.method<&GtkWidget_::get_hexpand>("get_hexpand");
gtkwidget.method<&GtkWidget_::set_hexpand>("set_hexpand");
gtkwidget.method<&GtkWidget_::get_hexpand_set>("get_hexpand_set");
gtkwidget.method<&GtkWidget_::set_hexpand_set>("set_hexpand_set");
gtkwidget.method<&GtkWidget_::get_vexpand>("get_vexpand");
gtkwidget.method<&GtkWidget_::set_vexpand>("set_vexpand");
gtkwidget.method<&GtkWidget_::get_vexpand_set>("get_vexpand_set");
gtkwidget.method<&GtkWidget_::set_vexpand_set>("set_vexpand_set");
gtkwidget.method<&GtkWidget_::queue_compute_expand>("queue_compute_expand");
gtkwidget.method<&GtkWidget_::compute_expand>("compute_expand");
gtkwidget.method<&GtkWidget_::init_template>("init_template");
gtkwidget.method<&GtkWidget_::class_set_template>("class_set_template");
gtkwidget.method<&GtkWidget_::class_set_template_from_resource>("class_set_template_from_resource");
gtkwidget.method<&GtkWidget_::get_template_child>("get_template_child");
gtkwidget.method<&GtkWidget_::class_bind_template_child_full>("class_bind_template_child_full");
gtkwidget.method<&GtkWidget_::class_bind_template_callback_full>("class_bind_template_callback_full");
gtkwidget.method<&GtkWidget_::class_set_connect_func>("class_set_connect_func");
// GtkMisc
Php::Class<GtkMisc_> gtkmisc("GtkMisc");
gtkmisc.extends(gtkwidget);
// GtkContainer
Php::Class<GtkContainer_> gtkcontainer("GtkContainer");
gtkcontainer.extends(gtkwidget);
gtkcontainer.method<&GtkContainer_::add>("add");
gtkcontainer.method<&GtkContainer_::remove>("remove");
gtkcontainer.method<&GtkContainer_::add_with_properties>("add_with_properties");
gtkcontainer.method<&GtkContainer_::get_resize_mode>("get_resize_mode");
gtkcontainer.method<&GtkContainer_::set_resize_mode>("set_resize_mode");
gtkcontainer.method<&GtkContainer_::check_resize>("check_resize");
gtkcontainer.method<&GtkContainer_::foreach>("foreach");
gtkcontainer.method<&GtkContainer_::get_children>("get_children");
gtkcontainer.method<&GtkContainer_::get_path_for_child>("get_path_for_child");
gtkcontainer.method<&GtkContainer_::set_reallocate_redraws>("set_reallocate_redraws");
gtkcontainer.method<&GtkContainer_::get_focus_child>("get_focus_child");
gtkcontainer.method<&GtkContainer_::set_focus_child>("set_focus_child");
gtkcontainer.method<&GtkContainer_::get_focus_vadjustment>("get_focus_vadjustment");
gtkcontainer.method<&GtkContainer_::set_focus_vadjustment>("set_focus_vadjustment");
gtkcontainer.method<&GtkContainer_::get_focus_hadjustment>("get_focus_hadjustment");
gtkcontainer.method<&GtkContainer_::set_focus_hadjustment>("set_focus_hadjustment");
gtkcontainer.method<&GtkContainer_::resize_children>("resize_children");
gtkcontainer.method<&GtkContainer_::child_type>("child_type");
gtkcontainer.method<&GtkContainer_::child_get>("child_get");
gtkcontainer.method<&GtkContainer_::child_set>("child_set");
gtkcontainer.method<&GtkContainer_::child_get_property>("child_get_property");
gtkcontainer.method<&GtkContainer_::child_set_property>("child_set_property");
gtkcontainer.method<&GtkContainer_::child_get_valist>("child_get_valist");
gtkcontainer.method<&GtkContainer_::child_set_valist>("child_set_valist");
gtkcontainer.method<&GtkContainer_::child_notify>("child_notify");
gtkcontainer.method<&GtkContainer_::child_notify_by_pspec>("child_notify_by_pspec");
gtkcontainer.method<&GtkContainer_::forall>("forall");
gtkcontainer.method<&GtkContainer_::get_border_width>("get_border_width");
gtkcontainer.method<&GtkContainer_::set_border_width>("set_border_width");
gtkcontainer.method<&GtkContainer_::propagate_draw>("propagate_draw");