Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / XS / Sizer.xs
1 #############################################################################
2 ## Name:        XS/Sizer.xs
3 ## Purpose:     XS for Wx::Sizer and derived classes
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     31/10/2000
7 ## RCS-ID:      $Id: Sizer.xs 2393 2008-05-14 20:54:52Z mbarbon $
8 ## Copyright:   (c) 2000-2003, 2005-2008 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 %{
14 #include <wx/sizer.h>
15 #include <wx/statbox.h>
16 #include "cpp/sizer.h"
17 %}
18
19 %module{Wx};
20
21 %typemap{wxFlexSizerGrowMode}{simple};
22 %typemap{wxSizerItem*}{simple};
23 %typemap{Wx_UserDataO*}{simple};
24 %typemap{wxStdDialogButtonSizer*}{simple};
25 %typemap{wxWrapSizer*}{simple};
26 %typemap{wxButton*}{simple};
27
28 %name{Wx::Sizer} class wxSizer
29 {
30 #if WXPERL_W_VERSION_GE( 2, 5, 4 )
31     %name{AddWindow} wxSizerItem* Add( wxWindow* window, int option = 0,
32                                        int flag = 0, int border = 0,
33                                        Wx_UserDataO* data = NULL );
34     %name{AddSizer} wxSizerItem* Add( wxSizer* sizer, int option = 0,
35                                       int flag = 0, int border = 0,
36                                       Wx_UserDataO* data = NULL );
37     %name{AddSpace} wxSizerItem* Add( int width, int height, int option = 0,
38                                       int flag = 0, int border = 0,
39                                       Wx_UserDataO* data = NULL );
40
41     %name{PrependWindow} wxSizerItem* Prepend( wxWindow* window,
42                                                int option = 0, int flag = 0,
43                                                int border = 0,
44                                                Wx_UserDataO* data = NULL );
45     %name{PrependSizer} wxSizerItem* Prepend( wxSizer* sizer, int option = 0,
46                                               int flag = 0, int border = 0,
47                                               Wx_UserDataO* data = NULL );
48     %name{PrependSpace} wxSizerItem* Prepend( int width, int height,
49                                               int option = 0,
50                                               int flag = 0, int border = 0,
51                                               Wx_UserDataO* data = NULL );
52
53     %name{InsertWindow} wxSizerItem* Insert( int pos, wxWindow* window,
54                                              int option = 0, int flag = 0,
55                                              int border = 0,
56                                              Wx_UserDataO* data = NULL );
57     %name{InsertSizer} wxSizerItem* Insert( int pos, wxSizer* sizer,
58                                             int option = 0,
59                                             int flag = 0, int border = 0,
60                                             Wx_UserDataO* data = NULL );
61     %name{InsertSpace} wxSizerItem* Insert( int pos, int width, int height,
62                                             int option = 0,
63                                             int flag = 0, int border = 0,
64                                             Wx_UserDataO* data = NULL );
65 #else
66     %name{AddWindow} void Add( wxWindow* window, int option = 0,
67                                int flag = 0, int border = 0,
68                                Wx_UserDataO* data = NULL );
69     %name{AddSizer} void Add( wxSizer* sizer, int option = 0,
70                               int flag = 0, int border = 0,
71                               Wx_UserDataO* data = NULL );
72     %name{AddSpace} void Add( int width, int height, int option = 0,
73                               int flag = 0, int border = 0,
74                               Wx_UserDataO* data = NULL );
75
76     %name{PrependWindow} void Prepend( wxWindow* window,
77                                        int option = 0, int flag = 0,
78                                        int border = 0,
79                                        Wx_UserDataO* data = NULL );
80     %name{PrependSizer} void Prepend( wxSizer* sizer, int option = 0,
81                                       int flag = 0, int border = 0,
82                                       Wx_UserDataO* data = NULL );
83     %name{PrependSpace} void Prepend( int width, int height,
84                                       int option = 0,
85                                       int flag = 0, int border = 0,
86                                       Wx_UserDataO* data = NULL );
87
88     %name{InsertWindow} void Insert( int pos, wxWindow* window,
89                                      int option = 0, int flag = 0,
90                                      int border = 0,
91                                      Wx_UserDataO* data = NULL );
92     %name{InsertSizer} void Insert( int pos, wxSizer* sizer,
93                                     int option = 0,
94                                     int flag = 0, int border = 0,
95                                     Wx_UserDataO* data = NULL );
96     %name{InsertSpace} void Insert( int pos, int width, int height,
97                                     int option = 0,
98                                     int flag = 0, int border = 0,
99                                     Wx_UserDataO* data = NULL );
100 #endif
101 #if WXPERL_W_VERSION_GE( 2, 5, 4 )
102     %name{GetItemWindow} wxSizerItem* GetItem( wxWindow* window,
103                                                bool recursive = false );
104     %name{GetItemSizer} wxSizerItem* GetItem( wxSizer* sizer,
105                                               bool recursive = false );
106     %name{GetItemNth} wxSizerItem* GetItem( size_t index );
107 #else
108 %{
109 wxSizerItem*
110 wxSizer::GetItemNth( index )
111     size_t index
112   CODE:
113     RETVAL = index >= THIS->GetChildren().GetCount() ? NULL :
114                  THIS->GetChildren().Item( index )->GetData();
115   OUTPUT: RETVAL    
116 %}
117 #endif
118 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
119     wxSizerItem* GetItemById( int id, bool recursive = false );
120 #endif
121
122     %name{HideSizer} bool Hide( wxSizer *sizer, bool recursive = false );
123     %name{HideWindow} bool Hide( wxWindow *window, bool recursive = false );
124     %name{HideIndex} bool Hide( size_t index );
125 %{
126 void
127 wxSizer::Hide( ... )
128   PPCODE:
129     BEGIN_OVERLOAD()
130         MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wwin_b, HideWindow, 1 )
131         MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wszr_b, HideSizer, 1 )
132         MATCH_REDISP( wxPliOvl_n, HideIndex )
133     END_OVERLOAD( Wx::Sizer::Hide )
134 %}
135
136     %name{IsShownWindow} bool IsShown( wxWindow *window ) const;
137     %name{IsShownSizer} bool IsShown( wxSizer *sizer ) const;
138     %name{IsShownIndex} bool IsShown( size_t index ) const;
139 %{
140 void
141 wxSizer::IsShown( ... )
142   PPCODE:
143     BEGIN_OVERLOAD()
144         MATCH_REDISP( wxPliOvl_wwin, IsShownWindow )
145         MATCH_REDISP( wxPliOvl_wszr, IsShownSizer )
146         MATCH_REDISP( wxPliOvl_n, IsShownIndex )
147     END_OVERLOAD( Wx::Sizer::IsShown )
148 %}
149
150 # DECLARE_OVERLOAD( wszi, Wx::SizerItem )
151
152 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
153
154     %name{ReplaceWindow} bool Replace( wxWindow *oldwin, wxWindow *newwin,
155                                        bool recursive = false );
156     %name{ReplaceSizer} bool Replace( wxSizer *oldsz, wxSizer *newsz,
157                                       bool recursive = false );
158     %name{ReplaceIndex} bool Replace( size_t index, wxSizerItem *newitem );
159 %{
160 void
161 wxSizer::Replace( ... )
162   PPCODE:
163     BEGIN_OVERLOAD()
164         MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wwin_wwin_b, ReplaceWindow, 2 )
165         MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wszr_wszr_b, ReplaceSizer, 2 )
166         MATCH_REDISP( wxPliOvl_n_wszi, ReplaceIndex )
167     END_OVERLOAD( Wx::Sizer::Replace )
168 %}
169
170 #endif
171
172     void RecalcSizes();
173     void Clear( bool deleteWindows = false );
174     void DeleteWindows();
175     wxSize CalcMin();
176     wxSize Fit( wxWindow* window );
177     void FitInside( wxWindow* window );
178     wxSize GetSize();
179     wxPoint GetPosition();
180     wxSize GetMinSize();
181     void Layout();
182
183 #if WXPERL_W_VERSION_LT( 2, 7, 0 ) || WXWIN_COMPATIBILITY_2_6
184     %name{RemoveWindow} bool Remove( wxWindow* window );
185 #endif
186     %name{RemoveSizer} bool Remove( wxSizer* window );
187     %name{RemoveNth} bool Remove( int nth );
188
189 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
190     %name{DetachWindow} bool Detach( wxWindow* window );
191     %name{DetachSizer} bool Detach( wxSizer* window );
192     %name{DetachNth} bool Detach( int nth );
193 #endif
194
195 #if WXPERL_W_VERSION_GE( 2, 7, 1 )
196     wxWindow* GetContainingWindow();
197     void SetContainingWindow( wxWindow* window );
198 #endif
199
200     void SetDimension( int x, int y, int width, int height );
201
202     %name{SetItemMinSizeWindow}
203     void SetItemMinSize( wxWindow* window, int width, int height );
204     %name{SetItemMinSizeSizer}
205     void SetItemMinSize( wxSizer* window, int width, int height );
206     %name{SetItemMinSizeNth}
207     void SetItemMinSize( int pos, int width, int height );
208
209     %name{SetMinSizeSize} void SetMinSize( wxSize size );
210     %name{SetMinSizeXY} void SetMinSize( int x, int y );
211
212     void SetSizeHints( wxWindow* window );
213
214 #if WXPERL_W_VERSION_LT( 2, 9, 0 )
215     void SetVirtualSizeHints( wxWindow* window );
216 #endif
217
218 #if WXPERL_W_VERSION_GE( 2, 6, 2 )
219     %name{ShowWindow} bool Show( wxWindow* window, bool show = true, bool recursive = false );
220     %name{ShowSizer} bool Show( wxSizer* sizer, bool show = true, bool recursive = false );
221     %name{ShowIndex} bool Show( size_t index, bool show = true );
222 #else
223 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
224     %name{ShowWindow} bool Show( wxWindow* window, bool show = true );
225     %name{ShowSizer} bool Show( wxSizer* sizer, bool show = true );
226     %name{ShowIndex} bool Show( size_t index, bool show = true );
227 #else
228     %name{ShowWindow} void Show( wxWindow* window, bool show = true );
229     %name{ShowSizer} void Show( wxSizer* sizer, bool show = true );
230 #endif
231 #endif
232
233 #if WXPERL_W_VERSION_GE( 2, 5, 4 )
234     wxSizerItem* AddSpacer( int size );
235     wxSizerItem* AddStretchSpacer( int prop = 1 );
236
237     wxSizerItem* InsertSpacer( size_t index, int size );
238     wxSizerItem* InsertStretchSpacer( size_t index, int prop = 1 );
239
240     wxSizerItem* PrependSpacer( int size );
241     wxSizerItem* PrependStretchSpacer( int prop = 1 );
242 #else // for xsubpp
243 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
244     void AddSpacer( int size );
245     void AddStretchSpacer( int prop = 1 );
246
247     void InsertSpacer( size_t index, int size );
248     void InsertStretchSpacer( size_t index, int prop = 1 );
249
250     void PrependSpacer( int size );
251     void PrependStretchSpacer( int prop = 1 );
252 #endif
253 #endif
254 };
255
256 %name{Wx::FlexGridSizer} class wxFlexGridSizer
257 {
258 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
259     void AddGrowableCol( size_t index, int proportion = 0 );
260     void AddGrowableRow( size_t index, int proportion = 0 );
261
262     void SetFlexibleDirection( int direction );
263     int GetFlexibleDirection();
264
265     void SetNonFlexibleGrowMode(wxFlexSizerGrowMode mode);
266     wxFlexSizerGrowMode GetNonFlexibleGrowMode();
267 #else
268     void AddGrowableCol( size_t index );
269     void AddGrowableRow( size_t index );
270 #endif
271 };
272
273 %name{Wx::SizerItem} class wxSizerItem
274 {
275 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
276     %name{GetOption} int GetProportion();
277     %name{SetOption} void SetProportion( int option );
278     int GetProportion();
279     void SetProportion( int proportion );
280 #else
281     %name{GetProportion} int GetOption();
282     %name{SetProportion} void SetOption( int proportion );
283     int GetOption();
284     void SetOption( int option );
285 #endif
286 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
287     %name{SetMinSizeWH} void SetMinSize( int x, int y );
288     %name{SetMinSizeSize} void SetMinSize( wxSize size );
289 #endif
290     void DeleteWindows();
291     void DetachSizer();
292 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
293     void SetId( int id );
294     int GetId() const;
295 #endif
296 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
297     const wxRect& GetRect();
298 #endif
299     void Show( bool show );
300 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
301     void AssignSpacer( int width, int height );
302 #else
303 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
304     void SetSpacer( int width, int height );
305 #endif
306 #endif
307     wxSize GetSpacer() const;
308 };
309
310 #if WXPERL_W_VERSION_GE( 2, 6, 1 )
311
312 #include <wx/button.h>
313
314 %name{Wx::StdDialogButtonSizer} class wxStdDialogButtonSizer
315 {
316     wxStdDialogButtonSizer();
317
318     void AddButton( wxButton* button );
319
320     void SetAffirmativeButton( wxButton* button );
321     void SetNegativeButton( wxButton* button );
322     void SetCancelButton( wxButton* button );
323
324     void Realize();
325
326     wxButton *GetAffirmativeButton() const;
327     wxButton *GetApplyButton() const;
328     wxButton *GetNegativeButton() const;
329     wxButton *GetCancelButton() const;
330     wxButton *GetHelpButton() const;
331 };
332
333 #endif
334
335 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
336
337 #include <wx/wrapsizer.h>
338
339 %name{Wx::WrapSizer} class wxWrapSizer
340 {
341     wxWrapSizer( int orient = wxHORIZONTAL,
342                  int flags = wxEXTEND_LAST_ON_EACH_LINE );
343
344     bool InformFirstDirection( int direction, int size,
345                                int availableOtherDir );
346 };
347
348 #endif
349
350 %{
351 MODULE=Wx PACKAGE=Wx::Sizer
352
353 void
354 wxSizer::Show( ... )
355   PPCODE:
356     BEGIN_OVERLOAD()
357         MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wwin_b, ShowWindow, 1 )
358         MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wszr_b, ShowSizer, 1 )
359         MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_n_b, ShowIndex, 1 )
360     END_OVERLOAD( Wx::Sizer::Show )
361
362 void
363 wxSizer::Destroy()
364   CODE:
365     delete THIS;
366
367 void
368 wxSizer::Add( ... )
369   PPCODE:
370     BEGIN_OVERLOAD()
371         MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wwin_n_n_n_s, AddWindow, 1 )
372         MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wszr_n_n_n_s, AddSizer, 1 )
373         MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_n_n_n_n_n_s, AddSpace, 2 )
374     END_OVERLOAD( Wx::Sizer::Add )
375
376 void
377 wxSizer::GetChildren()
378   PPCODE:
379 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
380     wxSizerItemList::compatibility_iterator node;
381     const wxSizerItemList& list
382 #else
383     wxList::compatibility_iterator node;
384     const wxList& list
385 #endif
386         = THIS->GetChildren();
387     
388     EXTEND( SP, (IV) list.GetCount() );
389
390     for( node = list.GetFirst(); node; node = node->GetNext() )
391       PUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(), node->GetData() ) );
392
393 void
394 wxSizer::Insert( ... )
395   PPCODE:
396     BEGIN_OVERLOAD()
397         MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_n_wwin_n_n_n_s, InsertWindow, 2 )
398         MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_n_wszr_n_n_n_s, InsertSizer, 2 )
399         MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_n_n_n_n_n_n_s, InsertSpace, 3 )
400     END_OVERLOAD( "Wx::Sizer::Insert" )
401
402 void
403 wxSizer::Prepend( ... )
404   PPCODE:
405     BEGIN_OVERLOAD()
406         MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wwin_n_n_n_s, PrependWindow, 1 )
407         MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wszr_n_n_n_s, PrependSizer, 1 )
408         MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_n_n_n_n_n_s, PrependSpace, 2 )
409     END_OVERLOAD( "Wx::Sizer::Prepend" )
410
411 void
412 wxSizer::Remove( ... )
413   PPCODE:
414     BEGIN_OVERLOAD()
415 #if WXPERL_W_VERSION_LT( 2, 7, 0 )|| WXWIN_COMPATIBILITY_2_6
416         MATCH_REDISP( wxPliOvl_wwin, RemoveWindow )
417 #endif
418         MATCH_REDISP( wxPliOvl_wszr, RemoveSizer )
419         MATCH_REDISP( wxPliOvl_n, RemoveNth )
420     END_OVERLOAD( Wx::Sizer::Remove )
421
422 void
423 wxSizer::Detach( ... )
424   PPCODE:
425     BEGIN_OVERLOAD()
426         MATCH_REDISP( wxPliOvl_wwin, DetachWindow )
427         MATCH_REDISP( wxPliOvl_wszr, DetachSizer )
428         MATCH_REDISP( wxPliOvl_n, DetachNth )
429     END_OVERLOAD( Wx::Sizer::Detach )
430
431 void
432 wxSizer::GetItem( ... )
433   PPCODE:
434     BEGIN_OVERLOAD()
435 #if WXPERL_W_VERSION_GE( 2, 5, 4 )
436         MATCH_REDISP( wxPliOvl_wwin_s, GetItemWindow )
437         MATCH_REDISP( wxPliOvl_wszr_s, GetItemSizer )
438 #endif
439         MATCH_REDISP( wxPliOvl_n, GetItemNth )
440     END_OVERLOAD( Wx::Sizer::GetItem )
441
442 void
443 wxSizer::SetItemMinSize( ... )
444   PPCODE:
445     BEGIN_OVERLOAD()
446         MATCH_REDISP( wxPliOvl_wwin_n_n, SetItemMinSizeWindow )
447         MATCH_REDISP( wxPliOvl_wszr_n_n, SetItemMinSizeSizer )
448         MATCH_REDISP( wxPliOvl_n_n_n, SetItemMinSizeNth )
449     END_OVERLOAD( Wx::Sizer::SetItemMinSize )
450
451 void
452 wxSizer::SetMinSize( ... )
453   PPCODE:
454     BEGIN_OVERLOAD()
455         MATCH_REDISP( wxPliOvl_n_n, SetMinSizeXY )
456         MATCH_REDISP( wxPliOvl_wsiz, SetMinSizeSize )
457     END_OVERLOAD( Wx::Sizer::SetMinSize )
458
459 MODULE=Wx PACKAGE=Wx::BoxSizer
460
461 wxBoxSizer*
462 wxBoxSizer::new( orientation )
463     int orientation
464
465 int
466 wxBoxSizer::GetOrientation()
467
468 MODULE=Wx PACKAGE=Wx::StaticBoxSizer
469
470 wxStaticBoxSizer*
471 wxStaticBoxSizer::new( box, orient )
472     wxStaticBox* box
473     int orient
474
475 wxStaticBox*
476 wxStaticBoxSizer::GetStaticBox()
477
478 MODULE=Wx PACKAGE=Wx::NotebookSizer
479
480 #include <wx/notebook.h>
481
482 wxNotebookSizer*
483 wxNotebookSizer::new( notebook )
484     wxNotebook* notebook
485
486 wxNotebook*
487 wxNotebookSizer::GetNotebook()
488
489 MODULE=Wx PACKAGE=Wx::GridSizer
490
491 wxGridSizer*
492 wxGridSizer::new( rows, cols, vgap = 0, hgap = 0 )
493     int rows
494     int cols
495     int vgap
496     int hgap
497
498 int
499 wxGridSizer::GetCols()
500
501 int
502 wxGridSizer::GetHGap()
503
504 int
505 wxGridSizer::GetRows()
506
507 int
508 wxGridSizer::GetVGap()
509
510 void
511 wxGridSizer::SetCols( cols )
512     int cols
513
514 void
515 wxGridSizer::SetHGap( gap )
516     int gap
517
518 void
519 wxGridSizer::SetRows( rows )
520     int rows
521
522 void
523 wxGridSizer::SetVGap( gap )
524    int gap
525
526 MODULE=Wx PACKAGE=Wx::FlexGridSizer
527
528 wxFlexGridSizer*
529 wxFlexGridSizer::new( rows, cols, vgap = 0, hgap = 0 )
530     int rows
531     int cols
532     int vgap
533     int hgap
534
535 void
536 wxFlexGridSizer::RemoveGrowableCol( index )
537     size_t index
538
539 void
540 wxFlexGridSizer::RemoveGrowableRow( index )
541     int index
542
543 MODULE=Wx PACKAGE=Wx::SizerItem
544
545 wxSize*
546 wxSizerItem::GetSize()
547   CODE:
548     RETVAL = new wxSize( THIS->GetSize() );
549   OUTPUT:
550     RETVAL
551
552 wxSize*
553 wxSizerItem::CalcMin()
554   CODE:
555     RETVAL = new wxSize( THIS->GetSize() );
556   OUTPUT:
557     RETVAL
558
559 void
560 wxSizerItem::SetDimension( pos, size )
561     wxPoint pos
562     wxSize size
563
564 wxSize*
565 wxSizerItem::GetMinSize()
566   CODE:
567     RETVAL = new wxSize( THIS->GetMinSize() );
568   OUTPUT:
569     RETVAL
570
571 void
572 wxSizerItem::SetRatio( ... )
573   PPCODE:
574     BEGIN_OVERLOAD()
575         MATCH_REDISP_COUNT( wxPliOvl_n, SetRatioFloat, 1 )
576         MATCH_REDISP_COUNT( wxPliOvl_n_n, SetRatioWH, 2 )
577         MATCH_REDISP_COUNT( wxPliOvl_wsiz, SetRatioSize, 1 )
578     END_OVERLOAD( Wx::SizerItem::SetRatio )
579
580 void
581 wxSizerItem::SetRatioWH( width, height )
582     int width
583     int height
584   CODE:
585     THIS->SetRatio( width, height );
586
587 void
588 wxSizerItem::SetRatioSize( size )
589     wxSize size
590   CODE:
591     THIS->SetRatio( size );
592
593 void
594 wxSizerItem::SetRatioFloat( ratio )
595     float ratio
596   CODE:
597     THIS->SetRatio( ratio );
598
599 float
600 wxSizerItem::GetRatio()
601
602 bool
603 wxSizerItem::IsWindow()
604
605 bool
606 wxSizerItem::IsShown()
607
608 bool
609 wxSizerItem::IsSizer()
610
611 bool
612 wxSizerItem::IsSpacer()
613
614 void
615 wxSizerItem::SetInitSize( x, y )
616     int x
617     int y
618
619 void
620 wxSizerItem::SetFlag( flag )
621     int flag
622
623 void
624 wxSizerItem::SetBorder( border )
625     int border
626
627 wxWindow*
628 wxSizerItem::GetWindow()
629
630 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
631
632 void
633 wxSizerItem::AssignWindow( window )
634     wxWindow* window
635
636 #else
637
638 void
639 wxSizerItem::SetWindow( window )
640     wxWindow* window
641
642 #endif
643
644 wxSizer*
645 wxSizerItem::GetSizer()
646
647 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
648
649 void
650 wxSizerItem::AssignSizer( sizer )
651     wxSizer* sizer
652
653 #else
654
655 void
656 wxSizerItem::SetSizer( sizer )
657     wxSizer* sizer
658
659 #endif
660
661 int
662 wxSizerItem::GetFlag()
663
664 int
665 wxSizerItem::GetBorder()
666
667 wxPoint*
668 wxSizerItem::GetPosition()
669   CODE:
670     RETVAL = new wxPoint( THIS->GetPosition() );
671   OUTPUT:
672     RETVAL
673
674 Wx_UserDataO*
675 wxSizerItem::GetUserData()
676   CODE:
677     RETVAL = (Wx_UserDataO*) THIS->GetUserData();
678   OUTPUT:
679     RETVAL
680
681 #if WXPERL_W_VERSION_GE( 2, 6, 3 )
682
683 void
684 wxSizerItem::SetUserData( data )
685     Wx_UserDataO* data
686
687 #endif
688
689 void
690 wxSizerItem::SetMinSize( ... )
691   PPCODE:
692     BEGIN_OVERLOAD()
693         MATCH_REDISP_COUNT( wxPliOvl_n_n, SetMinSizeWH, 2 )
694         MATCH_REDISP_COUNT( wxPliOvl_wsiz, SetMinSizeSize, 1 )
695     END_OVERLOAD( Wx::SizerItem::SetMinSize )
696
697
698 MODULE=Wx PACKAGE=Wx::PlSizer
699
700 wxPlSizer*
701 wxPlSizer::new()
702   CODE:
703     RETVAL = new wxPlSizer( CLASS );
704   OUTPUT:
705     RETVAL
706
707 %}