]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/sizers.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / gtk / sizers.cpp
1 /*
2 * FILE : src/gtk/sizers.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include "Python.h"
23
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__)
32 # define SWIGEXPORT(a) a _export
33 # else
34 # define SWIGEXPORT(a) a
35 # endif
36 # endif
37 #else
38 # define SWIGEXPORT(a) a
39 #endif
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
48 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
49 extern 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
59 #include <wx/notebook.h>
60
61
62 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
63 PyObject* o2;
64 PyObject* o3;
65
66 if (!target) {
67 target = o;
68 } else if (target == Py_None) {
69 Py_DECREF(Py_None);
70 target = o;
71 } else {
72 if (!PyTuple_Check(target)) {
73 o2 = target;
74 target = PyTuple_New(1);
75 PyTuple_SetItem(target, 0, o2);
76 }
77 o3 = PyTuple_New(1);
78 PyTuple_SetItem(o3, 0, o);
79
80 o2 = target;
81 target = PySequence_Concat(o2, o3);
82 Py_DECREF(o2);
83 Py_DECREF(o3);
84 }
85 return target;
86 }
87
88 class wxPySizer : public wxSizer {
89 DECLARE_DYNAMIC_CLASS(wxPySizer);
90 public:
91 wxPySizer() : wxSizer() {};
92
93 DEC_PYCALLBACK___pure(RecalcSizes);
94 DEC_PYCALLBACK_wxSize__pure(CalcMin);
95 PYPRIVATE;
96 };
97
98
99 IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes);
100 IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin);
101
102 IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer);
103 #ifdef __cplusplus
104 extern "C" {
105 #endif
106 static void *SwigwxSizerItemTowxObject(void *ptr) {
107 wxSizerItem *src;
108 wxObject *dest;
109 src = (wxSizerItem *) ptr;
110 dest = (wxObject *) src;
111 return (void *) dest;
112 }
113
114 #define wxSizerItem_DeleteWindows(_swigobj) (_swigobj->DeleteWindows())
115 static 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 {
132 PyThreadState* __tstate = wxPyBeginAllowThreads();
133 wxSizerItem_DeleteWindows(_arg0);
134
135 wxPyEndAllowThreads(__tstate);
136 if (PyErr_Occurred()) return NULL;
137 } Py_INCREF(Py_None);
138 _resultobj = Py_None;
139 return _resultobj;
140 }
141
142 #define wxSizerItem_DetachSizer(_swigobj) (_swigobj->DetachSizer())
143 static PyObject *_wrap_wxSizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
144 PyObject * _resultobj;
145 wxSizerItem * _arg0;
146 PyObject * _argo0 = 0;
147 char *_kwnames[] = { "self", NULL };
148
149 self = self;
150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_DetachSizer",_kwnames,&_argo0))
151 return NULL;
152 if (_argo0) {
153 if (_argo0 == Py_None) { _arg0 = NULL; }
154 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
155 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_DetachSizer. Expected _wxSizerItem_p.");
156 return NULL;
157 }
158 }
159 {
160 PyThreadState* __tstate = wxPyBeginAllowThreads();
161 wxSizerItem_DetachSizer(_arg0);
162
163 wxPyEndAllowThreads(__tstate);
164 if (PyErr_Occurred()) return NULL;
165 } Py_INCREF(Py_None);
166 _resultobj = Py_None;
167 return _resultobj;
168 }
169
170 #define wxSizerItem_GetSize(_swigobj) (_swigobj->GetSize())
171 static 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 {
190 PyThreadState* __tstate = wxPyBeginAllowThreads();
191 _result = new wxSize (wxSizerItem_GetSize(_arg0));
192
193 wxPyEndAllowThreads(__tstate);
194 if (PyErr_Occurred()) return NULL;
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())
201 static 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 {
220 PyThreadState* __tstate = wxPyBeginAllowThreads();
221 _result = new wxSize (wxSizerItem_CalcMin(_arg0));
222
223 wxPyEndAllowThreads(__tstate);
224 if (PyErr_Occurred()) return NULL;
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))
231 static 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 {
264 PyThreadState* __tstate = wxPyBeginAllowThreads();
265 wxSizerItem_SetDimension(_arg0,*_arg1,*_arg2);
266
267 wxPyEndAllowThreads(__tstate);
268 if (PyErr_Occurred()) return NULL;
269 } Py_INCREF(Py_None);
270 _resultobj = Py_None;
271 return _resultobj;
272 }
273
274 #define wxSizerItem_GetMinSize(_swigobj) (_swigobj->GetMinSize())
275 static 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))
305 static 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
334 #define wxSizerItem_SetRatioWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRatio(_swigarg0,_swigarg1))
335 static 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 {
354 PyThreadState* __tstate = wxPyBeginAllowThreads();
355 wxSizerItem_SetRatioWH(_arg0,_arg1,_arg2);
356
357 wxPyEndAllowThreads(__tstate);
358 if (PyErr_Occurred()) return NULL;
359 } Py_INCREF(Py_None);
360 _resultobj = Py_None;
361 return _resultobj;
362 }
363
364 #define wxSizerItem_SetRatioSize(_swigobj,_swigarg0) (_swigobj->SetRatio(_swigarg0))
365 static 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 {
390 PyThreadState* __tstate = wxPyBeginAllowThreads();
391 wxSizerItem_SetRatioSize(_arg0,*_arg1);
392
393 wxPyEndAllowThreads(__tstate);
394 if (PyErr_Occurred()) return NULL;
395 } Py_INCREF(Py_None);
396 _resultobj = Py_None;
397 return _resultobj;
398 }
399
400 #define wxSizerItem_SetRatio(_swigobj,_swigarg0) (_swigobj->SetRatio(_swigarg0))
401 static 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 {
419 PyThreadState* __tstate = wxPyBeginAllowThreads();
420 wxSizerItem_SetRatio(_arg0,_arg1);
421
422 wxPyEndAllowThreads(__tstate);
423 if (PyErr_Occurred()) return NULL;
424 } Py_INCREF(Py_None);
425 _resultobj = Py_None;
426 return _resultobj;
427 }
428
429 #define wxSizerItem_GetRatio(_swigobj) (_swigobj->GetRatio())
430 static 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 {
448 PyThreadState* __tstate = wxPyBeginAllowThreads();
449 _result = (float )wxSizerItem_GetRatio(_arg0);
450
451 wxPyEndAllowThreads(__tstate);
452 if (PyErr_Occurred()) return NULL;
453 } _resultobj = Py_BuildValue("f",_result);
454 return _resultobj;
455 }
456
457 #define wxSizerItem_IsWindow(_swigobj) (_swigobj->IsWindow())
458 static 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 {
476 PyThreadState* __tstate = wxPyBeginAllowThreads();
477 _result = (bool )wxSizerItem_IsWindow(_arg0);
478
479 wxPyEndAllowThreads(__tstate);
480 if (PyErr_Occurred()) return NULL;
481 } _resultobj = Py_BuildValue("i",_result);
482 return _resultobj;
483 }
484
485 #define wxSizerItem_IsSizer(_swigobj) (_swigobj->IsSizer())
486 static 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 {
504 PyThreadState* __tstate = wxPyBeginAllowThreads();
505 _result = (bool )wxSizerItem_IsSizer(_arg0);
506
507 wxPyEndAllowThreads(__tstate);
508 if (PyErr_Occurred()) return NULL;
509 } _resultobj = Py_BuildValue("i",_result);
510 return _resultobj;
511 }
512
513 #define wxSizerItem_IsSpacer(_swigobj) (_swigobj->IsSpacer())
514 static 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 {
532 PyThreadState* __tstate = wxPyBeginAllowThreads();
533 _result = (bool )wxSizerItem_IsSpacer(_arg0);
534
535 wxPyEndAllowThreads(__tstate);
536 if (PyErr_Occurred()) return NULL;
537 } _resultobj = Py_BuildValue("i",_result);
538 return _resultobj;
539 }
540
541 #define wxSizerItem_SetProportion(_swigobj,_swigarg0) (_swigobj->SetProportion(_swigarg0))
542 static PyObject *_wrap_wxSizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) {
543 PyObject * _resultobj;
544 wxSizerItem * _arg0;
545 int _arg1;
546 PyObject * _argo0 = 0;
547 char *_kwnames[] = { "self","proportion", NULL };
548
549 self = self;
550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSizerItem_SetProportion",_kwnames,&_argo0,&_arg1))
551 return NULL;
552 if (_argo0) {
553 if (_argo0 == Py_None) { _arg0 = NULL; }
554 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
555 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetProportion. Expected _wxSizerItem_p.");
556 return NULL;
557 }
558 }
559 {
560 PyThreadState* __tstate = wxPyBeginAllowThreads();
561 wxSizerItem_SetProportion(_arg0,_arg1);
562
563 wxPyEndAllowThreads(__tstate);
564 if (PyErr_Occurred()) return NULL;
565 } Py_INCREF(Py_None);
566 _resultobj = Py_None;
567 return _resultobj;
568 }
569
570 #define wxSizerItem_GetProportion(_swigobj) (_swigobj->GetProportion())
571 static PyObject *_wrap_wxSizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) {
572 PyObject * _resultobj;
573 int _result;
574 wxSizerItem * _arg0;
575 PyObject * _argo0 = 0;
576 char *_kwnames[] = { "self", NULL };
577
578 self = self;
579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetProportion",_kwnames,&_argo0))
580 return NULL;
581 if (_argo0) {
582 if (_argo0 == Py_None) { _arg0 = NULL; }
583 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
584 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetProportion. Expected _wxSizerItem_p.");
585 return NULL;
586 }
587 }
588 {
589 PyThreadState* __tstate = wxPyBeginAllowThreads();
590 _result = (int )wxSizerItem_GetProportion(_arg0);
591
592 wxPyEndAllowThreads(__tstate);
593 if (PyErr_Occurred()) return NULL;
594 } _resultobj = Py_BuildValue("i",_result);
595 return _resultobj;
596 }
597
598 #define wxSizerItem_SetFlag(_swigobj,_swigarg0) (_swigobj->SetFlag(_swigarg0))
599 static PyObject *_wrap_wxSizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
600 PyObject * _resultobj;
601 wxSizerItem * _arg0;
602 int _arg1;
603 PyObject * _argo0 = 0;
604 char *_kwnames[] = { "self","flag", NULL };
605
606 self = self;
607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSizerItem_SetFlag",_kwnames,&_argo0,&_arg1))
608 return NULL;
609 if (_argo0) {
610 if (_argo0 == Py_None) { _arg0 = NULL; }
611 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
612 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetFlag. Expected _wxSizerItem_p.");
613 return NULL;
614 }
615 }
616 {
617 PyThreadState* __tstate = wxPyBeginAllowThreads();
618 wxSizerItem_SetFlag(_arg0,_arg1);
619
620 wxPyEndAllowThreads(__tstate);
621 if (PyErr_Occurred()) return NULL;
622 } Py_INCREF(Py_None);
623 _resultobj = Py_None;
624 return _resultobj;
625 }
626
627 #define wxSizerItem_GetFlag(_swigobj) (_swigobj->GetFlag())
628 static PyObject *_wrap_wxSizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
629 PyObject * _resultobj;
630 int _result;
631 wxSizerItem * _arg0;
632 PyObject * _argo0 = 0;
633 char *_kwnames[] = { "self", NULL };
634
635 self = self;
636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetFlag",_kwnames,&_argo0))
637 return NULL;
638 if (_argo0) {
639 if (_argo0 == Py_None) { _arg0 = NULL; }
640 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
641 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetFlag. Expected _wxSizerItem_p.");
642 return NULL;
643 }
644 }
645 {
646 PyThreadState* __tstate = wxPyBeginAllowThreads();
647 _result = (int )wxSizerItem_GetFlag(_arg0);
648
649 wxPyEndAllowThreads(__tstate);
650 if (PyErr_Occurred()) return NULL;
651 } _resultobj = Py_BuildValue("i",_result);
652 return _resultobj;
653 }
654
655 #define wxSizerItem_SetBorder(_swigobj,_swigarg0) (_swigobj->SetBorder(_swigarg0))
656 static PyObject *_wrap_wxSizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
657 PyObject * _resultobj;
658 wxSizerItem * _arg0;
659 int _arg1;
660 PyObject * _argo0 = 0;
661 char *_kwnames[] = { "self","border", NULL };
662
663 self = self;
664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSizerItem_SetBorder",_kwnames,&_argo0,&_arg1))
665 return NULL;
666 if (_argo0) {
667 if (_argo0 == Py_None) { _arg0 = NULL; }
668 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
669 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetBorder. Expected _wxSizerItem_p.");
670 return NULL;
671 }
672 }
673 {
674 PyThreadState* __tstate = wxPyBeginAllowThreads();
675 wxSizerItem_SetBorder(_arg0,_arg1);
676
677 wxPyEndAllowThreads(__tstate);
678 if (PyErr_Occurred()) return NULL;
679 } Py_INCREF(Py_None);
680 _resultobj = Py_None;
681 return _resultobj;
682 }
683
684 #define wxSizerItem_GetBorder(_swigobj) (_swigobj->GetBorder())
685 static 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 {
703 PyThreadState* __tstate = wxPyBeginAllowThreads();
704 _result = (int )wxSizerItem_GetBorder(_arg0);
705
706 wxPyEndAllowThreads(__tstate);
707 if (PyErr_Occurred()) return NULL;
708 } _resultobj = Py_BuildValue("i",_result);
709 return _resultobj;
710 }
711
712 #define wxSizerItem_GetWindow(_swigobj) (_swigobj->GetWindow())
713 static PyObject *_wrap_wxSizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
714 PyObject * _resultobj;
715 wxWindow * _result;
716 wxSizerItem * _arg0;
717 PyObject * _argo0 = 0;
718 char *_kwnames[] = { "self", NULL };
719
720 self = self;
721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetWindow",_kwnames,&_argo0))
722 return NULL;
723 if (_argo0) {
724 if (_argo0 == Py_None) { _arg0 = NULL; }
725 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
726 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetWindow. Expected _wxSizerItem_p.");
727 return NULL;
728 }
729 }
730 {
731 PyThreadState* __tstate = wxPyBeginAllowThreads();
732 _result = (wxWindow *)wxSizerItem_GetWindow(_arg0);
733
734 wxPyEndAllowThreads(__tstate);
735 if (PyErr_Occurred()) return NULL;
736 }{ _resultobj = wxPyMake_wxObject(_result); }
737 return _resultobj;
738 }
739
740 #define wxSizerItem_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0))
741 static PyObject *_wrap_wxSizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
742 PyObject * _resultobj;
743 wxSizerItem * _arg0;
744 wxWindow * _arg1;
745 PyObject * _argo0 = 0;
746 PyObject * _argo1 = 0;
747 char *_kwnames[] = { "self","window", NULL };
748
749 self = self;
750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSizerItem_SetWindow",_kwnames,&_argo0,&_argo1))
751 return NULL;
752 if (_argo0) {
753 if (_argo0 == Py_None) { _arg0 = NULL; }
754 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
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.");
763 return NULL;
764 }
765 }
766 {
767 PyThreadState* __tstate = wxPyBeginAllowThreads();
768 wxSizerItem_SetWindow(_arg0,_arg1);
769
770 wxPyEndAllowThreads(__tstate);
771 if (PyErr_Occurred()) return NULL;
772 } Py_INCREF(Py_None);
773 _resultobj = Py_None;
774 return _resultobj;
775 }
776
777 #define wxSizerItem_GetSizer(_swigobj) (_swigobj->GetSizer())
778 static PyObject *_wrap_wxSizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
779 PyObject * _resultobj;
780 wxSizer * _result;
781 wxSizerItem * _arg0;
782 PyObject * _argo0 = 0;
783 char *_kwnames[] = { "self", NULL };
784
785 self = self;
786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetSizer",_kwnames,&_argo0))
787 return NULL;
788 if (_argo0) {
789 if (_argo0 == Py_None) { _arg0 = NULL; }
790 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
791 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetSizer. Expected _wxSizerItem_p.");
792 return NULL;
793 }
794 }
795 {
796 PyThreadState* __tstate = wxPyBeginAllowThreads();
797 _result = (wxSizer *)wxSizerItem_GetSizer(_arg0);
798
799 wxPyEndAllowThreads(__tstate);
800 if (PyErr_Occurred()) return NULL;
801 }{ _resultobj = wxPyMake_wxSizer(_result); }
802 return _resultobj;
803 }
804
805 #define wxSizerItem_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0))
806 static PyObject *_wrap_wxSizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
807 PyObject * _resultobj;
808 wxSizerItem * _arg0;
809 wxSizer * _arg1;
810 PyObject * _argo0 = 0;
811 PyObject * _argo1 = 0;
812 char *_kwnames[] = { "self","sizer", NULL };
813
814 self = self;
815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSizerItem_SetSizer",_kwnames,&_argo0,&_argo1))
816 return NULL;
817 if (_argo0) {
818 if (_argo0 == Py_None) { _arg0 = NULL; }
819 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
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.");
828 return NULL;
829 }
830 }
831 {
832 PyThreadState* __tstate = wxPyBeginAllowThreads();
833 wxSizerItem_SetSizer(_arg0,_arg1);
834
835 wxPyEndAllowThreads(__tstate);
836 if (PyErr_Occurred()) return NULL;
837 } Py_INCREF(Py_None);
838 _resultobj = Py_None;
839 return _resultobj;
840 }
841
842 #define wxSizerItem_GetSpacer(_swigobj) (_swigobj->GetSpacer())
843 static PyObject *_wrap_wxSizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
844 PyObject * _resultobj;
845 wxSize * _result;
846 wxSizerItem * _arg0;
847 PyObject * _argo0 = 0;
848 char *_kwnames[] = { "self", NULL };
849 char _ptemp[128];
850
851 self = self;
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))
879 static 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))
915 static 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())
946 static 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())
974 static 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
1003 static 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 }
1013 static 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))
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 {
1031 PyThreadState* __tstate = wxPyBeginAllowThreads();
1032 _result = (PyObject *)wxSizerItem_GetUserData(_arg0);
1033
1034 wxPyEndAllowThreads(__tstate);
1035 if (PyErr_Occurred()) return NULL;
1036 }{
1037 _resultobj = _result;
1038 }
1039 return _resultobj;
1040 }
1041
1042 static void *SwigwxSizerTowxObject(void *ptr) {
1043 wxSizer *src;
1044 wxObject *dest;
1045 src = (wxSizer *) ptr;
1046 dest = (wxObject *) src;
1047 return (void *) dest;
1048 }
1049
1050 static void wxSizer__setOORInfo(wxSizer *self,PyObject * _self) {
1051 self->SetClientObject(new wxPyOORClientData(_self));
1052 }
1053 static 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 {
1075 PyThreadState* __tstate = wxPyBeginAllowThreads();
1076 wxSizer__setOORInfo(_arg0,_arg1);
1077
1078 wxPyEndAllowThreads(__tstate);
1079 if (PyErr_Occurred()) return NULL;
1080 } Py_INCREF(Py_None);
1081 _resultobj = Py_None;
1082 return _resultobj;
1083 }
1084
1085 static void wxSizer_Destroy(wxSizer *self) { delete self; }
1086 static 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 {
1103 PyThreadState* __tstate = wxPyBeginAllowThreads();
1104 wxSizer_Destroy(_arg0);
1105
1106 wxPyEndAllowThreads(__tstate);
1107 if (PyErr_Occurred()) return NULL;
1108 } Py_INCREF(Py_None);
1109 _resultobj = Py_None;
1110 return _resultobj;
1111 }
1112
1113 static 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;
1123 wxPyUserData* data = NULL;
1124 if (userData) data = new wxPyUserData(userData);
1125
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);
1129
1130 else if (!SWIG_GetPtrObj(item, (void**)&sizer, "_wxSizer_p"))
1131 self->Add(sizer, proportion, flag, border, data);
1132
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 }
1141 }
1142 static PyObject *_wrap_wxSizer__Add(PyObject *self, PyObject *args, PyObject *kwargs) {
1143 PyObject * _resultobj;
1144 wxSizer * _arg0;
1145 PyObject * _arg1;
1146 int _arg2 = (int ) 0;
1147 int _arg3 = (int ) 0;
1148 int _arg4 = (int ) 0;
1149 PyObject * _arg5 = (PyObject *) NULL;
1150 int _arg6 = (int ) -1;
1151 PyObject * _argo0 = 0;
1152 PyObject * _obj1 = 0;
1153 PyObject * _obj5 = 0;
1154 char *_kwnames[] = { "self","item","proportion","flag","border","userData","option", NULL };
1155
1156 self = self;
1157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiiOi:wxSizer__Add",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4,&_obj5,&_arg6))
1158 return NULL;
1159 if (_argo0) {
1160 if (_argo0 == Py_None) { _arg0 = NULL; }
1161 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1162 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer__Add. Expected _wxSizer_p.");
1163 return NULL;
1164 }
1165 }
1166 {
1167 _arg1 = _obj1;
1168 }
1169 if (_obj5)
1170 {
1171 _arg5 = _obj5;
1172 }
1173 {
1174 PyThreadState* __tstate = wxPyBeginAllowThreads();
1175 wxSizer__Add(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
1176
1177 wxPyEndAllowThreads(__tstate);
1178 if (PyErr_Occurred()) return NULL;
1179 } Py_INCREF(Py_None);
1180 _resultobj = Py_None;
1181 return _resultobj;
1182 }
1183
1184 static 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;
1194 wxPyUserData* data = NULL;
1195 if (userData) data = new wxPyUserData(userData);
1196
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);
1200
1201 else if (!SWIG_GetPtrObj(item, (void**)&sizer, "_wxSizer_p"))
1202 self->Insert(before, sizer, proportion, flag, border, data);
1203
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 }
1212 }
1213 static PyObject *_wrap_wxSizer__Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
1214 PyObject * _resultobj;
1215 wxSizer * _arg0;
1216 int _arg1;
1217 PyObject * _arg2;
1218 int _arg3 = (int ) 0;
1219 int _arg4 = (int ) 0;
1220 int _arg5 = (int ) 0;
1221 PyObject * _arg6 = (PyObject *) NULL;
1222 int _arg7 = (int ) -1;
1223 PyObject * _argo0 = 0;
1224 PyObject * _obj2 = 0;
1225 PyObject * _obj6 = 0;
1226 char *_kwnames[] = { "self","before","item","proportion","flag","border","userData","option", NULL };
1227
1228 self = self;
1229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|iiiOi:wxSizer__Insert",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4,&_arg5,&_obj6,&_arg7))
1230 return NULL;
1231 if (_argo0) {
1232 if (_argo0 == Py_None) { _arg0 = NULL; }
1233 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1234 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer__Insert. Expected _wxSizer_p.");
1235 return NULL;
1236 }
1237 }
1238 {
1239 _arg2 = _obj2;
1240 }
1241 if (_obj6)
1242 {
1243 _arg6 = _obj6;
1244 }
1245 {
1246 PyThreadState* __tstate = wxPyBeginAllowThreads();
1247 wxSizer__Insert(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
1248
1249 wxPyEndAllowThreads(__tstate);
1250 if (PyErr_Occurred()) return NULL;
1251 } Py_INCREF(Py_None);
1252 _resultobj = Py_None;
1253 return _resultobj;
1254 }
1255
1256 static 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;
1266 wxPyUserData* data = NULL;
1267 if (userData) data = new wxPyUserData(userData);
1268
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);
1272
1273 else if (!SWIG_GetPtrObj(item, (void**)&sizer, "_wxSizer_p"))
1274 self->Prepend(sizer, proportion, flag, border, data);
1275
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 }
1284 }
1285 static PyObject *_wrap_wxSizer__Prepend(PyObject *self, PyObject *args, PyObject *kwargs) {
1286 PyObject * _resultobj;
1287 wxSizer * _arg0;
1288 PyObject * _arg1;
1289 int _arg2 = (int ) 0;
1290 int _arg3 = (int ) 0;
1291 int _arg4 = (int ) 0;
1292 PyObject * _arg5 = (PyObject *) NULL;
1293 int _arg6 = (int ) -1;
1294 PyObject * _argo0 = 0;
1295 PyObject * _obj1 = 0;
1296 PyObject * _obj5 = 0;
1297 char *_kwnames[] = { "self","item","proportion","flag","border","userData","option", NULL };
1298
1299 self = self;
1300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiiOi:wxSizer__Prepend",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4,&_obj5,&_arg6))
1301 return NULL;
1302 if (_argo0) {
1303 if (_argo0 == Py_None) { _arg0 = NULL; }
1304 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1305 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer__Prepend. Expected _wxSizer_p.");
1306 return NULL;
1307 }
1308 }
1309 {
1310 _arg1 = _obj1;
1311 }
1312 if (_obj5)
1313 {
1314 _arg5 = _obj5;
1315 }
1316 {
1317 PyThreadState* __tstate = wxPyBeginAllowThreads();
1318 wxSizer__Prepend(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
1319
1320 wxPyEndAllowThreads(__tstate);
1321 if (PyErr_Occurred()) return NULL;
1322 } Py_INCREF(Py_None);
1323 _resultobj = Py_None;
1324 return _resultobj;
1325 }
1326
1327 static 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 }
1347 }
1348 static PyObject *_wrap_wxSizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
1349 PyObject * _resultobj;
1350 bool _result;
1351 wxSizer * _arg0;
1352 PyObject * _arg1;
1353 PyObject * _argo0 = 0;
1354 PyObject * _obj1 = 0;
1355 char *_kwnames[] = { "self","item", NULL };
1356
1357 self = self;
1358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSizer_Remove",_kwnames,&_argo0,&_obj1))
1359 return NULL;
1360 if (_argo0) {
1361 if (_argo0 == Py_None) { _arg0 = NULL; }
1362 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1363 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_Remove. Expected _wxSizer_p.");
1364 return NULL;
1365 }
1366 }
1367 {
1368 _arg1 = _obj1;
1369 }
1370 {
1371 PyThreadState* __tstate = wxPyBeginAllowThreads();
1372 _result = (bool )wxSizer_Remove(_arg0,_arg1);
1373
1374 wxPyEndAllowThreads(__tstate);
1375 if (PyErr_Occurred()) return NULL;
1376 } _resultobj = Py_BuildValue("i",_result);
1377 return _resultobj;
1378 }
1379
1380 static 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.");
1398 }
1399 static PyObject *_wrap_wxSizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1400 PyObject * _resultobj;
1401 wxSizer * _arg0;
1402 PyObject * _arg1;
1403 wxSize * _arg2;
1404 PyObject * _argo0 = 0;
1405 PyObject * _obj1 = 0;
1406 wxSize temp;
1407 PyObject * _obj2 = 0;
1408 char *_kwnames[] = { "self","item","size", NULL };
1409
1410 self = self;
1411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxSizer__SetItemMinSize",_kwnames,&_argo0,&_obj1,&_obj2))
1412 return NULL;
1413 if (_argo0) {
1414 if (_argo0 == Py_None) { _arg0 = NULL; }
1415 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1416 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer__SetItemMinSize. Expected _wxSizer_p.");
1417 return NULL;
1418 }
1419 }
1420 {
1421 _arg1 = _obj1;
1422 }
1423 {
1424 _arg2 = &temp;
1425 if (! wxSize_helper(_obj2, &_arg2))
1426 return NULL;
1427 }
1428 {
1429 PyThreadState* __tstate = wxPyBeginAllowThreads();
1430 wxSizer__SetItemMinSize(_arg0,_arg1,*_arg2);
1431
1432 wxPyEndAllowThreads(__tstate);
1433 if (PyErr_Occurred()) return NULL;
1434 } Py_INCREF(Py_None);
1435 _resultobj = Py_None;
1436 return _resultobj;
1437 }
1438
1439 #define wxSizer_SetDimension(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetDimension(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1440 static PyObject *_wrap_wxSizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) {
1441 PyObject * _resultobj;
1442 wxSizer * _arg0;
1443 int _arg1;
1444 int _arg2;
1445 int _arg3;
1446 int _arg4;
1447 PyObject * _argo0 = 0;
1448 char *_kwnames[] = { "self","x","y","width","height", NULL };
1449
1450 self = self;
1451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxSizer_SetDimension",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
1452 return NULL;
1453 if (_argo0) {
1454 if (_argo0 == Py_None) { _arg0 = NULL; }
1455 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1456 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_SetDimension. Expected _wxSizer_p.");
1457 return NULL;
1458 }
1459 }
1460 {
1461 PyThreadState* __tstate = wxPyBeginAllowThreads();
1462 wxSizer_SetDimension(_arg0,_arg1,_arg2,_arg3,_arg4);
1463
1464 wxPyEndAllowThreads(__tstate);
1465 if (PyErr_Occurred()) return NULL;
1466 } Py_INCREF(Py_None);
1467 _resultobj = Py_None;
1468 return _resultobj;
1469 }
1470
1471 #define wxSizer_SetMinSize(_swigobj,_swigarg0) (_swigobj->SetMinSize(_swigarg0))
1472 static PyObject *_wrap_wxSizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1473 PyObject * _resultobj;
1474 wxSizer * _arg0;
1475 wxSize * _arg1;
1476 PyObject * _argo0 = 0;
1477 wxSize temp;
1478 PyObject * _obj1 = 0;
1479 char *_kwnames[] = { "self","size", NULL };
1480
1481 self = self;
1482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSizer_SetMinSize",_kwnames,&_argo0,&_obj1))
1483 return NULL;
1484 if (_argo0) {
1485 if (_argo0 == Py_None) { _arg0 = NULL; }
1486 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1487 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_SetMinSize. Expected _wxSizer_p.");
1488 return NULL;
1489 }
1490 }
1491 {
1492 _arg1 = &temp;
1493 if (! wxSize_helper(_obj1, &_arg1))
1494 return NULL;
1495 }
1496 {
1497 PyThreadState* __tstate = wxPyBeginAllowThreads();
1498 wxSizer_SetMinSize(_arg0,*_arg1);
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())
1508 static 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];
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 {
1527 PyThreadState* __tstate = wxPyBeginAllowThreads();
1528 _result = new wxSize (wxSizer_GetSize(_arg0));
1529
1530 wxPyEndAllowThreads(__tstate);
1531 if (PyErr_Occurred()) return NULL;
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())
1538 static 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 {
1557 PyThreadState* __tstate = wxPyBeginAllowThreads();
1558 _result = new wxPoint (wxSizer_GetPosition(_arg0));
1559
1560 wxPyEndAllowThreads(__tstate);
1561 if (PyErr_Occurred()) return NULL;
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())
1568 static PyObject *_wrap_wxSizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1569 PyObject * _resultobj;
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())
1598 static 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))
1626 static 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))
1665 static 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))
1702 static 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))
1739 static 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
1775 #define wxSizer_Clear(_swigobj,_swigarg0) (_swigobj->Clear(_swigarg0))
1776 static PyObject *_wrap_wxSizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
1777 PyObject * _resultobj;
1778 wxSizer * _arg0;
1779 bool _arg1 = (bool ) FALSE;
1780 PyObject * _argo0 = 0;
1781 int tempbool1 = (int) FALSE;
1782 char *_kwnames[] = { "self","delete_windows", NULL };
1783
1784 self = self;
1785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxSizer_Clear",_kwnames,&_argo0,&tempbool1))
1786 return NULL;
1787 if (_argo0) {
1788 if (_argo0 == Py_None) { _arg0 = NULL; }
1789 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1790 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_Clear. Expected _wxSizer_p.");
1791 return NULL;
1792 }
1793 }
1794 _arg1 = (bool ) tempbool1;
1795 {
1796 PyThreadState* __tstate = wxPyBeginAllowThreads();
1797 wxSizer_Clear(_arg0,_arg1);
1798
1799 wxPyEndAllowThreads(__tstate);
1800 if (PyErr_Occurred()) return NULL;
1801 } Py_INCREF(Py_None);
1802 _resultobj = Py_None;
1803 return _resultobj;
1804 }
1805
1806 #define wxSizer_DeleteWindows(_swigobj) (_swigobj->DeleteWindows())
1807 static PyObject *_wrap_wxSizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
1808 PyObject * _resultobj;
1809 wxSizer * _arg0;
1810 PyObject * _argo0 = 0;
1811 char *_kwnames[] = { "self", NULL };
1812
1813 self = self;
1814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizer_DeleteWindows",_kwnames,&_argo0))
1815 return NULL;
1816 if (_argo0) {
1817 if (_argo0 == Py_None) { _arg0 = NULL; }
1818 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1819 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_DeleteWindows. Expected _wxSizer_p.");
1820 return NULL;
1821 }
1822 }
1823 {
1824 PyThreadState* __tstate = wxPyBeginAllowThreads();
1825 wxSizer_DeleteWindows(_arg0);
1826
1827 wxPyEndAllowThreads(__tstate);
1828 if (PyErr_Occurred()) return NULL;
1829 } Py_INCREF(Py_None);
1830 _resultobj = Py_None;
1831 return _resultobj;
1832 }
1833
1834 static PyObject * wxSizer_GetChildren(wxSizer *self) {
1835 wxList& list = self->GetChildren();
1836 return wxPy_ConvertList(&list, "wxSizerItem");
1837 }
1838 static PyObject *_wrap_wxSizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
1839 PyObject * _resultobj;
1840 PyObject * _result;
1841 wxSizer * _arg0;
1842 PyObject * _argo0 = 0;
1843 char *_kwnames[] = { "self", NULL };
1844
1845 self = self;
1846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizer_GetChildren",_kwnames,&_argo0))
1847 return NULL;
1848 if (_argo0) {
1849 if (_argo0 == Py_None) { _arg0 = NULL; }
1850 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1851 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_GetChildren. Expected _wxSizer_p.");
1852 return NULL;
1853 }
1854 }
1855 {
1856 PyThreadState* __tstate = wxPyBeginAllowThreads();
1857 _result = (PyObject *)wxSizer_GetChildren(_arg0);
1858
1859 wxPyEndAllowThreads(__tstate);
1860 if (PyErr_Occurred()) return NULL;
1861 }{
1862 _resultobj = _result;
1863 }
1864 return _resultobj;
1865 }
1866
1867 static 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 }
1878 static PyObject *_wrap_wxSizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
1879 PyObject * _resultobj;
1880 wxSizer * _arg0;
1881 PyObject * _arg1;
1882 bool _arg2 = (bool ) TRUE;
1883 PyObject * _argo0 = 0;
1884 PyObject * _obj1 = 0;
1885 int tempbool2 = (int) TRUE;
1886 char *_kwnames[] = { "self","item","show", NULL };
1887
1888 self = self;
1889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxSizer_Show",_kwnames,&_argo0,&_obj1,&tempbool2))
1890 return NULL;
1891 if (_argo0) {
1892 if (_argo0 == Py_None) { _arg0 = NULL; }
1893 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1894 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_Show. Expected _wxSizer_p.");
1895 return NULL;
1896 }
1897 }
1898 {
1899 _arg1 = _obj1;
1900 }
1901 _arg2 = (bool ) tempbool2;
1902 {
1903 PyThreadState* __tstate = wxPyBeginAllowThreads();
1904 wxSizer_Show(_arg0,_arg1,_arg2);
1905
1906 wxPyEndAllowThreads(__tstate);
1907 if (PyErr_Occurred()) return NULL;
1908 } Py_INCREF(Py_None);
1909 _resultobj = Py_None;
1910 return _resultobj;
1911 }
1912
1913 static 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 }
1924 static PyObject *_wrap_wxSizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
1925 PyObject * _resultobj;
1926 wxSizer * _arg0;
1927 PyObject * _arg1;
1928 PyObject * _argo0 = 0;
1929 PyObject * _obj1 = 0;
1930 char *_kwnames[] = { "self","item", NULL };
1931
1932 self = self;
1933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSizer_Hide",_kwnames,&_argo0,&_obj1))
1934 return NULL;
1935 if (_argo0) {
1936 if (_argo0 == Py_None) { _arg0 = NULL; }
1937 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1938 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_Hide. Expected _wxSizer_p.");
1939 return NULL;
1940 }
1941 }
1942 {
1943 _arg1 = _obj1;
1944 }
1945 {
1946 PyThreadState* __tstate = wxPyBeginAllowThreads();
1947 wxSizer_Hide(_arg0,_arg1);
1948
1949 wxPyEndAllowThreads(__tstate);
1950 if (PyErr_Occurred()) return NULL;
1951 } Py_INCREF(Py_None);
1952 _resultobj = Py_None;
1953 return _resultobj;
1954 }
1955
1956 static 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 }
1968 }
1969 static PyObject *_wrap_wxSizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
1970 PyObject * _resultobj;
1971 bool _result;
1972 wxSizer * _arg0;
1973 PyObject * _arg1;
1974 PyObject * _argo0 = 0;
1975 PyObject * _obj1 = 0;
1976 char *_kwnames[] = { "self","item", NULL };
1977
1978 self = self;
1979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSizer_IsShown",_kwnames,&_argo0,&_obj1))
1980 return NULL;
1981 if (_argo0) {
1982 if (_argo0 == Py_None) { _arg0 = NULL; }
1983 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1984 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_IsShown. Expected _wxSizer_p.");
1985 return NULL;
1986 }
1987 }
1988 {
1989 _arg1 = _obj1;
1990 }
1991 {
1992 PyThreadState* __tstate = wxPyBeginAllowThreads();
1993 _result = (bool )wxSizer_IsShown(_arg0,_arg1);
1994
1995 wxPyEndAllowThreads(__tstate);
1996 if (PyErr_Occurred()) return NULL;
1997 } _resultobj = Py_BuildValue("i",_result);
1998 return _resultobj;
1999 }
2000
2001 #define wxSizer_ShowItems(_swigobj,_swigarg0) (_swigobj->ShowItems(_swigarg0))
2002 static PyObject *_wrap_wxSizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) {
2003 PyObject * _resultobj;
2004 wxSizer * _arg0;
2005 bool _arg1;
2006 PyObject * _argo0 = 0;
2007 int tempbool1;
2008 char *_kwnames[] = { "self","show", NULL };
2009
2010 self = self;
2011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSizer_ShowItems",_kwnames,&_argo0,&tempbool1))
2012 return NULL;
2013 if (_argo0) {
2014 if (_argo0 == Py_None) { _arg0 = NULL; }
2015 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
2016 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_ShowItems. Expected _wxSizer_p.");
2017 return NULL;
2018 }
2019 }
2020 _arg1 = (bool ) tempbool1;
2021 {
2022 PyThreadState* __tstate = wxPyBeginAllowThreads();
2023 wxSizer_ShowItems(_arg0,_arg1);
2024
2025 wxPyEndAllowThreads(__tstate);
2026 if (PyErr_Occurred()) return NULL;
2027 } Py_INCREF(Py_None);
2028 _resultobj = Py_None;
2029 return _resultobj;
2030 }
2031
2032 static void *SwigwxPySizerTowxSizer(void *ptr) {
2033 wxPySizer *src;
2034 wxSizer *dest;
2035 src = (wxPySizer *) ptr;
2036 dest = (wxSizer *) src;
2037 return (void *) dest;
2038 }
2039
2040 static void *SwigwxPySizerTowxObject(void *ptr) {
2041 wxPySizer *src;
2042 wxObject *dest;
2043 src = (wxPySizer *) ptr;
2044 dest = (wxObject *) src;
2045 return (void *) dest;
2046 }
2047
2048 #define new_wxPySizer() (new wxPySizer())
2049 static 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 {
2059 PyThreadState* __tstate = wxPyBeginAllowThreads();
2060 _result = (wxPySizer *)new_wxPySizer();
2061
2062 wxPyEndAllowThreads(__tstate);
2063 if (PyErr_Occurred()) return NULL;
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
2074 #define wxPySizer__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2075 static PyObject *_wrap_wxPySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2076 PyObject * _resultobj;
2077 wxPySizer * _arg0;
2078 PyObject * _arg1;
2079 PyObject * _arg2;
2080 PyObject * _argo0 = 0;
2081 PyObject * _obj1 = 0;
2082 PyObject * _obj2 = 0;
2083 char *_kwnames[] = { "self","self","_class", NULL };
2084
2085 self = self;
2086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPySizer__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
2087 return NULL;
2088 if (_argo0) {
2089 if (_argo0 == Py_None) { _arg0 = NULL; }
2090 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPySizer_p")) {
2091 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPySizer__setCallbackInfo. Expected _wxPySizer_p.");
2092 return NULL;
2093 }
2094 }
2095 {
2096 _arg1 = _obj1;
2097 }
2098 {
2099 _arg2 = _obj2;
2100 }
2101 {
2102 PyThreadState* __tstate = wxPyBeginAllowThreads();
2103 wxPySizer__setCallbackInfo(_arg0,_arg1,_arg2);
2104
2105 wxPyEndAllowThreads(__tstate);
2106 if (PyErr_Occurred()) return NULL;
2107 } Py_INCREF(Py_None);
2108 _resultobj = Py_None;
2109 return _resultobj;
2110 }
2111
2112 static void *SwigwxBoxSizerTowxSizer(void *ptr) {
2113 wxBoxSizer *src;
2114 wxSizer *dest;
2115 src = (wxBoxSizer *) ptr;
2116 dest = (wxSizer *) src;
2117 return (void *) dest;
2118 }
2119
2120 static void *SwigwxBoxSizerTowxObject(void *ptr) {
2121 wxBoxSizer *src;
2122 wxObject *dest;
2123 src = (wxBoxSizer *) ptr;
2124 dest = (wxObject *) src;
2125 return (void *) dest;
2126 }
2127
2128 #define new_wxBoxSizer(_swigarg0) (new wxBoxSizer(_swigarg0))
2129 static 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 {
2140 PyThreadState* __tstate = wxPyBeginAllowThreads();
2141 _result = (wxBoxSizer *)new_wxBoxSizer(_arg0);
2142
2143 wxPyEndAllowThreads(__tstate);
2144 if (PyErr_Occurred()) return NULL;
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())
2156 static 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 {
2174 PyThreadState* __tstate = wxPyBeginAllowThreads();
2175 _result = (int )wxBoxSizer_GetOrientation(_arg0);
2176
2177 wxPyEndAllowThreads(__tstate);
2178 if (PyErr_Occurred()) return NULL;
2179 } _resultobj = Py_BuildValue("i",_result);
2180 return _resultobj;
2181 }
2182
2183 #define wxBoxSizer_SetOrientation(_swigobj,_swigarg0) (_swigobj->SetOrientation(_swigarg0))
2184 static 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
2212 #define wxBoxSizer_RecalcSizes(_swigobj) (_swigobj->RecalcSizes())
2213 static 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 {
2230 PyThreadState* __tstate = wxPyBeginAllowThreads();
2231 wxBoxSizer_RecalcSizes(_arg0);
2232
2233 wxPyEndAllowThreads(__tstate);
2234 if (PyErr_Occurred()) return NULL;
2235 } Py_INCREF(Py_None);
2236 _resultobj = Py_None;
2237 return _resultobj;
2238 }
2239
2240 #define wxBoxSizer_CalcMin(_swigobj) (_swigobj->CalcMin())
2241 static 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 {
2260 PyThreadState* __tstate = wxPyBeginAllowThreads();
2261 _result = new wxSize (wxBoxSizer_CalcMin(_arg0));
2262
2263 wxPyEndAllowThreads(__tstate);
2264 if (PyErr_Occurred()) return NULL;
2265 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2266 _resultobj = Py_BuildValue("s",_ptemp);
2267 return _resultobj;
2268 }
2269
2270 static void *SwigwxStaticBoxSizerTowxBoxSizer(void *ptr) {
2271 wxStaticBoxSizer *src;
2272 wxBoxSizer *dest;
2273 src = (wxStaticBoxSizer *) ptr;
2274 dest = (wxBoxSizer *) src;
2275 return (void *) dest;
2276 }
2277
2278 static void *SwigwxStaticBoxSizerTowxSizer(void *ptr) {
2279 wxStaticBoxSizer *src;
2280 wxSizer *dest;
2281 src = (wxStaticBoxSizer *) ptr;
2282 dest = (wxSizer *) src;
2283 return (void *) dest;
2284 }
2285
2286 static void *SwigwxStaticBoxSizerTowxObject(void *ptr) {
2287 wxStaticBoxSizer *src;
2288 wxObject *dest;
2289 src = (wxStaticBoxSizer *) ptr;
2290 dest = (wxObject *) src;
2291 return (void *) dest;
2292 }
2293
2294 #define new_wxStaticBoxSizer(_swigarg0,_swigarg1) (new wxStaticBoxSizer(_swigarg0,_swigarg1))
2295 static 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 {
2315 PyThreadState* __tstate = wxPyBeginAllowThreads();
2316 _result = (wxStaticBoxSizer *)new_wxStaticBoxSizer(_arg0,_arg1);
2317
2318 wxPyEndAllowThreads(__tstate);
2319 if (PyErr_Occurred()) return NULL;
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())
2331 static 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 };
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 {
2349 PyThreadState* __tstate = wxPyBeginAllowThreads();
2350 _result = (wxStaticBox *)wxStaticBoxSizer_GetStaticBox(_arg0);
2351
2352 wxPyEndAllowThreads(__tstate);
2353 if (PyErr_Occurred()) return NULL;
2354 }{ _resultobj = wxPyMake_wxObject(_result); }
2355 return _resultobj;
2356 }
2357
2358 #define wxStaticBoxSizer_RecalcSizes(_swigobj) (_swigobj->RecalcSizes())
2359 static 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 {
2376 PyThreadState* __tstate = wxPyBeginAllowThreads();
2377 wxStaticBoxSizer_RecalcSizes(_arg0);
2378
2379 wxPyEndAllowThreads(__tstate);
2380 if (PyErr_Occurred()) return NULL;
2381 } Py_INCREF(Py_None);
2382 _resultobj = Py_None;
2383 return _resultobj;
2384 }
2385
2386 #define wxStaticBoxSizer_CalcMin(_swigobj) (_swigobj->CalcMin())
2387 static 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 {
2406 PyThreadState* __tstate = wxPyBeginAllowThreads();
2407 _result = new wxSize (wxStaticBoxSizer_CalcMin(_arg0));
2408
2409 wxPyEndAllowThreads(__tstate);
2410 if (PyErr_Occurred()) return NULL;
2411 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2412 _resultobj = Py_BuildValue("s",_ptemp);
2413 return _resultobj;
2414 }
2415
2416 static void *SwigwxNotebookSizerTowxSizer(void *ptr) {
2417 wxNotebookSizer *src;
2418 wxSizer *dest;
2419 src = (wxNotebookSizer *) ptr;
2420 dest = (wxSizer *) src;
2421 return (void *) dest;
2422 }
2423
2424 static void *SwigwxNotebookSizerTowxObject(void *ptr) {
2425 wxNotebookSizer *src;
2426 wxObject *dest;
2427 src = (wxNotebookSizer *) ptr;
2428 dest = (wxObject *) src;
2429 return (void *) dest;
2430 }
2431
2432 #define new_wxNotebookSizer(_swigarg0) (new wxNotebookSizer(_swigarg0))
2433 static 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 {
2452 PyThreadState* __tstate = wxPyBeginAllowThreads();
2453 _result = (wxNotebookSizer *)new_wxNotebookSizer(_arg0);
2454
2455 wxPyEndAllowThreads(__tstate);
2456 if (PyErr_Occurred()) return NULL;
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())
2468 static 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 {
2485 PyThreadState* __tstate = wxPyBeginAllowThreads();
2486 wxNotebookSizer_RecalcSizes(_arg0);
2487
2488 wxPyEndAllowThreads(__tstate);
2489 if (PyErr_Occurred()) return NULL;
2490 } Py_INCREF(Py_None);
2491 _resultobj = Py_None;
2492 return _resultobj;
2493 }
2494
2495 #define wxNotebookSizer_CalcMin(_swigobj) (_swigobj->CalcMin())
2496 static 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 {
2515 PyThreadState* __tstate = wxPyBeginAllowThreads();
2516 _result = new wxSize (wxNotebookSizer_CalcMin(_arg0));
2517
2518 wxPyEndAllowThreads(__tstate);
2519 if (PyErr_Occurred()) return NULL;
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())
2526 static 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 };
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 {
2544 PyThreadState* __tstate = wxPyBeginAllowThreads();
2545 _result = (wxNotebook *)wxNotebookSizer_GetNotebook(_arg0);
2546
2547 wxPyEndAllowThreads(__tstate);
2548 if (PyErr_Occurred()) return NULL;
2549 }{ _resultobj = wxPyMake_wxObject(_result); }
2550 return _resultobj;
2551 }
2552
2553 static void *SwigwxGridSizerTowxSizer(void *ptr) {
2554 wxGridSizer *src;
2555 wxSizer *dest;
2556 src = (wxGridSizer *) ptr;
2557 dest = (wxSizer *) src;
2558 return (void *) dest;
2559 }
2560
2561 static void *SwigwxGridSizerTowxObject(void *ptr) {
2562 wxGridSizer *src;
2563 wxObject *dest;
2564 src = (wxGridSizer *) ptr;
2565 dest = (wxObject *) src;
2566 return (void *) dest;
2567 }
2568
2569 #define new_wxGridSizer(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxGridSizer(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2570 static 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 {
2584 PyThreadState* __tstate = wxPyBeginAllowThreads();
2585 _result = (wxGridSizer *)new_wxGridSizer(_arg0,_arg1,_arg2,_arg3);
2586
2587 wxPyEndAllowThreads(__tstate);
2588 if (PyErr_Occurred()) return NULL;
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())
2600 static 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 {
2617 PyThreadState* __tstate = wxPyBeginAllowThreads();
2618 wxGridSizer_RecalcSizes(_arg0);
2619
2620 wxPyEndAllowThreads(__tstate);
2621 if (PyErr_Occurred()) return NULL;
2622 } Py_INCREF(Py_None);
2623 _resultobj = Py_None;
2624 return _resultobj;
2625 }
2626
2627 #define wxGridSizer_CalcMin(_swigobj) (_swigobj->CalcMin())
2628 static 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 {
2647 PyThreadState* __tstate = wxPyBeginAllowThreads();
2648 _result = new wxSize (wxGridSizer_CalcMin(_arg0));
2649
2650 wxPyEndAllowThreads(__tstate);
2651 if (PyErr_Occurred()) return NULL;
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))
2658 static 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 {
2676 PyThreadState* __tstate = wxPyBeginAllowThreads();
2677 wxGridSizer_SetCols(_arg0,_arg1);
2678
2679 wxPyEndAllowThreads(__tstate);
2680 if (PyErr_Occurred()) return NULL;
2681 } Py_INCREF(Py_None);
2682 _resultobj = Py_None;
2683 return _resultobj;
2684 }
2685
2686 #define wxGridSizer_SetRows(_swigobj,_swigarg0) (_swigobj->SetRows(_swigarg0))
2687 static 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 {
2705 PyThreadState* __tstate = wxPyBeginAllowThreads();
2706 wxGridSizer_SetRows(_arg0,_arg1);
2707
2708 wxPyEndAllowThreads(__tstate);
2709 if (PyErr_Occurred()) return NULL;
2710 } Py_INCREF(Py_None);
2711 _resultobj = Py_None;
2712 return _resultobj;
2713 }
2714
2715 #define wxGridSizer_SetVGap(_swigobj,_swigarg0) (_swigobj->SetVGap(_swigarg0))
2716 static 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 {
2734 PyThreadState* __tstate = wxPyBeginAllowThreads();
2735 wxGridSizer_SetVGap(_arg0,_arg1);
2736
2737 wxPyEndAllowThreads(__tstate);
2738 if (PyErr_Occurred()) return NULL;
2739 } Py_INCREF(Py_None);
2740 _resultobj = Py_None;
2741 return _resultobj;
2742 }
2743
2744 #define wxGridSizer_SetHGap(_swigobj,_swigarg0) (_swigobj->SetHGap(_swigarg0))
2745 static 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 {
2763 PyThreadState* __tstate = wxPyBeginAllowThreads();
2764 wxGridSizer_SetHGap(_arg0,_arg1);
2765
2766 wxPyEndAllowThreads(__tstate);
2767 if (PyErr_Occurred()) return NULL;
2768 } Py_INCREF(Py_None);
2769 _resultobj = Py_None;
2770 return _resultobj;
2771 }
2772
2773 #define wxGridSizer_GetCols(_swigobj) (_swigobj->GetCols())
2774 static 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 {
2792 PyThreadState* __tstate = wxPyBeginAllowThreads();
2793 _result = (int )wxGridSizer_GetCols(_arg0);
2794
2795 wxPyEndAllowThreads(__tstate);
2796 if (PyErr_Occurred()) return NULL;
2797 } _resultobj = Py_BuildValue("i",_result);
2798 return _resultobj;
2799 }
2800
2801 #define wxGridSizer_GetRows(_swigobj) (_swigobj->GetRows())
2802 static 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 {
2820 PyThreadState* __tstate = wxPyBeginAllowThreads();
2821 _result = (int )wxGridSizer_GetRows(_arg0);
2822
2823 wxPyEndAllowThreads(__tstate);
2824 if (PyErr_Occurred()) return NULL;
2825 } _resultobj = Py_BuildValue("i",_result);
2826 return _resultobj;
2827 }
2828
2829 #define wxGridSizer_GetVGap(_swigobj) (_swigobj->GetVGap())
2830 static 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 {
2848 PyThreadState* __tstate = wxPyBeginAllowThreads();
2849 _result = (int )wxGridSizer_GetVGap(_arg0);
2850
2851 wxPyEndAllowThreads(__tstate);
2852 if (PyErr_Occurred()) return NULL;
2853 } _resultobj = Py_BuildValue("i",_result);
2854 return _resultobj;
2855 }
2856
2857 #define wxGridSizer_GetHGap(_swigobj) (_swigobj->GetHGap())
2858 static 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 {
2876 PyThreadState* __tstate = wxPyBeginAllowThreads();
2877 _result = (int )wxGridSizer_GetHGap(_arg0);
2878
2879 wxPyEndAllowThreads(__tstate);
2880 if (PyErr_Occurred()) return NULL;
2881 } _resultobj = Py_BuildValue("i",_result);
2882 return _resultobj;
2883 }
2884
2885 static void *SwigwxFlexGridSizerTowxGridSizer(void *ptr) {
2886 wxFlexGridSizer *src;
2887 wxGridSizer *dest;
2888 src = (wxFlexGridSizer *) ptr;
2889 dest = (wxGridSizer *) src;
2890 return (void *) dest;
2891 }
2892
2893 static void *SwigwxFlexGridSizerTowxSizer(void *ptr) {
2894 wxFlexGridSizer *src;
2895 wxSizer *dest;
2896 src = (wxFlexGridSizer *) ptr;
2897 dest = (wxSizer *) src;
2898 return (void *) dest;
2899 }
2900
2901 static void *SwigwxFlexGridSizerTowxObject(void *ptr) {
2902 wxFlexGridSizer *src;
2903 wxObject *dest;
2904 src = (wxFlexGridSizer *) ptr;
2905 dest = (wxObject *) src;
2906 return (void *) dest;
2907 }
2908
2909 #define new_wxFlexGridSizer(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFlexGridSizer(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2910 static 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 {
2924 PyThreadState* __tstate = wxPyBeginAllowThreads();
2925 _result = (wxFlexGridSizer *)new_wxFlexGridSizer(_arg0,_arg1,_arg2,_arg3);
2926
2927 wxPyEndAllowThreads(__tstate);
2928 if (PyErr_Occurred()) return NULL;
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())
2940 static 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 {
2957 PyThreadState* __tstate = wxPyBeginAllowThreads();
2958 wxFlexGridSizer_RecalcSizes(_arg0);
2959
2960 wxPyEndAllowThreads(__tstate);
2961 if (PyErr_Occurred()) return NULL;
2962 } Py_INCREF(Py_None);
2963 _resultobj = Py_None;
2964 return _resultobj;
2965 }
2966
2967 #define wxFlexGridSizer_CalcMin(_swigobj) (_swigobj->CalcMin())
2968 static 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 {
2987 PyThreadState* __tstate = wxPyBeginAllowThreads();
2988 _result = new wxSize (wxFlexGridSizer_CalcMin(_arg0));
2989
2990 wxPyEndAllowThreads(__tstate);
2991 if (PyErr_Occurred()) return NULL;
2992 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2993 _resultobj = Py_BuildValue("s",_ptemp);
2994 return _resultobj;
2995 }
2996
2997 #define wxFlexGridSizer_AddGrowableRow(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddGrowableRow(_swigarg0,_swigarg1))
2998 static PyObject *_wrap_wxFlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) {
2999 PyObject * _resultobj;
3000 wxFlexGridSizer * _arg0;
3001 size_t _arg1;
3002 int _arg2 = (int ) 0;
3003 PyObject * _argo0 = 0;
3004 char *_kwnames[] = { "self","idx","proportion", NULL };
3005
3006 self = self;
3007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxFlexGridSizer_AddGrowableRow",_kwnames,&_argo0,&_arg1,&_arg2))
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 {
3017 PyThreadState* __tstate = wxPyBeginAllowThreads();
3018 wxFlexGridSizer_AddGrowableRow(_arg0,_arg1,_arg2);
3019
3020 wxPyEndAllowThreads(__tstate);
3021 if (PyErr_Occurred()) return NULL;
3022 } Py_INCREF(Py_None);
3023 _resultobj = Py_None;
3024 return _resultobj;
3025 }
3026
3027 #define wxFlexGridSizer_RemoveGrowableRow(_swigobj,_swigarg0) (_swigobj->RemoveGrowableRow(_swigarg0))
3028 static 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 {
3046 PyThreadState* __tstate = wxPyBeginAllowThreads();
3047 wxFlexGridSizer_RemoveGrowableRow(_arg0,_arg1);
3048
3049 wxPyEndAllowThreads(__tstate);
3050 if (PyErr_Occurred()) return NULL;
3051 } Py_INCREF(Py_None);
3052 _resultobj = Py_None;
3053 return _resultobj;
3054 }
3055
3056 #define wxFlexGridSizer_AddGrowableCol(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddGrowableCol(_swigarg0,_swigarg1))
3057 static PyObject *_wrap_wxFlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) {
3058 PyObject * _resultobj;
3059 wxFlexGridSizer * _arg0;
3060 size_t _arg1;
3061 int _arg2 = (int ) 0;
3062 PyObject * _argo0 = 0;
3063 char *_kwnames[] = { "self","idx","proportion", NULL };
3064
3065 self = self;
3066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxFlexGridSizer_AddGrowableCol",_kwnames,&_argo0,&_arg1,&_arg2))
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 {
3076 PyThreadState* __tstate = wxPyBeginAllowThreads();
3077 wxFlexGridSizer_AddGrowableCol(_arg0,_arg1,_arg2);
3078
3079 wxPyEndAllowThreads(__tstate);
3080 if (PyErr_Occurred()) return NULL;
3081 } Py_INCREF(Py_None);
3082 _resultobj = Py_None;
3083 return _resultobj;
3084 }
3085
3086 #define wxFlexGridSizer_RemoveGrowableCol(_swigobj,_swigarg0) (_swigobj->RemoveGrowableCol(_swigarg0))
3087 static 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 {
3105 PyThreadState* __tstate = wxPyBeginAllowThreads();
3106 wxFlexGridSizer_RemoveGrowableCol(_arg0,_arg1);
3107
3108 wxPyEndAllowThreads(__tstate);
3109 if (PyErr_Occurred()) return NULL;
3110 } Py_INCREF(Py_None);
3111 _resultobj = Py_None;
3112 return _resultobj;
3113 }
3114
3115 #define wxFlexGridSizer_SetFlexibleDirection(_swigobj,_swigarg0) (_swigobj->SetFlexibleDirection(_swigarg0))
3116 static 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())
3145 static 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))
3173 static 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())
3202 static 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
3229 static PyMethodDef sizerscMethods[] = {
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 },
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 },
3258 { "wxStaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_wxStaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS },
3259 { "new_wxStaticBoxSizer", (PyCFunction) _wrap_new_wxStaticBoxSizer, METH_VARARGS | METH_KEYWORDS },
3260 { "wxBoxSizer_CalcMin", (PyCFunction) _wrap_wxBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
3261 { "wxBoxSizer_RecalcSizes", (PyCFunction) _wrap_wxBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
3262 { "wxBoxSizer_SetOrientation", (PyCFunction) _wrap_wxBoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS },
3263 { "wxBoxSizer_GetOrientation", (PyCFunction) _wrap_wxBoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS },
3264 { "new_wxBoxSizer", (PyCFunction) _wrap_new_wxBoxSizer, METH_VARARGS | METH_KEYWORDS },
3265 { "wxPySizer__setCallbackInfo", (PyCFunction) _wrap_wxPySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
3266 { "new_wxPySizer", (PyCFunction) _wrap_new_wxPySizer, METH_VARARGS | METH_KEYWORDS },
3267 { "wxSizer_ShowItems", (PyCFunction) _wrap_wxSizer_ShowItems, METH_VARARGS | METH_KEYWORDS },
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 },
3271 { "wxSizer_GetChildren", (PyCFunction) _wrap_wxSizer_GetChildren, METH_VARARGS | METH_KEYWORDS },
3272 { "wxSizer_DeleteWindows", (PyCFunction) _wrap_wxSizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS },
3273 { "wxSizer_Clear", (PyCFunction) _wrap_wxSizer_Clear, METH_VARARGS | METH_KEYWORDS },
3274 { "wxSizer_SetVirtualSizeHints", (PyCFunction) _wrap_wxSizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS },
3275 { "wxSizer_SetSizeHints", (PyCFunction) _wrap_wxSizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
3276 { "wxSizer_FitInside", (PyCFunction) _wrap_wxSizer_FitInside, METH_VARARGS | METH_KEYWORDS },
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 },
3282 { "wxSizer_SetMinSize", (PyCFunction) _wrap_wxSizer_SetMinSize, METH_VARARGS | METH_KEYWORDS },
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 },
3289 { "wxSizer_Destroy", (PyCFunction) _wrap_wxSizer_Destroy, METH_VARARGS | METH_KEYWORDS },
3290 { "wxSizer__setOORInfo", (PyCFunction) _wrap_wxSizer__setOORInfo, METH_VARARGS | METH_KEYWORDS },
3291 { "wxSizerItem_GetUserData", (PyCFunction) _wrap_wxSizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS },
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 },
3297 { "wxSizerItem_SetSizer", (PyCFunction) _wrap_wxSizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS },
3298 { "wxSizerItem_GetSizer", (PyCFunction) _wrap_wxSizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS },
3299 { "wxSizerItem_SetWindow", (PyCFunction) _wrap_wxSizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS },
3300 { "wxSizerItem_GetWindow", (PyCFunction) _wrap_wxSizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS },
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 },
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 },
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 },
3314 { "wxSizerItem_SetInitSize", (PyCFunction) _wrap_wxSizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS },
3315 { "wxSizerItem_GetMinSize", (PyCFunction) _wrap_wxSizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS },
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 },
3319 { "wxSizerItem_DetachSizer", (PyCFunction) _wrap_wxSizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS },
3320 { "wxSizerItem_DeleteWindows", (PyCFunction) _wrap_wxSizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS },
3321 { NULL, NULL }
3322 };
3323 #ifdef __cplusplus
3324 }
3325 #endif
3326 /*
3327 * This table is used by the pointer type-checker
3328 */
3329 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
3330 { "_signed_long","_long",0},
3331 { "_wxPrintQuality","_wxCoord",0},
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},
3339 { "_wxPrintQuality","_time_t",0},
3340 { "_byte","_unsigned_char",0},
3341 { "_long","_unsigned_long",0},
3342 { "_long","_signed_long",0},
3343 { "_wxGridSizer","_wxFlexGridSizer",SwigwxFlexGridSizerTowxGridSizer},
3344 { "_size_t","_wxCoord",0},
3345 { "_size_t","_wxPrintQuality",0},
3346 { "_size_t","_time_t",0},
3347 { "_size_t","_unsigned_int",0},
3348 { "_size_t","_int",0},
3349 { "_size_t","_wxWindowID",0},
3350 { "_size_t","_uint",0},
3351 { "_uint","_wxCoord",0},
3352 { "_uint","_wxPrintQuality",0},
3353 { "_uint","_time_t",0},
3354 { "_uint","_size_t",0},
3355 { "_uint","_unsigned_int",0},
3356 { "_uint","_int",0},
3357 { "_uint","_wxWindowID",0},
3358 { "_wxChar","_char",0},
3359 { "_wxBoxSizer","_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxBoxSizer},
3360 { "_char","_wxChar",0},
3361 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3362 { "_EBool","_wxCoord",0},
3363 { "_EBool","_wxPrintQuality",0},
3364 { "_EBool","_signed_int",0},
3365 { "_EBool","_int",0},
3366 { "_EBool","_wxWindowID",0},
3367 { "_unsigned_long","_long",0},
3368 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3369 { "_signed_int","_wxCoord",0},
3370 { "_signed_int","_wxPrintQuality",0},
3371 { "_signed_int","_EBool",0},
3372 { "_signed_int","_wxWindowID",0},
3373 { "_signed_int","_int",0},
3374 { "_WXTYPE","_short",0},
3375 { "_WXTYPE","_signed_short",0},
3376 { "_WXTYPE","_unsigned_short",0},
3377 { "_unsigned_short","_WXTYPE",0},
3378 { "_unsigned_short","_short",0},
3379 { "_wxObject","_wxFlexGridSizer",SwigwxFlexGridSizerTowxObject},
3380 { "_wxObject","_wxGridSizer",SwigwxGridSizerTowxObject},
3381 { "_wxObject","_wxNotebookSizer",SwigwxNotebookSizerTowxObject},
3382 { "_wxObject","_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxObject},
3383 { "_wxObject","_wxBoxSizer",SwigwxBoxSizerTowxObject},
3384 { "_wxObject","_wxPySizer",SwigwxPySizerTowxObject},
3385 { "_wxObject","_wxSizer",SwigwxSizerTowxObject},
3386 { "_wxObject","_wxSizerItem",SwigwxSizerItemTowxObject},
3387 { "_signed_short","_WXTYPE",0},
3388 { "_signed_short","_short",0},
3389 { "_unsigned_char","_byte",0},
3390 { "_unsigned_int","_wxCoord",0},
3391 { "_unsigned_int","_wxPrintQuality",0},
3392 { "_unsigned_int","_time_t",0},
3393 { "_unsigned_int","_size_t",0},
3394 { "_unsigned_int","_uint",0},
3395 { "_unsigned_int","_wxWindowID",0},
3396 { "_unsigned_int","_int",0},
3397 { "_short","_WXTYPE",0},
3398 { "_short","_unsigned_short",0},
3399 { "_short","_signed_short",0},
3400 { "_wxWindowID","_wxCoord",0},
3401 { "_wxWindowID","_wxPrintQuality",0},
3402 { "_wxWindowID","_time_t",0},
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},
3409 { "_int","_wxCoord",0},
3410 { "_int","_wxPrintQuality",0},
3411 { "_int","_time_t",0},
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},
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},
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},
3432 { "_wxCoord","_time_t",0},
3433 { "_wxCoord","_wxPrintQuality",0},
3434 { "_wxSizer","_wxFlexGridSizer",SwigwxFlexGridSizerTowxSizer},
3435 { "_wxSizer","_wxGridSizer",SwigwxGridSizerTowxSizer},
3436 { "_wxSizer","_wxNotebookSizer",SwigwxNotebookSizerTowxSizer},
3437 { "_wxSizer","_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxSizer},
3438 { "_wxSizer","_wxBoxSizer",SwigwxBoxSizerTowxSizer},
3439 { "_wxSizer","_wxPySizer",SwigwxPySizerTowxSizer},
3440 {0,0,0}};
3441
3442 static PyObject *SWIG_globals;
3443 #ifdef __cplusplus
3444 extern "C"
3445 #endif
3446 SWIGEXPORT(void) initsizersc() {
3447 PyObject *m, *d;
3448 SWIG_globals = SWIG_newvarlink();
3449 m = Py_InitModule("sizersc", sizerscMethods);
3450 d = PyModule_GetDict(m);
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));
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 }