Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / XS / Panel.xs
1 #############################################################################
2 ## Name:        XS/Panel.xs
3 ## Purpose:     XS for Wx::Panel
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     29/10/2000
7 ## RCS-ID:      $Id: Panel.xs 2057 2007-06-18 23:03:00Z mbarbon $
8 ## Copyright:   (c) 2000-2001, 2003-2004, 2006 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 #include <wx/panel.h>
14 #include "cpp/panel.h"
15 #include "cpp/overload.h"
16
17 MODULE=Wx PACKAGE=Wx::Panel
18
19 void
20 new( ... )
21   PPCODE:
22     BEGIN_OVERLOAD()
23         MATCH_VOIDM_REDISP( newDefault )
24         MATCH_ANY_REDISP( newFull )
25     END_OVERLOAD( "Wx::Panel::new" )
26
27 wxPanel*
28 newDefault( CLASS )
29     PlClassName CLASS
30   CODE:
31     RETVAL = new wxPliPanel( CLASS );
32   OUTPUT: RETVAL
33
34 wxPanel*
35 newFull( CLASS, parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = wxTAB_TRAVERSAL, name = wxPanelNameStr )
36     PlClassName CLASS
37     wxWindow* parent
38     wxWindowID id
39     wxPoint pos
40     wxSize size
41     long style
42     wxString name
43   CODE:
44     RETVAL = new wxPliPanel( CLASS, parent, id, pos, size, style, name );
45   OUTPUT: RETVAL
46
47 bool
48 wxPanel::Create( parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = wxTAB_TRAVERSAL, name = wxPanelNameStr )
49     wxWindow* parent
50     wxWindowID id
51     wxPoint pos
52     wxSize size
53     long style
54     wxString name
55
56 #if WXPERL_W_VERSION_GE( 2, 5, 4 )
57
58 void
59 wxPanel::SetFocusIgnoringChildren()
60
61 #endif
62
63 bool
64 wxPanel::TransferDataFromWindow()
65   CODE:
66     RETVAL = THIS->wxPanel::TransferDataFromWindow();
67   OUTPUT:
68     RETVAL
69
70 bool
71 wxPanel::TransferDataToWindow()
72   CODE:
73     RETVAL = THIS->wxPanel::TransferDataToWindow();
74   OUTPUT:
75     RETVAL
76
77 bool
78 wxPanel::Validate()
79   CODE:
80     RETVAL = THIS->wxPanel::Validate();
81   OUTPUT:
82     RETVAL