]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/sizers.cpp
don't define wxUSE_OWNER_DRAWN for wxUniv
[wxWidgets.git] / wxPython / src / msw / sizers.cpp
CommitLineData
2f90df85 1/*
c368d904 2 * FILE : src/msw/sizers.cpp
2f90df85
RD
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
185d7c3e 6 * Version 1.1 (Build 883)
2f90df85
RD
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18#define SWIGCODE
19/* Implementation : PYTHON */
20
21#define SWIGPYTHON
22#include <string.h>
23#include <stdlib.h>
24/* Definitions for Windows/Unix exporting */
25#if defined(__WIN32__)
26# if defined(_MSC_VER)
27# define SWIGEXPORT(a) __declspec(dllexport) a
28# else
29# if defined(__BORLANDC__)
c368d904 30# define SWIGEXPORT(a) a _export
2f90df85 31# else
c368d904 32# define SWIGEXPORT(a) a
2f90df85
RD
33# endif
34# endif
35#else
c368d904 36# define SWIGEXPORT(a) a
2f90df85
RD
37#endif
38
c368d904
RD
39#include "Python.h"
40
2f90df85
RD
41#ifdef __cplusplus
42extern "C" {
43#endif
185d7c3e 44
2f90df85
RD
45extern void SWIG_MakePtr(char *, void *, char *);
46extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47extern char *SWIG_GetPtr(char *, void **, char *);
48extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50extern PyObject *SWIG_newvarlink(void);
51#ifdef __cplusplus
52}
53#endif
54#define SWIG_init initsizersc
55
56#define SWIG_name "sizersc"
57
58#include "helpers.h"
59
9416aa89
RD
60#include <wx/notebook.h>
61
2f90df85
RD
62
63static PyObject* t_output_helper(PyObject* target, PyObject* o) {
64 PyObject* o2;
65 PyObject* o3;
66
e0672e2f 67 if (!target) {
2f90df85 68 target = o;
e0672e2f 69 } else if (target == Py_None) {
2f90df85
RD
70 Py_DECREF(Py_None);
71 target = o;
e0672e2f 72 } else {
2f90df85
RD
73 if (!PyTuple_Check(target)) {
74 o2 = target;
75 target = PyTuple_New(1);
76 PyTuple_SetItem(target, 0, o2);
77 }
e0672e2f
RD
78 o3 = PyTuple_New(1);
79 PyTuple_SetItem(o3, 0, o);
2f90df85
RD
80
81 o2 = target;
e0672e2f
RD
82 target = PySequence_Concat(o2, o3);
83 Py_DECREF(o2);
2f90df85
RD
84 Py_DECREF(o3);
85 }
86 return target;
87}
88
794c5cb1
RD
89#if PYTHON_API_VERSION >= 1009
90 static char* wxStringErrorMsg = "String or Unicode type required";
91#else
92 static char* wxStringErrorMsg = "string type is required for parameter";
93#endif
2f90df85 94
2f90df85
RD
95class wxPySizer : public wxSizer {
96 DECLARE_DYNAMIC_CLASS(wxPySizer);
97public:
98 wxPySizer() : wxSizer() {};
99
100 DEC_PYCALLBACK___pure(RecalcSizes);
101 DEC_PYCALLBACK_wxSize__pure(CalcMin);
102 PYPRIVATE;
103};
104
105
106IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes);
107IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin);
108
109IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer);
110#ifdef __cplusplus
111extern "C" {
112#endif
9416aa89
RD
113static void *SwigwxSizerItemTowxObject(void *ptr) {
114 wxSizerItem *src;
115 wxObject *dest;
116 src = (wxSizerItem *) ptr;
117 dest = (wxObject *) src;
118 return (void *) dest;
119}
120
09f3d4e6
RD
121#define wxSizerItem_GetPosition(_swigobj) (_swigobj->GetPosition())
122static PyObject *_wrap_wxSizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
123 PyObject * _resultobj;
124 wxPoint * _result;
125 wxSizerItem * _arg0;
126 PyObject * _argo0 = 0;
127 char *_kwnames[] = { "self", NULL };
128 char _ptemp[128];
129
130 self = self;
131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetPosition",_kwnames,&_argo0))
132 return NULL;
133 if (_argo0) {
134 if (_argo0 == Py_None) { _arg0 = NULL; }
135 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
136 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetPosition. Expected _wxSizerItem_p.");
137 return NULL;
138 }
139 }
140{
141 wxPy_BEGIN_ALLOW_THREADS;
142 _result = new wxPoint (wxSizerItem_GetPosition(_arg0));
143
144 wxPy_END_ALLOW_THREADS;
145 if (PyErr_Occurred()) return NULL;
146} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
147 _resultobj = Py_BuildValue("s",_ptemp);
148 return _resultobj;
149}
150
2f90df85
RD
151#define wxSizerItem_GetSize(_swigobj) (_swigobj->GetSize())
152static PyObject *_wrap_wxSizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
153 PyObject * _resultobj;
154 wxSize * _result;
155 wxSizerItem * _arg0;
156 PyObject * _argo0 = 0;
157 char *_kwnames[] = { "self", NULL };
158 char _ptemp[128];
159
160 self = self;
161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetSize",_kwnames,&_argo0))
162 return NULL;
163 if (_argo0) {
164 if (_argo0 == Py_None) { _arg0 = NULL; }
165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetSize. Expected _wxSizerItem_p.");
167 return NULL;
168 }
169 }
170{
171 wxPy_BEGIN_ALLOW_THREADS;
172 _result = new wxSize (wxSizerItem_GetSize(_arg0));
173
174 wxPy_END_ALLOW_THREADS;
493f1553 175 if (PyErr_Occurred()) return NULL;
2f90df85
RD
176} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
177 _resultobj = Py_BuildValue("s",_ptemp);
178 return _resultobj;
179}
180
181#define wxSizerItem_CalcMin(_swigobj) (_swigobj->CalcMin())
182static PyObject *_wrap_wxSizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
183 PyObject * _resultobj;
184 wxSize * _result;
185 wxSizerItem * _arg0;
186 PyObject * _argo0 = 0;
187 char *_kwnames[] = { "self", NULL };
188 char _ptemp[128];
189
190 self = self;
191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_CalcMin",_kwnames,&_argo0))
192 return NULL;
193 if (_argo0) {
194 if (_argo0 == Py_None) { _arg0 = NULL; }
195 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
196 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_CalcMin. Expected _wxSizerItem_p.");
197 return NULL;
198 }
199 }
200{
201 wxPy_BEGIN_ALLOW_THREADS;
202 _result = new wxSize (wxSizerItem_CalcMin(_arg0));
203
204 wxPy_END_ALLOW_THREADS;
493f1553 205 if (PyErr_Occurred()) return NULL;
2f90df85
RD
206} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
207 _resultobj = Py_BuildValue("s",_ptemp);
208 return _resultobj;
209}
210
211#define wxSizerItem_SetDimension(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDimension(_swigarg0,_swigarg1))
212static PyObject *_wrap_wxSizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) {
213 PyObject * _resultobj;
214 wxSizerItem * _arg0;
215 wxPoint * _arg1;
216 wxSize * _arg2;
217 PyObject * _argo0 = 0;
218 wxPoint temp;
219 PyObject * _obj1 = 0;
220 wxSize temp0;
221 PyObject * _obj2 = 0;
222 char *_kwnames[] = { "self","pos","size", NULL };
223
224 self = self;
225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxSizerItem_SetDimension",_kwnames,&_argo0,&_obj1,&_obj2))
226 return NULL;
227 if (_argo0) {
228 if (_argo0 == Py_None) { _arg0 = NULL; }
229 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
230 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetDimension. Expected _wxSizerItem_p.");
231 return NULL;
232 }
233 }
234{
235 _arg1 = &temp;
236 if (! wxPoint_helper(_obj1, &_arg1))
237 return NULL;
238}
239{
240 _arg2 = &temp0;
241 if (! wxSize_helper(_obj2, &_arg2))
242 return NULL;
243}
244{
245 wxPy_BEGIN_ALLOW_THREADS;
246 wxSizerItem_SetDimension(_arg0,*_arg1,*_arg2);
247
248 wxPy_END_ALLOW_THREADS;
493f1553 249 if (PyErr_Occurred()) return NULL;
2f90df85
RD
250} Py_INCREF(Py_None);
251 _resultobj = Py_None;
252 return _resultobj;
253}
254
f6bcfd97
BP
255#define wxSizerItem_SetRatioWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRatio(_swigarg0,_swigarg1))
256static PyObject *_wrap_wxSizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) {
257 PyObject * _resultobj;
258 wxSizerItem * _arg0;
259 int _arg1;
260 int _arg2;
261 PyObject * _argo0 = 0;
262 char *_kwnames[] = { "self","width","height", NULL };
263
264 self = self;
265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSizerItem_SetRatioWH",_kwnames,&_argo0,&_arg1,&_arg2))
266 return NULL;
267 if (_argo0) {
268 if (_argo0 == Py_None) { _arg0 = NULL; }
269 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
270 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetRatioWH. Expected _wxSizerItem_p.");
271 return NULL;
272 }
273 }
274{
275 wxPy_BEGIN_ALLOW_THREADS;
276 wxSizerItem_SetRatioWH(_arg0,_arg1,_arg2);
277
278 wxPy_END_ALLOW_THREADS;
493f1553 279 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
280} Py_INCREF(Py_None);
281 _resultobj = Py_None;
282 return _resultobj;
283}
284
285#define wxSizerItem_SetRatioSize(_swigobj,_swigarg0) (_swigobj->SetRatio(_swigarg0))
286static PyObject *_wrap_wxSizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) {
287 PyObject * _resultobj;
288 wxSizerItem * _arg0;
289 wxSize * _arg1;
290 PyObject * _argo0 = 0;
291 wxSize temp;
292 PyObject * _obj1 = 0;
293 char *_kwnames[] = { "self","size", NULL };
294
295 self = self;
296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSizerItem_SetRatioSize",_kwnames,&_argo0,&_obj1))
297 return NULL;
298 if (_argo0) {
299 if (_argo0 == Py_None) { _arg0 = NULL; }
300 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
301 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetRatioSize. Expected _wxSizerItem_p.");
302 return NULL;
303 }
304 }
305{
306 _arg1 = &temp;
307 if (! wxSize_helper(_obj1, &_arg1))
308 return NULL;
309}
310{
311 wxPy_BEGIN_ALLOW_THREADS;
312 wxSizerItem_SetRatioSize(_arg0,*_arg1);
313
314 wxPy_END_ALLOW_THREADS;
493f1553 315 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
316} Py_INCREF(Py_None);
317 _resultobj = Py_None;
318 return _resultobj;
319}
320
321#define wxSizerItem_SetRatio(_swigobj,_swigarg0) (_swigobj->SetRatio(_swigarg0))
322static PyObject *_wrap_wxSizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) {
323 PyObject * _resultobj;
324 wxSizerItem * _arg0;
325 float _arg1;
326 PyObject * _argo0 = 0;
327 char *_kwnames[] = { "self","ratio", NULL };
328
329 self = self;
330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Of:wxSizerItem_SetRatio",_kwnames,&_argo0,&_arg1))
331 return NULL;
332 if (_argo0) {
333 if (_argo0 == Py_None) { _arg0 = NULL; }
334 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
335 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetRatio. Expected _wxSizerItem_p.");
336 return NULL;
337 }
338 }
339{
340 wxPy_BEGIN_ALLOW_THREADS;
341 wxSizerItem_SetRatio(_arg0,_arg1);
342
343 wxPy_END_ALLOW_THREADS;
493f1553 344 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
345} Py_INCREF(Py_None);
346 _resultobj = Py_None;
347 return _resultobj;
348}
349
350#define wxSizerItem_GetRatio(_swigobj) (_swigobj->GetRatio())
351static PyObject *_wrap_wxSizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) {
352 PyObject * _resultobj;
353 float _result;
354 wxSizerItem * _arg0;
355 PyObject * _argo0 = 0;
356 char *_kwnames[] = { "self", NULL };
357
358 self = self;
359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetRatio",_kwnames,&_argo0))
360 return NULL;
361 if (_argo0) {
362 if (_argo0 == Py_None) { _arg0 = NULL; }
363 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
364 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetRatio. Expected _wxSizerItem_p.");
365 return NULL;
366 }
367 }
368{
369 wxPy_BEGIN_ALLOW_THREADS;
370 _result = (float )wxSizerItem_GetRatio(_arg0);
371
372 wxPy_END_ALLOW_THREADS;
493f1553 373 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
374} _resultobj = Py_BuildValue("f",_result);
375 return _resultobj;
376}
377
2f90df85
RD
378#define wxSizerItem_IsWindow(_swigobj) (_swigobj->IsWindow())
379static PyObject *_wrap_wxSizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
380 PyObject * _resultobj;
381 bool _result;
382 wxSizerItem * _arg0;
383 PyObject * _argo0 = 0;
384 char *_kwnames[] = { "self", NULL };
385
386 self = self;
387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_IsWindow",_kwnames,&_argo0))
388 return NULL;
389 if (_argo0) {
390 if (_argo0 == Py_None) { _arg0 = NULL; }
391 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
392 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_IsWindow. Expected _wxSizerItem_p.");
393 return NULL;
394 }
395 }
396{
397 wxPy_BEGIN_ALLOW_THREADS;
398 _result = (bool )wxSizerItem_IsWindow(_arg0);
399
400 wxPy_END_ALLOW_THREADS;
493f1553 401 if (PyErr_Occurred()) return NULL;
2f90df85
RD
402} _resultobj = Py_BuildValue("i",_result);
403 return _resultobj;
404}
405
406#define wxSizerItem_IsSizer(_swigobj) (_swigobj->IsSizer())
407static PyObject *_wrap_wxSizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
408 PyObject * _resultobj;
409 bool _result;
410 wxSizerItem * _arg0;
411 PyObject * _argo0 = 0;
412 char *_kwnames[] = { "self", NULL };
413
414 self = self;
415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_IsSizer",_kwnames,&_argo0))
416 return NULL;
417 if (_argo0) {
418 if (_argo0 == Py_None) { _arg0 = NULL; }
419 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
420 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_IsSizer. Expected _wxSizerItem_p.");
421 return NULL;
422 }
423 }
424{
425 wxPy_BEGIN_ALLOW_THREADS;
426 _result = (bool )wxSizerItem_IsSizer(_arg0);
427
428 wxPy_END_ALLOW_THREADS;
493f1553 429 if (PyErr_Occurred()) return NULL;
2f90df85
RD
430} _resultobj = Py_BuildValue("i",_result);
431 return _resultobj;
432}
433
434#define wxSizerItem_IsSpacer(_swigobj) (_swigobj->IsSpacer())
435static PyObject *_wrap_wxSizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
436 PyObject * _resultobj;
437 bool _result;
438 wxSizerItem * _arg0;
439 PyObject * _argo0 = 0;
440 char *_kwnames[] = { "self", NULL };
441
442 self = self;
443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_IsSpacer",_kwnames,&_argo0))
444 return NULL;
445 if (_argo0) {
446 if (_argo0 == Py_None) { _arg0 = NULL; }
447 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
448 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_IsSpacer. Expected _wxSizerItem_p.");
449 return NULL;
450 }
451 }
452{
453 wxPy_BEGIN_ALLOW_THREADS;
454 _result = (bool )wxSizerItem_IsSpacer(_arg0);
455
456 wxPy_END_ALLOW_THREADS;
493f1553 457 if (PyErr_Occurred()) return NULL;
2f90df85
RD
458} _resultobj = Py_BuildValue("i",_result);
459 return _resultobj;
460}
461
462#define wxSizerItem_GetWindow(_swigobj) (_swigobj->GetWindow())
463static PyObject *_wrap_wxSizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
464 PyObject * _resultobj;
465 wxWindow * _result;
466 wxSizerItem * _arg0;
467 PyObject * _argo0 = 0;
468 char *_kwnames[] = { "self", NULL };
2f90df85
RD
469
470 self = self;
471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetWindow",_kwnames,&_argo0))
472 return NULL;
473 if (_argo0) {
474 if (_argo0 == Py_None) { _arg0 = NULL; }
475 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
476 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetWindow. Expected _wxSizerItem_p.");
477 return NULL;
478 }
479 }
480{
481 wxPy_BEGIN_ALLOW_THREADS;
482 _result = (wxWindow *)wxSizerItem_GetWindow(_arg0);
483
484 wxPy_END_ALLOW_THREADS;
493f1553 485 if (PyErr_Occurred()) return NULL;
9416aa89 486}{ _resultobj = wxPyMake_wxObject(_result); }
2f90df85
RD
487 return _resultobj;
488}
489
f6bcfd97
BP
490#define wxSizerItem_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0))
491static PyObject *_wrap_wxSizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
492 PyObject * _resultobj;
493 wxSizerItem * _arg0;
494 wxWindow * _arg1;
495 PyObject * _argo0 = 0;
496 PyObject * _argo1 = 0;
497 char *_kwnames[] = { "self","window", NULL };
498
499 self = self;
500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSizerItem_SetWindow",_kwnames,&_argo0,&_argo1))
501 return NULL;
502 if (_argo0) {
503 if (_argo0 == Py_None) { _arg0 = NULL; }
504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetWindow. Expected _wxSizerItem_p.");
506 return NULL;
507 }
508 }
509 if (_argo1) {
510 if (_argo1 == Py_None) { _arg1 = NULL; }
511 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
512 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSizerItem_SetWindow. Expected _wxWindow_p.");
513 return NULL;
514 }
515 }
516{
517 wxPy_BEGIN_ALLOW_THREADS;
518 wxSizerItem_SetWindow(_arg0,_arg1);
519
520 wxPy_END_ALLOW_THREADS;
493f1553 521 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
522} Py_INCREF(Py_None);
523 _resultobj = Py_None;
524 return _resultobj;
525}
526
2f90df85
RD
527#define wxSizerItem_GetSizer(_swigobj) (_swigobj->GetSizer())
528static PyObject *_wrap_wxSizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
529 PyObject * _resultobj;
530 wxSizer * _result;
531 wxSizerItem * _arg0;
532 PyObject * _argo0 = 0;
533 char *_kwnames[] = { "self", NULL };
2f90df85
RD
534
535 self = self;
536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetSizer",_kwnames,&_argo0))
537 return NULL;
538 if (_argo0) {
539 if (_argo0 == Py_None) { _arg0 = NULL; }
540 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
541 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetSizer. Expected _wxSizerItem_p.");
542 return NULL;
543 }
544 }
545{
546 wxPy_BEGIN_ALLOW_THREADS;
547 _result = (wxSizer *)wxSizerItem_GetSizer(_arg0);
548
549 wxPy_END_ALLOW_THREADS;
493f1553 550 if (PyErr_Occurred()) return NULL;
9416aa89 551}{ _resultobj = wxPyMake_wxObject(_result); }
2f90df85
RD
552 return _resultobj;
553}
554
f6bcfd97
BP
555#define wxSizerItem_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0))
556static PyObject *_wrap_wxSizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
557 PyObject * _resultobj;
558 wxSizerItem * _arg0;
559 wxSizer * _arg1;
560 PyObject * _argo0 = 0;
561 PyObject * _argo1 = 0;
562 char *_kwnames[] = { "self","sizer", NULL };
563
564 self = self;
565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSizerItem_SetSizer",_kwnames,&_argo0,&_argo1))
566 return NULL;
567 if (_argo0) {
568 if (_argo0 == Py_None) { _arg0 = NULL; }
569 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
570 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetSizer. Expected _wxSizerItem_p.");
571 return NULL;
572 }
573 }
574 if (_argo1) {
575 if (_argo1 == Py_None) { _arg1 = NULL; }
576 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) {
577 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSizerItem_SetSizer. Expected _wxSizer_p.");
578 return NULL;
579 }
580 }
581{
582 wxPy_BEGIN_ALLOW_THREADS;
583 wxSizerItem_SetSizer(_arg0,_arg1);
584
585 wxPy_END_ALLOW_THREADS;
493f1553 586 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
587} Py_INCREF(Py_None);
588 _resultobj = Py_None;
589 return _resultobj;
590}
591
2f90df85
RD
592#define wxSizerItem_GetOption(_swigobj) (_swigobj->GetOption())
593static PyObject *_wrap_wxSizerItem_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
594 PyObject * _resultobj;
595 int _result;
596 wxSizerItem * _arg0;
597 PyObject * _argo0 = 0;
598 char *_kwnames[] = { "self", NULL };
599
600 self = self;
601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetOption",_kwnames,&_argo0))
602 return NULL;
603 if (_argo0) {
604 if (_argo0 == Py_None) { _arg0 = NULL; }
605 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
606 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetOption. Expected _wxSizerItem_p.");
607 return NULL;
608 }
609 }
610{
611 wxPy_BEGIN_ALLOW_THREADS;
612 _result = (int )wxSizerItem_GetOption(_arg0);
613
614 wxPy_END_ALLOW_THREADS;
493f1553 615 if (PyErr_Occurred()) return NULL;
2f90df85
RD
616} _resultobj = Py_BuildValue("i",_result);
617 return _resultobj;
618}
619
620#define wxSizerItem_GetFlag(_swigobj) (_swigobj->GetFlag())
621static PyObject *_wrap_wxSizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
622 PyObject * _resultobj;
623 int _result;
624 wxSizerItem * _arg0;
625 PyObject * _argo0 = 0;
626 char *_kwnames[] = { "self", NULL };
627
628 self = self;
629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetFlag",_kwnames,&_argo0))
630 return NULL;
631 if (_argo0) {
632 if (_argo0 == Py_None) { _arg0 = NULL; }
633 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
634 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetFlag. Expected _wxSizerItem_p.");
635 return NULL;
636 }
637 }
638{
639 wxPy_BEGIN_ALLOW_THREADS;
640 _result = (int )wxSizerItem_GetFlag(_arg0);
641
642 wxPy_END_ALLOW_THREADS;
493f1553 643 if (PyErr_Occurred()) return NULL;
2f90df85
RD
644} _resultobj = Py_BuildValue("i",_result);
645 return _resultobj;
646}
647
648#define wxSizerItem_GetBorder(_swigobj) (_swigobj->GetBorder())
649static PyObject *_wrap_wxSizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
650 PyObject * _resultobj;
651 int _result;
652 wxSizerItem * _arg0;
653 PyObject * _argo0 = 0;
654 char *_kwnames[] = { "self", NULL };
655
656 self = self;
657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetBorder",_kwnames,&_argo0))
658 return NULL;
659 if (_argo0) {
660 if (_argo0 == Py_None) { _arg0 = NULL; }
661 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
662 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetBorder. Expected _wxSizerItem_p.");
663 return NULL;
664 }
665 }
666{
667 wxPy_BEGIN_ALLOW_THREADS;
668 _result = (int )wxSizerItem_GetBorder(_arg0);
669
670 wxPy_END_ALLOW_THREADS;
493f1553 671 if (PyErr_Occurred()) return NULL;
2f90df85
RD
672} _resultobj = Py_BuildValue("i",_result);
673 return _resultobj;
674}
675
9b3d3bc4
RD
676#define wxSizerItem_SetInitSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetInitSize(_swigarg0,_swigarg1))
677static PyObject *_wrap_wxSizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) {
678 PyObject * _resultobj;
679 wxSizerItem * _arg0;
680 int _arg1;
681 int _arg2;
682 PyObject * _argo0 = 0;
683 char *_kwnames[] = { "self","x","y", NULL };
684
685 self = self;
686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSizerItem_SetInitSize",_kwnames,&_argo0,&_arg1,&_arg2))
687 return NULL;
688 if (_argo0) {
689 if (_argo0 == Py_None) { _arg0 = NULL; }
690 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetInitSize. Expected _wxSizerItem_p.");
692 return NULL;
693 }
694 }
695{
696 wxPy_BEGIN_ALLOW_THREADS;
697 wxSizerItem_SetInitSize(_arg0,_arg1,_arg2);
698
699 wxPy_END_ALLOW_THREADS;
493f1553 700 if (PyErr_Occurred()) return NULL;
9b3d3bc4
RD
701} Py_INCREF(Py_None);
702 _resultobj = Py_None;
703 return _resultobj;
704}
705
706#define wxSizerItem_SetOption(_swigobj,_swigarg0) (_swigobj->SetOption(_swigarg0))
707static PyObject *_wrap_wxSizerItem_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
708 PyObject * _resultobj;
709 wxSizerItem * _arg0;
710 int _arg1;
711 PyObject * _argo0 = 0;
712 char *_kwnames[] = { "self","option", NULL };
713
714 self = self;
715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSizerItem_SetOption",_kwnames,&_argo0,&_arg1))
716 return NULL;
717 if (_argo0) {
718 if (_argo0 == Py_None) { _arg0 = NULL; }
719 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
720 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetOption. Expected _wxSizerItem_p.");
721 return NULL;
722 }
723 }
724{
725 wxPy_BEGIN_ALLOW_THREADS;
726 wxSizerItem_SetOption(_arg0,_arg1);
727
728 wxPy_END_ALLOW_THREADS;
493f1553 729 if (PyErr_Occurred()) return NULL;
9b3d3bc4
RD
730} Py_INCREF(Py_None);
731 _resultobj = Py_None;
732 return _resultobj;
733}
734
735#define wxSizerItem_SetFlag(_swigobj,_swigarg0) (_swigobj->SetFlag(_swigarg0))
736static PyObject *_wrap_wxSizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
737 PyObject * _resultobj;
738 wxSizerItem * _arg0;
739 int _arg1;
740 PyObject * _argo0 = 0;
741 char *_kwnames[] = { "self","flag", NULL };
742
743 self = self;
744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSizerItem_SetFlag",_kwnames,&_argo0,&_arg1))
745 return NULL;
746 if (_argo0) {
747 if (_argo0 == Py_None) { _arg0 = NULL; }
748 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
749 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetFlag. Expected _wxSizerItem_p.");
750 return NULL;
751 }
752 }
753{
754 wxPy_BEGIN_ALLOW_THREADS;
755 wxSizerItem_SetFlag(_arg0,_arg1);
756
757 wxPy_END_ALLOW_THREADS;
493f1553 758 if (PyErr_Occurred()) return NULL;
9b3d3bc4
RD
759} Py_INCREF(Py_None);
760 _resultobj = Py_None;
761 return _resultobj;
762}
763
764#define wxSizerItem_SetBorder(_swigobj,_swigarg0) (_swigobj->SetBorder(_swigarg0))
765static PyObject *_wrap_wxSizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
766 PyObject * _resultobj;
767 wxSizerItem * _arg0;
768 int _arg1;
769 PyObject * _argo0 = 0;
770 char *_kwnames[] = { "self","border", NULL };
771
772 self = self;
773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSizerItem_SetBorder",_kwnames,&_argo0,&_arg1))
774 return NULL;
775 if (_argo0) {
776 if (_argo0 == Py_None) { _arg0 = NULL; }
777 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
778 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetBorder. Expected _wxSizerItem_p.");
779 return NULL;
780 }
781 }
782{
783 wxPy_BEGIN_ALLOW_THREADS;
784 wxSizerItem_SetBorder(_arg0,_arg1);
785
786 wxPy_END_ALLOW_THREADS;
493f1553 787 if (PyErr_Occurred()) return NULL;
9b3d3bc4
RD
788} Py_INCREF(Py_None);
789 _resultobj = Py_None;
790 return _resultobj;
791}
792
2f90df85
RD
793static PyObject * wxSizerItem_GetUserData(wxSizerItem *self) {
794 wxPyUserData* data = (wxPyUserData*)self->GetUserData();
795 if (data) {
796 Py_INCREF(data->m_obj);
797 return data->m_obj;
798 } else {
799 Py_INCREF(Py_None);
800 return Py_None;
801 }
802 }
803static PyObject *_wrap_wxSizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) {
804 PyObject * _resultobj;
805 PyObject * _result;
806 wxSizerItem * _arg0;
807 PyObject * _argo0 = 0;
808 char *_kwnames[] = { "self", NULL };
809
810 self = self;
811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetUserData",_kwnames,&_argo0))
812 return NULL;
813 if (_argo0) {
814 if (_argo0 == Py_None) { _arg0 = NULL; }
815 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
816 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetUserData. Expected _wxSizerItem_p.");
817 return NULL;
818 }
819 }
820{
821 wxPy_BEGIN_ALLOW_THREADS;
822 _result = (PyObject *)wxSizerItem_GetUserData(_arg0);
823
824 wxPy_END_ALLOW_THREADS;
493f1553 825 if (PyErr_Occurred()) return NULL;
2f90df85
RD
826}{
827 _resultobj = _result;
828}
829 return _resultobj;
830}
831
9416aa89
RD
832static void *SwigwxSizerTowxObject(void *ptr) {
833 wxSizer *src;
834 wxObject *dest;
835 src = (wxSizer *) ptr;
836 dest = (wxObject *) src;
837 return (void *) dest;
838}
839
2f90df85
RD
840static void wxSizer_Destroy(wxSizer *self) { delete self; }
841static PyObject *_wrap_wxSizer_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
842 PyObject * _resultobj;
843 wxSizer * _arg0;
844 PyObject * _argo0 = 0;
845 char *_kwnames[] = { "self", NULL };
846
847 self = self;
848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizer_Destroy",_kwnames,&_argo0))
849 return NULL;
850 if (_argo0) {
851 if (_argo0 == Py_None) { _arg0 = NULL; }
852 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
853 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_Destroy. Expected _wxSizer_p.");
854 return NULL;
855 }
856 }
857{
858 wxPy_BEGIN_ALLOW_THREADS;
859 wxSizer_Destroy(_arg0);
860
861 wxPy_END_ALLOW_THREADS;
493f1553 862 if (PyErr_Occurred()) return NULL;
2f90df85
RD
863} Py_INCREF(Py_None);
864 _resultobj = Py_None;
865 return _resultobj;
866}
867
868static void wxSizer_AddWindow(wxSizer *self,wxWindow * window,int option,int flag,int border,PyObject * userData) {
869 wxPyUserData* data = NULL;
870 if (userData) data = new wxPyUserData(userData);
871 self->Add(window, option, flag, border, data);
872 }
873static PyObject *_wrap_wxSizer_AddWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
874 PyObject * _resultobj;
875 wxSizer * _arg0;
876 wxWindow * _arg1;
877 int _arg2 = (int ) 0;
878 int _arg3 = (int ) 0;
879 int _arg4 = (int ) 0;
880 PyObject * _arg5 = (PyObject *) NULL;
881 PyObject * _argo0 = 0;
882 PyObject * _argo1 = 0;
883 PyObject * _obj5 = 0;
884 char *_kwnames[] = { "self","window","option","flag","border","userData", NULL };
885
886 self = self;
887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiiO:wxSizer_AddWindow",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_obj5))
888 return NULL;
889 if (_argo0) {
890 if (_argo0 == Py_None) { _arg0 = NULL; }
891 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
892 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_AddWindow. Expected _wxSizer_p.");
893 return NULL;
894 }
895 }
896 if (_argo1) {
897 if (_argo1 == Py_None) { _arg1 = NULL; }
898 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
899 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSizer_AddWindow. Expected _wxWindow_p.");
900 return NULL;
901 }
902 }
903 if (_obj5)
904{
905 _arg5 = _obj5;
906}
907{
908 wxPy_BEGIN_ALLOW_THREADS;
909 wxSizer_AddWindow(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
910
911 wxPy_END_ALLOW_THREADS;
493f1553 912 if (PyErr_Occurred()) return NULL;
2f90df85
RD
913} Py_INCREF(Py_None);
914 _resultobj = Py_None;
915 return _resultobj;
916}
917
918static void wxSizer_AddSizer(wxSizer *self,wxSizer * sizer,int option,int flag,int border,PyObject * userData) {
919 wxPyUserData* data = NULL;
920 if (userData) data = new wxPyUserData(userData);
921 self->Add(sizer, option, flag, border, data);
922 }
923static PyObject *_wrap_wxSizer_AddSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
924 PyObject * _resultobj;
925 wxSizer * _arg0;
926 wxSizer * _arg1;
927 int _arg2 = (int ) 0;
928 int _arg3 = (int ) 0;
929 int _arg4 = (int ) 0;
930 PyObject * _arg5 = (PyObject *) NULL;
931 PyObject * _argo0 = 0;
932 PyObject * _argo1 = 0;
933 PyObject * _obj5 = 0;
934 char *_kwnames[] = { "self","sizer","option","flag","border","userData", NULL };
935
936 self = self;
937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiiO:wxSizer_AddSizer",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_obj5))
938 return NULL;
939 if (_argo0) {
940 if (_argo0 == Py_None) { _arg0 = NULL; }
941 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
942 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_AddSizer. Expected _wxSizer_p.");
943 return NULL;
944 }
945 }
946 if (_argo1) {
947 if (_argo1 == Py_None) { _arg1 = NULL; }
948 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) {
949 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSizer_AddSizer. Expected _wxSizer_p.");
950 return NULL;
951 }
952 }
953 if (_obj5)
954{
955 _arg5 = _obj5;
956}
957{
958 wxPy_BEGIN_ALLOW_THREADS;
959 wxSizer_AddSizer(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
960
961 wxPy_END_ALLOW_THREADS;
493f1553 962 if (PyErr_Occurred()) return NULL;
2f90df85
RD
963} Py_INCREF(Py_None);
964 _resultobj = Py_None;
965 return _resultobj;
966}
967
968static void wxSizer_AddSpacer(wxSizer *self,int width,int height,int option,int flag,int border,PyObject * userData) {
969 wxPyUserData* data = NULL;
970 if (userData) data = new wxPyUserData(userData);
971 self->Add(width, height, option, flag, border, data);
972 }
973static PyObject *_wrap_wxSizer_AddSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
974 PyObject * _resultobj;
975 wxSizer * _arg0;
976 int _arg1;
977 int _arg2;
978 int _arg3 = (int ) 0;
979 int _arg4 = (int ) 0;
980 int _arg5 = (int ) 0;
981 PyObject * _arg6 = (PyObject *) NULL;
982 PyObject * _argo0 = 0;
983 PyObject * _obj6 = 0;
984 char *_kwnames[] = { "self","width","height","option","flag","border","userData", NULL };
985
986 self = self;
987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|iiiO:wxSizer_AddSpacer",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6))
988 return NULL;
989 if (_argo0) {
990 if (_argo0 == Py_None) { _arg0 = NULL; }
991 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
992 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_AddSpacer. Expected _wxSizer_p.");
993 return NULL;
994 }
995 }
996 if (_obj6)
997{
998 _arg6 = _obj6;
999}
1000{
1001 wxPy_BEGIN_ALLOW_THREADS;
1002 wxSizer_AddSpacer(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
1003
1004 wxPy_END_ALLOW_THREADS;
493f1553 1005 if (PyErr_Occurred()) return NULL;
2f90df85
RD
1006} Py_INCREF(Py_None);
1007 _resultobj = Py_None;
1008 return _resultobj;
1009}
1010
f6bcfd97
BP
1011static void wxSizer_InsertWindow(wxSizer *self,int before,wxWindow * window,int option,int flag,int border,PyObject * userData) {
1012 wxPyUserData* data = NULL;
1013 if (userData) data = new wxPyUserData(userData);
1014 self->Insert(before, window, option, flag, border, data);
1015 }
1016static PyObject *_wrap_wxSizer_InsertWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1017 PyObject * _resultobj;
1018 wxSizer * _arg0;
1019 int _arg1;
1020 wxWindow * _arg2;
1021 int _arg3 = (int ) 0;
1022 int _arg4 = (int ) 0;
1023 int _arg5 = (int ) 0;
1024 PyObject * _arg6 = (PyObject *) NULL;
1025 PyObject * _argo0 = 0;
1026 PyObject * _argo2 = 0;
1027 PyObject * _obj6 = 0;
1028 char *_kwnames[] = { "self","before","window","option","flag","border","userData", NULL };
1029
1030 self = self;
1031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|iiiO:wxSizer_InsertWindow",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&_obj6))
1032 return NULL;
1033 if (_argo0) {
1034 if (_argo0 == Py_None) { _arg0 = NULL; }
1035 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1036 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_InsertWindow. Expected _wxSizer_p.");
1037 return NULL;
1038 }
1039 }
1040 if (_argo2) {
1041 if (_argo2 == Py_None) { _arg2 = NULL; }
1042 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
1043 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxSizer_InsertWindow. Expected _wxWindow_p.");
1044 return NULL;
1045 }
1046 }
1047 if (_obj6)
1048{
1049 _arg6 = _obj6;
1050}
1051{
1052 wxPy_BEGIN_ALLOW_THREADS;
1053 wxSizer_InsertWindow(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
1054
1055 wxPy_END_ALLOW_THREADS;
493f1553 1056 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1057} Py_INCREF(Py_None);
1058 _resultobj = Py_None;
1059 return _resultobj;
1060}
1061
1062static void wxSizer_InsertSizer(wxSizer *self,int before,wxSizer * sizer,int option,int flag,int border,PyObject * userData) {
1063 wxPyUserData* data = NULL;
1064 if (userData) data = new wxPyUserData(userData);
1065 self->Insert(before, sizer, option, flag, border, data);
1066 }
1067static PyObject *_wrap_wxSizer_InsertSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
1068 PyObject * _resultobj;
1069 wxSizer * _arg0;
1070 int _arg1;
1071 wxSizer * _arg2;
1072 int _arg3 = (int ) 0;
1073 int _arg4 = (int ) 0;
1074 int _arg5 = (int ) 0;
1075 PyObject * _arg6 = (PyObject *) NULL;
1076 PyObject * _argo0 = 0;
1077 PyObject * _argo2 = 0;
1078 PyObject * _obj6 = 0;
1079 char *_kwnames[] = { "self","before","sizer","option","flag","border","userData", NULL };
1080
1081 self = self;
1082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|iiiO:wxSizer_InsertSizer",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&_obj6))
1083 return NULL;
1084 if (_argo0) {
1085 if (_argo0 == Py_None) { _arg0 = NULL; }
1086 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1087 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_InsertSizer. Expected _wxSizer_p.");
1088 return NULL;
1089 }
1090 }
1091 if (_argo2) {
1092 if (_argo2 == Py_None) { _arg2 = NULL; }
1093 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxSizer_p")) {
1094 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxSizer_InsertSizer. Expected _wxSizer_p.");
1095 return NULL;
1096 }
1097 }
1098 if (_obj6)
1099{
1100 _arg6 = _obj6;
1101}
1102{
1103 wxPy_BEGIN_ALLOW_THREADS;
1104 wxSizer_InsertSizer(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
1105
1106 wxPy_END_ALLOW_THREADS;
493f1553 1107 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1108} Py_INCREF(Py_None);
1109 _resultobj = Py_None;
1110 return _resultobj;
1111}
1112
1113static void wxSizer_InsertSpacer(wxSizer *self,int before,int width,int height,int option,int flag,int border,PyObject * userData) {
1114 wxPyUserData* data = NULL;
1115 if (userData) data = new wxPyUserData(userData);
1116 self->Insert(before, width, height, option, flag, border, data);
1117 }
1118static PyObject *_wrap_wxSizer_InsertSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
1119 PyObject * _resultobj;
1120 wxSizer * _arg0;
1121 int _arg1;
1122 int _arg2;
1123 int _arg3;
1124 int _arg4 = (int ) 0;
1125 int _arg5 = (int ) 0;
1126 int _arg6 = (int ) 0;
1127 PyObject * _arg7 = (PyObject *) NULL;
1128 PyObject * _argo0 = 0;
1129 PyObject * _obj7 = 0;
1130 char *_kwnames[] = { "self","before","width","height","option","flag","border","userData", NULL };
1131
1132 self = self;
1133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii|iiiO:wxSizer_InsertSpacer",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_obj7))
1134 return NULL;
1135 if (_argo0) {
1136 if (_argo0 == Py_None) { _arg0 = NULL; }
1137 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1138 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_InsertSpacer. Expected _wxSizer_p.");
1139 return NULL;
1140 }
1141 }
1142 if (_obj7)
1143{
1144 _arg7 = _obj7;
1145}
1146{
1147 wxPy_BEGIN_ALLOW_THREADS;
1148 wxSizer_InsertSpacer(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
1149
1150 wxPy_END_ALLOW_THREADS;
493f1553 1151 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1152} Py_INCREF(Py_None);
1153 _resultobj = Py_None;
1154 return _resultobj;
1155}
1156
2f90df85
RD
1157static void wxSizer_PrependWindow(wxSizer *self,wxWindow * window,int option,int flag,int border,PyObject * userData) {
1158 wxPyUserData* data = NULL;
1159 if (userData) data = new wxPyUserData(userData);
1160 self->Prepend(window, option, flag, border, data);
1161 }
1162static PyObject *_wrap_wxSizer_PrependWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1163 PyObject * _resultobj;
1164 wxSizer * _arg0;
1165 wxWindow * _arg1;
1166 int _arg2 = (int ) 0;
1167 int _arg3 = (int ) 0;
1168 int _arg4 = (int ) 0;
1169 PyObject * _arg5 = (PyObject *) NULL;
1170 PyObject * _argo0 = 0;
1171 PyObject * _argo1 = 0;
1172 PyObject * _obj5 = 0;
1173 char *_kwnames[] = { "self","window","option","flag","border","userData", NULL };
1174
1175 self = self;
1176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiiO:wxSizer_PrependWindow",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_obj5))
1177 return NULL;
1178 if (_argo0) {
1179 if (_argo0 == Py_None) { _arg0 = NULL; }
1180 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1181 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_PrependWindow. Expected _wxSizer_p.");
1182 return NULL;
1183 }
1184 }
1185 if (_argo1) {
1186 if (_argo1 == Py_None) { _arg1 = NULL; }
1187 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1188 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSizer_PrependWindow. Expected _wxWindow_p.");
1189 return NULL;
1190 }
1191 }
1192 if (_obj5)
1193{
1194 _arg5 = _obj5;
1195}
1196{
1197 wxPy_BEGIN_ALLOW_THREADS;
1198 wxSizer_PrependWindow(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
1199
1200 wxPy_END_ALLOW_THREADS;
493f1553 1201 if (PyErr_Occurred()) return NULL;
2f90df85
RD
1202} Py_INCREF(Py_None);
1203 _resultobj = Py_None;
1204 return _resultobj;
1205}
1206
1207static void wxSizer_PrependSizer(wxSizer *self,wxSizer * sizer,int option,int flag,int border,PyObject * userData) {
1208 wxPyUserData* data = NULL;
1209 if (userData) data = new wxPyUserData(userData);
1210 self->Prepend(sizer, option, flag, border, data);
1211 }
1212static PyObject *_wrap_wxSizer_PrependSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
1213 PyObject * _resultobj;
1214 wxSizer * _arg0;
1215 wxSizer * _arg1;
1216 int _arg2 = (int ) 0;
1217 int _arg3 = (int ) 0;
1218 int _arg4 = (int ) 0;
1219 PyObject * _arg5 = (PyObject *) NULL;
1220 PyObject * _argo0 = 0;
1221 PyObject * _argo1 = 0;
1222 PyObject * _obj5 = 0;
1223 char *_kwnames[] = { "self","sizer","option","flag","border","userData", NULL };
1224
1225 self = self;
1226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiiO:wxSizer_PrependSizer",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_obj5))
1227 return NULL;
1228 if (_argo0) {
1229 if (_argo0 == Py_None) { _arg0 = NULL; }
1230 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1231 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_PrependSizer. Expected _wxSizer_p.");
1232 return NULL;
1233 }
1234 }
1235 if (_argo1) {
1236 if (_argo1 == Py_None) { _arg1 = NULL; }
1237 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) {
1238 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSizer_PrependSizer. Expected _wxSizer_p.");
1239 return NULL;
1240 }
1241 }
1242 if (_obj5)
1243{
1244 _arg5 = _obj5;
1245}
1246{
1247 wxPy_BEGIN_ALLOW_THREADS;
1248 wxSizer_PrependSizer(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
1249
1250 wxPy_END_ALLOW_THREADS;
493f1553 1251 if (PyErr_Occurred()) return NULL;
2f90df85
RD
1252} Py_INCREF(Py_None);
1253 _resultobj = Py_None;
1254 return _resultobj;
1255}
1256
1257static void wxSizer_PrependSpacer(wxSizer *self,int width,int height,int option,int flag,int border,PyObject * userData) {
1258 wxPyUserData* data = NULL;
1259 if (userData) data = new wxPyUserData(userData);
1260 self->Prepend(width, height, option, flag, border, data);
1261 }
1262static PyObject *_wrap_wxSizer_PrependSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
1263 PyObject * _resultobj;
1264 wxSizer * _arg0;
1265 int _arg1;
1266 int _arg2;
1267 int _arg3 = (int ) 0;
1268 int _arg4 = (int ) 0;
1269 int _arg5 = (int ) 0;
1270 PyObject * _arg6 = (PyObject *) NULL;
1271 PyObject * _argo0 = 0;
1272 PyObject * _obj6 = 0;
1273 char *_kwnames[] = { "self","width","height","option","flag","border","userData", NULL };
1274
1275 self = self;
1276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|iiiO:wxSizer_PrependSpacer",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6))
1277 return NULL;
1278 if (_argo0) {
1279 if (_argo0 == Py_None) { _arg0 = NULL; }
1280 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1281 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_PrependSpacer. Expected _wxSizer_p.");
1282 return NULL;
1283 }
1284 }
1285 if (_obj6)
1286{
1287 _arg6 = _obj6;
1288}
1289{
1290 wxPy_BEGIN_ALLOW_THREADS;
1291 wxSizer_PrependSpacer(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
1292
1293 wxPy_END_ALLOW_THREADS;
493f1553 1294 if (PyErr_Occurred()) return NULL;
2f90df85
RD
1295} Py_INCREF(Py_None);
1296 _resultobj = Py_None;
1297 return _resultobj;
1298}
1299
1300#define wxSizer_RemoveWindow(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
1301static PyObject *_wrap_wxSizer_RemoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1302 PyObject * _resultobj;
1303 bool _result;
1304 wxSizer * _arg0;
1305 wxWindow * _arg1;
1306 PyObject * _argo0 = 0;
1307 PyObject * _argo1 = 0;
1308 char *_kwnames[] = { "self","window", NULL };
1309
1310 self = self;
1311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSizer_RemoveWindow",_kwnames,&_argo0,&_argo1))
1312 return NULL;
1313 if (_argo0) {
1314 if (_argo0 == Py_None) { _arg0 = NULL; }
1315 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1316 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_RemoveWindow. Expected _wxSizer_p.");
1317 return NULL;
1318 }
1319 }
1320 if (_argo1) {
1321 if (_argo1 == Py_None) { _arg1 = NULL; }
1322 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1323 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSizer_RemoveWindow. Expected _wxWindow_p.");
1324 return NULL;
1325 }
1326 }
1327{
1328 wxPy_BEGIN_ALLOW_THREADS;
1329 _result = (bool )wxSizer_RemoveWindow(_arg0,_arg1);
1330
1331 wxPy_END_ALLOW_THREADS;
493f1553 1332 if (PyErr_Occurred()) return NULL;
2f90df85
RD
1333} _resultobj = Py_BuildValue("i",_result);
1334 return _resultobj;
1335}
1336
1337#define wxSizer_RemoveSizer(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
1338static PyObject *_wrap_wxSizer_RemoveSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
1339 PyObject * _resultobj;
1340 bool _result;
1341 wxSizer * _arg0;
1342 wxSizer * _arg1;
1343 PyObject * _argo0 = 0;
1344 PyObject * _argo1 = 0;
1345 char *_kwnames[] = { "self","sizer", NULL };
1346
1347 self = self;
1348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSizer_RemoveSizer",_kwnames,&_argo0,&_argo1))
1349 return NULL;
1350 if (_argo0) {
1351 if (_argo0 == Py_None) { _arg0 = NULL; }
1352 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1353 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_RemoveSizer. Expected _wxSizer_p.");
1354 return NULL;
1355 }
1356 }
1357 if (_argo1) {
1358 if (_argo1 == Py_None) { _arg1 = NULL; }
1359 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) {
1360 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSizer_RemoveSizer. Expected _wxSizer_p.");
1361 return NULL;
1362 }
1363 }
1364{
1365 wxPy_BEGIN_ALLOW_THREADS;
1366 _result = (bool )wxSizer_RemoveSizer(_arg0,_arg1);
1367
1368 wxPy_END_ALLOW_THREADS;
493f1553 1369 if (PyErr_Occurred()) return NULL;
2f90df85
RD
1370} _resultobj = Py_BuildValue("i",_result);
1371 return _resultobj;
1372}
1373
1374#define wxSizer_RemovePos(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
1375static PyObject *_wrap_wxSizer_RemovePos(PyObject *self, PyObject *args, PyObject *kwargs) {
1376 PyObject * _resultobj;
1377 bool _result;
1378 wxSizer * _arg0;
1379 int _arg1;
1380 PyObject * _argo0 = 0;
1381 char *_kwnames[] = { "self","pos", NULL };
1382
1383 self = self;
1384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSizer_RemovePos",_kwnames,&_argo0,&_arg1))
1385 return NULL;
1386 if (_argo0) {
1387 if (_argo0 == Py_None) { _arg0 = NULL; }
1388 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1389 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_RemovePos. Expected _wxSizer_p.");
1390 return NULL;
1391 }
1392 }
1393{
1394 wxPy_BEGIN_ALLOW_THREADS;
1395 _result = (bool )wxSizer_RemovePos(_arg0,_arg1);
1396
1397 wxPy_END_ALLOW_THREADS;
493f1553 1398 if (PyErr_Occurred()) return NULL;
2f90df85
RD
1399} _resultobj = Py_BuildValue("i",_result);
1400 return _resultobj;
1401}
1402
1403#define wxSizer_SetDimension(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetDimension(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1404static PyObject *_wrap_wxSizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) {
1405 PyObject * _resultobj;
1406 wxSizer * _arg0;
1407 int _arg1;
1408 int _arg2;
1409 int _arg3;
1410 int _arg4;
1411 PyObject * _argo0 = 0;
1412 char *_kwnames[] = { "self","x","y","width","height", NULL };
1413
1414 self = self;
1415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxSizer_SetDimension",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
1416 return NULL;
1417 if (_argo0) {
1418 if (_argo0 == Py_None) { _arg0 = NULL; }
1419 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1420 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_SetDimension. Expected _wxSizer_p.");
1421 return NULL;
1422 }
1423 }
1424{
1425 wxPy_BEGIN_ALLOW_THREADS;
1426 wxSizer_SetDimension(_arg0,_arg1,_arg2,_arg3,_arg4);
1427
1428 wxPy_END_ALLOW_THREADS;
493f1553 1429 if (PyErr_Occurred()) return NULL;
2f90df85
RD
1430} Py_INCREF(Py_None);
1431 _resultobj = Py_None;
1432 return _resultobj;
1433}
1434
f6bcfd97
BP
1435#define wxSizer_SetMinSize(_swigobj,_swigarg0) (_swigobj->SetMinSize(_swigarg0))
1436static PyObject *_wrap_wxSizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1437 PyObject * _resultobj;
1438 wxSizer * _arg0;
1439 wxSize * _arg1;
1440 PyObject * _argo0 = 0;
1441 wxSize temp;
1442 PyObject * _obj1 = 0;
1443 char *_kwnames[] = { "self","size", NULL };
1444
1445 self = self;
1446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSizer_SetMinSize",_kwnames,&_argo0,&_obj1))
1447 return NULL;
1448 if (_argo0) {
1449 if (_argo0 == Py_None) { _arg0 = NULL; }
1450 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1451 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_SetMinSize. Expected _wxSizer_p.");
1452 return NULL;
1453 }
1454 }
1455{
1456 _arg1 = &temp;
1457 if (! wxSize_helper(_obj1, &_arg1))
1458 return NULL;
1459}
1460{
1461 wxPy_BEGIN_ALLOW_THREADS;
1462 wxSizer_SetMinSize(_arg0,*_arg1);
1463
1464 wxPy_END_ALLOW_THREADS;
493f1553 1465 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1466} Py_INCREF(Py_None);
1467 _resultobj = Py_None;
1468 return _resultobj;
1469}
1470
1471#define wxSizer_SetItemMinSizeWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemMinSize(_swigarg0,_swigarg1,_swigarg2))
1472static PyObject *_wrap_wxSizer_SetItemMinSizeWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1473 PyObject * _resultobj;
1474 wxSizer * _arg0;
1475 wxWindow * _arg1;
1476 int _arg2;
1477 int _arg3;
1478 PyObject * _argo0 = 0;
1479 PyObject * _argo1 = 0;
1480 char *_kwnames[] = { "self","window","width","height", NULL };
1481
1482 self = self;
1483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxSizer_SetItemMinSizeWindow",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
1484 return NULL;
1485 if (_argo0) {
1486 if (_argo0 == Py_None) { _arg0 = NULL; }
1487 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1488 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_SetItemMinSizeWindow. Expected _wxSizer_p.");
1489 return NULL;
1490 }
1491 }
1492 if (_argo1) {
1493 if (_argo1 == Py_None) { _arg1 = NULL; }
1494 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1495 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSizer_SetItemMinSizeWindow. Expected _wxWindow_p.");
1496 return NULL;
1497 }
1498 }
1499{
1500 wxPy_BEGIN_ALLOW_THREADS;
1501 wxSizer_SetItemMinSizeWindow(_arg0,_arg1,_arg2,_arg3);
1502
1503 wxPy_END_ALLOW_THREADS;
493f1553 1504 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1505} Py_INCREF(Py_None);
1506 _resultobj = Py_None;
1507 return _resultobj;
1508}
1509
1510#define wxSizer_SetItemMinSizeSizer(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemMinSize(_swigarg0,_swigarg1,_swigarg2))
1511static PyObject *_wrap_wxSizer_SetItemMinSizeSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
1512 PyObject * _resultobj;
1513 wxSizer * _arg0;
1514 wxSizer * _arg1;
1515 int _arg2;
1516 int _arg3;
1517 PyObject * _argo0 = 0;
1518 PyObject * _argo1 = 0;
1519 char *_kwnames[] = { "self","sizer","width","height", NULL };
1520
1521 self = self;
1522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxSizer_SetItemMinSizeSizer",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
1523 return NULL;
1524 if (_argo0) {
1525 if (_argo0 == Py_None) { _arg0 = NULL; }
1526 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1527 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_SetItemMinSizeSizer. Expected _wxSizer_p.");
1528 return NULL;
1529 }
1530 }
1531 if (_argo1) {
1532 if (_argo1 == Py_None) { _arg1 = NULL; }
1533 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) {
1534 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSizer_SetItemMinSizeSizer. Expected _wxSizer_p.");
1535 return NULL;
1536 }
1537 }
1538{
1539 wxPy_BEGIN_ALLOW_THREADS;
1540 wxSizer_SetItemMinSizeSizer(_arg0,_arg1,_arg2,_arg3);
1541
1542 wxPy_END_ALLOW_THREADS;
493f1553 1543 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1544} Py_INCREF(Py_None);
1545 _resultobj = Py_None;
1546 return _resultobj;
1547}
1548
1549#define wxSizer_SetItemMinSizePos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemMinSize(_swigarg0,_swigarg1,_swigarg2))
1550static PyObject *_wrap_wxSizer_SetItemMinSizePos(PyObject *self, PyObject *args, PyObject *kwargs) {
1551 PyObject * _resultobj;
1552 wxSizer * _arg0;
1553 int _arg1;
1554 int _arg2;
1555 int _arg3;
1556 PyObject * _argo0 = 0;
1557 char *_kwnames[] = { "self","pos","width","height", NULL };
1558
1559 self = self;
1560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxSizer_SetItemMinSizePos",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1561 return NULL;
1562 if (_argo0) {
1563 if (_argo0 == Py_None) { _arg0 = NULL; }
1564 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1565 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_SetItemMinSizePos. Expected _wxSizer_p.");
1566 return NULL;
1567 }
1568 }
1569{
1570 wxPy_BEGIN_ALLOW_THREADS;
1571 wxSizer_SetItemMinSizePos(_arg0,_arg1,_arg2,_arg3);
1572
1573 wxPy_END_ALLOW_THREADS;
493f1553 1574 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1575} Py_INCREF(Py_None);
1576 _resultobj = Py_None;
1577 return _resultobj;
1578}
1579
1580#define wxSizer_GetSize(_swigobj) (_swigobj->GetSize())
2f90df85
RD
1581static PyObject *_wrap_wxSizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1582 PyObject * _resultobj;
1583 wxSize * _result;
1584 wxSizer * _arg0;
1585 PyObject * _argo0 = 0;
1586 char *_kwnames[] = { "self", NULL };
1587 char _ptemp[128];
1588
1589 self = self;
1590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizer_GetSize",_kwnames,&_argo0))
1591 return NULL;
1592 if (_argo0) {
1593 if (_argo0 == Py_None) { _arg0 = NULL; }
1594 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1595 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_GetSize. Expected _wxSizer_p.");
1596 return NULL;
1597 }
1598 }
1599{
1600 wxPy_BEGIN_ALLOW_THREADS;
1601 _result = new wxSize (wxSizer_GetSize(_arg0));
1602
1603 wxPy_END_ALLOW_THREADS;
493f1553 1604 if (PyErr_Occurred()) return NULL;
2f90df85
RD
1605} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
1606 _resultobj = Py_BuildValue("s",_ptemp);
1607 return _resultobj;
1608}
1609
1610#define wxSizer_GetPosition(_swigobj) (_swigobj->GetPosition())
1611static PyObject *_wrap_wxSizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
1612 PyObject * _resultobj;
1613 wxPoint * _result;
1614 wxSizer * _arg0;
1615 PyObject * _argo0 = 0;
1616 char *_kwnames[] = { "self", NULL };
1617 char _ptemp[128];
1618
1619 self = self;
1620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizer_GetPosition",_kwnames,&_argo0))
1621 return NULL;
1622 if (_argo0) {
1623 if (_argo0 == Py_None) { _arg0 = NULL; }
1624 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1625 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_GetPosition. Expected _wxSizer_p.");
1626 return NULL;
1627 }
1628 }
1629{
1630 wxPy_BEGIN_ALLOW_THREADS;
1631 _result = new wxPoint (wxSizer_GetPosition(_arg0));
1632
1633 wxPy_END_ALLOW_THREADS;
493f1553 1634 if (PyErr_Occurred()) return NULL;
2f90df85
RD
1635} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
1636 _resultobj = Py_BuildValue("s",_ptemp);
1637 return _resultobj;
1638}
1639
1640#define wxSizer_GetMinSize(_swigobj) (_swigobj->GetMinSize())
1641static PyObject *_wrap_wxSizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1642 PyObject * _resultobj;
1643 wxSize * _result;
1644 wxSizer * _arg0;
1645 PyObject * _argo0 = 0;
1646 char *_kwnames[] = { "self", NULL };
1647 char _ptemp[128];
1648
1649 self = self;
1650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizer_GetMinSize",_kwnames,&_argo0))
1651 return NULL;
1652 if (_argo0) {
1653 if (_argo0 == Py_None) { _arg0 = NULL; }
1654 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1655 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_GetMinSize. Expected _wxSizer_p.");
1656 return NULL;
1657 }
1658 }
1659{
1660 wxPy_BEGIN_ALLOW_THREADS;
1661 _result = new wxSize (wxSizer_GetMinSize(_arg0));
1662
1663 wxPy_END_ALLOW_THREADS;
493f1553 1664 if (PyErr_Occurred()) return NULL;
2f90df85
RD
1665} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
1666 _resultobj = Py_BuildValue("s",_ptemp);
1667 return _resultobj;
1668}
1669
1670#define wxSizer_Layout(_swigobj) (_swigobj->Layout())
1671static PyObject *_wrap_wxSizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
1672 PyObject * _resultobj;
1673 wxSizer * _arg0;
1674 PyObject * _argo0 = 0;
1675 char *_kwnames[] = { "self", NULL };
1676
1677 self = self;
1678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizer_Layout",_kwnames,&_argo0))
1679 return NULL;
1680 if (_argo0) {
1681 if (_argo0 == Py_None) { _arg0 = NULL; }
1682 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1683 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_Layout. Expected _wxSizer_p.");
1684 return NULL;
1685 }
1686 }
1687{
1688 wxPy_BEGIN_ALLOW_THREADS;
1689 wxSizer_Layout(_arg0);
1690
1691 wxPy_END_ALLOW_THREADS;
493f1553 1692 if (PyErr_Occurred()) return NULL;
2f90df85
RD
1693} Py_INCREF(Py_None);
1694 _resultobj = Py_None;
1695 return _resultobj;
1696}
1697
1698#define wxSizer_Fit(_swigobj,_swigarg0) (_swigobj->Fit(_swigarg0))
1699static PyObject *_wrap_wxSizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
1700 PyObject * _resultobj;
1701 wxSizer * _arg0;
1702 wxWindow * _arg1;
1703 PyObject * _argo0 = 0;
1704 PyObject * _argo1 = 0;
1705 char *_kwnames[] = { "self","window", NULL };
1706
1707 self = self;
1708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSizer_Fit",_kwnames,&_argo0,&_argo1))
1709 return NULL;
1710 if (_argo0) {
1711 if (_argo0 == Py_None) { _arg0 = NULL; }
1712 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1713 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_Fit. Expected _wxSizer_p.");
1714 return NULL;
1715 }
1716 }
1717 if (_argo1) {
1718 if (_argo1 == Py_None) { _arg1 = NULL; }
1719 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1720 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSizer_Fit. Expected _wxWindow_p.");
1721 return NULL;
1722 }
1723 }
1724{
1725 wxPy_BEGIN_ALLOW_THREADS;
1726 wxSizer_Fit(_arg0,_arg1);
1727
1728 wxPy_END_ALLOW_THREADS;
493f1553 1729 if (PyErr_Occurred()) return NULL;
2f90df85
RD
1730} Py_INCREF(Py_None);
1731 _resultobj = Py_None;
1732 return _resultobj;
1733}
1734
1735#define wxSizer_SetSizeHints(_swigobj,_swigarg0) (_swigobj->SetSizeHints(_swigarg0))
1736static PyObject *_wrap_wxSizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
1737 PyObject * _resultobj;
1738 wxSizer * _arg0;
1739 wxWindow * _arg1;
1740 PyObject * _argo0 = 0;
1741 PyObject * _argo1 = 0;
1742 char *_kwnames[] = { "self","window", NULL };
1743
1744 self = self;
1745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSizer_SetSizeHints",_kwnames,&_argo0,&_argo1))
1746 return NULL;
1747 if (_argo0) {
1748 if (_argo0 == Py_None) { _arg0 = NULL; }
1749 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1750 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_SetSizeHints. Expected _wxSizer_p.");
1751 return NULL;
1752 }
1753 }
1754 if (_argo1) {
1755 if (_argo1 == Py_None) { _arg1 = NULL; }
1756 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1757 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSizer_SetSizeHints. Expected _wxWindow_p.");
1758 return NULL;
1759 }
1760 }
1761{
1762 wxPy_BEGIN_ALLOW_THREADS;
1763 wxSizer_SetSizeHints(_arg0,_arg1);
1764
1765 wxPy_END_ALLOW_THREADS;
493f1553 1766 if (PyErr_Occurred()) return NULL;
2f90df85
RD
1767} Py_INCREF(Py_None);
1768 _resultobj = Py_None;
1769 return _resultobj;
1770}
1771
1772static PyObject * wxSizer_GetChildren(wxSizer *self) {
1773 wxList& list = self->GetChildren();
1774 return wxPy_ConvertList(&list, "wxSizerItem");
1775 }
1776static PyObject *_wrap_wxSizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
1777 PyObject * _resultobj;
1778 PyObject * _result;
1779 wxSizer * _arg0;
1780 PyObject * _argo0 = 0;
1781 char *_kwnames[] = { "self", NULL };
1782
1783 self = self;
1784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizer_GetChildren",_kwnames,&_argo0))
1785 return NULL;
1786 if (_argo0) {
1787 if (_argo0 == Py_None) { _arg0 = NULL; }
1788 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1789 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_GetChildren. Expected _wxSizer_p.");
1790 return NULL;
1791 }
1792 }
1793{
1794 wxPy_BEGIN_ALLOW_THREADS;
1795 _result = (PyObject *)wxSizer_GetChildren(_arg0);
1796
1797 wxPy_END_ALLOW_THREADS;
493f1553 1798 if (PyErr_Occurred()) return NULL;
2f90df85
RD
1799}{
1800 _resultobj = _result;
1801}
1802 return _resultobj;
1803}
1804
1805static void *SwigwxPySizerTowxSizer(void *ptr) {
1806 wxPySizer *src;
1807 wxSizer *dest;
1808 src = (wxPySizer *) ptr;
1809 dest = (wxSizer *) src;
1810 return (void *) dest;
1811}
1812
9416aa89
RD
1813static void *SwigwxPySizerTowxObject(void *ptr) {
1814 wxPySizer *src;
1815 wxObject *dest;
1816 src = (wxPySizer *) ptr;
1817 dest = (wxObject *) src;
1818 return (void *) dest;
1819}
1820
2f90df85
RD
1821#define new_wxPySizer() (new wxPySizer())
1822static PyObject *_wrap_new_wxPySizer(PyObject *self, PyObject *args, PyObject *kwargs) {
1823 PyObject * _resultobj;
1824 wxPySizer * _result;
1825 char *_kwnames[] = { NULL };
1826 char _ptemp[128];
1827
1828 self = self;
1829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPySizer",_kwnames))
1830 return NULL;
1831{
1832 wxPy_BEGIN_ALLOW_THREADS;
1833 _result = (wxPySizer *)new_wxPySizer();
1834
1835 wxPy_END_ALLOW_THREADS;
493f1553 1836 if (PyErr_Occurred()) return NULL;
2f90df85
RD
1837} if (_result) {
1838 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPySizer_p");
1839 _resultobj = Py_BuildValue("s",_ptemp);
1840 } else {
1841 Py_INCREF(Py_None);
1842 _resultobj = Py_None;
1843 }
1844 return _resultobj;
1845}
1846
f6bcfd97 1847#define wxPySizer__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1))
2f90df85
RD
1848static PyObject *_wrap_wxPySizer__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
1849 PyObject * _resultobj;
1850 wxPySizer * _arg0;
1851 PyObject * _arg1;
f6bcfd97 1852 PyObject * _arg2;
2f90df85
RD
1853 PyObject * _argo0 = 0;
1854 PyObject * _obj1 = 0;
f6bcfd97
BP
1855 PyObject * _obj2 = 0;
1856 char *_kwnames[] = { "self","self","_class", NULL };
2f90df85
RD
1857
1858 self = self;
f6bcfd97 1859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPySizer__setSelf",_kwnames,&_argo0,&_obj1,&_obj2))
2f90df85
RD
1860 return NULL;
1861 if (_argo0) {
1862 if (_argo0 == Py_None) { _arg0 = NULL; }
1863 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPySizer_p")) {
1864 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPySizer__setSelf. Expected _wxPySizer_p.");
1865 return NULL;
1866 }
1867 }
1868{
1869 _arg1 = _obj1;
1870}
f6bcfd97
BP
1871{
1872 _arg2 = _obj2;
1873}
2f90df85
RD
1874{
1875 wxPy_BEGIN_ALLOW_THREADS;
f6bcfd97 1876 wxPySizer__setSelf(_arg0,_arg1,_arg2);
2f90df85
RD
1877
1878 wxPy_END_ALLOW_THREADS;
493f1553 1879 if (PyErr_Occurred()) return NULL;
2f90df85
RD
1880} Py_INCREF(Py_None);
1881 _resultobj = Py_None;
1882 return _resultobj;
1883}
1884
1885static void *SwigwxBoxSizerTowxSizer(void *ptr) {
1886 wxBoxSizer *src;
1887 wxSizer *dest;
1888 src = (wxBoxSizer *) ptr;
1889 dest = (wxSizer *) src;
1890 return (void *) dest;
1891}
1892
9416aa89
RD
1893static void *SwigwxBoxSizerTowxObject(void *ptr) {
1894 wxBoxSizer *src;
1895 wxObject *dest;
1896 src = (wxBoxSizer *) ptr;
1897 dest = (wxObject *) src;
1898 return (void *) dest;
1899}
1900
2f90df85
RD
1901#define new_wxBoxSizer(_swigarg0) (new wxBoxSizer(_swigarg0))
1902static PyObject *_wrap_new_wxBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
1903 PyObject * _resultobj;
1904 wxBoxSizer * _result;
1905 int _arg0 = (int ) wxHORIZONTAL;
1906 char *_kwnames[] = { "orient", NULL };
1907 char _ptemp[128];
1908
1909 self = self;
1910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxBoxSizer",_kwnames,&_arg0))
1911 return NULL;
1912{
1913 wxPy_BEGIN_ALLOW_THREADS;
1914 _result = (wxBoxSizer *)new_wxBoxSizer(_arg0);
1915
1916 wxPy_END_ALLOW_THREADS;
493f1553 1917 if (PyErr_Occurred()) return NULL;
2f90df85
RD
1918} if (_result) {
1919 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBoxSizer_p");
1920 _resultobj = Py_BuildValue("s",_ptemp);
1921 } else {
1922 Py_INCREF(Py_None);
1923 _resultobj = Py_None;
1924 }
1925 return _resultobj;
1926}
1927
1928#define wxBoxSizer_GetOrientation(_swigobj) (_swigobj->GetOrientation())
1929static PyObject *_wrap_wxBoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
1930 PyObject * _resultobj;
1931 int _result;
1932 wxBoxSizer * _arg0;
1933 PyObject * _argo0 = 0;
1934 char *_kwnames[] = { "self", NULL };
1935
1936 self = self;
1937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBoxSizer_GetOrientation",_kwnames,&_argo0))
1938 return NULL;
1939 if (_argo0) {
1940 if (_argo0 == Py_None) { _arg0 = NULL; }
1941 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBoxSizer_p")) {
1942 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBoxSizer_GetOrientation. Expected _wxBoxSizer_p.");
1943 return NULL;
1944 }
1945 }
1946{
1947 wxPy_BEGIN_ALLOW_THREADS;
1948 _result = (int )wxBoxSizer_GetOrientation(_arg0);
1949
1950 wxPy_END_ALLOW_THREADS;
493f1553 1951 if (PyErr_Occurred()) return NULL;
2f90df85
RD
1952} _resultobj = Py_BuildValue("i",_result);
1953 return _resultobj;
1954}
1955
f6bcfd97
BP
1956#define wxBoxSizer_RecalcSizes(_swigobj) (_swigobj->RecalcSizes())
1957static PyObject *_wrap_wxBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
1958 PyObject * _resultobj;
1959 wxBoxSizer * _arg0;
1960 PyObject * _argo0 = 0;
1961 char *_kwnames[] = { "self", NULL };
1962
1963 self = self;
1964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBoxSizer_RecalcSizes",_kwnames,&_argo0))
1965 return NULL;
1966 if (_argo0) {
1967 if (_argo0 == Py_None) { _arg0 = NULL; }
1968 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBoxSizer_p")) {
1969 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBoxSizer_RecalcSizes. Expected _wxBoxSizer_p.");
1970 return NULL;
1971 }
1972 }
1973{
1974 wxPy_BEGIN_ALLOW_THREADS;
1975 wxBoxSizer_RecalcSizes(_arg0);
1976
1977 wxPy_END_ALLOW_THREADS;
493f1553 1978 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1979} Py_INCREF(Py_None);
1980 _resultobj = Py_None;
1981 return _resultobj;
1982}
1983
1984#define wxBoxSizer_CalcMin(_swigobj) (_swigobj->CalcMin())
1985static PyObject *_wrap_wxBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
1986 PyObject * _resultobj;
1987 wxSize * _result;
1988 wxBoxSizer * _arg0;
1989 PyObject * _argo0 = 0;
1990 char *_kwnames[] = { "self", NULL };
1991 char _ptemp[128];
1992
1993 self = self;
1994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBoxSizer_CalcMin",_kwnames,&_argo0))
1995 return NULL;
1996 if (_argo0) {
1997 if (_argo0 == Py_None) { _arg0 = NULL; }
1998 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBoxSizer_p")) {
1999 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBoxSizer_CalcMin. Expected _wxBoxSizer_p.");
2000 return NULL;
2001 }
2002 }
2003{
2004 wxPy_BEGIN_ALLOW_THREADS;
2005 _result = new wxSize (wxBoxSizer_CalcMin(_arg0));
2006
2007 wxPy_END_ALLOW_THREADS;
493f1553 2008 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2009} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2010 _resultobj = Py_BuildValue("s",_ptemp);
2011 return _resultobj;
2012}
2013
2f90df85
RD
2014static void *SwigwxStaticBoxSizerTowxBoxSizer(void *ptr) {
2015 wxStaticBoxSizer *src;
2016 wxBoxSizer *dest;
2017 src = (wxStaticBoxSizer *) ptr;
2018 dest = (wxBoxSizer *) src;
2019 return (void *) dest;
2020}
2021
2022static void *SwigwxStaticBoxSizerTowxSizer(void *ptr) {
2023 wxStaticBoxSizer *src;
2024 wxSizer *dest;
2025 src = (wxStaticBoxSizer *) ptr;
2026 dest = (wxSizer *) src;
2027 return (void *) dest;
2028}
2029
9416aa89
RD
2030static void *SwigwxStaticBoxSizerTowxObject(void *ptr) {
2031 wxStaticBoxSizer *src;
2032 wxObject *dest;
2033 src = (wxStaticBoxSizer *) ptr;
2034 dest = (wxObject *) src;
2035 return (void *) dest;
2036}
2037
2f90df85
RD
2038#define new_wxStaticBoxSizer(_swigarg0,_swigarg1) (new wxStaticBoxSizer(_swigarg0,_swigarg1))
2039static PyObject *_wrap_new_wxStaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
2040 PyObject * _resultobj;
2041 wxStaticBoxSizer * _result;
2042 wxStaticBox * _arg0;
2043 int _arg1 = (int ) wxHORIZONTAL;
2044 PyObject * _argo0 = 0;
2045 char *_kwnames[] = { "box","orient", NULL };
2046 char _ptemp[128];
2047
2048 self = self;
2049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxStaticBoxSizer",_kwnames,&_argo0,&_arg1))
2050 return NULL;
2051 if (_argo0) {
2052 if (_argo0 == Py_None) { _arg0 = NULL; }
2053 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBox_p")) {
2054 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBoxSizer. Expected _wxStaticBox_p.");
2055 return NULL;
2056 }
2057 }
2058{
2059 wxPy_BEGIN_ALLOW_THREADS;
2060 _result = (wxStaticBoxSizer *)new_wxStaticBoxSizer(_arg0,_arg1);
2061
2062 wxPy_END_ALLOW_THREADS;
493f1553 2063 if (PyErr_Occurred()) return NULL;
2f90df85
RD
2064} if (_result) {
2065 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBoxSizer_p");
2066 _resultobj = Py_BuildValue("s",_ptemp);
2067 } else {
2068 Py_INCREF(Py_None);
2069 _resultobj = Py_None;
2070 }
2071 return _resultobj;
2072}
2073
2074#define wxStaticBoxSizer_GetStaticBox(_swigobj) (_swigobj->GetStaticBox())
2075static PyObject *_wrap_wxStaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2076 PyObject * _resultobj;
2077 wxStaticBox * _result;
2078 wxStaticBoxSizer * _arg0;
2079 PyObject * _argo0 = 0;
2080 char *_kwnames[] = { "self", NULL };
2f90df85
RD
2081
2082 self = self;
2083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBoxSizer_GetStaticBox",_kwnames,&_argo0))
2084 return NULL;
2085 if (_argo0) {
2086 if (_argo0 == Py_None) { _arg0 = NULL; }
2087 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBoxSizer_p")) {
2088 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBoxSizer_GetStaticBox. Expected _wxStaticBoxSizer_p.");
2089 return NULL;
2090 }
2091 }
2092{
2093 wxPy_BEGIN_ALLOW_THREADS;
2094 _result = (wxStaticBox *)wxStaticBoxSizer_GetStaticBox(_arg0);
2095
2096 wxPy_END_ALLOW_THREADS;
493f1553 2097 if (PyErr_Occurred()) return NULL;
9416aa89 2098}{ _resultobj = wxPyMake_wxObject(_result); }
2f90df85
RD
2099 return _resultobj;
2100}
2101
f6bcfd97
BP
2102#define wxStaticBoxSizer_RecalcSizes(_swigobj) (_swigobj->RecalcSizes())
2103static PyObject *_wrap_wxStaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
2104 PyObject * _resultobj;
2105 wxStaticBoxSizer * _arg0;
2106 PyObject * _argo0 = 0;
2107 char *_kwnames[] = { "self", NULL };
2108
2109 self = self;
2110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBoxSizer_RecalcSizes",_kwnames,&_argo0))
2111 return NULL;
2112 if (_argo0) {
2113 if (_argo0 == Py_None) { _arg0 = NULL; }
2114 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBoxSizer_p")) {
2115 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBoxSizer_RecalcSizes. Expected _wxStaticBoxSizer_p.");
2116 return NULL;
2117 }
2118 }
2119{
2120 wxPy_BEGIN_ALLOW_THREADS;
2121 wxStaticBoxSizer_RecalcSizes(_arg0);
2122
2123 wxPy_END_ALLOW_THREADS;
493f1553 2124 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2125} Py_INCREF(Py_None);
2126 _resultobj = Py_None;
2127 return _resultobj;
2128}
2129
2130#define wxStaticBoxSizer_CalcMin(_swigobj) (_swigobj->CalcMin())
2131static PyObject *_wrap_wxStaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
2132 PyObject * _resultobj;
2133 wxSize * _result;
2134 wxStaticBoxSizer * _arg0;
2135 PyObject * _argo0 = 0;
2136 char *_kwnames[] = { "self", NULL };
2137 char _ptemp[128];
2138
2139 self = self;
2140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBoxSizer_CalcMin",_kwnames,&_argo0))
2141 return NULL;
2142 if (_argo0) {
2143 if (_argo0 == Py_None) { _arg0 = NULL; }
2144 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBoxSizer_p")) {
2145 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBoxSizer_CalcMin. Expected _wxStaticBoxSizer_p.");
2146 return NULL;
2147 }
2148 }
2149{
2150 wxPy_BEGIN_ALLOW_THREADS;
2151 _result = new wxSize (wxStaticBoxSizer_CalcMin(_arg0));
2152
2153 wxPy_END_ALLOW_THREADS;
493f1553 2154 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2155} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2156 _resultobj = Py_BuildValue("s",_ptemp);
2157 return _resultobj;
2158}
2159
2160static void *SwigwxNotebookSizerTowxSizer(void *ptr) {
2161 wxNotebookSizer *src;
2162 wxSizer *dest;
2163 src = (wxNotebookSizer *) ptr;
2164 dest = (wxSizer *) src;
2165 return (void *) dest;
2166}
2167
9416aa89
RD
2168static void *SwigwxNotebookSizerTowxObject(void *ptr) {
2169 wxNotebookSizer *src;
2170 wxObject *dest;
2171 src = (wxNotebookSizer *) ptr;
2172 dest = (wxObject *) src;
2173 return (void *) dest;
2174}
2175
f6bcfd97
BP
2176#define new_wxNotebookSizer(_swigarg0) (new wxNotebookSizer(_swigarg0))
2177static PyObject *_wrap_new_wxNotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
2178 PyObject * _resultobj;
2179 wxNotebookSizer * _result;
2180 wxNotebook * _arg0;
2181 PyObject * _argo0 = 0;
2182 char *_kwnames[] = { "nb", NULL };
2183 char _ptemp[128];
2184
2185 self = self;
2186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxNotebookSizer",_kwnames,&_argo0))
2187 return NULL;
2188 if (_argo0) {
2189 if (_argo0 == Py_None) { _arg0 = NULL; }
2190 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
2191 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxNotebookSizer. Expected _wxNotebook_p.");
2192 return NULL;
2193 }
2194 }
2195{
2196 wxPy_BEGIN_ALLOW_THREADS;
2197 _result = (wxNotebookSizer *)new_wxNotebookSizer(_arg0);
2198
2199 wxPy_END_ALLOW_THREADS;
493f1553 2200 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2201} if (_result) {
2202 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNotebookSizer_p");
2203 _resultobj = Py_BuildValue("s",_ptemp);
2204 } else {
2205 Py_INCREF(Py_None);
2206 _resultobj = Py_None;
2207 }
2208 return _resultobj;
2209}
2210
2211#define wxNotebookSizer_RecalcSizes(_swigobj) (_swigobj->RecalcSizes())
2212static PyObject *_wrap_wxNotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
2213 PyObject * _resultobj;
2214 wxNotebookSizer * _arg0;
2215 PyObject * _argo0 = 0;
2216 char *_kwnames[] = { "self", NULL };
2217
2218 self = self;
2219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebookSizer_RecalcSizes",_kwnames,&_argo0))
2220 return NULL;
2221 if (_argo0) {
2222 if (_argo0 == Py_None) { _arg0 = NULL; }
2223 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookSizer_p")) {
2224 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookSizer_RecalcSizes. Expected _wxNotebookSizer_p.");
2225 return NULL;
2226 }
2227 }
2228{
2229 wxPy_BEGIN_ALLOW_THREADS;
2230 wxNotebookSizer_RecalcSizes(_arg0);
2231
2232 wxPy_END_ALLOW_THREADS;
493f1553 2233 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2234} Py_INCREF(Py_None);
2235 _resultobj = Py_None;
2236 return _resultobj;
2237}
2238
2239#define wxNotebookSizer_CalcMin(_swigobj) (_swigobj->CalcMin())
2240static PyObject *_wrap_wxNotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
2241 PyObject * _resultobj;
2242 wxSize * _result;
2243 wxNotebookSizer * _arg0;
2244 PyObject * _argo0 = 0;
2245 char *_kwnames[] = { "self", NULL };
2246 char _ptemp[128];
2247
2248 self = self;
2249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebookSizer_CalcMin",_kwnames,&_argo0))
2250 return NULL;
2251 if (_argo0) {
2252 if (_argo0 == Py_None) { _arg0 = NULL; }
2253 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookSizer_p")) {
2254 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookSizer_CalcMin. Expected _wxNotebookSizer_p.");
2255 return NULL;
2256 }
2257 }
2258{
2259 wxPy_BEGIN_ALLOW_THREADS;
2260 _result = new wxSize (wxNotebookSizer_CalcMin(_arg0));
2261
2262 wxPy_END_ALLOW_THREADS;
493f1553 2263 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2264} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2265 _resultobj = Py_BuildValue("s",_ptemp);
2266 return _resultobj;
2267}
2268
2269#define wxNotebookSizer_GetNotebook(_swigobj) (_swigobj->GetNotebook())
2270static PyObject *_wrap_wxNotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
2271 PyObject * _resultobj;
2272 wxNotebook * _result;
2273 wxNotebookSizer * _arg0;
2274 PyObject * _argo0 = 0;
2275 char *_kwnames[] = { "self", NULL };
f6bcfd97
BP
2276
2277 self = self;
2278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebookSizer_GetNotebook",_kwnames,&_argo0))
2279 return NULL;
2280 if (_argo0) {
2281 if (_argo0 == Py_None) { _arg0 = NULL; }
2282 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebookSizer_p")) {
2283 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebookSizer_GetNotebook. Expected _wxNotebookSizer_p.");
2284 return NULL;
2285 }
2286 }
2287{
2288 wxPy_BEGIN_ALLOW_THREADS;
2289 _result = (wxNotebook *)wxNotebookSizer_GetNotebook(_arg0);
2290
2291 wxPy_END_ALLOW_THREADS;
493f1553 2292 if (PyErr_Occurred()) return NULL;
9416aa89 2293}{ _resultobj = wxPyMake_wxObject(_result); }
f6bcfd97
BP
2294 return _resultobj;
2295}
2296
2297static void *SwigwxGridSizerTowxSizer(void *ptr) {
2298 wxGridSizer *src;
2299 wxSizer *dest;
2300 src = (wxGridSizer *) ptr;
2301 dest = (wxSizer *) src;
2302 return (void *) dest;
2303}
2304
9416aa89
RD
2305static void *SwigwxGridSizerTowxObject(void *ptr) {
2306 wxGridSizer *src;
2307 wxObject *dest;
2308 src = (wxGridSizer *) ptr;
2309 dest = (wxObject *) src;
2310 return (void *) dest;
2311}
2312
f6bcfd97
BP
2313#define new_wxGridSizer(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxGridSizer(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2314static PyObject *_wrap_new_wxGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
2315 PyObject * _resultobj;
2316 wxGridSizer * _result;
2317 int _arg0 = (int ) 1;
2318 int _arg1 = (int ) 0;
2319 int _arg2 = (int ) 0;
2320 int _arg3 = (int ) 0;
2321 char *_kwnames[] = { "rows","cols","vgap","hgap", NULL };
2322 char _ptemp[128];
2323
2324 self = self;
2325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiii:new_wxGridSizer",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
2326 return NULL;
2327{
2328 wxPy_BEGIN_ALLOW_THREADS;
2329 _result = (wxGridSizer *)new_wxGridSizer(_arg0,_arg1,_arg2,_arg3);
2330
2331 wxPy_END_ALLOW_THREADS;
493f1553 2332 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2333} if (_result) {
2334 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGridSizer_p");
2335 _resultobj = Py_BuildValue("s",_ptemp);
2336 } else {
2337 Py_INCREF(Py_None);
2338 _resultobj = Py_None;
2339 }
2340 return _resultobj;
2341}
2342
2343#define wxGridSizer_RecalcSizes(_swigobj) (_swigobj->RecalcSizes())
2344static PyObject *_wrap_wxGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
2345 PyObject * _resultobj;
2346 wxGridSizer * _arg0;
2347 PyObject * _argo0 = 0;
2348 char *_kwnames[] = { "self", NULL };
2349
2350 self = self;
2351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGridSizer_RecalcSizes",_kwnames,&_argo0))
2352 return NULL;
2353 if (_argo0) {
2354 if (_argo0 == Py_None) { _arg0 = NULL; }
2355 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGridSizer_p")) {
2356 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGridSizer_RecalcSizes. Expected _wxGridSizer_p.");
2357 return NULL;
2358 }
2359 }
2360{
2361 wxPy_BEGIN_ALLOW_THREADS;
2362 wxGridSizer_RecalcSizes(_arg0);
2363
2364 wxPy_END_ALLOW_THREADS;
493f1553 2365 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2366} Py_INCREF(Py_None);
2367 _resultobj = Py_None;
2368 return _resultobj;
2369}
2370
2371#define wxGridSizer_CalcMin(_swigobj) (_swigobj->CalcMin())
2372static PyObject *_wrap_wxGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
2373 PyObject * _resultobj;
2374 wxSize * _result;
2375 wxGridSizer * _arg0;
2376 PyObject * _argo0 = 0;
2377 char *_kwnames[] = { "self", NULL };
2378 char _ptemp[128];
2379
2380 self = self;
2381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGridSizer_CalcMin",_kwnames,&_argo0))
2382 return NULL;
2383 if (_argo0) {
2384 if (_argo0 == Py_None) { _arg0 = NULL; }
2385 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGridSizer_p")) {
2386 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGridSizer_CalcMin. Expected _wxGridSizer_p.");
2387 return NULL;
2388 }
2389 }
2390{
2391 wxPy_BEGIN_ALLOW_THREADS;
2392 _result = new wxSize (wxGridSizer_CalcMin(_arg0));
2393
2394 wxPy_END_ALLOW_THREADS;
493f1553 2395 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2396} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2397 _resultobj = Py_BuildValue("s",_ptemp);
2398 return _resultobj;
2399}
2400
2401#define wxGridSizer_SetCols(_swigobj,_swigarg0) (_swigobj->SetCols(_swigarg0))
2402static PyObject *_wrap_wxGridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) {
2403 PyObject * _resultobj;
2404 wxGridSizer * _arg0;
2405 int _arg1;
2406 PyObject * _argo0 = 0;
2407 char *_kwnames[] = { "self","cols", NULL };
2408
2409 self = self;
2410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGridSizer_SetCols",_kwnames,&_argo0,&_arg1))
2411 return NULL;
2412 if (_argo0) {
2413 if (_argo0 == Py_None) { _arg0 = NULL; }
2414 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGridSizer_p")) {
2415 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGridSizer_SetCols. Expected _wxGridSizer_p.");
2416 return NULL;
2417 }
2418 }
2419{
2420 wxPy_BEGIN_ALLOW_THREADS;
2421 wxGridSizer_SetCols(_arg0,_arg1);
2422
2423 wxPy_END_ALLOW_THREADS;
493f1553 2424 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2425} Py_INCREF(Py_None);
2426 _resultobj = Py_None;
2427 return _resultobj;
2428}
2429
2430#define wxGridSizer_SetRows(_swigobj,_swigarg0) (_swigobj->SetRows(_swigarg0))
2431static PyObject *_wrap_wxGridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
2432 PyObject * _resultobj;
2433 wxGridSizer * _arg0;
2434 int _arg1;
2435 PyObject * _argo0 = 0;
2436 char *_kwnames[] = { "self","rows", NULL };
2437
2438 self = self;
2439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGridSizer_SetRows",_kwnames,&_argo0,&_arg1))
2440 return NULL;
2441 if (_argo0) {
2442 if (_argo0 == Py_None) { _arg0 = NULL; }
2443 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGridSizer_p")) {
2444 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGridSizer_SetRows. Expected _wxGridSizer_p.");
2445 return NULL;
2446 }
2447 }
2448{
2449 wxPy_BEGIN_ALLOW_THREADS;
2450 wxGridSizer_SetRows(_arg0,_arg1);
2451
2452 wxPy_END_ALLOW_THREADS;
493f1553 2453 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2454} Py_INCREF(Py_None);
2455 _resultobj = Py_None;
2456 return _resultobj;
2457}
2458
2459#define wxGridSizer_SetVGap(_swigobj,_swigarg0) (_swigobj->SetVGap(_swigarg0))
2460static PyObject *_wrap_wxGridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) {
2461 PyObject * _resultobj;
2462 wxGridSizer * _arg0;
2463 int _arg1;
2464 PyObject * _argo0 = 0;
2465 char *_kwnames[] = { "self","gap", NULL };
2466
2467 self = self;
2468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGridSizer_SetVGap",_kwnames,&_argo0,&_arg1))
2469 return NULL;
2470 if (_argo0) {
2471 if (_argo0 == Py_None) { _arg0 = NULL; }
2472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGridSizer_p")) {
2473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGridSizer_SetVGap. Expected _wxGridSizer_p.");
2474 return NULL;
2475 }
2476 }
2477{
2478 wxPy_BEGIN_ALLOW_THREADS;
2479 wxGridSizer_SetVGap(_arg0,_arg1);
2480
2481 wxPy_END_ALLOW_THREADS;
493f1553 2482 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2483} Py_INCREF(Py_None);
2484 _resultobj = Py_None;
2485 return _resultobj;
2486}
2487
2488#define wxGridSizer_SetHGap(_swigobj,_swigarg0) (_swigobj->SetHGap(_swigarg0))
2489static PyObject *_wrap_wxGridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) {
2490 PyObject * _resultobj;
2491 wxGridSizer * _arg0;
2492 int _arg1;
2493 PyObject * _argo0 = 0;
2494 char *_kwnames[] = { "self","gap", NULL };
2495
2496 self = self;
2497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGridSizer_SetHGap",_kwnames,&_argo0,&_arg1))
2498 return NULL;
2499 if (_argo0) {
2500 if (_argo0 == Py_None) { _arg0 = NULL; }
2501 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGridSizer_p")) {
2502 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGridSizer_SetHGap. Expected _wxGridSizer_p.");
2503 return NULL;
2504 }
2505 }
2506{
2507 wxPy_BEGIN_ALLOW_THREADS;
2508 wxGridSizer_SetHGap(_arg0,_arg1);
2509
2510 wxPy_END_ALLOW_THREADS;
493f1553 2511 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2512} Py_INCREF(Py_None);
2513 _resultobj = Py_None;
2514 return _resultobj;
2515}
2516
2517#define wxGridSizer_GetCols(_swigobj) (_swigobj->GetCols())
2518static PyObject *_wrap_wxGridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) {
2519 PyObject * _resultobj;
2520 int _result;
2521 wxGridSizer * _arg0;
2522 PyObject * _argo0 = 0;
2523 char *_kwnames[] = { "self", NULL };
2524
2525 self = self;
2526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGridSizer_GetCols",_kwnames,&_argo0))
2527 return NULL;
2528 if (_argo0) {
2529 if (_argo0 == Py_None) { _arg0 = NULL; }
2530 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGridSizer_p")) {
2531 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGridSizer_GetCols. Expected _wxGridSizer_p.");
2532 return NULL;
2533 }
2534 }
2535{
2536 wxPy_BEGIN_ALLOW_THREADS;
2537 _result = (int )wxGridSizer_GetCols(_arg0);
2538
2539 wxPy_END_ALLOW_THREADS;
493f1553 2540 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2541} _resultobj = Py_BuildValue("i",_result);
2542 return _resultobj;
2543}
2544
2545#define wxGridSizer_GetRows(_swigobj) (_swigobj->GetRows())
2546static PyObject *_wrap_wxGridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
2547 PyObject * _resultobj;
2548 int _result;
2549 wxGridSizer * _arg0;
2550 PyObject * _argo0 = 0;
2551 char *_kwnames[] = { "self", NULL };
2552
2553 self = self;
2554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGridSizer_GetRows",_kwnames,&_argo0))
2555 return NULL;
2556 if (_argo0) {
2557 if (_argo0 == Py_None) { _arg0 = NULL; }
2558 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGridSizer_p")) {
2559 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGridSizer_GetRows. Expected _wxGridSizer_p.");
2560 return NULL;
2561 }
2562 }
2563{
2564 wxPy_BEGIN_ALLOW_THREADS;
2565 _result = (int )wxGridSizer_GetRows(_arg0);
2566
2567 wxPy_END_ALLOW_THREADS;
493f1553 2568 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2569} _resultobj = Py_BuildValue("i",_result);
2570 return _resultobj;
2571}
2572
2573#define wxGridSizer_GetVGap(_swigobj) (_swigobj->GetVGap())
2574static PyObject *_wrap_wxGridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) {
2575 PyObject * _resultobj;
2576 int _result;
2577 wxGridSizer * _arg0;
2578 PyObject * _argo0 = 0;
2579 char *_kwnames[] = { "self", NULL };
2580
2581 self = self;
2582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGridSizer_GetVGap",_kwnames,&_argo0))
2583 return NULL;
2584 if (_argo0) {
2585 if (_argo0 == Py_None) { _arg0 = NULL; }
2586 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGridSizer_p")) {
2587 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGridSizer_GetVGap. Expected _wxGridSizer_p.");
2588 return NULL;
2589 }
2590 }
2591{
2592 wxPy_BEGIN_ALLOW_THREADS;
2593 _result = (int )wxGridSizer_GetVGap(_arg0);
2594
2595 wxPy_END_ALLOW_THREADS;
493f1553 2596 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2597} _resultobj = Py_BuildValue("i",_result);
2598 return _resultobj;
2599}
2600
2601#define wxGridSizer_GetHGap(_swigobj) (_swigobj->GetHGap())
2602static PyObject *_wrap_wxGridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) {
2603 PyObject * _resultobj;
2604 int _result;
2605 wxGridSizer * _arg0;
2606 PyObject * _argo0 = 0;
2607 char *_kwnames[] = { "self", NULL };
2608
2609 self = self;
2610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGridSizer_GetHGap",_kwnames,&_argo0))
2611 return NULL;
2612 if (_argo0) {
2613 if (_argo0 == Py_None) { _arg0 = NULL; }
2614 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGridSizer_p")) {
2615 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGridSizer_GetHGap. Expected _wxGridSizer_p.");
2616 return NULL;
2617 }
2618 }
2619{
2620 wxPy_BEGIN_ALLOW_THREADS;
2621 _result = (int )wxGridSizer_GetHGap(_arg0);
2622
2623 wxPy_END_ALLOW_THREADS;
493f1553 2624 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2625} _resultobj = Py_BuildValue("i",_result);
2626 return _resultobj;
2627}
2628
2629static void *SwigwxFlexGridSizerTowxGridSizer(void *ptr) {
2630 wxFlexGridSizer *src;
2631 wxGridSizer *dest;
2632 src = (wxFlexGridSizer *) ptr;
2633 dest = (wxGridSizer *) src;
2634 return (void *) dest;
2635}
2636
2637static void *SwigwxFlexGridSizerTowxSizer(void *ptr) {
2638 wxFlexGridSizer *src;
2639 wxSizer *dest;
2640 src = (wxFlexGridSizer *) ptr;
2641 dest = (wxSizer *) src;
2642 return (void *) dest;
2643}
2644
9416aa89
RD
2645static void *SwigwxFlexGridSizerTowxObject(void *ptr) {
2646 wxFlexGridSizer *src;
2647 wxObject *dest;
2648 src = (wxFlexGridSizer *) ptr;
2649 dest = (wxObject *) src;
2650 return (void *) dest;
2651}
2652
f6bcfd97
BP
2653#define new_wxFlexGridSizer(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFlexGridSizer(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2654static PyObject *_wrap_new_wxFlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
2655 PyObject * _resultobj;
2656 wxFlexGridSizer * _result;
2657 int _arg0 = (int ) 1;
2658 int _arg1 = (int ) 0;
2659 int _arg2 = (int ) 0;
2660 int _arg3 = (int ) 0;
2661 char *_kwnames[] = { "rows","cols","vgap","hgap", NULL };
2662 char _ptemp[128];
2663
2664 self = self;
2665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiii:new_wxFlexGridSizer",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
2666 return NULL;
2667{
2668 wxPy_BEGIN_ALLOW_THREADS;
2669 _result = (wxFlexGridSizer *)new_wxFlexGridSizer(_arg0,_arg1,_arg2,_arg3);
2670
2671 wxPy_END_ALLOW_THREADS;
493f1553 2672 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2673} if (_result) {
2674 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFlexGridSizer_p");
2675 _resultobj = Py_BuildValue("s",_ptemp);
2676 } else {
2677 Py_INCREF(Py_None);
2678 _resultobj = Py_None;
2679 }
2680 return _resultobj;
2681}
2682
2683#define wxFlexGridSizer_RecalcSizes(_swigobj) (_swigobj->RecalcSizes())
2684static PyObject *_wrap_wxFlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
2685 PyObject * _resultobj;
2686 wxFlexGridSizer * _arg0;
2687 PyObject * _argo0 = 0;
2688 char *_kwnames[] = { "self", NULL };
2689
2690 self = self;
2691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFlexGridSizer_RecalcSizes",_kwnames,&_argo0))
2692 return NULL;
2693 if (_argo0) {
2694 if (_argo0 == Py_None) { _arg0 = NULL; }
2695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFlexGridSizer_p")) {
2696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFlexGridSizer_RecalcSizes. Expected _wxFlexGridSizer_p.");
2697 return NULL;
2698 }
2699 }
2700{
2701 wxPy_BEGIN_ALLOW_THREADS;
2702 wxFlexGridSizer_RecalcSizes(_arg0);
2703
2704 wxPy_END_ALLOW_THREADS;
493f1553 2705 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2706} Py_INCREF(Py_None);
2707 _resultobj = Py_None;
2708 return _resultobj;
2709}
2710
2711#define wxFlexGridSizer_CalcMin(_swigobj) (_swigobj->CalcMin())
2712static PyObject *_wrap_wxFlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
2713 PyObject * _resultobj;
2714 wxSize * _result;
2715 wxFlexGridSizer * _arg0;
2716 PyObject * _argo0 = 0;
2717 char *_kwnames[] = { "self", NULL };
2718 char _ptemp[128];
2719
2720 self = self;
2721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFlexGridSizer_CalcMin",_kwnames,&_argo0))
2722 return NULL;
2723 if (_argo0) {
2724 if (_argo0 == Py_None) { _arg0 = NULL; }
2725 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFlexGridSizer_p")) {
2726 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFlexGridSizer_CalcMin. Expected _wxFlexGridSizer_p.");
2727 return NULL;
2728 }
2729 }
2730{
2731 wxPy_BEGIN_ALLOW_THREADS;
2732 _result = new wxSize (wxFlexGridSizer_CalcMin(_arg0));
2733
2734 wxPy_END_ALLOW_THREADS;
493f1553 2735 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2736} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2737 _resultobj = Py_BuildValue("s",_ptemp);
2738 return _resultobj;
2739}
2740
2741#define wxFlexGridSizer_AddGrowableRow(_swigobj,_swigarg0) (_swigobj->AddGrowableRow(_swigarg0))
2742static PyObject *_wrap_wxFlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) {
2743 PyObject * _resultobj;
2744 wxFlexGridSizer * _arg0;
2745 size_t _arg1;
2746 PyObject * _argo0 = 0;
2747 char *_kwnames[] = { "self","idx", NULL };
2748
2749 self = self;
2750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFlexGridSizer_AddGrowableRow",_kwnames,&_argo0,&_arg1))
2751 return NULL;
2752 if (_argo0) {
2753 if (_argo0 == Py_None) { _arg0 = NULL; }
2754 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFlexGridSizer_p")) {
2755 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFlexGridSizer_AddGrowableRow. Expected _wxFlexGridSizer_p.");
2756 return NULL;
2757 }
2758 }
2759{
2760 wxPy_BEGIN_ALLOW_THREADS;
2761 wxFlexGridSizer_AddGrowableRow(_arg0,_arg1);
2762
2763 wxPy_END_ALLOW_THREADS;
493f1553 2764 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2765} Py_INCREF(Py_None);
2766 _resultobj = Py_None;
2767 return _resultobj;
2768}
2769
2770#define wxFlexGridSizer_RemoveGrowableRow(_swigobj,_swigarg0) (_swigobj->RemoveGrowableRow(_swigarg0))
2771static PyObject *_wrap_wxFlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) {
2772 PyObject * _resultobj;
2773 wxFlexGridSizer * _arg0;
2774 size_t _arg1;
2775 PyObject * _argo0 = 0;
2776 char *_kwnames[] = { "self","idx", NULL };
2777
2778 self = self;
2779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFlexGridSizer_RemoveGrowableRow",_kwnames,&_argo0,&_arg1))
2780 return NULL;
2781 if (_argo0) {
2782 if (_argo0 == Py_None) { _arg0 = NULL; }
2783 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFlexGridSizer_p")) {
2784 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFlexGridSizer_RemoveGrowableRow. Expected _wxFlexGridSizer_p.");
2785 return NULL;
2786 }
2787 }
2788{
2789 wxPy_BEGIN_ALLOW_THREADS;
2790 wxFlexGridSizer_RemoveGrowableRow(_arg0,_arg1);
2791
2792 wxPy_END_ALLOW_THREADS;
493f1553 2793 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2794} Py_INCREF(Py_None);
2795 _resultobj = Py_None;
2796 return _resultobj;
2797}
2798
2799#define wxFlexGridSizer_AddGrowableCol(_swigobj,_swigarg0) (_swigobj->AddGrowableCol(_swigarg0))
2800static PyObject *_wrap_wxFlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) {
2801 PyObject * _resultobj;
2802 wxFlexGridSizer * _arg0;
2803 size_t _arg1;
2804 PyObject * _argo0 = 0;
2805 char *_kwnames[] = { "self","idx", NULL };
2806
2807 self = self;
2808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFlexGridSizer_AddGrowableCol",_kwnames,&_argo0,&_arg1))
2809 return NULL;
2810 if (_argo0) {
2811 if (_argo0 == Py_None) { _arg0 = NULL; }
2812 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFlexGridSizer_p")) {
2813 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFlexGridSizer_AddGrowableCol. Expected _wxFlexGridSizer_p.");
2814 return NULL;
2815 }
2816 }
2817{
2818 wxPy_BEGIN_ALLOW_THREADS;
2819 wxFlexGridSizer_AddGrowableCol(_arg0,_arg1);
2820
2821 wxPy_END_ALLOW_THREADS;
493f1553 2822 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2823} Py_INCREF(Py_None);
2824 _resultobj = Py_None;
2825 return _resultobj;
2826}
2827
2828#define wxFlexGridSizer_RemoveGrowableCol(_swigobj,_swigarg0) (_swigobj->RemoveGrowableCol(_swigarg0))
2829static PyObject *_wrap_wxFlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) {
2830 PyObject * _resultobj;
2831 wxFlexGridSizer * _arg0;
2832 size_t _arg1;
2833 PyObject * _argo0 = 0;
2834 char *_kwnames[] = { "self","idx", NULL };
2835
2836 self = self;
2837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFlexGridSizer_RemoveGrowableCol",_kwnames,&_argo0,&_arg1))
2838 return NULL;
2839 if (_argo0) {
2840 if (_argo0 == Py_None) { _arg0 = NULL; }
2841 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFlexGridSizer_p")) {
2842 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFlexGridSizer_RemoveGrowableCol. Expected _wxFlexGridSizer_p.");
2843 return NULL;
2844 }
2845 }
2846{
2847 wxPy_BEGIN_ALLOW_THREADS;
2848 wxFlexGridSizer_RemoveGrowableCol(_arg0,_arg1);
2849
2850 wxPy_END_ALLOW_THREADS;
493f1553 2851 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2852} Py_INCREF(Py_None);
2853 _resultobj = Py_None;
2854 return _resultobj;
2855}
2856
2f90df85 2857static PyMethodDef sizerscMethods[] = {
f6bcfd97
BP
2858 { "wxFlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_wxFlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS },
2859 { "wxFlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_wxFlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS },
2860 { "wxFlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_wxFlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS },
2861 { "wxFlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_wxFlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS },
2862 { "wxFlexGridSizer_CalcMin", (PyCFunction) _wrap_wxFlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
2863 { "wxFlexGridSizer_RecalcSizes", (PyCFunction) _wrap_wxFlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
2864 { "new_wxFlexGridSizer", (PyCFunction) _wrap_new_wxFlexGridSizer, METH_VARARGS | METH_KEYWORDS },
2865 { "wxGridSizer_GetHGap", (PyCFunction) _wrap_wxGridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS },
2866 { "wxGridSizer_GetVGap", (PyCFunction) _wrap_wxGridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS },
2867 { "wxGridSizer_GetRows", (PyCFunction) _wrap_wxGridSizer_GetRows, METH_VARARGS | METH_KEYWORDS },
2868 { "wxGridSizer_GetCols", (PyCFunction) _wrap_wxGridSizer_GetCols, METH_VARARGS | METH_KEYWORDS },
2869 { "wxGridSizer_SetHGap", (PyCFunction) _wrap_wxGridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS },
2870 { "wxGridSizer_SetVGap", (PyCFunction) _wrap_wxGridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS },
2871 { "wxGridSizer_SetRows", (PyCFunction) _wrap_wxGridSizer_SetRows, METH_VARARGS | METH_KEYWORDS },
2872 { "wxGridSizer_SetCols", (PyCFunction) _wrap_wxGridSizer_SetCols, METH_VARARGS | METH_KEYWORDS },
2873 { "wxGridSizer_CalcMin", (PyCFunction) _wrap_wxGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
2874 { "wxGridSizer_RecalcSizes", (PyCFunction) _wrap_wxGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
2875 { "new_wxGridSizer", (PyCFunction) _wrap_new_wxGridSizer, METH_VARARGS | METH_KEYWORDS },
2876 { "wxNotebookSizer_GetNotebook", (PyCFunction) _wrap_wxNotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS },
2877 { "wxNotebookSizer_CalcMin", (PyCFunction) _wrap_wxNotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
2878 { "wxNotebookSizer_RecalcSizes", (PyCFunction) _wrap_wxNotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
2879 { "new_wxNotebookSizer", (PyCFunction) _wrap_new_wxNotebookSizer, METH_VARARGS | METH_KEYWORDS },
2880 { "wxStaticBoxSizer_CalcMin", (PyCFunction) _wrap_wxStaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
2881 { "wxStaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_wxStaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
2f90df85
RD
2882 { "wxStaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_wxStaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS },
2883 { "new_wxStaticBoxSizer", (PyCFunction) _wrap_new_wxStaticBoxSizer, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
2884 { "wxBoxSizer_CalcMin", (PyCFunction) _wrap_wxBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
2885 { "wxBoxSizer_RecalcSizes", (PyCFunction) _wrap_wxBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
2f90df85
RD
2886 { "wxBoxSizer_GetOrientation", (PyCFunction) _wrap_wxBoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS },
2887 { "new_wxBoxSizer", (PyCFunction) _wrap_new_wxBoxSizer, METH_VARARGS | METH_KEYWORDS },
2888 { "wxPySizer__setSelf", (PyCFunction) _wrap_wxPySizer__setSelf, METH_VARARGS | METH_KEYWORDS },
2889 { "new_wxPySizer", (PyCFunction) _wrap_new_wxPySizer, METH_VARARGS | METH_KEYWORDS },
2890 { "wxSizer_GetChildren", (PyCFunction) _wrap_wxSizer_GetChildren, METH_VARARGS | METH_KEYWORDS },
2891 { "wxSizer_SetSizeHints", (PyCFunction) _wrap_wxSizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
2892 { "wxSizer_Fit", (PyCFunction) _wrap_wxSizer_Fit, METH_VARARGS | METH_KEYWORDS },
2893 { "wxSizer_Layout", (PyCFunction) _wrap_wxSizer_Layout, METH_VARARGS | METH_KEYWORDS },
2894 { "wxSizer_GetMinSize", (PyCFunction) _wrap_wxSizer_GetMinSize, METH_VARARGS | METH_KEYWORDS },
2895 { "wxSizer_GetPosition", (PyCFunction) _wrap_wxSizer_GetPosition, METH_VARARGS | METH_KEYWORDS },
2896 { "wxSizer_GetSize", (PyCFunction) _wrap_wxSizer_GetSize, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
2897 { "wxSizer_SetItemMinSizePos", (PyCFunction) _wrap_wxSizer_SetItemMinSizePos, METH_VARARGS | METH_KEYWORDS },
2898 { "wxSizer_SetItemMinSizeSizer", (PyCFunction) _wrap_wxSizer_SetItemMinSizeSizer, METH_VARARGS | METH_KEYWORDS },
2899 { "wxSizer_SetItemMinSizeWindow", (PyCFunction) _wrap_wxSizer_SetItemMinSizeWindow, METH_VARARGS | METH_KEYWORDS },
2900 { "wxSizer_SetMinSize", (PyCFunction) _wrap_wxSizer_SetMinSize, METH_VARARGS | METH_KEYWORDS },
2f90df85
RD
2901 { "wxSizer_SetDimension", (PyCFunction) _wrap_wxSizer_SetDimension, METH_VARARGS | METH_KEYWORDS },
2902 { "wxSizer_RemovePos", (PyCFunction) _wrap_wxSizer_RemovePos, METH_VARARGS | METH_KEYWORDS },
2903 { "wxSizer_RemoveSizer", (PyCFunction) _wrap_wxSizer_RemoveSizer, METH_VARARGS | METH_KEYWORDS },
2904 { "wxSizer_RemoveWindow", (PyCFunction) _wrap_wxSizer_RemoveWindow, METH_VARARGS | METH_KEYWORDS },
2905 { "wxSizer_PrependSpacer", (PyCFunction) _wrap_wxSizer_PrependSpacer, METH_VARARGS | METH_KEYWORDS },
2906 { "wxSizer_PrependSizer", (PyCFunction) _wrap_wxSizer_PrependSizer, METH_VARARGS | METH_KEYWORDS },
2907 { "wxSizer_PrependWindow", (PyCFunction) _wrap_wxSizer_PrependWindow, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
2908 { "wxSizer_InsertSpacer", (PyCFunction) _wrap_wxSizer_InsertSpacer, METH_VARARGS | METH_KEYWORDS },
2909 { "wxSizer_InsertSizer", (PyCFunction) _wrap_wxSizer_InsertSizer, METH_VARARGS | METH_KEYWORDS },
2910 { "wxSizer_InsertWindow", (PyCFunction) _wrap_wxSizer_InsertWindow, METH_VARARGS | METH_KEYWORDS },
2f90df85
RD
2911 { "wxSizer_AddSpacer", (PyCFunction) _wrap_wxSizer_AddSpacer, METH_VARARGS | METH_KEYWORDS },
2912 { "wxSizer_AddSizer", (PyCFunction) _wrap_wxSizer_AddSizer, METH_VARARGS | METH_KEYWORDS },
2913 { "wxSizer_AddWindow", (PyCFunction) _wrap_wxSizer_AddWindow, METH_VARARGS | METH_KEYWORDS },
2914 { "wxSizer_Destroy", (PyCFunction) _wrap_wxSizer_Destroy, METH_VARARGS | METH_KEYWORDS },
2915 { "wxSizerItem_GetUserData", (PyCFunction) _wrap_wxSizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS },
9b3d3bc4
RD
2916 { "wxSizerItem_SetBorder", (PyCFunction) _wrap_wxSizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS },
2917 { "wxSizerItem_SetFlag", (PyCFunction) _wrap_wxSizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS },
2918 { "wxSizerItem_SetOption", (PyCFunction) _wrap_wxSizerItem_SetOption, METH_VARARGS | METH_KEYWORDS },
2919 { "wxSizerItem_SetInitSize", (PyCFunction) _wrap_wxSizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS },
2f90df85
RD
2920 { "wxSizerItem_GetBorder", (PyCFunction) _wrap_wxSizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS },
2921 { "wxSizerItem_GetFlag", (PyCFunction) _wrap_wxSizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS },
2922 { "wxSizerItem_GetOption", (PyCFunction) _wrap_wxSizerItem_GetOption, METH_VARARGS | METH_KEYWORDS },
f6bcfd97 2923 { "wxSizerItem_SetSizer", (PyCFunction) _wrap_wxSizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS },
2f90df85 2924 { "wxSizerItem_GetSizer", (PyCFunction) _wrap_wxSizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS },
f6bcfd97 2925 { "wxSizerItem_SetWindow", (PyCFunction) _wrap_wxSizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS },
2f90df85
RD
2926 { "wxSizerItem_GetWindow", (PyCFunction) _wrap_wxSizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS },
2927 { "wxSizerItem_IsSpacer", (PyCFunction) _wrap_wxSizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS },
2928 { "wxSizerItem_IsSizer", (PyCFunction) _wrap_wxSizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS },
2929 { "wxSizerItem_IsWindow", (PyCFunction) _wrap_wxSizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
2930 { "wxSizerItem_GetRatio", (PyCFunction) _wrap_wxSizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS },
2931 { "wxSizerItem_SetRatio", (PyCFunction) _wrap_wxSizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS },
2932 { "wxSizerItem_SetRatioSize", (PyCFunction) _wrap_wxSizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS },
2933 { "wxSizerItem_SetRatioWH", (PyCFunction) _wrap_wxSizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS },
2f90df85
RD
2934 { "wxSizerItem_SetDimension", (PyCFunction) _wrap_wxSizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS },
2935 { "wxSizerItem_CalcMin", (PyCFunction) _wrap_wxSizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS },
2936 { "wxSizerItem_GetSize", (PyCFunction) _wrap_wxSizerItem_GetSize, METH_VARARGS | METH_KEYWORDS },
09f3d4e6 2937 { "wxSizerItem_GetPosition", (PyCFunction) _wrap_wxSizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS },
2f90df85
RD
2938 { NULL, NULL }
2939};
2940#ifdef __cplusplus
2941}
2942#endif
2943/*
2944 * This table is used by the pointer type-checker
2945 */
2946static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
2f90df85 2947 { "_signed_long","_long",0},
b1462dfa 2948 { "_wxPrintQuality","_wxCoord",0},
2f90df85
RD
2949 { "_wxPrintQuality","_int",0},
2950 { "_wxPrintQuality","_signed_int",0},
2951 { "_wxPrintQuality","_unsigned_int",0},
2952 { "_wxPrintQuality","_wxWindowID",0},
2953 { "_wxPrintQuality","_uint",0},
2954 { "_wxPrintQuality","_EBool",0},
2955 { "_wxPrintQuality","_size_t",0},
c368d904 2956 { "_wxPrintQuality","_time_t",0},
2f90df85 2957 { "_byte","_unsigned_char",0},
2f90df85
RD
2958 { "_long","_unsigned_long",0},
2959 { "_long","_signed_long",0},
f6bcfd97 2960 { "_wxGridSizer","_wxFlexGridSizer",SwigwxFlexGridSizerTowxGridSizer},
b1462dfa 2961 { "_size_t","_wxCoord",0},
2f90df85 2962 { "_size_t","_wxPrintQuality",0},
c368d904 2963 { "_size_t","_time_t",0},
2f90df85
RD
2964 { "_size_t","_unsigned_int",0},
2965 { "_size_t","_int",0},
2966 { "_size_t","_wxWindowID",0},
2967 { "_size_t","_uint",0},
b1462dfa 2968 { "_uint","_wxCoord",0},
2f90df85 2969 { "_uint","_wxPrintQuality",0},
c368d904 2970 { "_uint","_time_t",0},
2f90df85
RD
2971 { "_uint","_size_t",0},
2972 { "_uint","_unsigned_int",0},
2973 { "_uint","_int",0},
2974 { "_uint","_wxWindowID",0},
f6bcfd97 2975 { "_wxChar","_char",0},
2f90df85 2976 { "_wxBoxSizer","_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxBoxSizer},
f6bcfd97 2977 { "_char","_wxChar",0},
cdf14688 2978 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
b1462dfa 2979 { "_EBool","_wxCoord",0},
2f90df85
RD
2980 { "_EBool","_wxPrintQuality",0},
2981 { "_EBool","_signed_int",0},
2982 { "_EBool","_int",0},
2983 { "_EBool","_wxWindowID",0},
2f90df85 2984 { "_unsigned_long","_long",0},
cdf14688 2985 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
b1462dfa 2986 { "_signed_int","_wxCoord",0},
2f90df85
RD
2987 { "_signed_int","_wxPrintQuality",0},
2988 { "_signed_int","_EBool",0},
2989 { "_signed_int","_wxWindowID",0},
2990 { "_signed_int","_int",0},
2f90df85
RD
2991 { "_WXTYPE","_short",0},
2992 { "_WXTYPE","_signed_short",0},
2993 { "_WXTYPE","_unsigned_short",0},
2f90df85
RD
2994 { "_unsigned_short","_WXTYPE",0},
2995 { "_unsigned_short","_short",0},
9416aa89 2996 { "_wxObject","_wxFlexGridSizer",SwigwxFlexGridSizerTowxObject},
9416aa89 2997 { "_wxObject","_wxGridSizer",SwigwxGridSizerTowxObject},
9416aa89 2998 { "_wxObject","_wxNotebookSizer",SwigwxNotebookSizerTowxObject},
9416aa89 2999 { "_wxObject","_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxObject},
9416aa89 3000 { "_wxObject","_wxBoxSizer",SwigwxBoxSizerTowxObject},
9416aa89 3001 { "_wxObject","_wxPySizer",SwigwxPySizerTowxObject},
9416aa89 3002 { "_wxObject","_wxSizer",SwigwxSizerTowxObject},
9416aa89 3003 { "_wxObject","_wxSizerItem",SwigwxSizerItemTowxObject},
2f90df85
RD
3004 { "_signed_short","_WXTYPE",0},
3005 { "_signed_short","_short",0},
2f90df85 3006 { "_unsigned_char","_byte",0},
b1462dfa 3007 { "_unsigned_int","_wxCoord",0},
2f90df85 3008 { "_unsigned_int","_wxPrintQuality",0},
c368d904 3009 { "_unsigned_int","_time_t",0},
2f90df85
RD
3010 { "_unsigned_int","_size_t",0},
3011 { "_unsigned_int","_uint",0},
3012 { "_unsigned_int","_wxWindowID",0},
3013 { "_unsigned_int","_int",0},
2f90df85
RD
3014 { "_short","_WXTYPE",0},
3015 { "_short","_unsigned_short",0},
3016 { "_short","_signed_short",0},
b1462dfa 3017 { "_wxWindowID","_wxCoord",0},
2f90df85 3018 { "_wxWindowID","_wxPrintQuality",0},
c368d904 3019 { "_wxWindowID","_time_t",0},
2f90df85
RD
3020 { "_wxWindowID","_size_t",0},
3021 { "_wxWindowID","_EBool",0},
3022 { "_wxWindowID","_uint",0},
3023 { "_wxWindowID","_int",0},
3024 { "_wxWindowID","_signed_int",0},
3025 { "_wxWindowID","_unsigned_int",0},
b1462dfa 3026 { "_int","_wxCoord",0},
2f90df85 3027 { "_int","_wxPrintQuality",0},
c368d904 3028 { "_int","_time_t",0},
2f90df85
RD
3029 { "_int","_size_t",0},
3030 { "_int","_EBool",0},
3031 { "_int","_uint",0},
3032 { "_int","_wxWindowID",0},
3033 { "_int","_unsigned_int",0},
3034 { "_int","_signed_int",0},
c368d904
RD
3035 { "_time_t","_wxCoord",0},
3036 { "_time_t","_wxPrintQuality",0},
3037 { "_time_t","_unsigned_int",0},
3038 { "_time_t","_int",0},
3039 { "_time_t","_wxWindowID",0},
3040 { "_time_t","_uint",0},
3041 { "_time_t","_size_t",0},
b1462dfa
RD
3042 { "_wxCoord","_int",0},
3043 { "_wxCoord","_signed_int",0},
3044 { "_wxCoord","_unsigned_int",0},
3045 { "_wxCoord","_wxWindowID",0},
3046 { "_wxCoord","_uint",0},
3047 { "_wxCoord","_EBool",0},
3048 { "_wxCoord","_size_t",0},
c368d904 3049 { "_wxCoord","_time_t",0},
b1462dfa 3050 { "_wxCoord","_wxPrintQuality",0},
f6bcfd97 3051 { "_wxSizer","_wxFlexGridSizer",SwigwxFlexGridSizerTowxSizer},
f6bcfd97 3052 { "_wxSizer","_wxGridSizer",SwigwxGridSizerTowxSizer},
f6bcfd97 3053 { "_wxSizer","_wxNotebookSizer",SwigwxNotebookSizerTowxSizer},
2f90df85 3054 { "_wxSizer","_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxSizer},
2f90df85 3055 { "_wxSizer","_wxBoxSizer",SwigwxBoxSizerTowxSizer},
2f90df85 3056 { "_wxSizer","_wxPySizer",SwigwxPySizerTowxSizer},
2f90df85
RD
3057{0,0,0}};
3058
3059static PyObject *SWIG_globals;
3060#ifdef __cplusplus
3061extern "C"
3062#endif
3063SWIGEXPORT(void) initsizersc() {
3064 PyObject *m, *d;
3065 SWIG_globals = SWIG_newvarlink();
3066 m = Py_InitModule("sizersc", sizerscMethods);
3067 d = PyModule_GetDict(m);
3068{
3069 int i;
3070 for (i = 0; _swig_mapping[i].n1; i++)
3071 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
3072}
3073}