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