-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwxwidgets.php
2042 lines (1617 loc) · 52.8 KB
/
wxwidgets.php
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
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.11
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
* changes to this file unless you know what you are doing--modify the SWIG
* interface file instead.
* ----------------------------------------------------------------------------- */
// Try to load our extension if it's not already loaded.
if (!extension_loaded('wxwidgets')) {
if (strtolower(substr(PHP_OS, 0, 3)) === 'win') {
if (!dl('php_wxwidgets.dll')) return;
} else {
// PHP_SHLIB_SUFFIX gives 'dylib' on MacOS X but modules are 'so'.
if (PHP_SHLIB_SUFFIX === 'dylib') {
if (!dl('wxwidgets.so')) return;
} else {
if (!dl('wxwidgets.'.PHP_SHLIB_SUFFIX)) return;
}
}
}
abstract class wxwidgets {
static function wxEntryStart($argc,$argv) {
return wxEntryStart($argc,$argv);
}
static function wxEntryCleanup() {
wxEntryCleanup();
}
static function wxUninitialize() {
wxUninitialize();
}
const wxTheApp = wxTheApp;
static function wxHandleFatalExceptions($doIt=true) {
return wxHandleFatalExceptions($doIt);
}
static function wxInitialize($argc=null,$argv=null) {
switch (func_num_args()) {
case 0: $r=wxInitialize(); break;
case 1: $r=wxInitialize($argc); break;
default: $r=wxInitialize($argc,$argv);
}
return $r;
}
static function wxWakeUpIdle() {
wxWakeUpIdle();
}
static function wxYield() {
return wxYield();
}
static function wxSafeYield($win=null,$onlyIfNeeded=false) {
return wxSafeYield($win,$onlyIfNeeded);
}
static function wxEntry($argc,$argv) {
return wxEntry($argc,$argv);
}
static function wxExit() {
wxExit();
}
const wxSHOW_EFFECT_NONE = 0;
const wxSHOW_EFFECT_ROLL_TO_LEFT = wxSHOW_EFFECT_ROLL_TO_LEFT;
const wxSHOW_EFFECT_ROLL_TO_RIGHT = wxSHOW_EFFECT_ROLL_TO_RIGHT;
const wxSHOW_EFFECT_ROLL_TO_TOP = wxSHOW_EFFECT_ROLL_TO_TOP;
const wxSHOW_EFFECT_ROLL_TO_BOTTOM = wxSHOW_EFFECT_ROLL_TO_BOTTOM;
const wxSHOW_EFFECT_SLIDE_TO_LEFT = wxSHOW_EFFECT_SLIDE_TO_LEFT;
const wxSHOW_EFFECT_SLIDE_TO_RIGHT = wxSHOW_EFFECT_SLIDE_TO_RIGHT;
const wxSHOW_EFFECT_SLIDE_TO_TOP = wxSHOW_EFFECT_SLIDE_TO_TOP;
const wxSHOW_EFFECT_SLIDE_TO_BOTTOM = wxSHOW_EFFECT_SLIDE_TO_BOTTOM;
const wxSHOW_EFFECT_BLEND = wxSHOW_EFFECT_BLEND;
const wxSHOW_EFFECT_EXPAND = wxSHOW_EFFECT_EXPAND;
const wxWINDOW_VARIANT_NORMAL = 0;
const wxWINDOW_VARIANT_SMALL = wxWINDOW_VARIANT_SMALL;
const wxWINDOW_VARIANT_MINI = wxWINDOW_VARIANT_MINI;
const wxWINDOW_VARIANT_LARGE = wxWINDOW_VARIANT_LARGE;
const wxWINDOW_VARIANT_MAX = wxWINDOW_VARIANT_MAX;
static function wxFindWindowAtPointer($pt) {
$r=wxFindWindowAtPointer($pt);
if (is_resource($r)) {
$c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
if (class_exists($c)) return new $c($r);
return new wxWindow($r);
}
return $r;
}
static function wxGetActiveWindow() {
$r=wxGetActiveWindow();
if (is_resource($r)) {
$c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
if (class_exists($c)) return new $c($r);
return new wxWindow($r);
}
return $r;
}
static function wxGetTopLevelParent($window) {
$r=wxGetTopLevelParent($window);
if (is_resource($r)) {
$c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
if (class_exists($c)) return new $c($r);
return new wxWindow($r);
}
return $r;
}
const wxUSER_ATTENTION_INFO = 1;
const wxUSER_ATTENTION_ERROR = 2;
const wxFULLSCREEN_NOMENUBAR = wxFULLSCREEN_NOMENUBAR;
const wxFULLSCREEN_NOTOOLBAR = wxFULLSCREEN_NOTOOLBAR;
const wxFULLSCREEN_NOSTATUSBAR = wxFULLSCREEN_NOSTATUSBAR;
const wxFULLSCREEN_NOBORDER = wxFULLSCREEN_NOBORDER;
const wxFULLSCREEN_NOCAPTION = wxFULLSCREEN_NOCAPTION;
const wxFULLSCREEN_ALL = wxFULLSCREEN_ALL;
const wxFRAME_NO_TASKBAR = wxFRAME_NO_TASKBAR;
const wxFRAME_TOOL_WINDOW = wxFRAME_TOOL_WINDOW;
const wxFRAME_FLOAT_ON_PARENT = wxFRAME_FLOAT_ON_PARENT;
}
/* PHP Proxy Classes */
class wxInitializer {
public $_cPtr=null;
protected $_pData=array();
function __set($var,$value) {
if ($var === 'thisown') return swig_wxwidgets_alter_newobject($this->_cPtr,$value);
$this->_pData[$var] = $value;
}
function __isset($var) {
if ($var === 'thisown') return true;
return array_key_exists($var, $this->_pData);
}
function __get($var) {
if ($var === 'thisown') return swig_wxwidgets_get_newobject($this->_cPtr);
return $this->_pData[$var];
}
function __construct($argc,$argv) {
if (is_resource($argc) && get_resource_type($argc) === '_p_wxInitializer') {
$this->_cPtr=$argc;
return;
}
$this->_cPtr=new_wxInitializer($argc,$argv);
}
function IsOk() {
return wxInitializer_IsOk($this->_cPtr);
}
}
class wxAppConsole {
public $_cPtr=null;
protected $_pData=array();
function __set($var,$value) {
if ($var === 'argv') return wxAppConsole_argv_set($this->_cPtr,$value);
if ($var === 'argc') return wxAppConsole_argc_set($this->_cPtr,$value);
if ($var === 'thisown') return swig_wxwidgets_alter_newobject($this->_cPtr,$value);
$this->_pData[$var] = $value;
}
function __isset($var) {
if (function_exists('wxAppConsole_'.$var.'_set')) return true;
if ($var === 'thisown') return true;
return array_key_exists($var, $this->_pData);
}
function __get($var) {
if ($var === 'argv') return wxAppConsole_argv_get($this->_cPtr);
if ($var === 'argc') return wxAppConsole_argc_get($this->_cPtr);
if ($var === 'thisown') return swig_wxwidgets_get_newobject($this->_cPtr);
return $this->_pData[$var];
}
function MainLoop() {
return wxAppConsole_MainLoop($this->_cPtr);
}
function ExitMainLoop() {
wxAppConsole_ExitMainLoop($this->_cPtr);
}
function FilterEvent($event) {
return wxAppConsole_FilterEvent($this->_cPtr,$event);
}
function GetMainLoop() {
return wxAppConsole_GetMainLoop($this->_cPtr);
}
function HandleEvent($handler,$func,$event) {
wxAppConsole_HandleEvent($this->_cPtr,$handler,$func,$event);
}
function UsesEventLoop() {
return wxAppConsole_UsesEventLoop($this->_cPtr);
}
function ProcessPendingEvents() {
wxAppConsole_ProcessPendingEvents($this->_cPtr);
}
function DeletePendingEvents() {
wxAppConsole_DeletePendingEvents($this->_cPtr);
}
function HasPendingEvents() {
return wxAppConsole_HasPendingEvents($this->_cPtr);
}
function SuspendProcessingOfPendingEvents() {
wxAppConsole_SuspendProcessingOfPendingEvents($this->_cPtr);
}
function ResumeProcessingOfPendingEvents() {
wxAppConsole_ResumeProcessingOfPendingEvents($this->_cPtr);
}
function ScheduleForDestruction($object) {
wxAppConsole_ScheduleForDestruction($this->_cPtr,$object);
}
function IsScheduledForDestruction($object) {
return wxAppConsole_IsScheduledForDestruction($this->_cPtr,$object);
}
function Yield($onlyIfNeeded=false) {
return wxAppConsole_Yield($this->_cPtr,$onlyIfNeeded);
}
static function SetInstance($app) {
wxAppConsole_SetInstance($app);
}
static function GetInstance() {
$r=wxAppConsole_GetInstance();
if (is_resource($r)) {
$c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
if (class_exists($c)) return new $c($r);
return new wxAppConsole($r);
}
return $r;
}
static function IsMainLoopRunning() {
return wxAppConsole_IsMainLoopRunning();
}
function OnAssertFailure($file,$line,$func,$cond,$msg) {
wxAppConsole_OnAssertFailure($this->_cPtr,$file,$line,$func,$cond,$msg);
}
function OnCmdLineError($parser) {
return wxAppConsole_OnCmdLineError($this->_cPtr,$parser);
}
function OnCmdLineHelp($parser) {
return wxAppConsole_OnCmdLineHelp($this->_cPtr,$parser);
}
function OnCmdLineParsed($parser) {
return wxAppConsole_OnCmdLineParsed($this->_cPtr,$parser);
}
function OnEventLoopEnter($loop) {
wxAppConsole_OnEventLoopEnter($this->_cPtr,$loop);
}
function OnEventLoopExit($loop) {
wxAppConsole_OnEventLoopExit($this->_cPtr,$loop);
}
function OnExceptionInMainLoop() {
return wxAppConsole_OnExceptionInMainLoop($this->_cPtr);
}
function OnExit() {
return wxAppConsole_OnExit($this->_cPtr);
}
function OnFatalException() {
wxAppConsole_OnFatalException($this->_cPtr);
}
function OnInit() {
return wxAppConsole_OnInit($this->_cPtr);
}
function OnInitCmdLine($parser) {
wxAppConsole_OnInitCmdLine($this->_cPtr,$parser);
}
function OnRun() {
return wxAppConsole_OnRun($this->_cPtr);
}
function OnUnhandledException() {
wxAppConsole_OnUnhandledException($this->_cPtr);
}
function GetAppDisplayName() {
return wxAppConsole_GetAppDisplayName($this->_cPtr);
}
function GetAppName() {
return wxAppConsole_GetAppName($this->_cPtr);
}
function GetClassName() {
return wxAppConsole_GetClassName($this->_cPtr);
}
function GetTraits() {
return wxAppConsole_GetTraits($this->_cPtr);
}
function GetVendorDisplayName() {
return wxAppConsole_GetVendorDisplayName($this->_cPtr);
}
function GetVendorName() {
return wxAppConsole_GetVendorName($this->_cPtr);
}
function SetAppDisplayName($name) {
wxAppConsole_SetAppDisplayName($this->_cPtr,$name);
}
function SetAppName($name) {
wxAppConsole_SetAppName($this->_cPtr,$name);
}
function SetClassName($name) {
wxAppConsole_SetClassName($this->_cPtr,$name);
}
function SetVendorDisplayName($name) {
wxAppConsole_SetVendorDisplayName($this->_cPtr,$name);
}
function SetVendorName($name) {
wxAppConsole_SetVendorName($this->_cPtr,$name);
}
function __construct($res=null) {
if (is_resource($res) && get_resource_type($res) === '_p_wxAppConsole') {
$this->_cPtr=$res;
return;
}
$this->_cPtr=new_wxAppConsole();
}
}
class wxApp extends wxAppConsole {
public $_cPtr=null;
function __set($var,$value) {
if ($var === 'thisown') return swig_wxwidgets_alter_newobject($this->_cPtr,$value);
wxAppConsole::__set($var,$value);
}
function __isset($var) {
if ($var === 'thisown') return true;
return wxAppConsole::__isset($var);
}
function __get($var) {
if ($var === 'thisown') return swig_wxwidgets_get_newobject($this->_cPtr);
return wxAppConsole::__get($var);
}
function __construct($res=null) {
if (is_resource($res) && get_resource_type($res) === '_p_wxApp') {
$this->_cPtr=$res;
return;
}
$this->_cPtr=new_wxApp();
}
function GetDisplayMode() {
return wxApp_GetDisplayMode($this->_cPtr);
}
function GetExitOnFrameDelete() {
return wxApp_GetExitOnFrameDelete($this->_cPtr);
}
function GetLayoutDirection() {
return wxApp_GetLayoutDirection($this->_cPtr);
}
function GetUseBestVisual() {
return wxApp_GetUseBestVisual($this->_cPtr);
}
function GetTopWindow() {
$r=wxApp_GetTopWindow($this->_cPtr);
if (is_resource($r)) {
$c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
if (class_exists($c)) return new $c($r);
return new wxWindow($r);
}
return $r;
}
function IsActive() {
return wxApp_IsActive($this->_cPtr);
}
function SafeYield($win,$onlyIfNeeded) {
return wxApp_SafeYield($this->_cPtr,$win,$onlyIfNeeded);
}
function SafeYieldFor($win,$eventsToProcess) {
return wxApp_SafeYieldFor($this->_cPtr,$win,$eventsToProcess);
}
function SetDisplayMode($info) {
return wxApp_SetDisplayMode($this->_cPtr,$info);
}
function SetExitOnFrameDelete($flag) {
wxApp_SetExitOnFrameDelete($this->_cPtr,$flag);
}
function SetNativeTheme($theme) {
return wxApp_SetNativeTheme($this->_cPtr,$theme);
}
function SetTopWindow($window) {
wxApp_SetTopWindow($this->_cPtr,$window);
}
function SetUseBestVisual($flag,$forceTrueColour=false) {
wxApp_SetUseBestVisual($this->_cPtr,$flag,$forceTrueColour);
}
}
class wxVisualAttributes {
public $_cPtr=null;
protected $_pData=array();
function __set($var,$value) {
$func = 'wxVisualAttributes_'.$var.'_set';
if (function_exists($func)) return call_user_func($func,$this->_cPtr,$value);
if ($var === 'thisown') return swig_wxwidgets_alter_newobject($this->_cPtr,$value);
$this->_pData[$var] = $value;
}
function __isset($var) {
if (function_exists('wxVisualAttributes_'.$var.'_set')) return true;
if ($var === 'thisown') return true;
return array_key_exists($var, $this->_pData);
}
function __get($var) {
$func = 'wxVisualAttributes_'.$var.'_get';
if (function_exists($func)) return call_user_func($func,$this->_cPtr);
if ($var === 'thisown') return swig_wxwidgets_get_newobject($this->_cPtr);
return $this->_pData[$var];
}
function __construct($res=null) {
if (is_resource($res) && get_resource_type($res) === '_p_wxVisualAttributes') {
$this->_cPtr=$res;
return;
}
$this->_cPtr=new_wxVisualAttributes();
}
}
class wxWindow {
public $_cPtr=null;
protected $_pData=array();
function __set($var,$value) {
if ($var === 'thisown') return swig_wxwidgets_alter_newobject($this->_cPtr,$value);
$this->_pData[$var] = $value;
}
function __isset($var) {
if ($var === 'thisown') return true;
return array_key_exists($var, $this->_pData);
}
function __get($var) {
if ($var === 'thisown') return swig_wxwidgets_get_newobject($this->_cPtr);
return $this->_pData[$var];
}
function __construct($parent=null,$id=null,$pos=null,$size=null,$style=null,$name=null) {
if (is_resource($parent) && get_resource_type($parent) === '_p_wxWindow') {
$this->_cPtr=$parent;
return;
}
switch (func_num_args()) {
case 0: $this->_cPtr=new_wxWindow(); break;
case 1: $this->_cPtr=new_wxWindow($parent); break;
case 2: $this->_cPtr=new_wxWindow($parent,$id); break;
case 3: $this->_cPtr=new_wxWindow($parent,$id,$pos); break;
case 4: $this->_cPtr=new_wxWindow($parent,$id,$pos,$size); break;
case 5: $this->_cPtr=new_wxWindow($parent,$id,$pos,$size,$style); break;
default: $this->_cPtr=new_wxWindow($parent,$id,$pos,$size,$style,$name);
}
}
function Create($parent,$id,$pos=null,$size=null,$style=0,$name=null) {
switch (func_num_args()) {
case 2: $r=wxWindow_Create($this->_cPtr,$parent,$id); break;
case 3: $r=wxWindow_Create($this->_cPtr,$parent,$id,$pos); break;
case 4: case 5: $r=wxWindow_Create($this->_cPtr,$parent,$id,$pos,$size,$style); break;
default: $r=wxWindow_Create($this->_cPtr,$parent,$id,$pos,$size,$style,$name);
}
return $r;
}
function AcceptsFocus() {
return wxWindow_AcceptsFocus($this->_cPtr);
}
function AcceptsFocusFromKeyboard() {
return wxWindow_AcceptsFocusFromKeyboard($this->_cPtr);
}
function AcceptsFocusRecursively() {
return wxWindow_AcceptsFocusRecursively($this->_cPtr);
}
function HasFocus() {
return wxWindow_HasFocus($this->_cPtr);
}
function SetCanFocus($canFocus) {
wxWindow_SetCanFocus($this->_cPtr,$canFocus);
}
function SetFocus() {
wxWindow_SetFocus($this->_cPtr);
}
function SetFocusFromKbd() {
wxWindow_SetFocusFromKbd($this->_cPtr);
}
function AddChild($child) {
wxWindow_AddChild($this->_cPtr,$child);
}
function DestroyChildren() {
return wxWindow_DestroyChildren($this->_cPtr);
}
function FindWindow($id_or_name) {
$r=wxWindow_FindWindow($this->_cPtr,$id_or_name);
if (!is_resource($r)) return $r;
switch (get_resource_type($r)) {
case '_p_wxWindow': return new wxWindow($r);
default: return new wxWindow($r);
}
}
function GetChildren() {
return wxWindow_GetChildren($this->_cPtr);
}
function RemoveChild($child) {
wxWindow_RemoveChild($this->_cPtr,$child);
}
function GetGrandParent() {
$r=wxWindow_GetGrandParent($this->_cPtr);
if (is_resource($r)) {
$c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
if (class_exists($c)) return new $c($r);
return new wxWindow($r);
}
return $r;
}
function GetNextSibling() {
$r=wxWindow_GetNextSibling($this->_cPtr);
if (is_resource($r)) {
$c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
if (class_exists($c)) return new $c($r);
return new wxWindow($r);
}
return $r;
}
function GetParent() {
$r=wxWindow_GetParent($this->_cPtr);
if (is_resource($r)) {
$c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
if (class_exists($c)) return new $c($r);
return new wxWindow($r);
}
return $r;
}
function GetPrevSibling() {
$r=wxWindow_GetPrevSibling($this->_cPtr);
if (is_resource($r)) {
$c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
if (class_exists($c)) return new $c($r);
return new wxWindow($r);
}
return $r;
}
function IsDescendant($win) {
return wxWindow_IsDescendant($this->_cPtr,$win);
}
function Reparent($newParent) {
return wxWindow_Reparent($this->_cPtr,$newParent);
}
function AlwaysShowScrollbars($hflag=true,$vflag=true) {
wxWindow_AlwaysShowScrollbars($this->_cPtr,$hflag,$vflag);
}
function GetScrollPos($orientation) {
return wxWindow_GetScrollPos($this->_cPtr,$orientation);
}
function GetScrollRange($orientation) {
return wxWindow_GetScrollRange($this->_cPtr,$orientation);
}
function GetScrollThumb($orientation) {
return wxWindow_GetScrollThumb($this->_cPtr,$orientation);
}
function CanScroll($orient) {
return wxWindow_CanScroll($this->_cPtr,$orient);
}
function HasScrollbar($orient) {
return wxWindow_HasScrollbar($this->_cPtr,$orient);
}
function IsScrollbarAlwaysShown($orient) {
return wxWindow_IsScrollbarAlwaysShown($this->_cPtr,$orient);
}
function ScrollLines($lines) {
return wxWindow_ScrollLines($this->_cPtr,$lines);
}
function ScrollPages($pages) {
return wxWindow_ScrollPages($this->_cPtr,$pages);
}
function ScrollWindow($dx,$dy,$rect=null) {
wxWindow_ScrollWindow($this->_cPtr,$dx,$dy,$rect);
}
function LineUp() {
return wxWindow_LineUp($this->_cPtr);
}
function LineDown() {
return wxWindow_LineDown($this->_cPtr);
}
function PageUp() {
return wxWindow_PageUp($this->_cPtr);
}
function PageDown() {
return wxWindow_PageDown($this->_cPtr);
}
function SetScrollPos($orientation,$pos,$refresh=true) {
wxWindow_SetScrollPos($this->_cPtr,$orientation,$pos,$refresh);
}
function SetScrollbar($orientation,$position,$thumbSize,$range,$refresh=true) {
wxWindow_SetScrollbar($this->_cPtr,$orientation,$position,$thumbSize,$range,$refresh);
}
function CacheBestSize($size) {
wxWindow_CacheBestSize($this->_cPtr,$size);
}
function ClientToWindowSize($size) {
return wxWindow_ClientToWindowSize($this->_cPtr,$size);
}
function WindowToClientSize($size) {
return wxWindow_WindowToClientSize($this->_cPtr,$size);
}
function Fit() {
wxWindow_Fit($this->_cPtr);
}
function FitInside() {
wxWindow_FitInside($this->_cPtr);
}
function GetBestSize() {
return wxWindow_GetBestSize($this->_cPtr);
}
function GetBestHeight($width) {
return wxWindow_GetBestHeight($this->_cPtr,$width);
}
function GetBestWidth($height) {
return wxWindow_GetBestWidth($this->_cPtr,$height);
}
function GetClientSize($width=null,$height=null) {
switch (func_num_args()) {
case 0: $r=wxWindow_GetClientSize($this->_cPtr); break;
case 1: $r=wxWindow_GetClientSize($this->_cPtr,$width); break;
default: $r=wxWindow_GetClientSize($this->_cPtr,$width,$height);
}
return $r;
}
function GetEffectiveMinSize() {
return wxWindow_GetEffectiveMinSize($this->_cPtr);
}
function GetMaxClientSize() {
return wxWindow_GetMaxClientSize($this->_cPtr);
}
function GetMaxSize() {
return wxWindow_GetMaxSize($this->_cPtr);
}
function GetMinClientSize() {
return wxWindow_GetMinClientSize($this->_cPtr);
}
function GetMinSize() {
return wxWindow_GetMinSize($this->_cPtr);
}
function GetMinWidth() {
return wxWindow_GetMinWidth($this->_cPtr);
}
function GetMinHeight() {
return wxWindow_GetMinHeight($this->_cPtr);
}
function GetMaxWidth() {
return wxWindow_GetMaxWidth($this->_cPtr);
}
function GetMaxHeight() {
return wxWindow_GetMaxHeight($this->_cPtr);
}
function GetSize($width=null,$height=null) {
switch (func_num_args()) {
case 0: $r=wxWindow_GetSize($this->_cPtr); break;
case 1: $r=wxWindow_GetSize($this->_cPtr,$width); break;
default: $r=wxWindow_GetSize($this->_cPtr,$width,$height);
}
return $r;
}
function GetVirtualSize($width=null,$height=null) {
switch (func_num_args()) {
case 0: $r=wxWindow_GetVirtualSize($this->_cPtr); break;
case 1: $r=wxWindow_GetVirtualSize($this->_cPtr,$width); break;
default: $r=wxWindow_GetVirtualSize($this->_cPtr,$width,$height);
}
return $r;
}
function GetBestVirtualSize() {
return wxWindow_GetBestVirtualSize($this->_cPtr);
}
function GetWindowBorderSize() {
return wxWindow_GetWindowBorderSize($this->_cPtr);
}
function InformFirstDirection($direction,$size,$availableOtherDir) {
return wxWindow_InformFirstDirection($this->_cPtr,$direction,$size,$availableOtherDir);
}
function InvalidateBestSize() {
wxWindow_InvalidateBestSize($this->_cPtr);
}
function PostSizeEvent() {
wxWindow_PostSizeEvent($this->_cPtr);
}
function PostSizeEventToParent() {
wxWindow_PostSizeEventToParent($this->_cPtr);
}
function SendSizeEvent($flags=0) {
wxWindow_SendSizeEvent($this->_cPtr,$flags);
}
function SendSizeEventToParent($flags=0) {
wxWindow_SendSizeEventToParent($this->_cPtr,$flags);
}
function SetClientSize($width_or_size_or_rect,$height=null) {
switch (func_num_args()) {
case 1: wxWindow_SetClientSize($this->_cPtr,$width_or_size_or_rect); break;
default: wxWindow_SetClientSize($this->_cPtr,$width_or_size_or_rect,$height);
}
}
function SetContainingSizer($sizer) {
wxWindow_SetContainingSizer($this->_cPtr,$sizer);
}
function SetInitialSize($size=null) {
switch (func_num_args()) {
case 0: wxWindow_SetInitialSize($this->_cPtr); break;
default: wxWindow_SetInitialSize($this->_cPtr,$size);
}
}
function SetMaxClientSize($size) {
wxWindow_SetMaxClientSize($this->_cPtr,$size);
}
function SetMaxSize($size) {
wxWindow_SetMaxSize($this->_cPtr,$size);
}
function SetMinClientSize($size) {
wxWindow_SetMinClientSize($this->_cPtr,$size);
}
function SetMinSize($size) {
wxWindow_SetMinSize($this->_cPtr,$size);
}
function SetSize($x_or_rect_or_size_or_width,$y_or_height=null,$width=null,$height=null,$sizeFlags=null) {
switch (func_num_args()) {
case 1: wxWindow_SetSize($this->_cPtr,$x_or_rect_or_size_or_width); break;
case 2: wxWindow_SetSize($this->_cPtr,$x_or_rect_or_size_or_width,$y_or_height); break;
case 3: wxWindow_SetSize($this->_cPtr,$x_or_rect_or_size_or_width,$y_or_height,$width); break;
case 4: wxWindow_SetSize($this->_cPtr,$x_or_rect_or_size_or_width,$y_or_height,$width,$height); break;
default: wxWindow_SetSize($this->_cPtr,$x_or_rect_or_size_or_width,$y_or_height,$width,$height,$sizeFlags);
}
}
function SetSizeHints($minSize_or_minW,$maxSize_or_minH=null,$incSize_or_maxW=null,$maxH=null,$incW=null,$incH=null) {
switch (func_num_args()) {
case 1: wxWindow_SetSizeHints($this->_cPtr,$minSize_or_minW); break;
case 2: wxWindow_SetSizeHints($this->_cPtr,$minSize_or_minW,$maxSize_or_minH); break;
case 3: wxWindow_SetSizeHints($this->_cPtr,$minSize_or_minW,$maxSize_or_minH,$incSize_or_maxW); break;
case 4: wxWindow_SetSizeHints($this->_cPtr,$minSize_or_minW,$maxSize_or_minH,$incSize_or_maxW,$maxH); break;
case 5: wxWindow_SetSizeHints($this->_cPtr,$minSize_or_minW,$maxSize_or_minH,$incSize_or_maxW,$maxH,$incW); break;
default: wxWindow_SetSizeHints($this->_cPtr,$minSize_or_minW,$maxSize_or_minH,$incSize_or_maxW,$maxH,$incW,$incH);
}
}
function SetVirtualSize($width_or_size,$height=null) {
switch (func_num_args()) {
case 1: wxWindow_SetVirtualSize($this->_cPtr,$width_or_size); break;
default: wxWindow_SetVirtualSize($this->_cPtr,$width_or_size,$height);
}
}
function Center($dir=null) {
switch (func_num_args()) {
case 0: wxWindow_Center($this->_cPtr); break;
default: wxWindow_Center($this->_cPtr,$dir);
}
}
function CenterOnParent($dir=null) {
switch (func_num_args()) {
case 0: wxWindow_CenterOnParent($this->_cPtr); break;
default: wxWindow_CenterOnParent($this->_cPtr,$dir);
}
}
function Centre($direction=null) {
switch (func_num_args()) {
case 0: wxWindow_Centre($this->_cPtr); break;
default: wxWindow_Centre($this->_cPtr,$direction);
}
}
function CentreOnParent($direction=null) {
switch (func_num_args()) {
case 0: wxWindow_CentreOnParent($this->_cPtr); break;
default: wxWindow_CentreOnParent($this->_cPtr,$direction);
}
}
function GetPosition($x=null,$y=null) {
switch (func_num_args()) {
case 0: $r=wxWindow_GetPosition($this->_cPtr); break;
case 1: $r=wxWindow_GetPosition($this->_cPtr,$x); break;
default: $r=wxWindow_GetPosition($this->_cPtr,$x,$y);
}
return $r;
}
function GetRect() {
return wxWindow_GetRect($this->_cPtr);
}
function GetScreenPosition($x=null,$y=null) {
switch (func_num_args()) {
case 0: $r=wxWindow_GetScreenPosition($this->_cPtr); break;
case 1: $r=wxWindow_GetScreenPosition($this->_cPtr,$x); break;
default: $r=wxWindow_GetScreenPosition($this->_cPtr,$x,$y);
}
return $r;
}
function GetScreenRect() {
return wxWindow_GetScreenRect($this->_cPtr);
}
function GetClientAreaOrigin() {
return wxWindow_GetClientAreaOrigin($this->_cPtr);
}
function GetClientRect() {
return wxWindow_GetClientRect($this->_cPtr);
}
function Move($x_or_pt,$y_or_flags=null,$flags=null) {
switch (func_num_args()) {
case 1: wxWindow_Move($this->_cPtr,$x_or_pt); break;
case 2: wxWindow_Move($this->_cPtr,$x_or_pt,$y_or_flags); break;
default: wxWindow_Move($this->_cPtr,$x_or_pt,$y_or_flags,$flags);
}
}
function SetPosition($pt) {
wxWindow_SetPosition($this->_cPtr,$pt);
}
function ClientToScreen($x_or_pt,$y=null) {
switch (func_num_args()) {
case 1: $r=wxWindow_ClientToScreen($this->_cPtr,$x_or_pt); break;
default: $r=wxWindow_ClientToScreen($this->_cPtr,$x_or_pt,$y);
}
return $r;
}
function ConvertDialogToPixels($pt_or_sz) {
return wxWindow_ConvertDialogToPixels($this->_cPtr,$pt_or_sz);
}