Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / XS / Wizard.xs
1 #############################################################################
2 ## Name:        XS/Wizard.xs
3 ## Purpose:     XS for Wx::Wizard and related classes
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     28/08/2002
7 ## RCS-ID:      $Id: Wizard.xs 2315 2008-01-18 21:47:17Z mbarbon $
8 ## Copyright:   (c) 2002-2004, 2006-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 ## bug in 2.2
14 #include <wx/bitmap.h> 
15 #include <wx/panel.h>
16 #include <wx/dialog.h>
17 #include <wx/event.h>
18 #include <wx/wizard.h>
19 #include <wx/sizer.h>
20 #include "cpp/overload.h"
21 #include "cpp/wizard.h"
22
23 MODULE=Wx PACKAGE=Wx::Wizard
24
25 void
26 wxWizard::new( ... )
27   PPCODE:
28     BEGIN_OVERLOAD()
29         MATCH_VOIDM_REDISP( newEmpty )
30         MATCH_ANY_REDISP( newFull )
31     END_OVERLOAD( Wx::Wizard::new )
32
33 wxWizard*
34 newEmpty( CLASS )
35     PlClassName CLASS
36   CODE:
37     RETVAL = new wxPliWizard( CLASS );
38   OUTPUT:
39     RETVAL
40
41 wxWizard*
42 newFull( CLASS, parent, id = wxID_ANY, title = wxEmptyString, bitmap = (wxBitmap*)&wxNullBitmap, pos = wxDefaultPosition )
43     PlClassName CLASS
44     wxWindow* parent
45     wxWindowID id
46     wxString title
47     wxBitmap* bitmap
48     wxPoint pos
49   CODE:
50     RETVAL = new wxPliWizard( CLASS, parent, id, title, *bitmap, pos );
51   OUTPUT:
52     RETVAL
53
54 bool
55 wxWizard::Create( parent, id = wxID_ANY, title = wxEmptyString, bitmap = (wxBitmap*)&wxNullBitmap, pos = wxDefaultPosition )
56     wxWindow* parent
57     wxWindowID id
58     wxString title
59     wxBitmap* bitmap
60     wxPoint pos
61   C_ARGS: parent, id, title, *bitmap, pos
62
63 bool
64 wxWizard::RunWizard( page )
65     wxWizardPage* page
66
67 wxWizardPage*
68 wxWizard::GetCurrentPage()
69
70 wxSize*
71 wxWizard::GetPageSize()
72   CODE:
73     RETVAL = new wxSize( THIS->GetPageSize() );
74   OUTPUT:
75     RETVAL
76
77 void
78 wxWizard::SetPageSize( size )
79     wxSize size
80
81 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
82
83 wxSizer*
84 wxWizard::GetPageAreaSizer()
85
86 #endif
87
88 #if WXPERL_W_VERSION_GE( 2, 8, 5 )
89
90 wxBitmap*
91 wxWizard::GetBitmap()
92   CODE:
93     RETVAL = new wxBitmap( THIS->GetBitmap() );
94   OUTPUT: RETVAL
95
96 void
97 wxWizard::SetBitmap( bitmap )
98     wxBitmap* bitmap
99   C_ARGS: *bitmap
100
101 #endif
102
103 void
104 wxWizard::FitToPage( firstPage )
105     wxWizardPage* firstPage
106
107 void
108 wxWizard::SetBorder( border )
109     int border
110
111 bool
112 wxWizard::HasNextPage( page )
113     wxWizardPage* page
114
115 bool
116 wxWizard::HasPrevPage( page )
117     wxWizardPage* page
118
119 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
120
121 void
122 wxWizard::SetBitmapBackgroundColour( colour )
123     wxColour colour
124
125 wxColour*
126 wxWizard::GetBitmapBackgroundColour()
127   CODE:
128     RETVAL = new wxColour( THIS->GetBitmapBackgroundColour() );
129   OUTPUT: RETVAL
130
131 void
132 wxWizard::SetBitmapPlacement( placement )
133     int placement
134
135 int
136 wxWizard::GetBitmapPlacement()
137
138 void
139 wxWizard::SetMinimumBitmapWidth( w )
140     int w
141
142 int
143 wxWizard::GetMinimumBitmapWidth()
144
145 #endif
146
147 MODULE=Wx PACKAGE=Wx::WizardPage
148
149 void
150 wxWizardPage::new( ... )
151   PPCODE:
152     BEGIN_OVERLOAD()
153         MATCH_VOIDM_REDISP( newEmpty )
154         MATCH_ANY_REDISP( newFull )
155     END_OVERLOAD( Wx::WizardPage::new )
156
157 wxWizardPage*
158 newEmpty( CLASS )
159     PlClassName CLASS
160   CODE:
161     RETVAL = new wxPliWizardPage( CLASS );
162   OUTPUT:
163     RETVAL
164
165 wxWizardPage*
166 newFull( CLASS, parent, bitmap = (wxBitmap*)&wxNullBitmap )
167     PlClassName CLASS
168     wxWizard* parent
169     wxBitmap* bitmap
170   CODE:
171     RETVAL = new wxPliWizardPage( CLASS, parent, *bitmap );
172   OUTPUT:
173     RETVAL
174
175 bool
176 wxWizardPage::Create( parent, bitmap = (wxBitmap*)&wxNullBitmap )
177     wxWizard* parent
178     wxBitmap* bitmap
179   C_ARGS: parent, *bitmap
180
181 wxBitmap*
182 wxWizardPage::GetBitmap()
183   CODE:
184     RETVAL = new wxBitmap( THIS->GetBitmap() );
185   OUTPUT:
186     RETVAL
187
188 wxWizardPage*
189 wxWizardPageSimple::GetPrev()
190
191 wxWizardPage*
192 wxWizardPageSimple::GetNext()
193
194 MODULE=Wx PACKAGE=Wx::WizardPageSimple
195
196 wxWizardPageSimple*
197 wxWizardPageSimple::new( parent, prev = 0, next = 0 )
198     wxWizard* parent
199     wxWizardPage* prev
200     wxWizardPage* next
201
202 void
203 wxWizardPageSimple::SetPrev( prev )
204     wxWizardPage* prev
205
206 void
207 wxWizardPageSimple::SetNext( next )
208     wxWizardPage* next
209
210 void
211 Chain( first, second )
212     wxWizardPageSimple* first
213     wxWizardPageSimple* second
214   CODE:
215     wxWizardPageSimple::Chain( first, second );
216
217 MODULE=Wx PACKAGE=Wx::WizardEvent
218
219 bool
220 wxWizardEvent::GetDirection()
221
222 wxWizardPage*
223 wxWizardEvent::GetPage()
224