]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/sizers.cpp
more updates
[wxWidgets.git] / utils / wxPython / src / gtk / sizers.cpp
1 /*
2 * FILE : gtk/sizers.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 810)
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 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 #include "Python.h"
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
47 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
48 extern PyObject *SWIG_newvarlink(void);
49 #ifdef __cplusplus
50 }
51 #endif
52 #define SWIG_init initsizersc
53
54 #define SWIG_name "sizersc"
55
56 #include "helpers.h"
57
58 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
59 PyObject* o2;
60 PyObject* o3;
61 if (!target) {
62 target = o;
63 } else if (target == Py_None) {
64 Py_DECREF(Py_None);
65 target = o;
66 } else {
67 if (!PyList_Check(target)) {
68 o2 = target;
69 target = PyList_New(0);
70 PyList_Append(target, o2);
71 Py_XDECREF(o2);
72 }
73 PyList_Append(target,o);
74 Py_XDECREF(o);
75 }
76 return target;
77 }
78
79 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
80 PyObject* o2;
81 PyObject* o3;
82
83 if (!target) {
84 target = o;
85 } else if (target == Py_None) {
86 Py_DECREF(Py_None);
87 target = o;
88 } else {
89 if (!PyTuple_Check(target)) {
90 o2 = target;
91 target = PyTuple_New(1);
92 PyTuple_SetItem(target, 0, o2);
93 }
94 o3 = PyTuple_New(1);
95 PyTuple_SetItem(o3, 0, o);
96
97 o2 = target;
98 target = PySequence_Concat(o2, o3);
99 Py_DECREF(o2);
100 Py_DECREF(o3);
101 }
102 return target;
103 }
104
105 static char* wxStringErrorMsg = "string type is required for parameter";
106
107 class wxPySizer : public wxSizer {
108 DECLARE_DYNAMIC_CLASS(wxPySizer);
109 public:
110 wxPySizer() : wxSizer() {};
111
112 DEC_PYCALLBACK___pure(RecalcSizes);
113 DEC_PYCALLBACK_wxSize__pure(CalcMin);
114 PYPRIVATE;
115 };
116
117
118 IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes);
119 IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin);
120
121 IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer);
122 #ifdef __cplusplus
123 extern "C" {
124 #endif
125 #define wxSizerItem_GetSize(_swigobj) (_swigobj->GetSize())
126 static PyObject *_wrap_wxSizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
127 PyObject * _resultobj;
128 wxSize * _result;
129 wxSizerItem * _arg0;
130 PyObject * _argo0 = 0;
131 char *_kwnames[] = { "self", NULL };
132 char _ptemp[128];
133
134 self = self;
135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetSize",_kwnames,&_argo0))
136 return NULL;
137 if (_argo0) {
138 if (_argo0 == Py_None) { _arg0 = NULL; }
139 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
140 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetSize. Expected _wxSizerItem_p.");
141 return NULL;
142 }
143 }
144 {
145 wxPy_BEGIN_ALLOW_THREADS;
146 _result = new wxSize (wxSizerItem_GetSize(_arg0));
147
148 wxPy_END_ALLOW_THREADS;
149 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
150 _resultobj = Py_BuildValue("s",_ptemp);
151 return _resultobj;
152 }
153
154 #define wxSizerItem_CalcMin(_swigobj) (_swigobj->CalcMin())
155 static PyObject *_wrap_wxSizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
156 PyObject * _resultobj;
157 wxSize * _result;
158 wxSizerItem * _arg0;
159 PyObject * _argo0 = 0;
160 char *_kwnames[] = { "self", NULL };
161 char _ptemp[128];
162
163 self = self;
164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_CalcMin",_kwnames,&_argo0))
165 return NULL;
166 if (_argo0) {
167 if (_argo0 == Py_None) { _arg0 = NULL; }
168 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
169 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_CalcMin. Expected _wxSizerItem_p.");
170 return NULL;
171 }
172 }
173 {
174 wxPy_BEGIN_ALLOW_THREADS;
175 _result = new wxSize (wxSizerItem_CalcMin(_arg0));
176
177 wxPy_END_ALLOW_THREADS;
178 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
179 _resultobj = Py_BuildValue("s",_ptemp);
180 return _resultobj;
181 }
182
183 #define wxSizerItem_SetDimension(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDimension(_swigarg0,_swigarg1))
184 static PyObject *_wrap_wxSizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) {
185 PyObject * _resultobj;
186 wxSizerItem * _arg0;
187 wxPoint * _arg1;
188 wxSize * _arg2;
189 PyObject * _argo0 = 0;
190 wxPoint temp;
191 PyObject * _obj1 = 0;
192 wxSize temp0;
193 PyObject * _obj2 = 0;
194 char *_kwnames[] = { "self","pos","size", NULL };
195
196 self = self;
197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxSizerItem_SetDimension",_kwnames,&_argo0,&_obj1,&_obj2))
198 return NULL;
199 if (_argo0) {
200 if (_argo0 == Py_None) { _arg0 = NULL; }
201 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
202 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetDimension. Expected _wxSizerItem_p.");
203 return NULL;
204 }
205 }
206 {
207 _arg1 = &temp;
208 if (! wxPoint_helper(_obj1, &_arg1))
209 return NULL;
210 }
211 {
212 _arg2 = &temp0;
213 if (! wxSize_helper(_obj2, &_arg2))
214 return NULL;
215 }
216 {
217 wxPy_BEGIN_ALLOW_THREADS;
218 wxSizerItem_SetDimension(_arg0,*_arg1,*_arg2);
219
220 wxPy_END_ALLOW_THREADS;
221 } Py_INCREF(Py_None);
222 _resultobj = Py_None;
223 return _resultobj;
224 }
225
226 #define wxSizerItem_IsWindow(_swigobj) (_swigobj->IsWindow())
227 static PyObject *_wrap_wxSizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
228 PyObject * _resultobj;
229 bool _result;
230 wxSizerItem * _arg0;
231 PyObject * _argo0 = 0;
232 char *_kwnames[] = { "self", NULL };
233
234 self = self;
235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_IsWindow",_kwnames,&_argo0))
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_IsWindow. Expected _wxSizerItem_p.");
241 return NULL;
242 }
243 }
244 {
245 wxPy_BEGIN_ALLOW_THREADS;
246 _result = (bool )wxSizerItem_IsWindow(_arg0);
247
248 wxPy_END_ALLOW_THREADS;
249 } _resultobj = Py_BuildValue("i",_result);
250 return _resultobj;
251 }
252
253 #define wxSizerItem_IsSizer(_swigobj) (_swigobj->IsSizer())
254 static PyObject *_wrap_wxSizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
255 PyObject * _resultobj;
256 bool _result;
257 wxSizerItem * _arg0;
258 PyObject * _argo0 = 0;
259 char *_kwnames[] = { "self", NULL };
260
261 self = self;
262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_IsSizer",_kwnames,&_argo0))
263 return NULL;
264 if (_argo0) {
265 if (_argo0 == Py_None) { _arg0 = NULL; }
266 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
267 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_IsSizer. Expected _wxSizerItem_p.");
268 return NULL;
269 }
270 }
271 {
272 wxPy_BEGIN_ALLOW_THREADS;
273 _result = (bool )wxSizerItem_IsSizer(_arg0);
274
275 wxPy_END_ALLOW_THREADS;
276 } _resultobj = Py_BuildValue("i",_result);
277 return _resultobj;
278 }
279
280 #define wxSizerItem_IsSpacer(_swigobj) (_swigobj->IsSpacer())
281 static PyObject *_wrap_wxSizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
282 PyObject * _resultobj;
283 bool _result;
284 wxSizerItem * _arg0;
285 PyObject * _argo0 = 0;
286 char *_kwnames[] = { "self", NULL };
287
288 self = self;
289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_IsSpacer",_kwnames,&_argo0))
290 return NULL;
291 if (_argo0) {
292 if (_argo0 == Py_None) { _arg0 = NULL; }
293 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
294 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_IsSpacer. Expected _wxSizerItem_p.");
295 return NULL;
296 }
297 }
298 {
299 wxPy_BEGIN_ALLOW_THREADS;
300 _result = (bool )wxSizerItem_IsSpacer(_arg0);
301
302 wxPy_END_ALLOW_THREADS;
303 } _resultobj = Py_BuildValue("i",_result);
304 return _resultobj;
305 }
306
307 #define wxSizerItem_GetWindow(_swigobj) (_swigobj->GetWindow())
308 static PyObject *_wrap_wxSizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
309 PyObject * _resultobj;
310 wxWindow * _result;
311 wxSizerItem * _arg0;
312 PyObject * _argo0 = 0;
313 char *_kwnames[] = { "self", NULL };
314 char _ptemp[128];
315
316 self = self;
317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetWindow",_kwnames,&_argo0))
318 return NULL;
319 if (_argo0) {
320 if (_argo0 == Py_None) { _arg0 = NULL; }
321 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
322 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetWindow. Expected _wxSizerItem_p.");
323 return NULL;
324 }
325 }
326 {
327 wxPy_BEGIN_ALLOW_THREADS;
328 _result = (wxWindow *)wxSizerItem_GetWindow(_arg0);
329
330 wxPy_END_ALLOW_THREADS;
331 } if (_result) {
332 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
333 _resultobj = Py_BuildValue("s",_ptemp);
334 } else {
335 Py_INCREF(Py_None);
336 _resultobj = Py_None;
337 }
338 return _resultobj;
339 }
340
341 #define wxSizerItem_GetSizer(_swigobj) (_swigobj->GetSizer())
342 static PyObject *_wrap_wxSizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
343 PyObject * _resultobj;
344 wxSizer * _result;
345 wxSizerItem * _arg0;
346 PyObject * _argo0 = 0;
347 char *_kwnames[] = { "self", NULL };
348 char _ptemp[128];
349
350 self = self;
351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetSizer",_kwnames,&_argo0))
352 return NULL;
353 if (_argo0) {
354 if (_argo0 == Py_None) { _arg0 = NULL; }
355 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
356 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetSizer. Expected _wxSizerItem_p.");
357 return NULL;
358 }
359 }
360 {
361 wxPy_BEGIN_ALLOW_THREADS;
362 _result = (wxSizer *)wxSizerItem_GetSizer(_arg0);
363
364 wxPy_END_ALLOW_THREADS;
365 } if (_result) {
366 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSizer_p");
367 _resultobj = Py_BuildValue("s",_ptemp);
368 } else {
369 Py_INCREF(Py_None);
370 _resultobj = Py_None;
371 }
372 return _resultobj;
373 }
374
375 #define wxSizerItem_GetOption(_swigobj) (_swigobj->GetOption())
376 static PyObject *_wrap_wxSizerItem_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
377 PyObject * _resultobj;
378 int _result;
379 wxSizerItem * _arg0;
380 PyObject * _argo0 = 0;
381 char *_kwnames[] = { "self", NULL };
382
383 self = self;
384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetOption",_kwnames,&_argo0))
385 return NULL;
386 if (_argo0) {
387 if (_argo0 == Py_None) { _arg0 = NULL; }
388 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
389 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetOption. Expected _wxSizerItem_p.");
390 return NULL;
391 }
392 }
393 {
394 wxPy_BEGIN_ALLOW_THREADS;
395 _result = (int )wxSizerItem_GetOption(_arg0);
396
397 wxPy_END_ALLOW_THREADS;
398 } _resultobj = Py_BuildValue("i",_result);
399 return _resultobj;
400 }
401
402 #define wxSizerItem_GetFlag(_swigobj) (_swigobj->GetFlag())
403 static PyObject *_wrap_wxSizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
404 PyObject * _resultobj;
405 int _result;
406 wxSizerItem * _arg0;
407 PyObject * _argo0 = 0;
408 char *_kwnames[] = { "self", NULL };
409
410 self = self;
411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetFlag",_kwnames,&_argo0))
412 return NULL;
413 if (_argo0) {
414 if (_argo0 == Py_None) { _arg0 = NULL; }
415 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
416 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetFlag. Expected _wxSizerItem_p.");
417 return NULL;
418 }
419 }
420 {
421 wxPy_BEGIN_ALLOW_THREADS;
422 _result = (int )wxSizerItem_GetFlag(_arg0);
423
424 wxPy_END_ALLOW_THREADS;
425 } _resultobj = Py_BuildValue("i",_result);
426 return _resultobj;
427 }
428
429 #define wxSizerItem_GetBorder(_swigobj) (_swigobj->GetBorder())
430 static PyObject *_wrap_wxSizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
431 PyObject * _resultobj;
432 int _result;
433 wxSizerItem * _arg0;
434 PyObject * _argo0 = 0;
435 char *_kwnames[] = { "self", NULL };
436
437 self = self;
438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetBorder",_kwnames,&_argo0))
439 return NULL;
440 if (_argo0) {
441 if (_argo0 == Py_None) { _arg0 = NULL; }
442 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
443 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetBorder. Expected _wxSizerItem_p.");
444 return NULL;
445 }
446 }
447 {
448 wxPy_BEGIN_ALLOW_THREADS;
449 _result = (int )wxSizerItem_GetBorder(_arg0);
450
451 wxPy_END_ALLOW_THREADS;
452 } _resultobj = Py_BuildValue("i",_result);
453 return _resultobj;
454 }
455
456 #define wxSizerItem_SetInitSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetInitSize(_swigarg0,_swigarg1))
457 static PyObject *_wrap_wxSizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) {
458 PyObject * _resultobj;
459 wxSizerItem * _arg0;
460 int _arg1;
461 int _arg2;
462 PyObject * _argo0 = 0;
463 char *_kwnames[] = { "self","x","y", NULL };
464
465 self = self;
466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSizerItem_SetInitSize",_kwnames,&_argo0,&_arg1,&_arg2))
467 return NULL;
468 if (_argo0) {
469 if (_argo0 == Py_None) { _arg0 = NULL; }
470 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
471 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetInitSize. Expected _wxSizerItem_p.");
472 return NULL;
473 }
474 }
475 {
476 wxPy_BEGIN_ALLOW_THREADS;
477 wxSizerItem_SetInitSize(_arg0,_arg1,_arg2);
478
479 wxPy_END_ALLOW_THREADS;
480 } Py_INCREF(Py_None);
481 _resultobj = Py_None;
482 return _resultobj;
483 }
484
485 #define wxSizerItem_SetOption(_swigobj,_swigarg0) (_swigobj->SetOption(_swigarg0))
486 static PyObject *_wrap_wxSizerItem_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
487 PyObject * _resultobj;
488 wxSizerItem * _arg0;
489 int _arg1;
490 PyObject * _argo0 = 0;
491 char *_kwnames[] = { "self","option", NULL };
492
493 self = self;
494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSizerItem_SetOption",_kwnames,&_argo0,&_arg1))
495 return NULL;
496 if (_argo0) {
497 if (_argo0 == Py_None) { _arg0 = NULL; }
498 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
499 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetOption. Expected _wxSizerItem_p.");
500 return NULL;
501 }
502 }
503 {
504 wxPy_BEGIN_ALLOW_THREADS;
505 wxSizerItem_SetOption(_arg0,_arg1);
506
507 wxPy_END_ALLOW_THREADS;
508 } Py_INCREF(Py_None);
509 _resultobj = Py_None;
510 return _resultobj;
511 }
512
513 #define wxSizerItem_SetFlag(_swigobj,_swigarg0) (_swigobj->SetFlag(_swigarg0))
514 static PyObject *_wrap_wxSizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
515 PyObject * _resultobj;
516 wxSizerItem * _arg0;
517 int _arg1;
518 PyObject * _argo0 = 0;
519 char *_kwnames[] = { "self","flag", NULL };
520
521 self = self;
522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSizerItem_SetFlag",_kwnames,&_argo0,&_arg1))
523 return NULL;
524 if (_argo0) {
525 if (_argo0 == Py_None) { _arg0 = NULL; }
526 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
527 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetFlag. Expected _wxSizerItem_p.");
528 return NULL;
529 }
530 }
531 {
532 wxPy_BEGIN_ALLOW_THREADS;
533 wxSizerItem_SetFlag(_arg0,_arg1);
534
535 wxPy_END_ALLOW_THREADS;
536 } Py_INCREF(Py_None);
537 _resultobj = Py_None;
538 return _resultobj;
539 }
540
541 #define wxSizerItem_SetBorder(_swigobj,_swigarg0) (_swigobj->SetBorder(_swigarg0))
542 static PyObject *_wrap_wxSizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
543 PyObject * _resultobj;
544 wxSizerItem * _arg0;
545 int _arg1;
546 PyObject * _argo0 = 0;
547 char *_kwnames[] = { "self","border", NULL };
548
549 self = self;
550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSizerItem_SetBorder",_kwnames,&_argo0,&_arg1))
551 return NULL;
552 if (_argo0) {
553 if (_argo0 == Py_None) { _arg0 = NULL; }
554 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
555 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_SetBorder. Expected _wxSizerItem_p.");
556 return NULL;
557 }
558 }
559 {
560 wxPy_BEGIN_ALLOW_THREADS;
561 wxSizerItem_SetBorder(_arg0,_arg1);
562
563 wxPy_END_ALLOW_THREADS;
564 } Py_INCREF(Py_None);
565 _resultobj = Py_None;
566 return _resultobj;
567 }
568
569 static PyObject * wxSizerItem_GetUserData(wxSizerItem *self) {
570 wxPyUserData* data = (wxPyUserData*)self->GetUserData();
571 if (data) {
572 Py_INCREF(data->m_obj);
573 return data->m_obj;
574 } else {
575 Py_INCREF(Py_None);
576 return Py_None;
577 }
578 }
579 static PyObject *_wrap_wxSizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) {
580 PyObject * _resultobj;
581 PyObject * _result;
582 wxSizerItem * _arg0;
583 PyObject * _argo0 = 0;
584 char *_kwnames[] = { "self", NULL };
585
586 self = self;
587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetUserData",_kwnames,&_argo0))
588 return NULL;
589 if (_argo0) {
590 if (_argo0 == Py_None) { _arg0 = NULL; }
591 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizerItem_p")) {
592 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizerItem_GetUserData. Expected _wxSizerItem_p.");
593 return NULL;
594 }
595 }
596 {
597 wxPy_BEGIN_ALLOW_THREADS;
598 _result = (PyObject *)wxSizerItem_GetUserData(_arg0);
599
600 wxPy_END_ALLOW_THREADS;
601 }{
602 _resultobj = _result;
603 }
604 return _resultobj;
605 }
606
607 static void wxSizer_Destroy(wxSizer *self) { delete self; }
608 static PyObject *_wrap_wxSizer_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
609 PyObject * _resultobj;
610 wxSizer * _arg0;
611 PyObject * _argo0 = 0;
612 char *_kwnames[] = { "self", NULL };
613
614 self = self;
615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizer_Destroy",_kwnames,&_argo0))
616 return NULL;
617 if (_argo0) {
618 if (_argo0 == Py_None) { _arg0 = NULL; }
619 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
620 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_Destroy. Expected _wxSizer_p.");
621 return NULL;
622 }
623 }
624 {
625 wxPy_BEGIN_ALLOW_THREADS;
626 wxSizer_Destroy(_arg0);
627
628 wxPy_END_ALLOW_THREADS;
629 } Py_INCREF(Py_None);
630 _resultobj = Py_None;
631 return _resultobj;
632 }
633
634 static void wxSizer_AddWindow(wxSizer *self,wxWindow * window,int option,int flag,int border,PyObject * userData) {
635 wxPyUserData* data = NULL;
636 if (userData) data = new wxPyUserData(userData);
637 self->Add(window, option, flag, border, data);
638 }
639 static PyObject *_wrap_wxSizer_AddWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
640 PyObject * _resultobj;
641 wxSizer * _arg0;
642 wxWindow * _arg1;
643 int _arg2 = (int ) 0;
644 int _arg3 = (int ) 0;
645 int _arg4 = (int ) 0;
646 PyObject * _arg5 = (PyObject *) NULL;
647 PyObject * _argo0 = 0;
648 PyObject * _argo1 = 0;
649 PyObject * _obj5 = 0;
650 char *_kwnames[] = { "self","window","option","flag","border","userData", NULL };
651
652 self = self;
653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiiO:wxSizer_AddWindow",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_obj5))
654 return NULL;
655 if (_argo0) {
656 if (_argo0 == Py_None) { _arg0 = NULL; }
657 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
658 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_AddWindow. Expected _wxSizer_p.");
659 return NULL;
660 }
661 }
662 if (_argo1) {
663 if (_argo1 == Py_None) { _arg1 = NULL; }
664 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
665 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSizer_AddWindow. Expected _wxWindow_p.");
666 return NULL;
667 }
668 }
669 if (_obj5)
670 {
671 _arg5 = _obj5;
672 }
673 {
674 wxPy_BEGIN_ALLOW_THREADS;
675 wxSizer_AddWindow(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
676
677 wxPy_END_ALLOW_THREADS;
678 } Py_INCREF(Py_None);
679 _resultobj = Py_None;
680 return _resultobj;
681 }
682
683 static void wxSizer_AddSizer(wxSizer *self,wxSizer * sizer,int option,int flag,int border,PyObject * userData) {
684 wxPyUserData* data = NULL;
685 if (userData) data = new wxPyUserData(userData);
686 self->Add(sizer, option, flag, border, data);
687 }
688 static PyObject *_wrap_wxSizer_AddSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
689 PyObject * _resultobj;
690 wxSizer * _arg0;
691 wxSizer * _arg1;
692 int _arg2 = (int ) 0;
693 int _arg3 = (int ) 0;
694 int _arg4 = (int ) 0;
695 PyObject * _arg5 = (PyObject *) NULL;
696 PyObject * _argo0 = 0;
697 PyObject * _argo1 = 0;
698 PyObject * _obj5 = 0;
699 char *_kwnames[] = { "self","sizer","option","flag","border","userData", NULL };
700
701 self = self;
702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiiO:wxSizer_AddSizer",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_obj5))
703 return NULL;
704 if (_argo0) {
705 if (_argo0 == Py_None) { _arg0 = NULL; }
706 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
707 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_AddSizer. Expected _wxSizer_p.");
708 return NULL;
709 }
710 }
711 if (_argo1) {
712 if (_argo1 == Py_None) { _arg1 = NULL; }
713 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) {
714 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSizer_AddSizer. Expected _wxSizer_p.");
715 return NULL;
716 }
717 }
718 if (_obj5)
719 {
720 _arg5 = _obj5;
721 }
722 {
723 wxPy_BEGIN_ALLOW_THREADS;
724 wxSizer_AddSizer(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
725
726 wxPy_END_ALLOW_THREADS;
727 } Py_INCREF(Py_None);
728 _resultobj = Py_None;
729 return _resultobj;
730 }
731
732 static void wxSizer_AddSpacer(wxSizer *self,int width,int height,int option,int flag,int border,PyObject * userData) {
733 wxPyUserData* data = NULL;
734 if (userData) data = new wxPyUserData(userData);
735 self->Add(width, height, option, flag, border, data);
736 }
737 static PyObject *_wrap_wxSizer_AddSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
738 PyObject * _resultobj;
739 wxSizer * _arg0;
740 int _arg1;
741 int _arg2;
742 int _arg3 = (int ) 0;
743 int _arg4 = (int ) 0;
744 int _arg5 = (int ) 0;
745 PyObject * _arg6 = (PyObject *) NULL;
746 PyObject * _argo0 = 0;
747 PyObject * _obj6 = 0;
748 char *_kwnames[] = { "self","width","height","option","flag","border","userData", NULL };
749
750 self = self;
751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|iiiO:wxSizer_AddSpacer",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6))
752 return NULL;
753 if (_argo0) {
754 if (_argo0 == Py_None) { _arg0 = NULL; }
755 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
756 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_AddSpacer. Expected _wxSizer_p.");
757 return NULL;
758 }
759 }
760 if (_obj6)
761 {
762 _arg6 = _obj6;
763 }
764 {
765 wxPy_BEGIN_ALLOW_THREADS;
766 wxSizer_AddSpacer(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
767
768 wxPy_END_ALLOW_THREADS;
769 } Py_INCREF(Py_None);
770 _resultobj = Py_None;
771 return _resultobj;
772 }
773
774 static void wxSizer_PrependWindow(wxSizer *self,wxWindow * window,int option,int flag,int border,PyObject * userData) {
775 wxPyUserData* data = NULL;
776 if (userData) data = new wxPyUserData(userData);
777 self->Prepend(window, option, flag, border, data);
778 }
779 static PyObject *_wrap_wxSizer_PrependWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
780 PyObject * _resultobj;
781 wxSizer * _arg0;
782 wxWindow * _arg1;
783 int _arg2 = (int ) 0;
784 int _arg3 = (int ) 0;
785 int _arg4 = (int ) 0;
786 PyObject * _arg5 = (PyObject *) NULL;
787 PyObject * _argo0 = 0;
788 PyObject * _argo1 = 0;
789 PyObject * _obj5 = 0;
790 char *_kwnames[] = { "self","window","option","flag","border","userData", NULL };
791
792 self = self;
793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiiO:wxSizer_PrependWindow",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_obj5))
794 return NULL;
795 if (_argo0) {
796 if (_argo0 == Py_None) { _arg0 = NULL; }
797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_PrependWindow. Expected _wxSizer_p.");
799 return NULL;
800 }
801 }
802 if (_argo1) {
803 if (_argo1 == Py_None) { _arg1 = NULL; }
804 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
805 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSizer_PrependWindow. Expected _wxWindow_p.");
806 return NULL;
807 }
808 }
809 if (_obj5)
810 {
811 _arg5 = _obj5;
812 }
813 {
814 wxPy_BEGIN_ALLOW_THREADS;
815 wxSizer_PrependWindow(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
816
817 wxPy_END_ALLOW_THREADS;
818 } Py_INCREF(Py_None);
819 _resultobj = Py_None;
820 return _resultobj;
821 }
822
823 static void wxSizer_PrependSizer(wxSizer *self,wxSizer * sizer,int option,int flag,int border,PyObject * userData) {
824 wxPyUserData* data = NULL;
825 if (userData) data = new wxPyUserData(userData);
826 self->Prepend(sizer, option, flag, border, data);
827 }
828 static PyObject *_wrap_wxSizer_PrependSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
829 PyObject * _resultobj;
830 wxSizer * _arg0;
831 wxSizer * _arg1;
832 int _arg2 = (int ) 0;
833 int _arg3 = (int ) 0;
834 int _arg4 = (int ) 0;
835 PyObject * _arg5 = (PyObject *) NULL;
836 PyObject * _argo0 = 0;
837 PyObject * _argo1 = 0;
838 PyObject * _obj5 = 0;
839 char *_kwnames[] = { "self","sizer","option","flag","border","userData", NULL };
840
841 self = self;
842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiiO:wxSizer_PrependSizer",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_obj5))
843 return NULL;
844 if (_argo0) {
845 if (_argo0 == Py_None) { _arg0 = NULL; }
846 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
847 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_PrependSizer. Expected _wxSizer_p.");
848 return NULL;
849 }
850 }
851 if (_argo1) {
852 if (_argo1 == Py_None) { _arg1 = NULL; }
853 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) {
854 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSizer_PrependSizer. Expected _wxSizer_p.");
855 return NULL;
856 }
857 }
858 if (_obj5)
859 {
860 _arg5 = _obj5;
861 }
862 {
863 wxPy_BEGIN_ALLOW_THREADS;
864 wxSizer_PrependSizer(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
865
866 wxPy_END_ALLOW_THREADS;
867 } Py_INCREF(Py_None);
868 _resultobj = Py_None;
869 return _resultobj;
870 }
871
872 static void wxSizer_PrependSpacer(wxSizer *self,int width,int height,int option,int flag,int border,PyObject * userData) {
873 wxPyUserData* data = NULL;
874 if (userData) data = new wxPyUserData(userData);
875 self->Prepend(width, height, option, flag, border, data);
876 }
877 static PyObject *_wrap_wxSizer_PrependSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
878 PyObject * _resultobj;
879 wxSizer * _arg0;
880 int _arg1;
881 int _arg2;
882 int _arg3 = (int ) 0;
883 int _arg4 = (int ) 0;
884 int _arg5 = (int ) 0;
885 PyObject * _arg6 = (PyObject *) NULL;
886 PyObject * _argo0 = 0;
887 PyObject * _obj6 = 0;
888 char *_kwnames[] = { "self","width","height","option","flag","border","userData", NULL };
889
890 self = self;
891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|iiiO:wxSizer_PrependSpacer",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6))
892 return NULL;
893 if (_argo0) {
894 if (_argo0 == Py_None) { _arg0 = NULL; }
895 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
896 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_PrependSpacer. Expected _wxSizer_p.");
897 return NULL;
898 }
899 }
900 if (_obj6)
901 {
902 _arg6 = _obj6;
903 }
904 {
905 wxPy_BEGIN_ALLOW_THREADS;
906 wxSizer_PrependSpacer(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
907
908 wxPy_END_ALLOW_THREADS;
909 } Py_INCREF(Py_None);
910 _resultobj = Py_None;
911 return _resultobj;
912 }
913
914 #define wxSizer_RemoveWindow(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
915 static PyObject *_wrap_wxSizer_RemoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
916 PyObject * _resultobj;
917 bool _result;
918 wxSizer * _arg0;
919 wxWindow * _arg1;
920 PyObject * _argo0 = 0;
921 PyObject * _argo1 = 0;
922 char *_kwnames[] = { "self","window", NULL };
923
924 self = self;
925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSizer_RemoveWindow",_kwnames,&_argo0,&_argo1))
926 return NULL;
927 if (_argo0) {
928 if (_argo0 == Py_None) { _arg0 = NULL; }
929 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
930 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_RemoveWindow. Expected _wxSizer_p.");
931 return NULL;
932 }
933 }
934 if (_argo1) {
935 if (_argo1 == Py_None) { _arg1 = NULL; }
936 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
937 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSizer_RemoveWindow. Expected _wxWindow_p.");
938 return NULL;
939 }
940 }
941 {
942 wxPy_BEGIN_ALLOW_THREADS;
943 _result = (bool )wxSizer_RemoveWindow(_arg0,_arg1);
944
945 wxPy_END_ALLOW_THREADS;
946 } _resultobj = Py_BuildValue("i",_result);
947 return _resultobj;
948 }
949
950 #define wxSizer_RemoveSizer(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
951 static PyObject *_wrap_wxSizer_RemoveSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
952 PyObject * _resultobj;
953 bool _result;
954 wxSizer * _arg0;
955 wxSizer * _arg1;
956 PyObject * _argo0 = 0;
957 PyObject * _argo1 = 0;
958 char *_kwnames[] = { "self","sizer", NULL };
959
960 self = self;
961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSizer_RemoveSizer",_kwnames,&_argo0,&_argo1))
962 return NULL;
963 if (_argo0) {
964 if (_argo0 == Py_None) { _arg0 = NULL; }
965 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
966 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_RemoveSizer. Expected _wxSizer_p.");
967 return NULL;
968 }
969 }
970 if (_argo1) {
971 if (_argo1 == Py_None) { _arg1 = NULL; }
972 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) {
973 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSizer_RemoveSizer. Expected _wxSizer_p.");
974 return NULL;
975 }
976 }
977 {
978 wxPy_BEGIN_ALLOW_THREADS;
979 _result = (bool )wxSizer_RemoveSizer(_arg0,_arg1);
980
981 wxPy_END_ALLOW_THREADS;
982 } _resultobj = Py_BuildValue("i",_result);
983 return _resultobj;
984 }
985
986 #define wxSizer_RemovePos(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
987 static PyObject *_wrap_wxSizer_RemovePos(PyObject *self, PyObject *args, PyObject *kwargs) {
988 PyObject * _resultobj;
989 bool _result;
990 wxSizer * _arg0;
991 int _arg1;
992 PyObject * _argo0 = 0;
993 char *_kwnames[] = { "self","pos", NULL };
994
995 self = self;
996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSizer_RemovePos",_kwnames,&_argo0,&_arg1))
997 return NULL;
998 if (_argo0) {
999 if (_argo0 == Py_None) { _arg0 = NULL; }
1000 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1001 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_RemovePos. Expected _wxSizer_p.");
1002 return NULL;
1003 }
1004 }
1005 {
1006 wxPy_BEGIN_ALLOW_THREADS;
1007 _result = (bool )wxSizer_RemovePos(_arg0,_arg1);
1008
1009 wxPy_END_ALLOW_THREADS;
1010 } _resultobj = Py_BuildValue("i",_result);
1011 return _resultobj;
1012 }
1013
1014 #define wxSizer_SetDimension(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetDimension(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1015 static PyObject *_wrap_wxSizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) {
1016 PyObject * _resultobj;
1017 wxSizer * _arg0;
1018 int _arg1;
1019 int _arg2;
1020 int _arg3;
1021 int _arg4;
1022 PyObject * _argo0 = 0;
1023 char *_kwnames[] = { "self","x","y","width","height", NULL };
1024
1025 self = self;
1026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxSizer_SetDimension",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
1027 return NULL;
1028 if (_argo0) {
1029 if (_argo0 == Py_None) { _arg0 = NULL; }
1030 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1031 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_SetDimension. Expected _wxSizer_p.");
1032 return NULL;
1033 }
1034 }
1035 {
1036 wxPy_BEGIN_ALLOW_THREADS;
1037 wxSizer_SetDimension(_arg0,_arg1,_arg2,_arg3,_arg4);
1038
1039 wxPy_END_ALLOW_THREADS;
1040 } Py_INCREF(Py_None);
1041 _resultobj = Py_None;
1042 return _resultobj;
1043 }
1044
1045 #define wxSizer_GetSize(_swigobj) (_swigobj->GetSize())
1046 static PyObject *_wrap_wxSizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1047 PyObject * _resultobj;
1048 wxSize * _result;
1049 wxSizer * _arg0;
1050 PyObject * _argo0 = 0;
1051 char *_kwnames[] = { "self", NULL };
1052 char _ptemp[128];
1053
1054 self = self;
1055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizer_GetSize",_kwnames,&_argo0))
1056 return NULL;
1057 if (_argo0) {
1058 if (_argo0 == Py_None) { _arg0 = NULL; }
1059 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1060 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_GetSize. Expected _wxSizer_p.");
1061 return NULL;
1062 }
1063 }
1064 {
1065 wxPy_BEGIN_ALLOW_THREADS;
1066 _result = new wxSize (wxSizer_GetSize(_arg0));
1067
1068 wxPy_END_ALLOW_THREADS;
1069 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
1070 _resultobj = Py_BuildValue("s",_ptemp);
1071 return _resultobj;
1072 }
1073
1074 #define wxSizer_GetPosition(_swigobj) (_swigobj->GetPosition())
1075 static PyObject *_wrap_wxSizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
1076 PyObject * _resultobj;
1077 wxPoint * _result;
1078 wxSizer * _arg0;
1079 PyObject * _argo0 = 0;
1080 char *_kwnames[] = { "self", NULL };
1081 char _ptemp[128];
1082
1083 self = self;
1084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizer_GetPosition",_kwnames,&_argo0))
1085 return NULL;
1086 if (_argo0) {
1087 if (_argo0 == Py_None) { _arg0 = NULL; }
1088 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1089 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_GetPosition. Expected _wxSizer_p.");
1090 return NULL;
1091 }
1092 }
1093 {
1094 wxPy_BEGIN_ALLOW_THREADS;
1095 _result = new wxPoint (wxSizer_GetPosition(_arg0));
1096
1097 wxPy_END_ALLOW_THREADS;
1098 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
1099 _resultobj = Py_BuildValue("s",_ptemp);
1100 return _resultobj;
1101 }
1102
1103 #define wxSizer_GetMinSize(_swigobj) (_swigobj->GetMinSize())
1104 static PyObject *_wrap_wxSizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1105 PyObject * _resultobj;
1106 wxSize * _result;
1107 wxSizer * _arg0;
1108 PyObject * _argo0 = 0;
1109 char *_kwnames[] = { "self", NULL };
1110 char _ptemp[128];
1111
1112 self = self;
1113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizer_GetMinSize",_kwnames,&_argo0))
1114 return NULL;
1115 if (_argo0) {
1116 if (_argo0 == Py_None) { _arg0 = NULL; }
1117 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1118 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_GetMinSize. Expected _wxSizer_p.");
1119 return NULL;
1120 }
1121 }
1122 {
1123 wxPy_BEGIN_ALLOW_THREADS;
1124 _result = new wxSize (wxSizer_GetMinSize(_arg0));
1125
1126 wxPy_END_ALLOW_THREADS;
1127 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
1128 _resultobj = Py_BuildValue("s",_ptemp);
1129 return _resultobj;
1130 }
1131
1132 #define wxSizer_Layout(_swigobj) (_swigobj->Layout())
1133 static PyObject *_wrap_wxSizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
1134 PyObject * _resultobj;
1135 wxSizer * _arg0;
1136 PyObject * _argo0 = 0;
1137 char *_kwnames[] = { "self", NULL };
1138
1139 self = self;
1140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizer_Layout",_kwnames,&_argo0))
1141 return NULL;
1142 if (_argo0) {
1143 if (_argo0 == Py_None) { _arg0 = NULL; }
1144 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1145 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_Layout. Expected _wxSizer_p.");
1146 return NULL;
1147 }
1148 }
1149 {
1150 wxPy_BEGIN_ALLOW_THREADS;
1151 wxSizer_Layout(_arg0);
1152
1153 wxPy_END_ALLOW_THREADS;
1154 } Py_INCREF(Py_None);
1155 _resultobj = Py_None;
1156 return _resultobj;
1157 }
1158
1159 #define wxSizer_Fit(_swigobj,_swigarg0) (_swigobj->Fit(_swigarg0))
1160 static PyObject *_wrap_wxSizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
1161 PyObject * _resultobj;
1162 wxSizer * _arg0;
1163 wxWindow * _arg1;
1164 PyObject * _argo0 = 0;
1165 PyObject * _argo1 = 0;
1166 char *_kwnames[] = { "self","window", NULL };
1167
1168 self = self;
1169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSizer_Fit",_kwnames,&_argo0,&_argo1))
1170 return NULL;
1171 if (_argo0) {
1172 if (_argo0 == Py_None) { _arg0 = NULL; }
1173 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1174 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_Fit. Expected _wxSizer_p.");
1175 return NULL;
1176 }
1177 }
1178 if (_argo1) {
1179 if (_argo1 == Py_None) { _arg1 = NULL; }
1180 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1181 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSizer_Fit. Expected _wxWindow_p.");
1182 return NULL;
1183 }
1184 }
1185 {
1186 wxPy_BEGIN_ALLOW_THREADS;
1187 wxSizer_Fit(_arg0,_arg1);
1188
1189 wxPy_END_ALLOW_THREADS;
1190 } Py_INCREF(Py_None);
1191 _resultobj = Py_None;
1192 return _resultobj;
1193 }
1194
1195 #define wxSizer_SetSizeHints(_swigobj,_swigarg0) (_swigobj->SetSizeHints(_swigarg0))
1196 static PyObject *_wrap_wxSizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
1197 PyObject * _resultobj;
1198 wxSizer * _arg0;
1199 wxWindow * _arg1;
1200 PyObject * _argo0 = 0;
1201 PyObject * _argo1 = 0;
1202 char *_kwnames[] = { "self","window", NULL };
1203
1204 self = self;
1205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSizer_SetSizeHints",_kwnames,&_argo0,&_argo1))
1206 return NULL;
1207 if (_argo0) {
1208 if (_argo0 == Py_None) { _arg0 = NULL; }
1209 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1210 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_SetSizeHints. Expected _wxSizer_p.");
1211 return NULL;
1212 }
1213 }
1214 if (_argo1) {
1215 if (_argo1 == Py_None) { _arg1 = NULL; }
1216 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1217 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSizer_SetSizeHints. Expected _wxWindow_p.");
1218 return NULL;
1219 }
1220 }
1221 {
1222 wxPy_BEGIN_ALLOW_THREADS;
1223 wxSizer_SetSizeHints(_arg0,_arg1);
1224
1225 wxPy_END_ALLOW_THREADS;
1226 } Py_INCREF(Py_None);
1227 _resultobj = Py_None;
1228 return _resultobj;
1229 }
1230
1231 static PyObject * wxSizer_GetChildren(wxSizer *self) {
1232 wxList& list = self->GetChildren();
1233 return wxPy_ConvertList(&list, "wxSizerItem");
1234 }
1235 static PyObject *_wrap_wxSizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
1236 PyObject * _resultobj;
1237 PyObject * _result;
1238 wxSizer * _arg0;
1239 PyObject * _argo0 = 0;
1240 char *_kwnames[] = { "self", NULL };
1241
1242 self = self;
1243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizer_GetChildren",_kwnames,&_argo0))
1244 return NULL;
1245 if (_argo0) {
1246 if (_argo0 == Py_None) { _arg0 = NULL; }
1247 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
1248 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer_GetChildren. Expected _wxSizer_p.");
1249 return NULL;
1250 }
1251 }
1252 {
1253 wxPy_BEGIN_ALLOW_THREADS;
1254 _result = (PyObject *)wxSizer_GetChildren(_arg0);
1255
1256 wxPy_END_ALLOW_THREADS;
1257 }{
1258 _resultobj = _result;
1259 }
1260 return _resultobj;
1261 }
1262
1263 static void *SwigwxPySizerTowxSizer(void *ptr) {
1264 wxPySizer *src;
1265 wxSizer *dest;
1266 src = (wxPySizer *) ptr;
1267 dest = (wxSizer *) src;
1268 return (void *) dest;
1269 }
1270
1271 #define new_wxPySizer() (new wxPySizer())
1272 static PyObject *_wrap_new_wxPySizer(PyObject *self, PyObject *args, PyObject *kwargs) {
1273 PyObject * _resultobj;
1274 wxPySizer * _result;
1275 char *_kwnames[] = { NULL };
1276 char _ptemp[128];
1277
1278 self = self;
1279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPySizer",_kwnames))
1280 return NULL;
1281 {
1282 wxPy_BEGIN_ALLOW_THREADS;
1283 _result = (wxPySizer *)new_wxPySizer();
1284
1285 wxPy_END_ALLOW_THREADS;
1286 } if (_result) {
1287 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPySizer_p");
1288 _resultobj = Py_BuildValue("s",_ptemp);
1289 } else {
1290 Py_INCREF(Py_None);
1291 _resultobj = Py_None;
1292 }
1293 return _resultobj;
1294 }
1295
1296 #define wxPySizer__setSelf(_swigobj,_swigarg0) (_swigobj->_setSelf(_swigarg0))
1297 static PyObject *_wrap_wxPySizer__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
1298 PyObject * _resultobj;
1299 wxPySizer * _arg0;
1300 PyObject * _arg1;
1301 PyObject * _argo0 = 0;
1302 PyObject * _obj1 = 0;
1303 char *_kwnames[] = { "self","self", NULL };
1304
1305 self = self;
1306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPySizer__setSelf",_kwnames,&_argo0,&_obj1))
1307 return NULL;
1308 if (_argo0) {
1309 if (_argo0 == Py_None) { _arg0 = NULL; }
1310 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPySizer_p")) {
1311 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPySizer__setSelf. Expected _wxPySizer_p.");
1312 return NULL;
1313 }
1314 }
1315 {
1316 _arg1 = _obj1;
1317 }
1318 {
1319 wxPy_BEGIN_ALLOW_THREADS;
1320 wxPySizer__setSelf(_arg0,_arg1);
1321
1322 wxPy_END_ALLOW_THREADS;
1323 } Py_INCREF(Py_None);
1324 _resultobj = Py_None;
1325 return _resultobj;
1326 }
1327
1328 static void *SwigwxBoxSizerTowxSizer(void *ptr) {
1329 wxBoxSizer *src;
1330 wxSizer *dest;
1331 src = (wxBoxSizer *) ptr;
1332 dest = (wxSizer *) src;
1333 return (void *) dest;
1334 }
1335
1336 #define new_wxBoxSizer(_swigarg0) (new wxBoxSizer(_swigarg0))
1337 static PyObject *_wrap_new_wxBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
1338 PyObject * _resultobj;
1339 wxBoxSizer * _result;
1340 int _arg0 = (int ) wxHORIZONTAL;
1341 char *_kwnames[] = { "orient", NULL };
1342 char _ptemp[128];
1343
1344 self = self;
1345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxBoxSizer",_kwnames,&_arg0))
1346 return NULL;
1347 {
1348 wxPy_BEGIN_ALLOW_THREADS;
1349 _result = (wxBoxSizer *)new_wxBoxSizer(_arg0);
1350
1351 wxPy_END_ALLOW_THREADS;
1352 } if (_result) {
1353 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBoxSizer_p");
1354 _resultobj = Py_BuildValue("s",_ptemp);
1355 } else {
1356 Py_INCREF(Py_None);
1357 _resultobj = Py_None;
1358 }
1359 return _resultobj;
1360 }
1361
1362 #define wxBoxSizer_GetOrientation(_swigobj) (_swigobj->GetOrientation())
1363 static PyObject *_wrap_wxBoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
1364 PyObject * _resultobj;
1365 int _result;
1366 wxBoxSizer * _arg0;
1367 PyObject * _argo0 = 0;
1368 char *_kwnames[] = { "self", NULL };
1369
1370 self = self;
1371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBoxSizer_GetOrientation",_kwnames,&_argo0))
1372 return NULL;
1373 if (_argo0) {
1374 if (_argo0 == Py_None) { _arg0 = NULL; }
1375 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBoxSizer_p")) {
1376 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBoxSizer_GetOrientation. Expected _wxBoxSizer_p.");
1377 return NULL;
1378 }
1379 }
1380 {
1381 wxPy_BEGIN_ALLOW_THREADS;
1382 _result = (int )wxBoxSizer_GetOrientation(_arg0);
1383
1384 wxPy_END_ALLOW_THREADS;
1385 } _resultobj = Py_BuildValue("i",_result);
1386 return _resultobj;
1387 }
1388
1389 static void *SwigwxStaticBoxSizerTowxBoxSizer(void *ptr) {
1390 wxStaticBoxSizer *src;
1391 wxBoxSizer *dest;
1392 src = (wxStaticBoxSizer *) ptr;
1393 dest = (wxBoxSizer *) src;
1394 return (void *) dest;
1395 }
1396
1397 static void *SwigwxStaticBoxSizerTowxSizer(void *ptr) {
1398 wxStaticBoxSizer *src;
1399 wxSizer *dest;
1400 src = (wxStaticBoxSizer *) ptr;
1401 dest = (wxSizer *) src;
1402 return (void *) dest;
1403 }
1404
1405 #define new_wxStaticBoxSizer(_swigarg0,_swigarg1) (new wxStaticBoxSizer(_swigarg0,_swigarg1))
1406 static PyObject *_wrap_new_wxStaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
1407 PyObject * _resultobj;
1408 wxStaticBoxSizer * _result;
1409 wxStaticBox * _arg0;
1410 int _arg1 = (int ) wxHORIZONTAL;
1411 PyObject * _argo0 = 0;
1412 char *_kwnames[] = { "box","orient", NULL };
1413 char _ptemp[128];
1414
1415 self = self;
1416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxStaticBoxSizer",_kwnames,&_argo0,&_arg1))
1417 return NULL;
1418 if (_argo0) {
1419 if (_argo0 == Py_None) { _arg0 = NULL; }
1420 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBox_p")) {
1421 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBoxSizer. Expected _wxStaticBox_p.");
1422 return NULL;
1423 }
1424 }
1425 {
1426 wxPy_BEGIN_ALLOW_THREADS;
1427 _result = (wxStaticBoxSizer *)new_wxStaticBoxSizer(_arg0,_arg1);
1428
1429 wxPy_END_ALLOW_THREADS;
1430 } if (_result) {
1431 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBoxSizer_p");
1432 _resultobj = Py_BuildValue("s",_ptemp);
1433 } else {
1434 Py_INCREF(Py_None);
1435 _resultobj = Py_None;
1436 }
1437 return _resultobj;
1438 }
1439
1440 #define wxStaticBoxSizer_GetStaticBox(_swigobj) (_swigobj->GetStaticBox())
1441 static PyObject *_wrap_wxStaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1442 PyObject * _resultobj;
1443 wxStaticBox * _result;
1444 wxStaticBoxSizer * _arg0;
1445 PyObject * _argo0 = 0;
1446 char *_kwnames[] = { "self", NULL };
1447 char _ptemp[128];
1448
1449 self = self;
1450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBoxSizer_GetStaticBox",_kwnames,&_argo0))
1451 return NULL;
1452 if (_argo0) {
1453 if (_argo0 == Py_None) { _arg0 = NULL; }
1454 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBoxSizer_p")) {
1455 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBoxSizer_GetStaticBox. Expected _wxStaticBoxSizer_p.");
1456 return NULL;
1457 }
1458 }
1459 {
1460 wxPy_BEGIN_ALLOW_THREADS;
1461 _result = (wxStaticBox *)wxStaticBoxSizer_GetStaticBox(_arg0);
1462
1463 wxPy_END_ALLOW_THREADS;
1464 } if (_result) {
1465 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p");
1466 _resultobj = Py_BuildValue("s",_ptemp);
1467 } else {
1468 Py_INCREF(Py_None);
1469 _resultobj = Py_None;
1470 }
1471 return _resultobj;
1472 }
1473
1474 static PyMethodDef sizerscMethods[] = {
1475 { "wxStaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_wxStaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS },
1476 { "new_wxStaticBoxSizer", (PyCFunction) _wrap_new_wxStaticBoxSizer, METH_VARARGS | METH_KEYWORDS },
1477 { "wxBoxSizer_GetOrientation", (PyCFunction) _wrap_wxBoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS },
1478 { "new_wxBoxSizer", (PyCFunction) _wrap_new_wxBoxSizer, METH_VARARGS | METH_KEYWORDS },
1479 { "wxPySizer__setSelf", (PyCFunction) _wrap_wxPySizer__setSelf, METH_VARARGS | METH_KEYWORDS },
1480 { "new_wxPySizer", (PyCFunction) _wrap_new_wxPySizer, METH_VARARGS | METH_KEYWORDS },
1481 { "wxSizer_GetChildren", (PyCFunction) _wrap_wxSizer_GetChildren, METH_VARARGS | METH_KEYWORDS },
1482 { "wxSizer_SetSizeHints", (PyCFunction) _wrap_wxSizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
1483 { "wxSizer_Fit", (PyCFunction) _wrap_wxSizer_Fit, METH_VARARGS | METH_KEYWORDS },
1484 { "wxSizer_Layout", (PyCFunction) _wrap_wxSizer_Layout, METH_VARARGS | METH_KEYWORDS },
1485 { "wxSizer_GetMinSize", (PyCFunction) _wrap_wxSizer_GetMinSize, METH_VARARGS | METH_KEYWORDS },
1486 { "wxSizer_GetPosition", (PyCFunction) _wrap_wxSizer_GetPosition, METH_VARARGS | METH_KEYWORDS },
1487 { "wxSizer_GetSize", (PyCFunction) _wrap_wxSizer_GetSize, METH_VARARGS | METH_KEYWORDS },
1488 { "wxSizer_SetDimension", (PyCFunction) _wrap_wxSizer_SetDimension, METH_VARARGS | METH_KEYWORDS },
1489 { "wxSizer_RemovePos", (PyCFunction) _wrap_wxSizer_RemovePos, METH_VARARGS | METH_KEYWORDS },
1490 { "wxSizer_RemoveSizer", (PyCFunction) _wrap_wxSizer_RemoveSizer, METH_VARARGS | METH_KEYWORDS },
1491 { "wxSizer_RemoveWindow", (PyCFunction) _wrap_wxSizer_RemoveWindow, METH_VARARGS | METH_KEYWORDS },
1492 { "wxSizer_PrependSpacer", (PyCFunction) _wrap_wxSizer_PrependSpacer, METH_VARARGS | METH_KEYWORDS },
1493 { "wxSizer_PrependSizer", (PyCFunction) _wrap_wxSizer_PrependSizer, METH_VARARGS | METH_KEYWORDS },
1494 { "wxSizer_PrependWindow", (PyCFunction) _wrap_wxSizer_PrependWindow, METH_VARARGS | METH_KEYWORDS },
1495 { "wxSizer_AddSpacer", (PyCFunction) _wrap_wxSizer_AddSpacer, METH_VARARGS | METH_KEYWORDS },
1496 { "wxSizer_AddSizer", (PyCFunction) _wrap_wxSizer_AddSizer, METH_VARARGS | METH_KEYWORDS },
1497 { "wxSizer_AddWindow", (PyCFunction) _wrap_wxSizer_AddWindow, METH_VARARGS | METH_KEYWORDS },
1498 { "wxSizer_Destroy", (PyCFunction) _wrap_wxSizer_Destroy, METH_VARARGS | METH_KEYWORDS },
1499 { "wxSizerItem_GetUserData", (PyCFunction) _wrap_wxSizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS },
1500 { "wxSizerItem_SetBorder", (PyCFunction) _wrap_wxSizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS },
1501 { "wxSizerItem_SetFlag", (PyCFunction) _wrap_wxSizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS },
1502 { "wxSizerItem_SetOption", (PyCFunction) _wrap_wxSizerItem_SetOption, METH_VARARGS | METH_KEYWORDS },
1503 { "wxSizerItem_SetInitSize", (PyCFunction) _wrap_wxSizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS },
1504 { "wxSizerItem_GetBorder", (PyCFunction) _wrap_wxSizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS },
1505 { "wxSizerItem_GetFlag", (PyCFunction) _wrap_wxSizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS },
1506 { "wxSizerItem_GetOption", (PyCFunction) _wrap_wxSizerItem_GetOption, METH_VARARGS | METH_KEYWORDS },
1507 { "wxSizerItem_GetSizer", (PyCFunction) _wrap_wxSizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS },
1508 { "wxSizerItem_GetWindow", (PyCFunction) _wrap_wxSizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS },
1509 { "wxSizerItem_IsSpacer", (PyCFunction) _wrap_wxSizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS },
1510 { "wxSizerItem_IsSizer", (PyCFunction) _wrap_wxSizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS },
1511 { "wxSizerItem_IsWindow", (PyCFunction) _wrap_wxSizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS },
1512 { "wxSizerItem_SetDimension", (PyCFunction) _wrap_wxSizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS },
1513 { "wxSizerItem_CalcMin", (PyCFunction) _wrap_wxSizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS },
1514 { "wxSizerItem_GetSize", (PyCFunction) _wrap_wxSizerItem_GetSize, METH_VARARGS | METH_KEYWORDS },
1515 { NULL, NULL }
1516 };
1517 #ifdef __cplusplus
1518 }
1519 #endif
1520 /*
1521 * This table is used by the pointer type-checker
1522 */
1523 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
1524 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
1525 { "_wxEvent","_class_wxEvent",0},
1526 { "_class_wxActivateEvent","_wxActivateEvent",0},
1527 { "_signed_long","_long",0},
1528 { "_wxMenuEvent","_class_wxMenuEvent",0},
1529 { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0},
1530 { "_wxBitmapDataObject","_class_wxBitmapDataObject",0},
1531 { "_class_wxPyCommandEvent","_wxPyCommandEvent",0},
1532 { "_wxPrintQuality","_wxCoord",0},
1533 { "_wxPrintQuality","_int",0},
1534 { "_wxPrintQuality","_signed_int",0},
1535 { "_wxPrintQuality","_unsigned_int",0},
1536 { "_wxPrintQuality","_wxWindowID",0},
1537 { "_wxPrintQuality","_uint",0},
1538 { "_wxPrintQuality","_EBool",0},
1539 { "_wxPrintQuality","_size_t",0},
1540 { "_class_wxCustomDataObject","_wxCustomDataObject",0},
1541 { "_class_wxRegionIterator","_wxRegionIterator",0},
1542 { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0},
1543 { "_class_wxMenuBar","_wxMenuBar",0},
1544 { "_class_wxStaticBoxSizer","_wxStaticBoxSizer",0},
1545 { "_class_wxEvtHandler","_wxEvtHandler",0},
1546 { "_wxPaintEvent","_class_wxPaintEvent",0},
1547 { "_wxPySizer","_class_wxPySizer",0},
1548 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
1549 { "_wxCursor","_class_wxCursor",0},
1550 { "_wxNotifyEvent","_class_wxNotifyEvent",0},
1551 { "_wxMask","_class_wxMask",0},
1552 { "_wxPen","_class_wxPen",0},
1553 { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0},
1554 { "_byte","_unsigned_char",0},
1555 { "_wxDataObject","_class_wxDataObject",0},
1556 { "_wxStaticBox","_class_wxStaticBox",0},
1557 { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0},
1558 { "_wxPyDropSource","_class_wxPyDropSource",0},
1559 { "_wxChoice","_class_wxChoice",0},
1560 { "_wxSlider","_class_wxSlider",0},
1561 { "_long","_unsigned_long",0},
1562 { "_long","_signed_long",0},
1563 { "_wxImageList","_class_wxImageList",0},
1564 { "_wxDataObjectSimple","_class_wxDataObjectSimple",0},
1565 { "_wxDropFilesEvent","_class_wxDropFilesEvent",0},
1566 { "_wxBitmapButton","_class_wxBitmapButton",0},
1567 { "_class_wxSizer","_class_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxSizer},
1568 { "_class_wxSizer","_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxSizer},
1569 { "_class_wxSizer","_class_wxBoxSizer",SwigwxBoxSizerTowxSizer},
1570 { "_class_wxSizer","_wxBoxSizer",SwigwxBoxSizerTowxSizer},
1571 { "_class_wxSizer","_class_wxPySizer",SwigwxPySizerTowxSizer},
1572 { "_class_wxSizer","_wxPySizer",SwigwxPySizerTowxSizer},
1573 { "_class_wxSizer","_wxSizer",0},
1574 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
1575 { "_class_wxClipboard","_wxClipboard",0},
1576 { "_class_wxGauge","_wxGauge",0},
1577 { "_wxDC","_class_wxDC",0},
1578 { "_wxSizerItem","_class_wxSizerItem",0},
1579 { "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
1580 { "_wxSpinEvent","_class_wxSpinEvent",0},
1581 { "_size_t","_wxCoord",0},
1582 { "_size_t","_wxPrintQuality",0},
1583 { "_size_t","_unsigned_int",0},
1584 { "_size_t","_int",0},
1585 { "_size_t","_wxWindowID",0},
1586 { "_size_t","_uint",0},
1587 { "_class_wxRealPoint","_wxRealPoint",0},
1588 { "_wxNavigationKeyEvent","_class_wxNavigationKeyEvent",0},
1589 { "_wxWindowCreateEvent","_class_wxWindowCreateEvent",0},
1590 { "_class_wxMenuItem","_wxMenuItem",0},
1591 { "_class_wxPaintEvent","_wxPaintEvent",0},
1592 { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0},
1593 { "_class_wxPySizer","_wxPySizer",0},
1594 { "_class_wxPostScriptDC","_wxPostScriptDC",0},
1595 { "_wxPanel","_class_wxPanel",0},
1596 { "_wxInitDialogEvent","_class_wxInitDialogEvent",0},
1597 { "_wxCheckBox","_class_wxCheckBox",0},
1598 { "_wxPyEvent","_class_wxPyEvent",0},
1599 { "_wxTextCtrl","_class_wxTextCtrl",0},
1600 { "_class_wxMask","_wxMask",0},
1601 { "_wxTextDataObject","_class_wxTextDataObject",0},
1602 { "_class_wxKeyEvent","_wxKeyEvent",0},
1603 { "_wxColour","_class_wxColour",0},
1604 { "_class_wxDialog","_wxDialog",0},
1605 { "_class_wxFileDataObject","_wxFileDataObject",0},
1606 { "_wxIdleEvent","_class_wxIdleEvent",0},
1607 { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0},
1608 { "_class_wxDataObject","_wxDataObject",0},
1609 { "_wxStaticLine","_class_wxStaticLine",0},
1610 { "_wxBrush","_class_wxBrush",0},
1611 { "_wxDataFormat","_class_wxDataFormat",0},
1612 { "_class_wxDataObjectSimple","_wxDataObjectSimple",0},
1613 { "_wxShowEvent","_class_wxShowEvent",0},
1614 { "_uint","_wxCoord",0},
1615 { "_uint","_wxPrintQuality",0},
1616 { "_uint","_size_t",0},
1617 { "_uint","_unsigned_int",0},
1618 { "_uint","_int",0},
1619 { "_uint","_wxWindowID",0},
1620 { "_wxPyValidator","_class_wxPyValidator",0},
1621 { "_class_wxEvent","_wxEvent",0},
1622 { "_wxCheckListBox","_class_wxCheckListBox",0},
1623 { "_wxRect","_class_wxRect",0},
1624 { "_wxCommandEvent","_class_wxCommandEvent",0},
1625 { "_wxSizeEvent","_class_wxSizeEvent",0},
1626 { "_wxPoint","_class_wxPoint",0},
1627 { "_class_wxButton","_wxButton",0},
1628 { "_wxRadioBox","_class_wxRadioBox",0},
1629 { "_wxBoxSizer","_class_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxBoxSizer},
1630 { "_wxBoxSizer","_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxBoxSizer},
1631 { "_wxBoxSizer","_class_wxBoxSizer",0},
1632 { "_wxBitmap","_class_wxBitmap",0},
1633 { "_char","_wxDash",0},
1634 { "_wxPyTimer","_class_wxPyTimer",0},
1635 { "_wxWindowDC","_class_wxWindowDC",0},
1636 { "_wxScrollBar","_class_wxScrollBar",0},
1637 { "_wxSpinButton","_class_wxSpinButton",0},
1638 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
1639 { "_class_wxNotifyEvent","_wxNotifyEvent",0},
1640 { "_class_wxValidator","_wxValidator",0},
1641 { "_class_wxPyEvent","_wxPyEvent",0},
1642 { "_class_wxIconizeEvent","_wxIconizeEvent",0},
1643 { "_class_wxStaticBitmap","_wxStaticBitmap",0},
1644 { "_wxDropTarget","_class_wxDropTarget",0},
1645 { "_class_wxStaticLine","_wxStaticLine",0},
1646 { "_wxScrollEvent","_class_wxScrollEvent",0},
1647 { "_EBool","_wxCoord",0},
1648 { "_EBool","_wxPrintQuality",0},
1649 { "_EBool","_signed_int",0},
1650 { "_EBool","_int",0},
1651 { "_EBool","_wxWindowID",0},
1652 { "_class_wxRegion","_wxRegion",0},
1653 { "_class_wxDataFormat","_wxDataFormat",0},
1654 { "_class_wxDropFilesEvent","_wxDropFilesEvent",0},
1655 { "_wxWindowDestroyEvent","_class_wxWindowDestroyEvent",0},
1656 { "_wxStaticText","_class_wxStaticText",0},
1657 { "_wxFont","_class_wxFont",0},
1658 { "_class_wxPyDropTarget","_wxPyDropTarget",0},
1659 { "_wxCloseEvent","_class_wxCloseEvent",0},
1660 { "_unsigned_long","_long",0},
1661 { "_class_wxRect","_wxRect",0},
1662 { "_class_wxDC","_wxDC",0},
1663 { "_wxScrollWinEvent","_class_wxScrollWinEvent",0},
1664 { "_wxQueryNewPaletteEvent","_class_wxQueryNewPaletteEvent",0},
1665 { "_class_wxWindowCreateEvent","_wxWindowCreateEvent",0},
1666 { "_class_wxPyTimer","_wxPyTimer",0},
1667 { "_wxFocusEvent","_class_wxFocusEvent",0},
1668 { "_wxMaximizeEvent","_class_wxMaximizeEvent",0},
1669 { "_class_wxSpinButton","_wxSpinButton",0},
1670 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
1671 { "_class_wxPanel","_wxPanel",0},
1672 { "_class_wxCheckBox","_wxCheckBox",0},
1673 { "_wxComboBox","_class_wxComboBox",0},
1674 { "_wxRadioButton","_class_wxRadioButton",0},
1675 { "_signed_int","_wxCoord",0},
1676 { "_signed_int","_wxPrintQuality",0},
1677 { "_signed_int","_EBool",0},
1678 { "_signed_int","_wxWindowID",0},
1679 { "_signed_int","_int",0},
1680 { "_class_wxTextCtrl","_wxTextCtrl",0},
1681 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
1682 { "_class_wxTextDataObject","_wxTextDataObject",0},
1683 { "_wxMenu","_class_wxMenu",0},
1684 { "_class_wxMoveEvent","_wxMoveEvent",0},
1685 { "_wxListBox","_class_wxListBox",0},
1686 { "_wxScreenDC","_class_wxScreenDC",0},
1687 { "_WXTYPE","_short",0},
1688 { "_WXTYPE","_signed_short",0},
1689 { "_WXTYPE","_unsigned_short",0},
1690 { "_class_wxDropTarget","_wxDropTarget",0},
1691 { "_class_wxBrush","_wxBrush",0},
1692 { "_unsigned_short","_WXTYPE",0},
1693 { "_unsigned_short","_short",0},
1694 { "_class_wxWindow","_wxWindow",0},
1695 { "_class_wxStaticText","_wxStaticText",0},
1696 { "_class_wxFont","_wxFont",0},
1697 { "_wxClipboard","_class_wxClipboard",0},
1698 { "_class_wxPyValidator","_wxPyValidator",0},
1699 { "_class_wxCloseEvent","_wxCloseEvent",0},
1700 { "_wxBusyInfo","_class_wxBusyInfo",0},
1701 { "_class_wxMenuEvent","_wxMenuEvent",0},
1702 { "_wxPaletteChangedEvent","_class_wxPaletteChangedEvent",0},
1703 { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0},
1704 { "_wxClientDC","_class_wxClientDC",0},
1705 { "_wxMouseEvent","_class_wxMouseEvent",0},
1706 { "_class_wxPoint","_wxPoint",0},
1707 { "_wxRealPoint","_class_wxRealPoint",0},
1708 { "_class_wxRadioBox","_wxRadioBox",0},
1709 { "_class_wxBoxSizer","_class_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxBoxSizer},
1710 { "_class_wxBoxSizer","_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxBoxSizer},
1711 { "_class_wxBoxSizer","_wxBoxSizer",0},
1712 { "_signed_short","_WXTYPE",0},
1713 { "_signed_short","_short",0},
1714 { "_wxMemoryDC","_class_wxMemoryDC",0},
1715 { "_wxPyTextDataObject","_class_wxPyTextDataObject",0},
1716 { "_wxPaintDC","_class_wxPaintDC",0},
1717 { "_class_wxWindowDC","_wxWindowDC",0},
1718 { "_class_wxFocusEvent","_wxFocusEvent",0},
1719 { "_class_wxMaximizeEvent","_wxMaximizeEvent",0},
1720 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
1721 { "_class_wxCursor","_wxCursor",0},
1722 { "_wxPostScriptDC","_class_wxPostScriptDC",0},
1723 { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0},
1724 { "_wxScrolledWindow","_class_wxScrolledWindow",0},
1725 { "_unsigned_char","_byte",0},
1726 { "_class_wxMenu","_wxMenu",0},
1727 { "_wxControl","_class_wxControl",0},
1728 { "_class_wxListBox","_wxListBox",0},
1729 { "_unsigned_int","_wxCoord",0},
1730 { "_unsigned_int","_wxPrintQuality",0},
1731 { "_unsigned_int","_size_t",0},
1732 { "_unsigned_int","_uint",0},
1733 { "_unsigned_int","_wxWindowID",0},
1734 { "_unsigned_int","_int",0},
1735 { "_wxIcon","_class_wxIcon",0},
1736 { "_wxDialog","_class_wxDialog",0},
1737 { "_class_wxPen","_wxPen",0},
1738 { "_short","_WXTYPE",0},
1739 { "_short","_unsigned_short",0},
1740 { "_short","_signed_short",0},
1741 { "_class_wxStaticBox","_wxStaticBox",0},
1742 { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0},
1743 { "_class_wxPyDropSource","_wxPyDropSource",0},
1744 { "_class_wxScrollEvent","_wxScrollEvent",0},
1745 { "_wxJoystickEvent","_class_wxJoystickEvent",0},
1746 { "_class_wxChoice","_wxChoice",0},
1747 { "_class_wxSlider","_wxSlider",0},
1748 { "_class_wxImageList","_wxImageList",0},
1749 { "_class_wxBitmapButton","_wxBitmapButton",0},
1750 { "_class_wxPaletteChangedEvent","_wxPaletteChangedEvent",0},
1751 { "_wxWindowID","_wxCoord",0},
1752 { "_wxWindowID","_wxPrintQuality",0},
1753 { "_wxWindowID","_size_t",0},
1754 { "_wxWindowID","_EBool",0},
1755 { "_wxWindowID","_uint",0},
1756 { "_wxWindowID","_int",0},
1757 { "_wxWindowID","_signed_int",0},
1758 { "_wxWindowID","_unsigned_int",0},
1759 { "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
1760 { "_class_wxSizerItem","_wxSizerItem",0},
1761 { "_int","_wxCoord",0},
1762 { "_int","_wxPrintQuality",0},
1763 { "_int","_size_t",0},
1764 { "_int","_EBool",0},
1765 { "_int","_uint",0},
1766 { "_int","_wxWindowID",0},
1767 { "_int","_unsigned_int",0},
1768 { "_int","_signed_int",0},
1769 { "_class_wxMouseEvent","_wxMouseEvent",0},
1770 { "_wxPyCommandEvent","_class_wxPyCommandEvent",0},
1771 { "_class_wxSpinEvent","_wxSpinEvent",0},
1772 { "_class_wxQueryNewPaletteEvent","_wxQueryNewPaletteEvent",0},
1773 { "_class_wxNavigationKeyEvent","_wxNavigationKeyEvent",0},
1774 { "_wxButton","_class_wxButton",0},
1775 { "_wxSize","_class_wxSize",0},
1776 { "_wxRegionIterator","_class_wxRegionIterator",0},
1777 { "_class_wxPyTextDataObject","_wxPyTextDataObject",0},
1778 { "_wxStaticBoxSizer","_class_wxStaticBoxSizer",0},
1779 { "_class_wxPaintDC","_wxPaintDC",0},
1780 { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0},
1781 { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0},
1782 { "_class_wxInitDialogEvent","_wxInitDialogEvent",0},
1783 { "_class_wxComboBox","_wxComboBox",0},
1784 { "_class_wxRadioButton","_wxRadioButton",0},
1785 { "_wxValidator","_class_wxValidator",0},
1786 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
1787 { "_wxIconizeEvent","_class_wxIconizeEvent",0},
1788 { "_class_wxControl","_wxControl",0},
1789 { "_wxStaticBitmap","_class_wxStaticBitmap",0},
1790 { "_class_wxIcon","_wxIcon",0},
1791 { "_class_wxColour","_wxColour",0},
1792 { "_class_wxScreenDC","_wxScreenDC",0},
1793 { "_wxPalette","_class_wxPalette",0},
1794 { "_class_wxIdleEvent","_wxIdleEvent",0},
1795 { "_wxCoord","_int",0},
1796 { "_wxCoord","_signed_int",0},
1797 { "_wxCoord","_unsigned_int",0},
1798 { "_wxCoord","_wxWindowID",0},
1799 { "_wxCoord","_uint",0},
1800 { "_wxCoord","_EBool",0},
1801 { "_wxCoord","_size_t",0},
1802 { "_wxCoord","_wxPrintQuality",0},
1803 { "_wxEraseEvent","_class_wxEraseEvent",0},
1804 { "_wxDataObjectComposite","_class_wxDataObjectComposite",0},
1805 { "_class_wxJoystickEvent","_wxJoystickEvent",0},
1806 { "_wxRegion","_class_wxRegion",0},
1807 { "_wxSizer","_class_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxSizer},
1808 { "_wxSizer","_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxSizer},
1809 { "_wxSizer","_class_wxBoxSizer",SwigwxBoxSizerTowxSizer},
1810 { "_wxSizer","_wxBoxSizer",SwigwxBoxSizerTowxSizer},
1811 { "_wxSizer","_class_wxPySizer",SwigwxPySizerTowxSizer},
1812 { "_wxSizer","_wxPySizer",SwigwxPySizerTowxSizer},
1813 { "_wxSizer","_class_wxSizer",0},
1814 { "_class_wxShowEvent","_wxShowEvent",0},
1815 { "_wxPyDropTarget","_class_wxPyDropTarget",0},
1816 { "_wxActivateEvent","_class_wxActivateEvent",0},
1817 { "_wxGauge","_class_wxGauge",0},
1818 { "_class_wxCheckListBox","_wxCheckListBox",0},
1819 { "_class_wxBusyInfo","_wxBusyInfo",0},
1820 { "_class_wxCommandEvent","_wxCommandEvent",0},
1821 { "_class_wxClientDC","_wxClientDC",0},
1822 { "_class_wxSizeEvent","_wxSizeEvent",0},
1823 { "_wxCustomDataObject","_class_wxCustomDataObject",0},
1824 { "_class_wxSize","_wxSize",0},
1825 { "_class_wxBitmap","_wxBitmap",0},
1826 { "_class_wxMemoryDC","_wxMemoryDC",0},
1827 { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0},
1828 { "_wxMenuBar","_class_wxMenuBar",0},
1829 { "_wxEvtHandler","_class_wxEvtHandler",0},
1830 { "_wxMenuItem","_class_wxMenuItem",0},
1831 { "_class_wxScrollBar","_wxScrollBar",0},
1832 { "_wxDash","_char",0},
1833 { "_class_wxScrolledWindow","_wxScrolledWindow",0},
1834 { "_wxKeyEvent","_class_wxKeyEvent",0},
1835 { "_wxMoveEvent","_class_wxMoveEvent",0},
1836 { "_class_wxPalette","_wxPalette",0},
1837 { "_wxFileDataObject","_class_wxFileDataObject",0},
1838 { "_class_wxEraseEvent","_wxEraseEvent",0},
1839 { "_class_wxDataObjectComposite","_wxDataObjectComposite",0},
1840 { "_wxWindow","_class_wxWindow",0},
1841 { "_class_wxWindowDestroyEvent","_wxWindowDestroyEvent",0},
1842 {0,0,0}};
1843
1844 static PyObject *SWIG_globals;
1845 #ifdef __cplusplus
1846 extern "C"
1847 #endif
1848 SWIGEXPORT(void) initsizersc() {
1849 PyObject *m, *d;
1850 SWIG_globals = SWIG_newvarlink();
1851 m = Py_InitModule("sizersc", sizerscMethods);
1852 d = PyModule_GetDict(m);
1853 {
1854 int i;
1855 for (i = 0; _swig_mapping[i].n1; i++)
1856 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
1857 }
1858 }