Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / Window.xs
1 /////////////////////////////////////////////////////////////////////////////
2 // Name:        Window.xs
3 // Purpose:     XS for Wx::Window
4 // Author:      Mattia Barbon
5 // Modified by:
6 // Created:     29/10/2000
7 // RCS-ID:      $Id: Window.xs 2700 2009-12-13 11:25:50Z mbarbon $
8 // Copyright:   (c) 2000-2002, 2004-2009 Mattia Barbon
9 // Licence:     This program is free software; you can redistribute it and/or
10 //              modify it under the same terms as Perl itself
11 /////////////////////////////////////////////////////////////////////////////
12
13 #define PERL_NO_GET_CONTEXT
14
15 #include "cpp/wxapi.h"
16
17 #include <wx/window.h>
18 #include <wx/layout.h>
19 #include <wx/sizer.h>
20
21 #include "cpp/overload.h"
22
23 #if wxPERL_USE_TOOLTIPS
24 #include <wx/tooltip.h>
25 #endif
26
27 #undef THIS
28
29 #include "cpp/v_cback.h"
30 #include "cpp/window.h"
31
32 WXPLI_BOOT_ONCE(Wx_Win);
33 #define boot_Wx_Win wxPli_boot_Wx_Win
34
35 MODULE=Wx_Win PACKAGE=Wx PREFIX=wx
36
37 wxPoint*
38 wxGetMousePosition()
39   PREINIT:
40     int x, y;
41   CODE:
42     ::wxGetMousePosition( &x, &y );
43     RETVAL = new wxPoint( x, y );
44   OUTPUT:
45     RETVAL
46
47 void
48 wxGetMousePositionXY()
49   PREINIT:
50     int x, y;
51   PPCODE:
52     ::wxGetMousePosition( &x, &y );
53     EXTEND( SP, 2 );
54     PUSHs( newSViv( x ) );
55     PUSHs( newSViv( y ) );
56
57 wxWindow*
58 wxGetTopLevelParent( window )
59     wxWindow* window
60
61 wxWindow*
62 wxFindWindowAtPointer( pt )
63     wxPoint pt
64
65 wxWindow*
66 wxGetActiveWindow()
67
68 MODULE=Wx_Win PACKAGE=Wx::Window
69
70 int
71 NewControlId( winid )
72     int winid
73   CODE:
74     RETVAL = wxWindowBase::NewControlId();
75   OUTPUT: RETVAL
76
77 #if WXPERL_W_VERSION_LT( 2, 9, 0 )
78
79 int
80 NextControlId( winid )
81     int winid
82   CODE:
83     RETVAL = wxWindowBase::NextControlId( winid );
84   OUTPUT: RETVAL
85
86 int
87 PrevControlId( winid )
88     int winid
89   CODE:
90     RETVAL = wxWindowBase::PrevControlId( winid );
91   OUTPUT: RETVAL
92
93 #endif
94
95 void
96 new( ... )
97   PPCODE:
98     BEGIN_OVERLOAD()
99         MATCH_VOIDM_REDISP( newDefault )
100         MATCH_ANY_REDISP( newFull )
101     END_OVERLOAD( "Wx::Window::new" )
102
103 wxWindow*
104 newDefault( CLASS )
105     PlClassName CLASS
106   CODE:
107     RETVAL = new wxPliWindow( CLASS );
108   OUTPUT: RETVAL
109
110 wxWindow*
111 newFull( CLASS, parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = 0 , name = wxPanelNameStr )
112     PlClassName CLASS
113     wxWindow* parent
114     wxWindowID id
115     wxPoint pos
116     wxSize size
117     long style
118     wxString name
119   CODE:
120     RETVAL = new wxPliWindow( CLASS, parent, id, pos, size, style, name );
121   OUTPUT: RETVAL
122
123 bool
124 wxWindow::Create( parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = 0 , name = wxPanelNameStr)
125     wxWindow* parent
126     wxWindowID id
127     wxPoint pos
128     wxSize size
129     long style
130     wxString name
131
132 void
133 wxWindow::CaptureMouse()
134
135 #!sub Center
136
137 void
138 wxWindow::Centre( direction = wxBOTH )
139     int direction
140
141 #!sub CenterOnparent
142
143 void
144 wxWindow::CentreOnParent( direction = wxBOTH )
145     int direction
146
147 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
148
149 #!sub CenterOnScreen
150
151 void
152 wxWindow::CentreOnScreen( direction = wxBOTH )
153     int direction
154   CODE:
155     THIS->Centre( direction | wxCENTER_ON_SCREEN );
156
157 #else
158
159 void
160 wxWindow::CentreOnScreen( direction = wxBOTH )
161     int direction
162
163 #endif
164
165 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
166
167 void
168 wxWindow::ClearBackground()
169
170 #else
171
172 void
173 wxWindow::Clear()
174
175 #endif
176
177 void
178 wxWindow::ClientToScreen( ... )
179   PPCODE:
180     BEGIN_OVERLOAD()
181         MATCH_REDISP( wxPliOvl_n_n, ClientToScreenXY )
182         MATCH_REDISP( wxPliOvl_wpoi, ClientToScreenPoint )
183     END_OVERLOAD( Wx::Window::ClientToScreen )
184
185 wxPoint*
186 wxWindow::ClientToScreenPoint( point )
187     wxPoint point
188   CODE:
189     RETVAL = new wxPoint( THIS->ClientToScreen( point ) );
190   OUTPUT:
191     RETVAL
192
193 void
194 wxWindow::ClientToScreenXY( x, y )
195     int x
196     int y
197   PPCODE:
198     THIS->ClientToScreen( &x, &y );
199     EXTEND( SP, 2 );
200     PUSHs( sv_2mortal( newSViv( x ) ) );
201     PUSHs( sv_2mortal( newSViv( y ) ) );
202
203 bool
204 wxWindow::Close( force = false )
205     bool force
206
207 void
208 wxWindow::ConvertDialogToPixels( ... )
209   PPCODE:
210     BEGIN_OVERLOAD()
211         MATCH_REDISP( wxPliOvl_wpoi, ConvertDialogPointToPixels )
212         MATCH_REDISP( wxPliOvl_wsiz, ConvertDialogSizeToPixels )
213     END_OVERLOAD( Wx::Window::ConvertDialogToPixels )
214
215 wxPoint*
216 wxWindow::ConvertDialogPointToPixels( point )
217     wxPoint point
218   CODE:
219     RETVAL = new wxPoint( THIS->ConvertDialogToPixels( point ) );
220   OUTPUT:
221     RETVAL
222
223 wxSize*
224 wxWindow::ConvertDialogSizeToPixels( size )
225     wxSize size
226   CODE:
227     RETVAL = new wxSize( THIS->ConvertDialogToPixels( size ) );
228   OUTPUT:
229     RETVAL
230
231 void
232 wxWindow::ConvertPixelsToDialog( ... )
233   PPCODE:
234     BEGIN_OVERLOAD()
235         MATCH_REDISP( wxPliOvl_wpoi, ConvertPixelsPointToDialog )
236         MATCH_REDISP( wxPliOvl_wsiz, ConvertPixelsSizeToDialog )
237     END_OVERLOAD( Wx::Window::ConvertPixelsToDialog )
238
239 wxPoint*
240 wxWindow::ConvertPixelsPointToDialog( point )
241     wxPoint point
242   CODE:
243     RETVAL = new wxPoint( THIS->ConvertPixelsToDialog( point ) );
244   OUTPUT:
245     RETVAL
246
247 wxSize*
248 wxWindow::ConvertPixelsSizeToDialog( size )
249     wxSize size
250   CODE:
251     RETVAL = new wxSize( THIS->ConvertPixelsToDialog( size ) );
252   OUTPUT:
253     RETVAL
254
255 bool
256 wxWindow::Destroy()
257
258 #if    defined( __WXMSW__ ) \
259     || ( WXPERL_W_VERSION_GE( 2, 9, 0 ) && !defined( __WXGTK__ ) )
260
261 void
262 wxWindow::DragAcceptFiles( accept )
263     bool accept
264
265 #endif
266
267 void
268 wxWindow::Enable( enable = true )
269     bool enable
270
271 void
272 wxWindow::Disable()
273
274 wxWindow*
275 FindFocus()
276   CODE:
277     RETVAL = wxWindow::FindFocus();
278   OUTPUT:
279     RETVAL
280
281 wxWindow*
282 wxWindow::FindWindow( i )
283     SV* i
284   CODE:
285     if( looks_like_number( i ) ) {
286       int id = SvIV( i );
287       RETVAL = THIS->FindWindow( id );
288     }
289     else {
290       wxString name;
291       WXSTRING_INPUT( name, const char*, i );
292       RETVAL = THIS->FindWindow( name );
293     }
294   OUTPUT:
295     RETVAL
296
297 wxWindow*
298 FindWindowById( id, parent = NULL )
299     wxWindowID id
300     wxWindow* parent
301   CODE:
302     RETVAL = wxWindow::FindWindowById( id, parent );
303   OUTPUT:
304     RETVAL
305
306 wxWindow*
307 FindWindowByName( id, parent = NULL )
308     wxString id
309     wxWindow* parent
310   CODE:
311     RETVAL = wxWindow::FindWindowByName( id, parent );
312   OUTPUT:
313     RETVAL
314
315 wxWindow*
316 FindWindowByLabel( id, parent = NULL )
317     wxString id
318     wxWindow* parent
319   CODE:
320     RETVAL = wxWindow::FindWindowByLabel( id, parent );
321   OUTPUT:
322     RETVAL
323
324
325 void
326 wxWindow::Fit()
327
328 void
329 wxWindow::FitInside()
330
331 void
332 wxWindow::Freeze()
333
334 #if WXPERL_W_VERSION_GE( 2, 7, 1 )
335
336 bool
337 wxWindow::IsFrozen()
338
339 #endif
340
341 wxAcceleratorTable*
342 wxWindow::GetAcceleratorTable()
343   CODE:
344     RETVAL = new wxAcceleratorTable( *THIS->GetAcceleratorTable() );
345   OUTPUT: RETVAL
346
347 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
348
349 wxBackgroundStyle
350 wxWindow::GetBackgroundStyle()
351
352 #endif
353
354 wxColour*
355 wxWindow::GetBackgroundColour()
356   CODE:
357     RETVAL = new wxColour( THIS->GetBackgroundColour() );
358   OUTPUT:
359     RETVAL
360
361 wxSize*
362 wxWindow::GetBestSize()
363   CODE:
364     RETVAL = new wxSize( THIS->GetBestSize() );
365   OUTPUT:
366     RETVAL
367
368 wxCaret*
369 wxWindow::GetCaret()
370
371 int
372 wxWindow::GetCharHeight()
373
374 int
375 wxWindow::GetCharWidth()
376
377 void
378 wxWindow::GetChildren()
379   PPCODE:
380     const wxWindowList& list = THIS->GetChildren();
381     wxWindowList::compatibility_iterator node;
382     
383     EXTEND( SP, (IV) list.GetCount() );
384
385     for( node = list.GetFirst(); node; node = node->GetNext() )
386       PUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(), node->GetData() ) );
387
388 wxSize*
389 wxWindow::GetClientSize()
390   CODE:
391     RETVAL = new wxSize( THIS->GetClientSize() );
392   OUTPUT:
393     RETVAL
394
395 void
396 wxWindow::GetClientSizeXY()
397   PREINIT:
398     int x;
399     int y;
400   PPCODE:
401     THIS->GetClientSize( &x, &y );
402     EXTEND( SP, 2 );
403     PUSHs( sv_2mortal( newSViv( x ) ) );
404     PUSHs( sv_2mortal( newSViv( y ) ) );
405
406 wxSizer*
407 wxWindow::GetContainingSizer()
408
409 #if wxPERL_USE_DRAG_AND_DROP
410
411 wxDropTarget*
412 wxWindow::GetDropTarget()
413   CLEANUP:
414     wxPli_object_set_deleteable( aTHX_ ST(0), false );
415
416 #endif
417
418 #if WXPERL_W_VERSION_LT( 2, 7, 0 )
419
420 wxWindow*
421 wxWindow::GetDefaultItem()
422
423 #endif
424
425 wxEvtHandler*
426 wxWindow::GetEventHandler()
427
428 long
429 wxWindow::GetExtraStyle()
430
431 wxFont*
432 wxWindow::GetFont()
433   CODE:
434     RETVAL = new wxFont( THIS->GetFont() );
435   OUTPUT:
436     RETVAL
437
438 wxColour*
439 wxWindow::GetForegroundColour()
440   CODE:
441     RETVAL = new wxColour( THIS->GetForegroundColour() );
442   OUTPUT:
443     RETVAL
444
445 wxWindow*
446 wxWindow::GetGrandParent()
447
448 #if defined( __WXMSW__ )
449
450 wxWindow*
451 wxWindow::CreateWindowFromHWND( parent, hWnd )
452     wxWindow* parent
453     void* hWnd
454   C_ARGS: parent, (WXHWND) hWnd
455
456 #endif
457
458 #if ( WXPERL_W_VERSION_GE( 2, 5, 1 ) && defined( __WXMSW__ ) ) \
459     || WXPERL_W_VERSION_GE( 2, 5, 4 )
460
461 void*
462 wxWindow::GetHandle()
463
464 #else
465
466 IV
467 wxWindow::GetHandle()
468   CODE:
469 #ifdef __WXMSW__
470     WXHWND handle = THIS->GetHandle();
471     RETVAL = handle;
472 #else
473     WXWidget handle = THIS->GetHandle();
474     RETVAL = PTR2IV(handle);
475 #endif
476   OUTPUT:
477     RETVAL
478
479 #endif
480
481 wxString
482 wxWindow::GetHelpText()
483
484 int
485 wxWindow::GetId()
486
487 wxString
488 wxWindow::GetLabel()
489
490 wxLayoutConstraints*
491 wxWindow::GetConstraints()
492
493 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
494
495 wxSize*
496 wxWindow::GetMinSize()
497   CODE:
498     RETVAL = new wxSize( THIS->GetMinSize() );
499   OUTPUT:
500     RETVAL
501
502 wxSize*
503 wxWindow::GetMaxSize()
504   CODE:
505     RETVAL = new wxSize( THIS->GetMaxSize() );
506   OUTPUT:
507     RETVAL
508
509 #endif
510
511 wxString
512 wxWindow::GetName()
513
514 wxWindow*
515 wxWindow::GetParent()
516
517 wxPoint*
518 wxWindow::GetPosition()
519   CODE:
520     RETVAL = new wxPoint( THIS->GetPosition() );
521   OUTPUT:
522     RETVAL
523
524 void
525 wxWindow::GetPositionXY()
526   PREINIT:
527     int x;
528     int y;
529   PPCODE:
530     THIS->GetPosition( &x, &y );
531     EXTEND( SP, 2 );
532     PUSHs( sv_2mortal( newSViv( (IV) x ) ) );
533     PUSHs( sv_2mortal( newSViv( (IV) y ) ) );
534
535 wxRect*
536 wxWindow::GetRect()
537   CODE:
538     RETVAL = new wxRect( THIS->GetRect() );
539   OUTPUT:
540     RETVAL
541
542 int
543 wxWindow::GetScrollThumb( orientation )
544     int orientation
545
546 int
547 wxWindow::GetScrollPos( orientation )
548     int orientation
549
550 int
551 wxWindow::GetScrollRange( orientation )
552     int orientation
553
554 wxSize*
555 wxWindow::GetSize()
556   CODE:
557     RETVAL = new wxSize( THIS->GetSize() );
558   OUTPUT:
559     RETVAL
560
561 wxSizer*
562 wxWindow::GetSizer()
563
564 void
565 wxWindow::GetSizeWH()
566   PREINIT:
567     int x;
568     int y;
569   PPCODE:
570     THIS->GetSize( &x, &y );
571     EXTEND( SP, 2 );
572     PUSHs( sv_2mortal( newSViv( (IV) x ) ) );
573     PUSHs( sv_2mortal( newSViv( (IV) y ) ) );
574
575 void
576 wxWindow::GetTextExtent( string, font = 0 )
577     wxString string
578     wxFont* font
579   PREINIT:
580     int x;
581     int y;
582     int descent;
583     int externalLeading;
584   PPCODE:
585     THIS->GetTextExtent( string, &x, &y, &descent, &externalLeading,
586         font );
587     EXTEND( SP, 4 );
588     PUSHs( sv_2mortal( newSViv( x ) ) );
589     PUSHs( sv_2mortal( newSViv( y ) ) );
590     PUSHs( sv_2mortal( newSViv( descent ) ) );
591     PUSHs( sv_2mortal( newSViv( externalLeading ) ) );
592
593 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
594
595 wxString
596 wxWindow::GetTitle()
597   CODE:
598     RETVAL = THIS->GetLabel();
599   OUTPUT: RETVAL
600
601 #else
602
603 wxString
604 wxWindow::GetTitle()
605
606 #endif
607
608 #if wxPERL_USE_TOOLTIPS
609
610 wxToolTip*
611 wxWindow::GetToolTip()
612
613 #endif
614
615 wxRegion*
616 wxWindow::GetUpdateRegion()
617   CODE:
618     RETVAL = new wxRegion( THIS->GetUpdateRegion() );
619   OUTPUT:
620     RETVAL
621
622 wxValidator*
623 wxWindow::GetValidator()
624
625 long
626 wxWindow::GetWindowStyleFlag()
627
628 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
629
630 wxSize
631 wxWindow::GetWindowBorderSize()
632
633 #endif
634
635 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
636
637 void
638 wxWindow::InvalidateBestSize()
639
640 void
641 wxWindow::InheritAttributes()
642
643 #endif
644
645 bool
646 wxWindow::IsEnabled()
647
648 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
649
650 bool
651 wxWindow::IsThisEnabled()
652
653 #endif
654
655 void
656 wxWindow::IsExposed( ... )
657   PPCODE:
658     BEGIN_OVERLOAD()
659         MATCH_REDISP( wxPliOvl_wpoi, IsExposedPoint )
660         MATCH_REDISP( wxPliOvl_wrec, IsExposedRect )
661         MATCH_REDISP( wxPliOvl_n_n_n_n, IsExposedXYWH )
662     END_OVERLOAD( Wx::Window::IsExposed )
663
664 bool
665 wxWindow::IsExposedXYWH( x, y, w = 0, h = 0 )
666     int x
667     int y
668     int w
669     int h
670   CODE:
671     RETVAL = THIS->IsExposed( x, y, w, h );
672   OUTPUT:
673     RETVAL
674
675 bool
676 wxWindow::IsExposedPoint( point )
677     wxPoint point
678   CODE:
679     RETVAL = THIS->IsExposed( point );
680   OUTPUT:
681     RETVAL
682
683 bool
684 wxWindow::IsExposedRect( rect )
685     wxRect* rect
686   CODE:
687     RETVAL = THIS->IsExposed( *rect );
688   OUTPUT:
689     RETVAL
690
691 bool
692 wxWindow::IsRetained()
693
694 bool
695 wxWindow::IsShown()
696
697 bool
698 wxWindow::IsTopLevel()
699
700 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
701
702 bool
703 wxWindow::IsDoubleBuffered()
704
705 bool
706 wxWindow::IsShownOnScreen()
707
708 #endif
709
710 void
711 wxWindow::Layout()
712
713 void
714 wxWindow::Lower()
715
716 void
717 wxWindow::MakeModal( flag )
718     bool flag
719
720 void
721 wxWindow::Move( ... )
722   PPCODE:
723     BEGIN_OVERLOAD()
724         MATCH_REDISP( wxPliOvl_wpoi, MovePoint )
725         MATCH_REDISP( wxPliOvl_n_n, MoveXY )
726     END_OVERLOAD( Wx::Window::Move )
727
728 void
729 wxWindow::MoveXY( x, y )
730     int x
731     int y
732   CODE:
733     THIS->Move( x, y );
734
735 void
736 wxWindow::MovePoint( point )
737     wxPoint point
738   CODE:
739     THIS->Move( point );
740
741 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
742
743 void
744 wxWindow::MoveBeforeInTabOrder( window )
745     wxWindow* window
746
747 void
748 wxWindow::MoveAfterInTabOrder( window )
749     wxWindow* window
750
751 #endif
752
753 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
754
755 # wxNavigateBackward, wxNavigateForward, wxNavigateWinChange, wxNavigateFromTab
756 bool
757 wxWindow::NavigateIn( flags = wxNavigationKeyEvent::IsForward )
758     int flags
759
760 bool
761 wxWindow::Navigate( flags = wxNavigationKeyEvent::IsForward )
762     int flags
763
764 #endif
765
766 wxEvtHandler*
767 wxWindow::PopEventHandler( deleteHandler )
768     bool deleteHandler
769
770 void
771 wxWindow::PopupMenu( ... )
772   PPCODE:
773     BEGIN_OVERLOAD()
774         MATCH_REDISP( wxPliOvl_wmen_wpoi, PopupMenuPoint )
775         MATCH_REDISP( wxPliOvl_wmen_n_n, PopupMenuXY )
776     END_OVERLOAD( Wx::Window::PopupMenu )
777
778 bool
779 wxWindow::PopupMenuPoint( menu, point )
780     wxMenu* menu
781     wxPoint point
782   CODE:
783     RETVAL = THIS->PopupMenu( menu, point );
784   OUTPUT:
785     RETVAL
786
787 bool
788 wxWindow::PopupMenuXY( menu, x, y )
789     wxMenu* menu
790     int x
791     int y
792   CODE:
793     RETVAL = THIS->PopupMenu( menu, x, y );
794   OUTPUT:
795     RETVAL
796
797 void
798 wxWindow::PushEventHandler( handler )
799     wxEvtHandler* handler
800
801 void
802 wxWindow::Raise()
803
804 void
805 wxWindow::Refresh( eraseBackground = true, rect = 0 )
806     bool eraseBackground
807     wxRect* rect
808
809 void
810 wxWindow::ReleaseMouse()
811
812 bool
813 wxWindow::RemoveEventHandler( handler )
814     wxEvtHandler* handler
815
816 bool
817 wxWindow::Reparent( newParent )
818     wxWindow* newParent
819
820 void
821 wxWindow::ScreenToClient( ... )
822   PPCODE:
823     BEGIN_OVERLOAD()
824         MATCH_REDISP( wxPliOvl_n_n, ScreenToClientXY )
825         MATCH_REDISP( wxPliOvl_wpoi, ScreenToClientPoint )
826     END_OVERLOAD( Wx::Window::ScreenToClient )
827
828 wxPoint*
829 wxWindow::ScreenToClientPoint( point )
830     wxPoint point
831   CODE:
832     RETVAL = new wxPoint( THIS->ScreenToClient( point ) );
833   OUTPUT:
834     RETVAL
835
836 void
837 wxWindow::ScreenToClientXY( x, y )
838     int x
839     int y
840   PPCODE:
841     THIS->ScreenToClient( &x, &y );
842     EXTEND( SP, 2 );
843     PUSHs( sv_2mortal( newSViv( (IV) x ) ) );
844     PUSHs( sv_2mortal( newSViv( (IV) y ) ) );
845
846 bool
847 wxWindow::ScrollLines( lines )
848     int lines
849
850 bool
851 wxWindow::ScrollPages( lines )
852     int lines
853
854 void
855 wxWindow::ScrollWindow( x, y, rect = 0 )
856     int x
857     int y
858     wxRect* rect
859
860 void
861 wxWindow::SetAcceleratorTable( accel )
862     wxAcceleratorTable* accel
863   C_ARGS: *accel
864
865 void
866 wxWindow::SetAutoLayout( autoLayout )
867     bool autoLayout
868
869 #ifdef __WXGTK__
870
871 void
872 wxWindow::SetThemeEnabled( themeEnabled )
873      bool themeEnabled
874
875 #endif
876
877 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
878
879 bool
880 wxWindow::SetBackgroundStyle( style )
881     wxBackgroundStyle style
882
883 #endif
884
885 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
886
887 void
888 wxWindow::SetBestFittingSize( size = wxDefaultSize )
889     wxSize size
890   CODE:
891 #if WXPERL_W_VERSION_LT( 2, 7, 2 )
892     THIS->SetBestFittingSize( size );
893 #else
894     THIS->SetInitialSize( size );
895 #endif
896
897 #endif
898
899 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
900
901 void
902 wxWindow::SetInitialSize( size = wxDefaultSize )
903     wxSize size
904
905 #endif
906
907 void
908 wxWindow::SetCaret( caret )
909     wxCaret* caret
910
911 void
912 wxWindow::SetClientSize( ... )
913   PPCODE:
914     BEGIN_OVERLOAD()
915         MATCH_REDISP( wxPliOvl_wsiz, SetClientSizeSize )
916         MATCH_REDISP( wxPliOvl_n_n, SetClientSizeWH )
917     END_OVERLOAD( Wx::Window::SetClientSize )
918
919 void
920 wxWindow::SetClientSizeSize( size )
921     wxSize size
922   CODE:
923     THIS->SetClientSize( size );
924
925 void
926 wxWindow::SetClientSizeWH( width, height )
927     int width
928     int height
929   CODE:
930     THIS->SetClientSize( width, height );
931
932 void
933 wxWindow::SetConstraints( constraints )
934     wxLayoutConstraints* constraints
935
936 void
937 wxWindow::SetContainingSizer( sizer )
938     wxSizer* sizer
939
940 #if WXPERL_W_VERSION_LT( 2, 7, 0 )
941
942 wxWindow*
943 wxWindow::SetDefaultItem( window )
944     wxWindow* window
945
946 #endif
947
948 #if wxPERL_USE_DRAG_AND_DROP
949
950 void
951 wxWindow::SetDropTarget( target )
952     wxDropTarget* target
953   CODE:
954     wxPli_object_set_deleteable( aTHX_ ST(1), false );
955     SvREFCNT_inc( SvRV( ST(1) ) ); // at this point the scalar must not go away
956     THIS->SetDropTarget( target );
957
958 #endif
959
960 void
961 wxWindow::SetEventHandler( handler )
962     wxEvtHandler* handler
963
964 void
965 wxWindow::SetExtraStyle( style )
966     long style
967
968 void
969 wxWindow::SetFocus()
970
971 void
972 wxWindow::SetHelpText( text )
973     wxString text
974
975 #if WXPERL_W_VERSION_LT( 2, 9, 0 ) || WXWIN_COMPATIBILITY_2_8
976
977 void
978 wxWindow::SetHelpTextForId( text )
979     wxString text
980
981 #endif
982
983 void
984 wxWindow::SetId( id )
985     int id
986
987 void
988 wxWindow::SetLabel( label )
989     wxString label
990
991 void
992 wxWindow::SetName( name )
993     wxString name
994
995 void
996 wxWindow::SetScrollbar( orientation, position, thumbSize, range, refresh = true )
997     int orientation
998     int position
999     int thumbSize
1000     int range
1001     bool refresh
1002
1003 void
1004 wxWindow::SetScrollPos( orientation, position, refresh = true )
1005     int orientation
1006     int position
1007     bool refresh
1008
1009 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
1010
1011 void
1012 wxWindow::SetMinSize( size )
1013     wxSize size
1014
1015 void
1016 wxWindow::SetMaxSize( size )
1017     wxSize size
1018
1019 #endif
1020
1021 void
1022 wxWindow::SetSize( ... )
1023   PPCODE:
1024     BEGIN_OVERLOAD()
1025         MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_n_n_n_n_n, SetSizeXYWHF, 4 )
1026         MATCH_REDISP( wxPliOvl_n_n, SetSizeWH )
1027         MATCH_REDISP( wxPliOvl_wsiz, SetSizeSize )
1028         MATCH_REDISP( wxPliOvl_wrec, SetSizeRect )
1029     END_OVERLOAD( Wx::Window::SetSize )
1030
1031 void
1032 wxWindow::SetSizeSize( size )
1033     wxSize size
1034   CODE:
1035     THIS->SetSize( size );
1036
1037 void
1038 wxWindow::SetSizeRect( rect )
1039     wxRect* rect
1040   CODE:
1041     THIS->SetSize( *rect );
1042
1043 void
1044 wxWindow::SetSizeWH( width, height )
1045     int width
1046     int height
1047   CODE:
1048     THIS->SetSize( width, height );
1049
1050 void
1051 wxWindow::SetSizeXYWHF( x, y, width, height, flags = wxSIZE_AUTO )
1052     int x
1053     int y
1054     int width
1055     int height
1056     int flags
1057   CODE:
1058     THIS->SetSize( x, y, width, height, flags );
1059
1060 void
1061 wxWindow::SetSizeHints( minW, minH, maxW = -1, maxH = -1, incW = -1, incH = -1 )
1062     int minW
1063     int minH
1064     int maxW
1065     int maxH
1066     int incW
1067     int incH
1068
1069 #if WXPERL_W_VERSION_LT( 2, 9, 0 )
1070
1071 void
1072 wxWindow::SetVirtualSizeHints( minW, minH, maxW = -1, maxH = -1 )
1073     int minW
1074     int minH
1075     int maxW
1076     int maxH
1077
1078 #endif
1079
1080 void
1081 wxWindow::SetVirtualSize( ... )
1082   PPCODE:
1083     BEGIN_OVERLOAD()
1084         MATCH_REDISP( wxPliOvl_n_n, SetVirtualSizeXY )
1085         MATCH_REDISP( wxPliOvl_wsiz, SetVirtualSizeSize )
1086     END_OVERLOAD( Wx::Window::SetVirtualSize )
1087
1088 void
1089 wxWindow::SetVirtualSizeXY( width, height )
1090     int width
1091     int height
1092   CODE:
1093     THIS->SetVirtualSize( width, height );
1094
1095 void
1096 wxWindow::SetVirtualSizeSize( size )
1097     wxSize size
1098   CODE:
1099     THIS->SetVirtualSize( size );
1100
1101 void
1102 wxWindow::SetSizer( sizer, deleteOld = true )
1103     wxSizer* sizer
1104     bool deleteOld
1105
1106 void
1107 wxWindow::SetSizerAndFit( sizer, deleteOld = true )
1108     wxSizer* sizer
1109     bool deleteOld
1110
1111 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
1112
1113 void
1114 wxWindow::SetTitle( title )
1115     wxString title
1116   CODE:
1117     THIS->SetLabel( title );
1118
1119 #else
1120
1121 void
1122 wxWindow::SetTitle( title )
1123     wxString title
1124
1125 #endif
1126
1127 #if wxPERL_USE_TOOLTIPS
1128
1129 void
1130 wxWindow::SetToolTip( ... )
1131   PPCODE:
1132     BEGIN_OVERLOAD()
1133         MATCH_REDISP( wxPliOvl_wtip, SetToolTipTip )
1134         MATCH_REDISP( wxPliOvl_s, SetToolTipString )
1135     END_OVERLOAD( Wx::Window::SetToolTip )
1136
1137 void
1138 wxWindow::SetToolTipTip( tooltip )
1139     wxToolTip* tooltip
1140   CODE:
1141     THIS->SetToolTip( tooltip );
1142
1143 #endif
1144
1145 #if wxPERL_USE_TOOLTIPS || WXPERL_W_VERSION_GE( 2, 5, 3 )
1146
1147 void
1148 wxWindow::SetToolTipString( string )
1149     wxString string
1150   CODE:
1151     THIS->SetToolTip( string );
1152
1153 #endif
1154
1155 void
1156 wxWindow::SetValidator( validator )
1157     wxValidator* validator
1158   CODE:
1159     THIS->SetValidator( *validator );
1160
1161 void
1162 wxWindow::SetWindowStyle( style )
1163     long style
1164
1165 void
1166 wxWindow::SetWindowStyleFlag( style )
1167     long style
1168
1169 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
1170
1171 bool
1172 wxWindow::ShouldInheritColours()
1173
1174 #endif
1175
1176 bool
1177 wxWindow::Show( show = true )
1178     bool show
1179
1180 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
1181
1182 bool
1183 wxWindow::HasMultiplePages()
1184
1185 #endif
1186
1187 bool
1188 wxWindow::Hide()
1189
1190 void
1191 wxWindow::Thaw()
1192
1193 bool
1194 wxWindow::TransferDataFromWindow()
1195   CODE:
1196     RETVAL = THIS->wxWindow::TransferDataFromWindow();
1197   OUTPUT:
1198     RETVAL
1199
1200 bool
1201 wxWindow::TransferDataToWindow()
1202   CODE:
1203     RETVAL = THIS->wxWindow::TransferDataToWindow();
1204   OUTPUT:
1205     RETVAL
1206
1207 bool
1208 wxWindow::Validate()
1209   CODE:
1210     RETVAL = THIS->wxWindow::Validate();
1211   OUTPUT:
1212     RETVAL
1213
1214 void
1215 wxWindow::Update()
1216
1217 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
1218
1219 void
1220 wxWindow::UpdateWindowUI( flags = wxUPDATE_UI_NONE )
1221     long flags
1222
1223 #endif
1224
1225 void
1226 wxWindow::RefreshRect( rect )
1227     wxRect* rect
1228   CODE:
1229     THIS->RefreshRect( *rect );
1230
1231 void
1232 wxWindow::WarpPointer( x, y )
1233     int x
1234     int y
1235
1236 #if WXPERL_W_VERSION_GE( 2, 7, 1 )
1237
1238 wxLayoutDirection
1239 wxWindow::GetLayoutDirection()
1240
1241 void
1242 wxWindow::SetLayoutDirection( direction )
1243     wxLayoutDirection direction
1244
1245 bool
1246 wxWindow::SetTransparent( alpha )
1247     wxByte alpha
1248
1249 bool
1250 wxWindow::CanSetTransparent()
1251
1252 #endif
1253
1254 INCLUDE: perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/Window.xsp |
1255
1256 INCLUDE: XS/Accelerators.xs
1257
1258 INCLUDE: perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/PlWindow.xsp |
1259
1260 INCLUDE: perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/SplitterWindow.xs |
1261
1262 INCLUDE: perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/VScrolledWindow.xsp |
1263
1264 INCLUDE: XS/ScrolledWindow.xs
1265 INCLUDE: XS/Validators.xs
1266 INCLUDE: XS/Constraint.xs
1267
1268 INCLUDE: perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/Sizer.xs |
1269
1270 INCLUDE: perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/GridBagSizer.xsp |
1271
1272 INCLUDE: XS/SashWindow.xs
1273
1274 MODULE=Wx_Win PACKAGE=Wx::Window
1275