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