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