2 * FILE : src/gtk/sizers.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
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.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
34 # define SWIGEXPORT(a) a
38 # define SWIGEXPORT(a) a
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
48 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
49 extern PyObject
*SWIG_newvarlink(void);
53 #define SWIG_init initsizersc
55 #define SWIG_name "sizersc"
59 #include <wx/notebook.h>
62 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
68 } else if (target
== Py_None
) {
72 if (!PyTuple_Check(target
)) {
74 target
= PyTuple_New(1);
75 PyTuple_SetItem(target
, 0, o2
);
78 PyTuple_SetItem(o3
, 0, o
);
81 target
= PySequence_Concat(o2
, o3
);
88 class wxPySizer
: public wxSizer
{
89 DECLARE_DYNAMIC_CLASS(wxPySizer
);
91 wxPySizer() : wxSizer() {};
93 DEC_PYCALLBACK___pure(RecalcSizes
);
94 DEC_PYCALLBACK_wxSize__pure(CalcMin
);
99 IMP_PYCALLBACK___pure(wxPySizer
, wxSizer
, RecalcSizes
);
100 IMP_PYCALLBACK_wxSize__pure(wxPySizer
, wxSizer
, CalcMin
);
102 IMPLEMENT_DYNAMIC_CLASS(wxPySizer
, wxSizer
);
106 static void *SwigwxSizerItemTowxObject(void *ptr
) {
109 src
= (wxSizerItem
*) ptr
;
110 dest
= (wxObject
*) src
;
111 return (void *) dest
;
114 #define wxSizerItem_DeleteWindows(_swigobj) (_swigobj->DeleteWindows())
115 static PyObject
*_wrap_wxSizerItem_DeleteWindows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
116 PyObject
* _resultobj
;
118 PyObject
* _argo0
= 0;
119 char *_kwnames
[] = { "self", NULL
};
122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizerItem_DeleteWindows",_kwnames
,&_argo0
))
125 if (_argo0
== Py_None
) { _arg0
= NULL
; }
126 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
127 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_DeleteWindows. Expected _wxSizerItem_p.");
132 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
133 wxSizerItem_DeleteWindows(_arg0
);
135 wxPyEndAllowThreads(__tstate
);
136 if (PyErr_Occurred()) return NULL
;
137 } Py_INCREF(Py_None
);
138 _resultobj
= Py_None
;
142 #define wxSizerItem_DetachSizer(_swigobj) (_swigobj->DetachSizer())
143 static PyObject
*_wrap_wxSizerItem_DetachSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
144 PyObject
* _resultobj
;
146 PyObject
* _argo0
= 0;
147 char *_kwnames
[] = { "self", NULL
};
150 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizerItem_DetachSizer",_kwnames
,&_argo0
))
153 if (_argo0
== Py_None
) { _arg0
= NULL
; }
154 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
155 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_DetachSizer. Expected _wxSizerItem_p.");
160 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
161 wxSizerItem_DetachSizer(_arg0
);
163 wxPyEndAllowThreads(__tstate
);
164 if (PyErr_Occurred()) return NULL
;
165 } Py_INCREF(Py_None
);
166 _resultobj
= Py_None
;
170 #define wxSizerItem_GetSize(_swigobj) (_swigobj->GetSize())
171 static PyObject
*_wrap_wxSizerItem_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
172 PyObject
* _resultobj
;
175 PyObject
* _argo0
= 0;
176 char *_kwnames
[] = { "self", NULL
};
180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizerItem_GetSize",_kwnames
,&_argo0
))
183 if (_argo0
== Py_None
) { _arg0
= NULL
; }
184 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
185 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_GetSize. Expected _wxSizerItem_p.");
190 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
191 _result
= new wxSize (wxSizerItem_GetSize(_arg0
));
193 wxPyEndAllowThreads(__tstate
);
194 if (PyErr_Occurred()) return NULL
;
195 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
196 _resultobj
= Py_BuildValue("s",_ptemp
);
200 #define wxSizerItem_CalcMin(_swigobj) (_swigobj->CalcMin())
201 static PyObject
*_wrap_wxSizerItem_CalcMin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
202 PyObject
* _resultobj
;
205 PyObject
* _argo0
= 0;
206 char *_kwnames
[] = { "self", NULL
};
210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizerItem_CalcMin",_kwnames
,&_argo0
))
213 if (_argo0
== Py_None
) { _arg0
= NULL
; }
214 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_CalcMin. Expected _wxSizerItem_p.");
220 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
221 _result
= new wxSize (wxSizerItem_CalcMin(_arg0
));
223 wxPyEndAllowThreads(__tstate
);
224 if (PyErr_Occurred()) return NULL
;
225 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
226 _resultobj
= Py_BuildValue("s",_ptemp
);
230 #define wxSizerItem_SetDimension(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDimension(_swigarg0,_swigarg1))
231 static PyObject
*_wrap_wxSizerItem_SetDimension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
232 PyObject
* _resultobj
;
236 PyObject
* _argo0
= 0;
238 PyObject
* _obj1
= 0;
240 PyObject
* _obj2
= 0;
241 char *_kwnames
[] = { "self","pos","size", NULL
};
244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxSizerItem_SetDimension",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
247 if (_argo0
== Py_None
) { _arg0
= NULL
; }
248 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
249 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_SetDimension. Expected _wxSizerItem_p.");
255 if (! wxPoint_helper(_obj1
, &_arg1
))
260 if (! wxSize_helper(_obj2
, &_arg2
))
264 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
265 wxSizerItem_SetDimension(_arg0
,*_arg1
,*_arg2
);
267 wxPyEndAllowThreads(__tstate
);
268 if (PyErr_Occurred()) return NULL
;
269 } Py_INCREF(Py_None
);
270 _resultobj
= Py_None
;
274 #define wxSizerItem_GetMinSize(_swigobj) (_swigobj->GetMinSize())
275 static PyObject
*_wrap_wxSizerItem_GetMinSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
276 PyObject
* _resultobj
;
279 PyObject
* _argo0
= 0;
280 char *_kwnames
[] = { "self", NULL
};
284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizerItem_GetMinSize",_kwnames
,&_argo0
))
287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_GetMinSize. Expected _wxSizerItem_p.");
294 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
295 _result
= new wxSize (wxSizerItem_GetMinSize(_arg0
));
297 wxPyEndAllowThreads(__tstate
);
298 if (PyErr_Occurred()) return NULL
;
299 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
300 _resultobj
= Py_BuildValue("s",_ptemp
);
304 #define wxSizerItem_SetInitSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetInitSize(_swigarg0,_swigarg1))
305 static PyObject
*_wrap_wxSizerItem_SetInitSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
306 PyObject
* _resultobj
;
310 PyObject
* _argo0
= 0;
311 char *_kwnames
[] = { "self","x","y", NULL
};
314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxSizerItem_SetInitSize",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_SetInitSize. Expected _wxSizerItem_p.");
324 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
325 wxSizerItem_SetInitSize(_arg0
,_arg1
,_arg2
);
327 wxPyEndAllowThreads(__tstate
);
328 if (PyErr_Occurred()) return NULL
;
329 } Py_INCREF(Py_None
);
330 _resultobj
= Py_None
;
334 #define wxSizerItem_SetRatioWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRatio(_swigarg0,_swigarg1))
335 static PyObject
*_wrap_wxSizerItem_SetRatioWH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
336 PyObject
* _resultobj
;
340 PyObject
* _argo0
= 0;
341 char *_kwnames
[] = { "self","width","height", NULL
};
344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxSizerItem_SetRatioWH",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_SetRatioWH. Expected _wxSizerItem_p.");
354 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
355 wxSizerItem_SetRatioWH(_arg0
,_arg1
,_arg2
);
357 wxPyEndAllowThreads(__tstate
);
358 if (PyErr_Occurred()) return NULL
;
359 } Py_INCREF(Py_None
);
360 _resultobj
= Py_None
;
364 #define wxSizerItem_SetRatioSize(_swigobj,_swigarg0) (_swigobj->SetRatio(_swigarg0))
365 static PyObject
*_wrap_wxSizerItem_SetRatioSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
366 PyObject
* _resultobj
;
369 PyObject
* _argo0
= 0;
371 PyObject
* _obj1
= 0;
372 char *_kwnames
[] = { "self","size", NULL
};
375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxSizerItem_SetRatioSize",_kwnames
,&_argo0
,&_obj1
))
378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_SetRatioSize. Expected _wxSizerItem_p.");
386 if (! wxSize_helper(_obj1
, &_arg1
))
390 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
391 wxSizerItem_SetRatioSize(_arg0
,*_arg1
);
393 wxPyEndAllowThreads(__tstate
);
394 if (PyErr_Occurred()) return NULL
;
395 } Py_INCREF(Py_None
);
396 _resultobj
= Py_None
;
400 #define wxSizerItem_SetRatio(_swigobj,_swigarg0) (_swigobj->SetRatio(_swigarg0))
401 static PyObject
*_wrap_wxSizerItem_SetRatio(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
402 PyObject
* _resultobj
;
405 PyObject
* _argo0
= 0;
406 char *_kwnames
[] = { "self","ratio", NULL
};
409 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Of:wxSizerItem_SetRatio",_kwnames
,&_argo0
,&_arg1
))
412 if (_argo0
== Py_None
) { _arg0
= NULL
; }
413 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
414 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_SetRatio. Expected _wxSizerItem_p.");
419 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
420 wxSizerItem_SetRatio(_arg0
,_arg1
);
422 wxPyEndAllowThreads(__tstate
);
423 if (PyErr_Occurred()) return NULL
;
424 } Py_INCREF(Py_None
);
425 _resultobj
= Py_None
;
429 #define wxSizerItem_GetRatio(_swigobj) (_swigobj->GetRatio())
430 static PyObject
*_wrap_wxSizerItem_GetRatio(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
431 PyObject
* _resultobj
;
434 PyObject
* _argo0
= 0;
435 char *_kwnames
[] = { "self", NULL
};
438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizerItem_GetRatio",_kwnames
,&_argo0
))
441 if (_argo0
== Py_None
) { _arg0
= NULL
; }
442 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
443 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_GetRatio. Expected _wxSizerItem_p.");
448 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
449 _result
= (float )wxSizerItem_GetRatio(_arg0
);
451 wxPyEndAllowThreads(__tstate
);
452 if (PyErr_Occurred()) return NULL
;
453 } _resultobj
= Py_BuildValue("f",_result
);
457 #define wxSizerItem_IsWindow(_swigobj) (_swigobj->IsWindow())
458 static PyObject
*_wrap_wxSizerItem_IsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
459 PyObject
* _resultobj
;
462 PyObject
* _argo0
= 0;
463 char *_kwnames
[] = { "self", NULL
};
466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizerItem_IsWindow",_kwnames
,&_argo0
))
469 if (_argo0
== Py_None
) { _arg0
= NULL
; }
470 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
471 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_IsWindow. Expected _wxSizerItem_p.");
476 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
477 _result
= (bool )wxSizerItem_IsWindow(_arg0
);
479 wxPyEndAllowThreads(__tstate
);
480 if (PyErr_Occurred()) return NULL
;
481 } _resultobj
= Py_BuildValue("i",_result
);
485 #define wxSizerItem_IsSizer(_swigobj) (_swigobj->IsSizer())
486 static PyObject
*_wrap_wxSizerItem_IsSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
487 PyObject
* _resultobj
;
490 PyObject
* _argo0
= 0;
491 char *_kwnames
[] = { "self", NULL
};
494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizerItem_IsSizer",_kwnames
,&_argo0
))
497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_IsSizer. Expected _wxSizerItem_p.");
504 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
505 _result
= (bool )wxSizerItem_IsSizer(_arg0
);
507 wxPyEndAllowThreads(__tstate
);
508 if (PyErr_Occurred()) return NULL
;
509 } _resultobj
= Py_BuildValue("i",_result
);
513 #define wxSizerItem_IsSpacer(_swigobj) (_swigobj->IsSpacer())
514 static PyObject
*_wrap_wxSizerItem_IsSpacer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
515 PyObject
* _resultobj
;
518 PyObject
* _argo0
= 0;
519 char *_kwnames
[] = { "self", NULL
};
522 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizerItem_IsSpacer",_kwnames
,&_argo0
))
525 if (_argo0
== Py_None
) { _arg0
= NULL
; }
526 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
527 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_IsSpacer. Expected _wxSizerItem_p.");
532 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
533 _result
= (bool )wxSizerItem_IsSpacer(_arg0
);
535 wxPyEndAllowThreads(__tstate
);
536 if (PyErr_Occurred()) return NULL
;
537 } _resultobj
= Py_BuildValue("i",_result
);
541 #define wxSizerItem_SetProportion(_swigobj,_swigarg0) (_swigobj->SetProportion(_swigarg0))
542 static PyObject
*_wrap_wxSizerItem_SetProportion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
543 PyObject
* _resultobj
;
546 PyObject
* _argo0
= 0;
547 char *_kwnames
[] = { "self","proportion", NULL
};
550 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxSizerItem_SetProportion",_kwnames
,&_argo0
,&_arg1
))
553 if (_argo0
== Py_None
) { _arg0
= NULL
; }
554 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
555 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_SetProportion. Expected _wxSizerItem_p.");
560 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
561 wxSizerItem_SetProportion(_arg0
,_arg1
);
563 wxPyEndAllowThreads(__tstate
);
564 if (PyErr_Occurred()) return NULL
;
565 } Py_INCREF(Py_None
);
566 _resultobj
= Py_None
;
570 #define wxSizerItem_GetProportion(_swigobj) (_swigobj->GetProportion())
571 static PyObject
*_wrap_wxSizerItem_GetProportion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
572 PyObject
* _resultobj
;
575 PyObject
* _argo0
= 0;
576 char *_kwnames
[] = { "self", NULL
};
579 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizerItem_GetProportion",_kwnames
,&_argo0
))
582 if (_argo0
== Py_None
) { _arg0
= NULL
; }
583 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
584 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_GetProportion. Expected _wxSizerItem_p.");
589 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
590 _result
= (int )wxSizerItem_GetProportion(_arg0
);
592 wxPyEndAllowThreads(__tstate
);
593 if (PyErr_Occurred()) return NULL
;
594 } _resultobj
= Py_BuildValue("i",_result
);
598 #define wxSizerItem_SetFlag(_swigobj,_swigarg0) (_swigobj->SetFlag(_swigarg0))
599 static PyObject
*_wrap_wxSizerItem_SetFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
600 PyObject
* _resultobj
;
603 PyObject
* _argo0
= 0;
604 char *_kwnames
[] = { "self","flag", NULL
};
607 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxSizerItem_SetFlag",_kwnames
,&_argo0
,&_arg1
))
610 if (_argo0
== Py_None
) { _arg0
= NULL
; }
611 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
612 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_SetFlag. Expected _wxSizerItem_p.");
617 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
618 wxSizerItem_SetFlag(_arg0
,_arg1
);
620 wxPyEndAllowThreads(__tstate
);
621 if (PyErr_Occurred()) return NULL
;
622 } Py_INCREF(Py_None
);
623 _resultobj
= Py_None
;
627 #define wxSizerItem_GetFlag(_swigobj) (_swigobj->GetFlag())
628 static PyObject
*_wrap_wxSizerItem_GetFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
629 PyObject
* _resultobj
;
632 PyObject
* _argo0
= 0;
633 char *_kwnames
[] = { "self", NULL
};
636 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizerItem_GetFlag",_kwnames
,&_argo0
))
639 if (_argo0
== Py_None
) { _arg0
= NULL
; }
640 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
641 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_GetFlag. Expected _wxSizerItem_p.");
646 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
647 _result
= (int )wxSizerItem_GetFlag(_arg0
);
649 wxPyEndAllowThreads(__tstate
);
650 if (PyErr_Occurred()) return NULL
;
651 } _resultobj
= Py_BuildValue("i",_result
);
655 #define wxSizerItem_SetBorder(_swigobj,_swigarg0) (_swigobj->SetBorder(_swigarg0))
656 static PyObject
*_wrap_wxSizerItem_SetBorder(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
657 PyObject
* _resultobj
;
660 PyObject
* _argo0
= 0;
661 char *_kwnames
[] = { "self","border", NULL
};
664 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxSizerItem_SetBorder",_kwnames
,&_argo0
,&_arg1
))
667 if (_argo0
== Py_None
) { _arg0
= NULL
; }
668 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
669 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_SetBorder. Expected _wxSizerItem_p.");
674 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
675 wxSizerItem_SetBorder(_arg0
,_arg1
);
677 wxPyEndAllowThreads(__tstate
);
678 if (PyErr_Occurred()) return NULL
;
679 } Py_INCREF(Py_None
);
680 _resultobj
= Py_None
;
684 #define wxSizerItem_GetBorder(_swigobj) (_swigobj->GetBorder())
685 static PyObject
*_wrap_wxSizerItem_GetBorder(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
686 PyObject
* _resultobj
;
689 PyObject
* _argo0
= 0;
690 char *_kwnames
[] = { "self", NULL
};
693 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizerItem_GetBorder",_kwnames
,&_argo0
))
696 if (_argo0
== Py_None
) { _arg0
= NULL
; }
697 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
698 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_GetBorder. Expected _wxSizerItem_p.");
703 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
704 _result
= (int )wxSizerItem_GetBorder(_arg0
);
706 wxPyEndAllowThreads(__tstate
);
707 if (PyErr_Occurred()) return NULL
;
708 } _resultobj
= Py_BuildValue("i",_result
);
712 #define wxSizerItem_GetWindow(_swigobj) (_swigobj->GetWindow())
713 static PyObject
*_wrap_wxSizerItem_GetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
714 PyObject
* _resultobj
;
717 PyObject
* _argo0
= 0;
718 char *_kwnames
[] = { "self", NULL
};
721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizerItem_GetWindow",_kwnames
,&_argo0
))
724 if (_argo0
== Py_None
) { _arg0
= NULL
; }
725 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_GetWindow. Expected _wxSizerItem_p.");
731 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
732 _result
= (wxWindow
*)wxSizerItem_GetWindow(_arg0
);
734 wxPyEndAllowThreads(__tstate
);
735 if (PyErr_Occurred()) return NULL
;
736 }{ _resultobj
= wxPyMake_wxObject(_result
); }
740 #define wxSizerItem_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0))
741 static PyObject
*_wrap_wxSizerItem_SetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
742 PyObject
* _resultobj
;
745 PyObject
* _argo0
= 0;
746 PyObject
* _argo1
= 0;
747 char *_kwnames
[] = { "self","window", NULL
};
750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxSizerItem_SetWindow",_kwnames
,&_argo0
,&_argo1
))
753 if (_argo0
== Py_None
) { _arg0
= NULL
; }
754 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_SetWindow. Expected _wxSizerItem_p.");
760 if (_argo1
== Py_None
) { _arg1
= NULL
; }
761 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxSizerItem_SetWindow. Expected _wxWindow_p.");
767 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
768 wxSizerItem_SetWindow(_arg0
,_arg1
);
770 wxPyEndAllowThreads(__tstate
);
771 if (PyErr_Occurred()) return NULL
;
772 } Py_INCREF(Py_None
);
773 _resultobj
= Py_None
;
777 #define wxSizerItem_GetSizer(_swigobj) (_swigobj->GetSizer())
778 static PyObject
*_wrap_wxSizerItem_GetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
779 PyObject
* _resultobj
;
782 PyObject
* _argo0
= 0;
783 char *_kwnames
[] = { "self", NULL
};
786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizerItem_GetSizer",_kwnames
,&_argo0
))
789 if (_argo0
== Py_None
) { _arg0
= NULL
; }
790 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_GetSizer. Expected _wxSizerItem_p.");
796 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
797 _result
= (wxSizer
*)wxSizerItem_GetSizer(_arg0
);
799 wxPyEndAllowThreads(__tstate
);
800 if (PyErr_Occurred()) return NULL
;
801 }{ _resultobj
= wxPyMake_wxSizer(_result
); }
805 #define wxSizerItem_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0))
806 static PyObject
*_wrap_wxSizerItem_SetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
807 PyObject
* _resultobj
;
810 PyObject
* _argo0
= 0;
811 PyObject
* _argo1
= 0;
812 char *_kwnames
[] = { "self","sizer", NULL
};
815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxSizerItem_SetSizer",_kwnames
,&_argo0
,&_argo1
))
818 if (_argo0
== Py_None
) { _arg0
= NULL
; }
819 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_SetSizer. Expected _wxSizerItem_p.");
825 if (_argo1
== Py_None
) { _arg1
= NULL
; }
826 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxSizer_p")) {
827 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxSizerItem_SetSizer. Expected _wxSizer_p.");
832 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
833 wxSizerItem_SetSizer(_arg0
,_arg1
);
835 wxPyEndAllowThreads(__tstate
);
836 if (PyErr_Occurred()) return NULL
;
837 } Py_INCREF(Py_None
);
838 _resultobj
= Py_None
;
842 #define wxSizerItem_GetSpacer(_swigobj) (_swigobj->GetSpacer())
843 static PyObject
*_wrap_wxSizerItem_GetSpacer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
844 PyObject
* _resultobj
;
847 PyObject
* _argo0
= 0;
848 char *_kwnames
[] = { "self", NULL
};
852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizerItem_GetSpacer",_kwnames
,&_argo0
))
855 if (_argo0
== Py_None
) { _arg0
= NULL
; }
856 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_GetSpacer. Expected _wxSizerItem_p.");
862 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
863 const wxSize
& _result_ref
= wxSizerItem_GetSpacer(_arg0
);
864 _result
= (wxSize
*) &_result_ref
;
866 wxPyEndAllowThreads(__tstate
);
867 if (PyErr_Occurred()) return NULL
;
869 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxSize_p");
870 _resultobj
= Py_BuildValue("s",_ptemp
);
873 _resultobj
= Py_None
;
878 #define wxSizerItem_SetSpacer(_swigobj,_swigarg0) (_swigobj->SetSpacer(_swigarg0))
879 static PyObject
*_wrap_wxSizerItem_SetSpacer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
880 PyObject
* _resultobj
;
883 PyObject
* _argo0
= 0;
885 PyObject
* _obj1
= 0;
886 char *_kwnames
[] = { "self","size", NULL
};
889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxSizerItem_SetSpacer",_kwnames
,&_argo0
,&_obj1
))
892 if (_argo0
== Py_None
) { _arg0
= NULL
; }
893 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
894 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_SetSpacer. Expected _wxSizerItem_p.");
900 if (! wxSize_helper(_obj1
, &_arg1
))
904 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
905 wxSizerItem_SetSpacer(_arg0
,*_arg1
);
907 wxPyEndAllowThreads(__tstate
);
908 if (PyErr_Occurred()) return NULL
;
909 } Py_INCREF(Py_None
);
910 _resultobj
= Py_None
;
914 #define wxSizerItem_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
915 static PyObject
*_wrap_wxSizerItem_Show(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
916 PyObject
* _resultobj
;
919 PyObject
* _argo0
= 0;
921 char *_kwnames
[] = { "self","show", NULL
};
924 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxSizerItem_Show",_kwnames
,&_argo0
,&tempbool1
))
927 if (_argo0
== Py_None
) { _arg0
= NULL
; }
928 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
929 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_Show. Expected _wxSizerItem_p.");
933 _arg1
= (bool ) tempbool1
;
935 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
936 wxSizerItem_Show(_arg0
,_arg1
);
938 wxPyEndAllowThreads(__tstate
);
939 if (PyErr_Occurred()) return NULL
;
940 } Py_INCREF(Py_None
);
941 _resultobj
= Py_None
;
945 #define wxSizerItem_IsShown(_swigobj) (_swigobj->IsShown())
946 static PyObject
*_wrap_wxSizerItem_IsShown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
947 PyObject
* _resultobj
;
950 PyObject
* _argo0
= 0;
951 char *_kwnames
[] = { "self", NULL
};
954 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizerItem_IsShown",_kwnames
,&_argo0
))
957 if (_argo0
== Py_None
) { _arg0
= NULL
; }
958 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
959 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_IsShown. Expected _wxSizerItem_p.");
964 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
965 _result
= (bool )wxSizerItem_IsShown(_arg0
);
967 wxPyEndAllowThreads(__tstate
);
968 if (PyErr_Occurred()) return NULL
;
969 } _resultobj
= Py_BuildValue("i",_result
);
973 #define wxSizerItem_GetPosition(_swigobj) (_swigobj->GetPosition())
974 static PyObject
*_wrap_wxSizerItem_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
975 PyObject
* _resultobj
;
978 PyObject
* _argo0
= 0;
979 char *_kwnames
[] = { "self", NULL
};
983 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizerItem_GetPosition",_kwnames
,&_argo0
))
986 if (_argo0
== Py_None
) { _arg0
= NULL
; }
987 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
988 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_GetPosition. Expected _wxSizerItem_p.");
993 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
994 _result
= new wxPoint (wxSizerItem_GetPosition(_arg0
));
996 wxPyEndAllowThreads(__tstate
);
997 if (PyErr_Occurred()) return NULL
;
998 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
999 _resultobj
= Py_BuildValue("s",_ptemp
);
1003 static PyObject
* wxSizerItem_GetUserData(wxSizerItem
*self
) {
1004 wxPyUserData
* data
= (wxPyUserData
*)self
->GetUserData();
1006 Py_INCREF(data
->m_obj
);
1013 static PyObject
*_wrap_wxSizerItem_GetUserData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1014 PyObject
* _resultobj
;
1016 wxSizerItem
* _arg0
;
1017 PyObject
* _argo0
= 0;
1018 char *_kwnames
[] = { "self", NULL
};
1021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizerItem_GetUserData",_kwnames
,&_argo0
))
1024 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1025 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizerItem_p")) {
1026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizerItem_GetUserData. Expected _wxSizerItem_p.");
1031 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1032 _result
= (PyObject
*)wxSizerItem_GetUserData(_arg0
);
1034 wxPyEndAllowThreads(__tstate
);
1035 if (PyErr_Occurred()) return NULL
;
1037 _resultobj
= _result
;
1042 static void *SwigwxSizerTowxObject(void *ptr
) {
1045 src
= (wxSizer
*) ptr
;
1046 dest
= (wxObject
*) src
;
1047 return (void *) dest
;
1050 static void wxSizer__setOORInfo(wxSizer
*self
,PyObject
* _self
) {
1051 self
->SetClientObject(new wxPyOORClientData(_self
));
1053 static PyObject
*_wrap_wxSizer__setOORInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1054 PyObject
* _resultobj
;
1057 PyObject
* _argo0
= 0;
1058 PyObject
* _obj1
= 0;
1059 char *_kwnames
[] = { "self","_self", NULL
};
1062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxSizer__setOORInfo",_kwnames
,&_argo0
,&_obj1
))
1065 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1066 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1067 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer__setOORInfo. Expected _wxSizer_p.");
1075 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1076 wxSizer__setOORInfo(_arg0
,_arg1
);
1078 wxPyEndAllowThreads(__tstate
);
1079 if (PyErr_Occurred()) return NULL
;
1080 } Py_INCREF(Py_None
);
1081 _resultobj
= Py_None
;
1085 static void wxSizer_Destroy(wxSizer
*self
) { delete self
; }
1086 static PyObject
*_wrap_wxSizer_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1087 PyObject
* _resultobj
;
1089 PyObject
* _argo0
= 0;
1090 char *_kwnames
[] = { "self", NULL
};
1093 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizer_Destroy",_kwnames
,&_argo0
))
1096 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1097 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1098 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer_Destroy. Expected _wxSizer_p.");
1103 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1104 wxSizer_Destroy(_arg0
);
1106 wxPyEndAllowThreads(__tstate
);
1107 if (PyErr_Occurred()) return NULL
;
1108 } Py_INCREF(Py_None
);
1109 _resultobj
= Py_None
;
1113 static void wxSizer__Add(wxSizer
*self
,PyObject
* item
,int proportion
,int flag
,int border
,PyObject
* userData
,int option
) {
1114 // The option parameter is only for backwards compatibility
1115 // with keyword args, all new code should use "proportion"
1116 // instead. This can be removed eventually.
1117 if (option
!= -1) proportion
= option
;
1122 wxSize
* sizePtr
= &size
;
1123 wxPyUserData
* data
= NULL
;
1124 if (userData
) data
= new wxPyUserData(userData
);
1126 // Find out what type the item is and call the real Add method
1127 if (! SWIG_GetPtrObj(item
, (void**)&window
, "_wxWindow_p"))
1128 self
->Add(window
, proportion
, flag
, border
, data
);
1130 else if (!SWIG_GetPtrObj(item
, (void**)&sizer
, "_wxSizer_p"))
1131 self
->Add(sizer
, proportion
, flag
, border
, data
);
1133 else if (wxSize_helper(item
, &sizePtr
))
1134 self
->Add(sizePtr
->GetWidth(), sizePtr
->GetHeight(),
1135 proportion
, flag
, border
, data
);
1137 if (data
) delete data
;
1138 PyErr_SetString(PyExc_TypeError
,
1139 "wxWindow, wxSizer, wxSize, or (w,h) expected for item");
1142 static PyObject
*_wrap_wxSizer__Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1143 PyObject
* _resultobj
;
1146 int _arg2
= (int ) 0;
1147 int _arg3
= (int ) 0;
1148 int _arg4
= (int ) 0;
1149 PyObject
* _arg5
= (PyObject
*) NULL
;
1150 int _arg6
= (int ) -1;
1151 PyObject
* _argo0
= 0;
1152 PyObject
* _obj1
= 0;
1153 PyObject
* _obj5
= 0;
1154 char *_kwnames
[] = { "self","item","proportion","flag","border","userData","option", NULL
};
1157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|iiiOi:wxSizer__Add",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
,&_obj5
,&_arg6
))
1160 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1161 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1162 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer__Add. Expected _wxSizer_p.");
1174 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1175 wxSizer__Add(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
1177 wxPyEndAllowThreads(__tstate
);
1178 if (PyErr_Occurred()) return NULL
;
1179 } Py_INCREF(Py_None
);
1180 _resultobj
= Py_None
;
1184 static void wxSizer__Insert(wxSizer
*self
,int before
,PyObject
* item
,int proportion
,int flag
,int border
,PyObject
* userData
,int option
) {
1185 // The option parameter is only for backwards compatibility
1186 // with keyword args, all new code should use "proportion"
1187 // instead. This can be removed eventually.
1188 if (option
!= -1) proportion
= option
;
1193 wxSize
* sizePtr
= &size
;
1194 wxPyUserData
* data
= NULL
;
1195 if (userData
) data
= new wxPyUserData(userData
);
1197 // Find out what type the item is and call the real Insert method
1198 if (! SWIG_GetPtrObj(item
, (void**)&window
, "_wxWindow_p"))
1199 self
->Insert(before
, window
, proportion
, flag
, border
, data
);
1201 else if (!SWIG_GetPtrObj(item
, (void**)&sizer
, "_wxSizer_p"))
1202 self
->Insert(before
, sizer
, proportion
, flag
, border
, data
);
1204 else if (wxSize_helper(item
, &sizePtr
))
1205 self
->Insert(before
, sizePtr
->GetWidth(), sizePtr
->GetHeight(),
1206 proportion
, flag
, border
, data
);
1208 if (data
) delete data
;
1209 PyErr_SetString(PyExc_TypeError
,
1210 "wxWindow, wxSizer, wxSize, or (w,h) expected for item");
1213 static PyObject
*_wrap_wxSizer__Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1214 PyObject
* _resultobj
;
1218 int _arg3
= (int ) 0;
1219 int _arg4
= (int ) 0;
1220 int _arg5
= (int ) 0;
1221 PyObject
* _arg6
= (PyObject
*) NULL
;
1222 int _arg7
= (int ) -1;
1223 PyObject
* _argo0
= 0;
1224 PyObject
* _obj2
= 0;
1225 PyObject
* _obj6
= 0;
1226 char *_kwnames
[] = { "self","before","item","proportion","flag","border","userData","option", NULL
};
1229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|iiiOi:wxSizer__Insert",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_arg3
,&_arg4
,&_arg5
,&_obj6
,&_arg7
))
1232 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1233 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1234 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer__Insert. Expected _wxSizer_p.");
1246 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1247 wxSizer__Insert(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
1249 wxPyEndAllowThreads(__tstate
);
1250 if (PyErr_Occurred()) return NULL
;
1251 } Py_INCREF(Py_None
);
1252 _resultobj
= Py_None
;
1256 static void wxSizer__Prepend(wxSizer
*self
,PyObject
* item
,int proportion
,int flag
,int border
,PyObject
* userData
,int option
) {
1257 // The option parameter is only for backwards compatibility
1258 // with keyword args, all new code should use "proportion"
1259 // instead. This can be removed eventually.
1260 if (option
!= -1) proportion
= option
;
1265 wxSize
* sizePtr
= &size
;
1266 wxPyUserData
* data
= NULL
;
1267 if (userData
) data
= new wxPyUserData(userData
);
1269 // Find out what type the item is and call the real Prepend method
1270 if (! SWIG_GetPtrObj(item
, (void**)&window
, "_wxWindow_p"))
1271 self
->Prepend(window
, proportion
, flag
, border
, data
);
1273 else if (!SWIG_GetPtrObj(item
, (void**)&sizer
, "_wxSizer_p"))
1274 self
->Prepend(sizer
, proportion
, flag
, border
, data
);
1276 else if (wxSize_helper(item
, &sizePtr
))
1277 self
->Prepend(sizePtr
->GetWidth(), sizePtr
->GetHeight(),
1278 proportion
, flag
, border
, data
);
1280 if (data
) delete data
;
1281 PyErr_SetString(PyExc_TypeError
,
1282 "wxWindow, wxSizer, wxSize, or (w,h) expected for item");
1285 static PyObject
*_wrap_wxSizer__Prepend(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1286 PyObject
* _resultobj
;
1289 int _arg2
= (int ) 0;
1290 int _arg3
= (int ) 0;
1291 int _arg4
= (int ) 0;
1292 PyObject
* _arg5
= (PyObject
*) NULL
;
1293 int _arg6
= (int ) -1;
1294 PyObject
* _argo0
= 0;
1295 PyObject
* _obj1
= 0;
1296 PyObject
* _obj5
= 0;
1297 char *_kwnames
[] = { "self","item","proportion","flag","border","userData","option", NULL
};
1300 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|iiiOi:wxSizer__Prepend",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
,&_obj5
,&_arg6
))
1303 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1304 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1305 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer__Prepend. Expected _wxSizer_p.");
1317 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1318 wxSizer__Prepend(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
1320 wxPyEndAllowThreads(__tstate
);
1321 if (PyErr_Occurred()) return NULL
;
1322 } Py_INCREF(Py_None
);
1323 _resultobj
= Py_None
;
1327 static bool wxSizer_Remove(wxSizer
*self
,PyObject
* item
) {
1331 // Find out what type the item is and call the real Remove method
1332 if (! SWIG_GetPtrObj(item
, (void**)&window
, "_wxWindow_p"))
1333 return self
->Remove(window
);
1335 else if (!SWIG_GetPtrObj(item
, (void**)&sizer
, "_wxSizer_p"))
1336 return self
->Remove(sizer
);
1338 else if (PyInt_Check(item
)) {
1339 int pos
= PyInt_AsLong(item
);
1340 return self
->Remove(pos
);
1343 PyErr_SetString(PyExc_TypeError
,
1344 "wxWindow, wxSizer or int (position) expected.");
1348 static PyObject
*_wrap_wxSizer_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1349 PyObject
* _resultobj
;
1353 PyObject
* _argo0
= 0;
1354 PyObject
* _obj1
= 0;
1355 char *_kwnames
[] = { "self","item", NULL
};
1358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxSizer_Remove",_kwnames
,&_argo0
,&_obj1
))
1361 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1362 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer_Remove. Expected _wxSizer_p.");
1371 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1372 _result
= (bool )wxSizer_Remove(_arg0
,_arg1
);
1374 wxPyEndAllowThreads(__tstate
);
1375 if (PyErr_Occurred()) return NULL
;
1376 } _resultobj
= Py_BuildValue("i",_result
);
1380 static void wxSizer__SetItemMinSize(wxSizer
*self
,PyObject
* item
,wxSize size
) {
1384 // Find out what type the item is and call the real Remove method
1385 if (! SWIG_GetPtrObj(item
, (void**)&window
, "_wxWindow_p"))
1386 self
->SetItemMinSize(window
, size
);
1388 else if (!SWIG_GetPtrObj(item
, (void**)&sizer
, "_wxSizer_p"))
1389 self
->SetItemMinSize(sizer
, size
);
1391 else if (PyInt_Check(item
)) {
1392 int pos
= PyInt_AsLong(item
);
1393 self
->SetItemMinSize(pos
, size
);
1396 PyErr_SetString(PyExc_TypeError
,
1397 "wxWindow, wxSizer or int (position) expected.");
1399 static PyObject
*_wrap_wxSizer__SetItemMinSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1400 PyObject
* _resultobj
;
1404 PyObject
* _argo0
= 0;
1405 PyObject
* _obj1
= 0;
1407 PyObject
* _obj2
= 0;
1408 char *_kwnames
[] = { "self","item","size", NULL
};
1411 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxSizer__SetItemMinSize",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1414 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1415 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1416 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer__SetItemMinSize. Expected _wxSizer_p.");
1425 if (! wxSize_helper(_obj2
, &_arg2
))
1429 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1430 wxSizer__SetItemMinSize(_arg0
,_arg1
,*_arg2
);
1432 wxPyEndAllowThreads(__tstate
);
1433 if (PyErr_Occurred()) return NULL
;
1434 } Py_INCREF(Py_None
);
1435 _resultobj
= Py_None
;
1439 #define wxSizer_SetDimension(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetDimension(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1440 static PyObject
*_wrap_wxSizer_SetDimension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1441 PyObject
* _resultobj
;
1447 PyObject
* _argo0
= 0;
1448 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
1451 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxSizer_SetDimension",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
1454 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1455 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1456 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer_SetDimension. Expected _wxSizer_p.");
1461 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1462 wxSizer_SetDimension(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
1464 wxPyEndAllowThreads(__tstate
);
1465 if (PyErr_Occurred()) return NULL
;
1466 } Py_INCREF(Py_None
);
1467 _resultobj
= Py_None
;
1471 #define wxSizer_SetMinSize(_swigobj,_swigarg0) (_swigobj->SetMinSize(_swigarg0))
1472 static PyObject
*_wrap_wxSizer_SetMinSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1473 PyObject
* _resultobj
;
1476 PyObject
* _argo0
= 0;
1478 PyObject
* _obj1
= 0;
1479 char *_kwnames
[] = { "self","size", NULL
};
1482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxSizer_SetMinSize",_kwnames
,&_argo0
,&_obj1
))
1485 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1486 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer_SetMinSize. Expected _wxSizer_p.");
1493 if (! wxSize_helper(_obj1
, &_arg1
))
1497 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1498 wxSizer_SetMinSize(_arg0
,*_arg1
);
1500 wxPyEndAllowThreads(__tstate
);
1501 if (PyErr_Occurred()) return NULL
;
1502 } Py_INCREF(Py_None
);
1503 _resultobj
= Py_None
;
1507 #define wxSizer_GetSize(_swigobj) (_swigobj->GetSize())
1508 static PyObject
*_wrap_wxSizer_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1509 PyObject
* _resultobj
;
1512 PyObject
* _argo0
= 0;
1513 char *_kwnames
[] = { "self", NULL
};
1517 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizer_GetSize",_kwnames
,&_argo0
))
1520 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1521 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1522 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer_GetSize. Expected _wxSizer_p.");
1527 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1528 _result
= new wxSize (wxSizer_GetSize(_arg0
));
1530 wxPyEndAllowThreads(__tstate
);
1531 if (PyErr_Occurred()) return NULL
;
1532 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
1533 _resultobj
= Py_BuildValue("s",_ptemp
);
1537 #define wxSizer_GetPosition(_swigobj) (_swigobj->GetPosition())
1538 static PyObject
*_wrap_wxSizer_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1539 PyObject
* _resultobj
;
1542 PyObject
* _argo0
= 0;
1543 char *_kwnames
[] = { "self", NULL
};
1547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizer_GetPosition",_kwnames
,&_argo0
))
1550 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1551 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer_GetPosition. Expected _wxSizer_p.");
1557 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1558 _result
= new wxPoint (wxSizer_GetPosition(_arg0
));
1560 wxPyEndAllowThreads(__tstate
);
1561 if (PyErr_Occurred()) return NULL
;
1562 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
1563 _resultobj
= Py_BuildValue("s",_ptemp
);
1567 #define wxSizer_GetMinSize(_swigobj) (_swigobj->GetMinSize())
1568 static PyObject
*_wrap_wxSizer_GetMinSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1569 PyObject
* _resultobj
;
1572 PyObject
* _argo0
= 0;
1573 char *_kwnames
[] = { "self", NULL
};
1577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizer_GetMinSize",_kwnames
,&_argo0
))
1580 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1581 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1582 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer_GetMinSize. Expected _wxSizer_p.");
1587 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1588 _result
= new wxSize (wxSizer_GetMinSize(_arg0
));
1590 wxPyEndAllowThreads(__tstate
);
1591 if (PyErr_Occurred()) return NULL
;
1592 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
1593 _resultobj
= Py_BuildValue("s",_ptemp
);
1597 #define wxSizer_Layout(_swigobj) (_swigobj->Layout())
1598 static PyObject
*_wrap_wxSizer_Layout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1599 PyObject
* _resultobj
;
1601 PyObject
* _argo0
= 0;
1602 char *_kwnames
[] = { "self", NULL
};
1605 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizer_Layout",_kwnames
,&_argo0
))
1608 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1609 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1610 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer_Layout. Expected _wxSizer_p.");
1615 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1616 wxSizer_Layout(_arg0
);
1618 wxPyEndAllowThreads(__tstate
);
1619 if (PyErr_Occurred()) return NULL
;
1620 } Py_INCREF(Py_None
);
1621 _resultobj
= Py_None
;
1625 #define wxSizer_Fit(_swigobj,_swigarg0) (_swigobj->Fit(_swigarg0))
1626 static PyObject
*_wrap_wxSizer_Fit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1627 PyObject
* _resultobj
;
1631 PyObject
* _argo0
= 0;
1632 PyObject
* _argo1
= 0;
1633 char *_kwnames
[] = { "self","window", NULL
};
1637 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxSizer_Fit",_kwnames
,&_argo0
,&_argo1
))
1640 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1641 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1642 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer_Fit. Expected _wxSizer_p.");
1647 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1648 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
1649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxSizer_Fit. Expected _wxWindow_p.");
1654 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1655 _result
= new wxSize (wxSizer_Fit(_arg0
,_arg1
));
1657 wxPyEndAllowThreads(__tstate
);
1658 if (PyErr_Occurred()) return NULL
;
1659 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
1660 _resultobj
= Py_BuildValue("s",_ptemp
);
1664 #define wxSizer_FitInside(_swigobj,_swigarg0) (_swigobj->FitInside(_swigarg0))
1665 static PyObject
*_wrap_wxSizer_FitInside(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1666 PyObject
* _resultobj
;
1669 PyObject
* _argo0
= 0;
1670 PyObject
* _argo1
= 0;
1671 char *_kwnames
[] = { "self","window", NULL
};
1674 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxSizer_FitInside",_kwnames
,&_argo0
,&_argo1
))
1677 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1678 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1679 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer_FitInside. Expected _wxSizer_p.");
1684 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1685 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
1686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxSizer_FitInside. Expected _wxWindow_p.");
1691 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1692 wxSizer_FitInside(_arg0
,_arg1
);
1694 wxPyEndAllowThreads(__tstate
);
1695 if (PyErr_Occurred()) return NULL
;
1696 } Py_INCREF(Py_None
);
1697 _resultobj
= Py_None
;
1701 #define wxSizer_SetSizeHints(_swigobj,_swigarg0) (_swigobj->SetSizeHints(_swigarg0))
1702 static PyObject
*_wrap_wxSizer_SetSizeHints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1703 PyObject
* _resultobj
;
1706 PyObject
* _argo0
= 0;
1707 PyObject
* _argo1
= 0;
1708 char *_kwnames
[] = { "self","window", NULL
};
1711 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxSizer_SetSizeHints",_kwnames
,&_argo0
,&_argo1
))
1714 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1715 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1716 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer_SetSizeHints. Expected _wxSizer_p.");
1721 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1722 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
1723 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxSizer_SetSizeHints. Expected _wxWindow_p.");
1728 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1729 wxSizer_SetSizeHints(_arg0
,_arg1
);
1731 wxPyEndAllowThreads(__tstate
);
1732 if (PyErr_Occurred()) return NULL
;
1733 } Py_INCREF(Py_None
);
1734 _resultobj
= Py_None
;
1738 #define wxSizer_SetVirtualSizeHints(_swigobj,_swigarg0) (_swigobj->SetVirtualSizeHints(_swigarg0))
1739 static PyObject
*_wrap_wxSizer_SetVirtualSizeHints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1740 PyObject
* _resultobj
;
1743 PyObject
* _argo0
= 0;
1744 PyObject
* _argo1
= 0;
1745 char *_kwnames
[] = { "self","window", NULL
};
1748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxSizer_SetVirtualSizeHints",_kwnames
,&_argo0
,&_argo1
))
1751 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1752 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1753 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer_SetVirtualSizeHints. Expected _wxSizer_p.");
1758 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1759 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
1760 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxSizer_SetVirtualSizeHints. Expected _wxWindow_p.");
1765 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1766 wxSizer_SetVirtualSizeHints(_arg0
,_arg1
);
1768 wxPyEndAllowThreads(__tstate
);
1769 if (PyErr_Occurred()) return NULL
;
1770 } Py_INCREF(Py_None
);
1771 _resultobj
= Py_None
;
1775 #define wxSizer_Clear(_swigobj,_swigarg0) (_swigobj->Clear(_swigarg0))
1776 static PyObject
*_wrap_wxSizer_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1777 PyObject
* _resultobj
;
1779 bool _arg1
= (bool ) FALSE
;
1780 PyObject
* _argo0
= 0;
1781 int tempbool1
= (int) FALSE
;
1782 char *_kwnames
[] = { "self","delete_windows", NULL
};
1785 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxSizer_Clear",_kwnames
,&_argo0
,&tempbool1
))
1788 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1789 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1790 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer_Clear. Expected _wxSizer_p.");
1794 _arg1
= (bool ) tempbool1
;
1796 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1797 wxSizer_Clear(_arg0
,_arg1
);
1799 wxPyEndAllowThreads(__tstate
);
1800 if (PyErr_Occurred()) return NULL
;
1801 } Py_INCREF(Py_None
);
1802 _resultobj
= Py_None
;
1806 #define wxSizer_DeleteWindows(_swigobj) (_swigobj->DeleteWindows())
1807 static PyObject
*_wrap_wxSizer_DeleteWindows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1808 PyObject
* _resultobj
;
1810 PyObject
* _argo0
= 0;
1811 char *_kwnames
[] = { "self", NULL
};
1814 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizer_DeleteWindows",_kwnames
,&_argo0
))
1817 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1818 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1819 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer_DeleteWindows. Expected _wxSizer_p.");
1824 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1825 wxSizer_DeleteWindows(_arg0
);
1827 wxPyEndAllowThreads(__tstate
);
1828 if (PyErr_Occurred()) return NULL
;
1829 } Py_INCREF(Py_None
);
1830 _resultobj
= Py_None
;
1834 static PyObject
* wxSizer_GetChildren(wxSizer
*self
) {
1835 wxList
& list
= self
->GetChildren();
1836 return wxPy_ConvertList(&list
, "wxSizerItem");
1838 static PyObject
*_wrap_wxSizer_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1839 PyObject
* _resultobj
;
1842 PyObject
* _argo0
= 0;
1843 char *_kwnames
[] = { "self", NULL
};
1846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSizer_GetChildren",_kwnames
,&_argo0
))
1849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer_GetChildren. Expected _wxSizer_p.");
1856 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1857 _result
= (PyObject
*)wxSizer_GetChildren(_arg0
);
1859 wxPyEndAllowThreads(__tstate
);
1860 if (PyErr_Occurred()) return NULL
;
1862 _resultobj
= _result
;
1867 static void wxSizer_Show(wxSizer
*self
,PyObject
* item
,bool show
) {
1870 // Find out what type the item is and call the real method
1871 if (! SWIG_GetPtrObj(item
, (void**)&window
, "_wxWindow_p"))
1872 self
->Show(window
, show
);
1873 else if (!SWIG_GetPtrObj(item
, (void**)&sizer
, "_wxSizer_p"))
1874 self
->Show(sizer
, show
);
1876 PyErr_SetString(PyExc_TypeError
, "wxWindow or wxSizer expected.");
1878 static PyObject
*_wrap_wxSizer_Show(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1879 PyObject
* _resultobj
;
1882 bool _arg2
= (bool ) TRUE
;
1883 PyObject
* _argo0
= 0;
1884 PyObject
* _obj1
= 0;
1885 int tempbool2
= (int) TRUE
;
1886 char *_kwnames
[] = { "self","item","show", NULL
};
1889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxSizer_Show",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
1892 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1893 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1894 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer_Show. Expected _wxSizer_p.");
1901 _arg2
= (bool ) tempbool2
;
1903 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1904 wxSizer_Show(_arg0
,_arg1
,_arg2
);
1906 wxPyEndAllowThreads(__tstate
);
1907 if (PyErr_Occurred()) return NULL
;
1908 } Py_INCREF(Py_None
);
1909 _resultobj
= Py_None
;
1913 static void wxSizer_Hide(wxSizer
*self
,PyObject
* item
) {
1916 // Find out what type the item is and call the real method
1917 if (! SWIG_GetPtrObj(item
, (void**)&window
, "_wxWindow_p"))
1919 else if (!SWIG_GetPtrObj(item
, (void**)&sizer
, "_wxSizer_p"))
1922 PyErr_SetString(PyExc_TypeError
, "wxWindow or wxSizer expected.");
1924 static PyObject
*_wrap_wxSizer_Hide(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1925 PyObject
* _resultobj
;
1928 PyObject
* _argo0
= 0;
1929 PyObject
* _obj1
= 0;
1930 char *_kwnames
[] = { "self","item", NULL
};
1933 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxSizer_Hide",_kwnames
,&_argo0
,&_obj1
))
1936 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1937 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1938 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer_Hide. Expected _wxSizer_p.");
1946 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1947 wxSizer_Hide(_arg0
,_arg1
);
1949 wxPyEndAllowThreads(__tstate
);
1950 if (PyErr_Occurred()) return NULL
;
1951 } Py_INCREF(Py_None
);
1952 _resultobj
= Py_None
;
1956 static bool wxSizer_IsShown(wxSizer
*self
,PyObject
* item
) {
1959 // Find out what type the item is and call the real method
1960 if (! SWIG_GetPtrObj(item
, (void**)&window
, "_wxWindow_p"))
1961 return self
->IsShown(window
);
1962 else if (!SWIG_GetPtrObj(item
, (void**)&sizer
, "_wxSizer_p"))
1963 return self
->IsShown(sizer
);
1965 PyErr_SetString(PyExc_TypeError
, "wxWindow or wxSizer expected.");
1969 static PyObject
*_wrap_wxSizer_IsShown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1970 PyObject
* _resultobj
;
1974 PyObject
* _argo0
= 0;
1975 PyObject
* _obj1
= 0;
1976 char *_kwnames
[] = { "self","item", NULL
};
1979 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxSizer_IsShown",_kwnames
,&_argo0
,&_obj1
))
1982 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1983 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
1984 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer_IsShown. Expected _wxSizer_p.");
1992 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1993 _result
= (bool )wxSizer_IsShown(_arg0
,_arg1
);
1995 wxPyEndAllowThreads(__tstate
);
1996 if (PyErr_Occurred()) return NULL
;
1997 } _resultobj
= Py_BuildValue("i",_result
);
2001 #define wxSizer_ShowItems(_swigobj,_swigarg0) (_swigobj->ShowItems(_swigarg0))
2002 static PyObject
*_wrap_wxSizer_ShowItems(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2003 PyObject
* _resultobj
;
2006 PyObject
* _argo0
= 0;
2008 char *_kwnames
[] = { "self","show", NULL
};
2011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxSizer_ShowItems",_kwnames
,&_argo0
,&tempbool1
))
2014 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2015 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSizer_p")) {
2016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSizer_ShowItems. Expected _wxSizer_p.");
2020 _arg1
= (bool ) tempbool1
;
2022 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2023 wxSizer_ShowItems(_arg0
,_arg1
);
2025 wxPyEndAllowThreads(__tstate
);
2026 if (PyErr_Occurred()) return NULL
;
2027 } Py_INCREF(Py_None
);
2028 _resultobj
= Py_None
;
2032 static void *SwigwxPySizerTowxSizer(void *ptr
) {
2035 src
= (wxPySizer
*) ptr
;
2036 dest
= (wxSizer
*) src
;
2037 return (void *) dest
;
2040 static void *SwigwxPySizerTowxObject(void *ptr
) {
2043 src
= (wxPySizer
*) ptr
;
2044 dest
= (wxObject
*) src
;
2045 return (void *) dest
;
2048 #define new_wxPySizer() (new wxPySizer())
2049 static PyObject
*_wrap_new_wxPySizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2050 PyObject
* _resultobj
;
2051 wxPySizer
* _result
;
2052 char *_kwnames
[] = { NULL
};
2056 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPySizer",_kwnames
))
2059 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2060 _result
= (wxPySizer
*)new_wxPySizer();
2062 wxPyEndAllowThreads(__tstate
);
2063 if (PyErr_Occurred()) return NULL
;
2065 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPySizer_p");
2066 _resultobj
= Py_BuildValue("s",_ptemp
);
2069 _resultobj
= Py_None
;
2074 #define wxPySizer__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2075 static PyObject
*_wrap_wxPySizer__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2076 PyObject
* _resultobj
;
2080 PyObject
* _argo0
= 0;
2081 PyObject
* _obj1
= 0;
2082 PyObject
* _obj2
= 0;
2083 char *_kwnames
[] = { "self","self","_class", NULL
};
2086 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPySizer__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2089 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2090 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPySizer_p")) {
2091 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPySizer__setCallbackInfo. Expected _wxPySizer_p.");
2102 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2103 wxPySizer__setCallbackInfo(_arg0
,_arg1
,_arg2
);
2105 wxPyEndAllowThreads(__tstate
);
2106 if (PyErr_Occurred()) return NULL
;
2107 } Py_INCREF(Py_None
);
2108 _resultobj
= Py_None
;
2112 static void *SwigwxBoxSizerTowxSizer(void *ptr
) {
2115 src
= (wxBoxSizer
*) ptr
;
2116 dest
= (wxSizer
*) src
;
2117 return (void *) dest
;
2120 static void *SwigwxBoxSizerTowxObject(void *ptr
) {
2123 src
= (wxBoxSizer
*) ptr
;
2124 dest
= (wxObject
*) src
;
2125 return (void *) dest
;
2128 #define new_wxBoxSizer(_swigarg0) (new wxBoxSizer(_swigarg0))
2129 static PyObject
*_wrap_new_wxBoxSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2130 PyObject
* _resultobj
;
2131 wxBoxSizer
* _result
;
2132 int _arg0
= (int ) wxHORIZONTAL
;
2133 char *_kwnames
[] = { "orient", NULL
};
2137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:new_wxBoxSizer",_kwnames
,&_arg0
))
2140 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2141 _result
= (wxBoxSizer
*)new_wxBoxSizer(_arg0
);
2143 wxPyEndAllowThreads(__tstate
);
2144 if (PyErr_Occurred()) return NULL
;
2146 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBoxSizer_p");
2147 _resultobj
= Py_BuildValue("s",_ptemp
);
2150 _resultobj
= Py_None
;
2155 #define wxBoxSizer_GetOrientation(_swigobj) (_swigobj->GetOrientation())
2156 static PyObject
*_wrap_wxBoxSizer_GetOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2157 PyObject
* _resultobj
;
2160 PyObject
* _argo0
= 0;
2161 char *_kwnames
[] = { "self", NULL
};
2164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBoxSizer_GetOrientation",_kwnames
,&_argo0
))
2167 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2168 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBoxSizer_p")) {
2169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBoxSizer_GetOrientation. Expected _wxBoxSizer_p.");
2174 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2175 _result
= (int )wxBoxSizer_GetOrientation(_arg0
);
2177 wxPyEndAllowThreads(__tstate
);
2178 if (PyErr_Occurred()) return NULL
;
2179 } _resultobj
= Py_BuildValue("i",_result
);
2183 #define wxBoxSizer_SetOrientation(_swigobj,_swigarg0) (_swigobj->SetOrientation(_swigarg0))
2184 static PyObject
*_wrap_wxBoxSizer_SetOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2185 PyObject
* _resultobj
;
2188 PyObject
* _argo0
= 0;
2189 char *_kwnames
[] = { "self","orient", NULL
};
2192 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBoxSizer_SetOrientation",_kwnames
,&_argo0
,&_arg1
))
2195 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2196 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBoxSizer_p")) {
2197 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBoxSizer_SetOrientation. Expected _wxBoxSizer_p.");
2202 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2203 wxBoxSizer_SetOrientation(_arg0
,_arg1
);
2205 wxPyEndAllowThreads(__tstate
);
2206 if (PyErr_Occurred()) return NULL
;
2207 } Py_INCREF(Py_None
);
2208 _resultobj
= Py_None
;
2212 #define wxBoxSizer_RecalcSizes(_swigobj) (_swigobj->RecalcSizes())
2213 static PyObject
*_wrap_wxBoxSizer_RecalcSizes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2214 PyObject
* _resultobj
;
2216 PyObject
* _argo0
= 0;
2217 char *_kwnames
[] = { "self", NULL
};
2220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBoxSizer_RecalcSizes",_kwnames
,&_argo0
))
2223 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2224 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBoxSizer_p")) {
2225 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBoxSizer_RecalcSizes. Expected _wxBoxSizer_p.");
2230 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2231 wxBoxSizer_RecalcSizes(_arg0
);
2233 wxPyEndAllowThreads(__tstate
);
2234 if (PyErr_Occurred()) return NULL
;
2235 } Py_INCREF(Py_None
);
2236 _resultobj
= Py_None
;
2240 #define wxBoxSizer_CalcMin(_swigobj) (_swigobj->CalcMin())
2241 static PyObject
*_wrap_wxBoxSizer_CalcMin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2242 PyObject
* _resultobj
;
2245 PyObject
* _argo0
= 0;
2246 char *_kwnames
[] = { "self", NULL
};
2250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBoxSizer_CalcMin",_kwnames
,&_argo0
))
2253 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2254 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBoxSizer_p")) {
2255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBoxSizer_CalcMin. Expected _wxBoxSizer_p.");
2260 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2261 _result
= new wxSize (wxBoxSizer_CalcMin(_arg0
));
2263 wxPyEndAllowThreads(__tstate
);
2264 if (PyErr_Occurred()) return NULL
;
2265 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2266 _resultobj
= Py_BuildValue("s",_ptemp
);
2270 static void *SwigwxStaticBoxSizerTowxBoxSizer(void *ptr
) {
2271 wxStaticBoxSizer
*src
;
2273 src
= (wxStaticBoxSizer
*) ptr
;
2274 dest
= (wxBoxSizer
*) src
;
2275 return (void *) dest
;
2278 static void *SwigwxStaticBoxSizerTowxSizer(void *ptr
) {
2279 wxStaticBoxSizer
*src
;
2281 src
= (wxStaticBoxSizer
*) ptr
;
2282 dest
= (wxSizer
*) src
;
2283 return (void *) dest
;
2286 static void *SwigwxStaticBoxSizerTowxObject(void *ptr
) {
2287 wxStaticBoxSizer
*src
;
2289 src
= (wxStaticBoxSizer
*) ptr
;
2290 dest
= (wxObject
*) src
;
2291 return (void *) dest
;
2294 #define new_wxStaticBoxSizer(_swigarg0,_swigarg1) (new wxStaticBoxSizer(_swigarg0,_swigarg1))
2295 static PyObject
*_wrap_new_wxStaticBoxSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2296 PyObject
* _resultobj
;
2297 wxStaticBoxSizer
* _result
;
2298 wxStaticBox
* _arg0
;
2299 int _arg1
= (int ) wxHORIZONTAL
;
2300 PyObject
* _argo0
= 0;
2301 char *_kwnames
[] = { "box","orient", NULL
};
2305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxStaticBoxSizer",_kwnames
,&_argo0
,&_arg1
))
2308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStaticBox_p")) {
2310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxStaticBoxSizer. Expected _wxStaticBox_p.");
2315 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2316 _result
= (wxStaticBoxSizer
*)new_wxStaticBoxSizer(_arg0
,_arg1
);
2318 wxPyEndAllowThreads(__tstate
);
2319 if (PyErr_Occurred()) return NULL
;
2321 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxStaticBoxSizer_p");
2322 _resultobj
= Py_BuildValue("s",_ptemp
);
2325 _resultobj
= Py_None
;
2330 #define wxStaticBoxSizer_GetStaticBox(_swigobj) (_swigobj->GetStaticBox())
2331 static PyObject
*_wrap_wxStaticBoxSizer_GetStaticBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2332 PyObject
* _resultobj
;
2333 wxStaticBox
* _result
;
2334 wxStaticBoxSizer
* _arg0
;
2335 PyObject
* _argo0
= 0;
2336 char *_kwnames
[] = { "self", NULL
};
2339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStaticBoxSizer_GetStaticBox",_kwnames
,&_argo0
))
2342 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2343 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStaticBoxSizer_p")) {
2344 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStaticBoxSizer_GetStaticBox. Expected _wxStaticBoxSizer_p.");
2349 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2350 _result
= (wxStaticBox
*)wxStaticBoxSizer_GetStaticBox(_arg0
);
2352 wxPyEndAllowThreads(__tstate
);
2353 if (PyErr_Occurred()) return NULL
;
2354 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2358 #define wxStaticBoxSizer_RecalcSizes(_swigobj) (_swigobj->RecalcSizes())
2359 static PyObject
*_wrap_wxStaticBoxSizer_RecalcSizes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2360 PyObject
* _resultobj
;
2361 wxStaticBoxSizer
* _arg0
;
2362 PyObject
* _argo0
= 0;
2363 char *_kwnames
[] = { "self", NULL
};
2366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStaticBoxSizer_RecalcSizes",_kwnames
,&_argo0
))
2369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStaticBoxSizer_p")) {
2371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStaticBoxSizer_RecalcSizes. Expected _wxStaticBoxSizer_p.");
2376 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2377 wxStaticBoxSizer_RecalcSizes(_arg0
);
2379 wxPyEndAllowThreads(__tstate
);
2380 if (PyErr_Occurred()) return NULL
;
2381 } Py_INCREF(Py_None
);
2382 _resultobj
= Py_None
;
2386 #define wxStaticBoxSizer_CalcMin(_swigobj) (_swigobj->CalcMin())
2387 static PyObject
*_wrap_wxStaticBoxSizer_CalcMin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2388 PyObject
* _resultobj
;
2390 wxStaticBoxSizer
* _arg0
;
2391 PyObject
* _argo0
= 0;
2392 char *_kwnames
[] = { "self", NULL
};
2396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStaticBoxSizer_CalcMin",_kwnames
,&_argo0
))
2399 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2400 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStaticBoxSizer_p")) {
2401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStaticBoxSizer_CalcMin. Expected _wxStaticBoxSizer_p.");
2406 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2407 _result
= new wxSize (wxStaticBoxSizer_CalcMin(_arg0
));
2409 wxPyEndAllowThreads(__tstate
);
2410 if (PyErr_Occurred()) return NULL
;
2411 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2412 _resultobj
= Py_BuildValue("s",_ptemp
);
2416 static void *SwigwxNotebookSizerTowxSizer(void *ptr
) {
2417 wxNotebookSizer
*src
;
2419 src
= (wxNotebookSizer
*) ptr
;
2420 dest
= (wxSizer
*) src
;
2421 return (void *) dest
;
2424 static void *SwigwxNotebookSizerTowxObject(void *ptr
) {
2425 wxNotebookSizer
*src
;
2427 src
= (wxNotebookSizer
*) ptr
;
2428 dest
= (wxObject
*) src
;
2429 return (void *) dest
;
2432 #define new_wxNotebookSizer(_swigarg0) (new wxNotebookSizer(_swigarg0))
2433 static PyObject
*_wrap_new_wxNotebookSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2434 PyObject
* _resultobj
;
2435 wxNotebookSizer
* _result
;
2437 PyObject
* _argo0
= 0;
2438 char *_kwnames
[] = { "nb", NULL
};
2442 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxNotebookSizer",_kwnames
,&_argo0
))
2445 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2446 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNotebook_p")) {
2447 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxNotebookSizer. Expected _wxNotebook_p.");
2452 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2453 _result
= (wxNotebookSizer
*)new_wxNotebookSizer(_arg0
);
2455 wxPyEndAllowThreads(__tstate
);
2456 if (PyErr_Occurred()) return NULL
;
2458 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNotebookSizer_p");
2459 _resultobj
= Py_BuildValue("s",_ptemp
);
2462 _resultobj
= Py_None
;
2467 #define wxNotebookSizer_RecalcSizes(_swigobj) (_swigobj->RecalcSizes())
2468 static PyObject
*_wrap_wxNotebookSizer_RecalcSizes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2469 PyObject
* _resultobj
;
2470 wxNotebookSizer
* _arg0
;
2471 PyObject
* _argo0
= 0;
2472 char *_kwnames
[] = { "self", NULL
};
2475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNotebookSizer_RecalcSizes",_kwnames
,&_argo0
))
2478 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2479 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNotebookSizer_p")) {
2480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNotebookSizer_RecalcSizes. Expected _wxNotebookSizer_p.");
2485 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2486 wxNotebookSizer_RecalcSizes(_arg0
);
2488 wxPyEndAllowThreads(__tstate
);
2489 if (PyErr_Occurred()) return NULL
;
2490 } Py_INCREF(Py_None
);
2491 _resultobj
= Py_None
;
2495 #define wxNotebookSizer_CalcMin(_swigobj) (_swigobj->CalcMin())
2496 static PyObject
*_wrap_wxNotebookSizer_CalcMin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2497 PyObject
* _resultobj
;
2499 wxNotebookSizer
* _arg0
;
2500 PyObject
* _argo0
= 0;
2501 char *_kwnames
[] = { "self", NULL
};
2505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNotebookSizer_CalcMin",_kwnames
,&_argo0
))
2508 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2509 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNotebookSizer_p")) {
2510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNotebookSizer_CalcMin. Expected _wxNotebookSizer_p.");
2515 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2516 _result
= new wxSize (wxNotebookSizer_CalcMin(_arg0
));
2518 wxPyEndAllowThreads(__tstate
);
2519 if (PyErr_Occurred()) return NULL
;
2520 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2521 _resultobj
= Py_BuildValue("s",_ptemp
);
2525 #define wxNotebookSizer_GetNotebook(_swigobj) (_swigobj->GetNotebook())
2526 static PyObject
*_wrap_wxNotebookSizer_GetNotebook(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2527 PyObject
* _resultobj
;
2528 wxNotebook
* _result
;
2529 wxNotebookSizer
* _arg0
;
2530 PyObject
* _argo0
= 0;
2531 char *_kwnames
[] = { "self", NULL
};
2534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNotebookSizer_GetNotebook",_kwnames
,&_argo0
))
2537 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2538 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNotebookSizer_p")) {
2539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNotebookSizer_GetNotebook. Expected _wxNotebookSizer_p.");
2544 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2545 _result
= (wxNotebook
*)wxNotebookSizer_GetNotebook(_arg0
);
2547 wxPyEndAllowThreads(__tstate
);
2548 if (PyErr_Occurred()) return NULL
;
2549 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2553 static void *SwigwxGridSizerTowxSizer(void *ptr
) {
2556 src
= (wxGridSizer
*) ptr
;
2557 dest
= (wxSizer
*) src
;
2558 return (void *) dest
;
2561 static void *SwigwxGridSizerTowxObject(void *ptr
) {
2564 src
= (wxGridSizer
*) ptr
;
2565 dest
= (wxObject
*) src
;
2566 return (void *) dest
;
2569 #define new_wxGridSizer(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxGridSizer(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2570 static PyObject
*_wrap_new_wxGridSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2571 PyObject
* _resultobj
;
2572 wxGridSizer
* _result
;
2573 int _arg0
= (int ) 1;
2574 int _arg1
= (int ) 0;
2575 int _arg2
= (int ) 0;
2576 int _arg3
= (int ) 0;
2577 char *_kwnames
[] = { "rows","cols","vgap","hgap", NULL
};
2581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|iiii:new_wxGridSizer",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
2584 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2585 _result
= (wxGridSizer
*)new_wxGridSizer(_arg0
,_arg1
,_arg2
,_arg3
);
2587 wxPyEndAllowThreads(__tstate
);
2588 if (PyErr_Occurred()) return NULL
;
2590 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGridSizer_p");
2591 _resultobj
= Py_BuildValue("s",_ptemp
);
2594 _resultobj
= Py_None
;
2599 #define wxGridSizer_RecalcSizes(_swigobj) (_swigobj->RecalcSizes())
2600 static PyObject
*_wrap_wxGridSizer_RecalcSizes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2601 PyObject
* _resultobj
;
2602 wxGridSizer
* _arg0
;
2603 PyObject
* _argo0
= 0;
2604 char *_kwnames
[] = { "self", NULL
};
2607 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGridSizer_RecalcSizes",_kwnames
,&_argo0
))
2610 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2611 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGridSizer_p")) {
2612 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGridSizer_RecalcSizes. Expected _wxGridSizer_p.");
2617 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2618 wxGridSizer_RecalcSizes(_arg0
);
2620 wxPyEndAllowThreads(__tstate
);
2621 if (PyErr_Occurred()) return NULL
;
2622 } Py_INCREF(Py_None
);
2623 _resultobj
= Py_None
;
2627 #define wxGridSizer_CalcMin(_swigobj) (_swigobj->CalcMin())
2628 static PyObject
*_wrap_wxGridSizer_CalcMin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2629 PyObject
* _resultobj
;
2631 wxGridSizer
* _arg0
;
2632 PyObject
* _argo0
= 0;
2633 char *_kwnames
[] = { "self", NULL
};
2637 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGridSizer_CalcMin",_kwnames
,&_argo0
))
2640 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2641 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGridSizer_p")) {
2642 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGridSizer_CalcMin. Expected _wxGridSizer_p.");
2647 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2648 _result
= new wxSize (wxGridSizer_CalcMin(_arg0
));
2650 wxPyEndAllowThreads(__tstate
);
2651 if (PyErr_Occurred()) return NULL
;
2652 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2653 _resultobj
= Py_BuildValue("s",_ptemp
);
2657 #define wxGridSizer_SetCols(_swigobj,_swigarg0) (_swigobj->SetCols(_swigarg0))
2658 static PyObject
*_wrap_wxGridSizer_SetCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2659 PyObject
* _resultobj
;
2660 wxGridSizer
* _arg0
;
2662 PyObject
* _argo0
= 0;
2663 char *_kwnames
[] = { "self","cols", NULL
};
2666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGridSizer_SetCols",_kwnames
,&_argo0
,&_arg1
))
2669 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2670 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGridSizer_p")) {
2671 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGridSizer_SetCols. Expected _wxGridSizer_p.");
2676 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2677 wxGridSizer_SetCols(_arg0
,_arg1
);
2679 wxPyEndAllowThreads(__tstate
);
2680 if (PyErr_Occurred()) return NULL
;
2681 } Py_INCREF(Py_None
);
2682 _resultobj
= Py_None
;
2686 #define wxGridSizer_SetRows(_swigobj,_swigarg0) (_swigobj->SetRows(_swigarg0))
2687 static PyObject
*_wrap_wxGridSizer_SetRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2688 PyObject
* _resultobj
;
2689 wxGridSizer
* _arg0
;
2691 PyObject
* _argo0
= 0;
2692 char *_kwnames
[] = { "self","rows", NULL
};
2695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGridSizer_SetRows",_kwnames
,&_argo0
,&_arg1
))
2698 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2699 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGridSizer_p")) {
2700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGridSizer_SetRows. Expected _wxGridSizer_p.");
2705 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2706 wxGridSizer_SetRows(_arg0
,_arg1
);
2708 wxPyEndAllowThreads(__tstate
);
2709 if (PyErr_Occurred()) return NULL
;
2710 } Py_INCREF(Py_None
);
2711 _resultobj
= Py_None
;
2715 #define wxGridSizer_SetVGap(_swigobj,_swigarg0) (_swigobj->SetVGap(_swigarg0))
2716 static PyObject
*_wrap_wxGridSizer_SetVGap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2717 PyObject
* _resultobj
;
2718 wxGridSizer
* _arg0
;
2720 PyObject
* _argo0
= 0;
2721 char *_kwnames
[] = { "self","gap", NULL
};
2724 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGridSizer_SetVGap",_kwnames
,&_argo0
,&_arg1
))
2727 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2728 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGridSizer_p")) {
2729 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGridSizer_SetVGap. Expected _wxGridSizer_p.");
2734 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2735 wxGridSizer_SetVGap(_arg0
,_arg1
);
2737 wxPyEndAllowThreads(__tstate
);
2738 if (PyErr_Occurred()) return NULL
;
2739 } Py_INCREF(Py_None
);
2740 _resultobj
= Py_None
;
2744 #define wxGridSizer_SetHGap(_swigobj,_swigarg0) (_swigobj->SetHGap(_swigarg0))
2745 static PyObject
*_wrap_wxGridSizer_SetHGap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2746 PyObject
* _resultobj
;
2747 wxGridSizer
* _arg0
;
2749 PyObject
* _argo0
= 0;
2750 char *_kwnames
[] = { "self","gap", NULL
};
2753 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGridSizer_SetHGap",_kwnames
,&_argo0
,&_arg1
))
2756 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2757 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGridSizer_p")) {
2758 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGridSizer_SetHGap. Expected _wxGridSizer_p.");
2763 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2764 wxGridSizer_SetHGap(_arg0
,_arg1
);
2766 wxPyEndAllowThreads(__tstate
);
2767 if (PyErr_Occurred()) return NULL
;
2768 } Py_INCREF(Py_None
);
2769 _resultobj
= Py_None
;
2773 #define wxGridSizer_GetCols(_swigobj) (_swigobj->GetCols())
2774 static PyObject
*_wrap_wxGridSizer_GetCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2775 PyObject
* _resultobj
;
2777 wxGridSizer
* _arg0
;
2778 PyObject
* _argo0
= 0;
2779 char *_kwnames
[] = { "self", NULL
};
2782 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGridSizer_GetCols",_kwnames
,&_argo0
))
2785 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2786 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGridSizer_p")) {
2787 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGridSizer_GetCols. Expected _wxGridSizer_p.");
2792 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2793 _result
= (int )wxGridSizer_GetCols(_arg0
);
2795 wxPyEndAllowThreads(__tstate
);
2796 if (PyErr_Occurred()) return NULL
;
2797 } _resultobj
= Py_BuildValue("i",_result
);
2801 #define wxGridSizer_GetRows(_swigobj) (_swigobj->GetRows())
2802 static PyObject
*_wrap_wxGridSizer_GetRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2803 PyObject
* _resultobj
;
2805 wxGridSizer
* _arg0
;
2806 PyObject
* _argo0
= 0;
2807 char *_kwnames
[] = { "self", NULL
};
2810 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGridSizer_GetRows",_kwnames
,&_argo0
))
2813 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2814 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGridSizer_p")) {
2815 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGridSizer_GetRows. Expected _wxGridSizer_p.");
2820 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2821 _result
= (int )wxGridSizer_GetRows(_arg0
);
2823 wxPyEndAllowThreads(__tstate
);
2824 if (PyErr_Occurred()) return NULL
;
2825 } _resultobj
= Py_BuildValue("i",_result
);
2829 #define wxGridSizer_GetVGap(_swigobj) (_swigobj->GetVGap())
2830 static PyObject
*_wrap_wxGridSizer_GetVGap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2831 PyObject
* _resultobj
;
2833 wxGridSizer
* _arg0
;
2834 PyObject
* _argo0
= 0;
2835 char *_kwnames
[] = { "self", NULL
};
2838 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGridSizer_GetVGap",_kwnames
,&_argo0
))
2841 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2842 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGridSizer_p")) {
2843 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGridSizer_GetVGap. Expected _wxGridSizer_p.");
2848 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2849 _result
= (int )wxGridSizer_GetVGap(_arg0
);
2851 wxPyEndAllowThreads(__tstate
);
2852 if (PyErr_Occurred()) return NULL
;
2853 } _resultobj
= Py_BuildValue("i",_result
);
2857 #define wxGridSizer_GetHGap(_swigobj) (_swigobj->GetHGap())
2858 static PyObject
*_wrap_wxGridSizer_GetHGap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2859 PyObject
* _resultobj
;
2861 wxGridSizer
* _arg0
;
2862 PyObject
* _argo0
= 0;
2863 char *_kwnames
[] = { "self", NULL
};
2866 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGridSizer_GetHGap",_kwnames
,&_argo0
))
2869 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2870 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGridSizer_p")) {
2871 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGridSizer_GetHGap. Expected _wxGridSizer_p.");
2876 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2877 _result
= (int )wxGridSizer_GetHGap(_arg0
);
2879 wxPyEndAllowThreads(__tstate
);
2880 if (PyErr_Occurred()) return NULL
;
2881 } _resultobj
= Py_BuildValue("i",_result
);
2885 static void *SwigwxFlexGridSizerTowxGridSizer(void *ptr
) {
2886 wxFlexGridSizer
*src
;
2888 src
= (wxFlexGridSizer
*) ptr
;
2889 dest
= (wxGridSizer
*) src
;
2890 return (void *) dest
;
2893 static void *SwigwxFlexGridSizerTowxSizer(void *ptr
) {
2894 wxFlexGridSizer
*src
;
2896 src
= (wxFlexGridSizer
*) ptr
;
2897 dest
= (wxSizer
*) src
;
2898 return (void *) dest
;
2901 static void *SwigwxFlexGridSizerTowxObject(void *ptr
) {
2902 wxFlexGridSizer
*src
;
2904 src
= (wxFlexGridSizer
*) ptr
;
2905 dest
= (wxObject
*) src
;
2906 return (void *) dest
;
2909 #define new_wxFlexGridSizer(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFlexGridSizer(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2910 static PyObject
*_wrap_new_wxFlexGridSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2911 PyObject
* _resultobj
;
2912 wxFlexGridSizer
* _result
;
2913 int _arg0
= (int ) 1;
2914 int _arg1
= (int ) 0;
2915 int _arg2
= (int ) 0;
2916 int _arg3
= (int ) 0;
2917 char *_kwnames
[] = { "rows","cols","vgap","hgap", NULL
};
2921 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|iiii:new_wxFlexGridSizer",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
2924 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2925 _result
= (wxFlexGridSizer
*)new_wxFlexGridSizer(_arg0
,_arg1
,_arg2
,_arg3
);
2927 wxPyEndAllowThreads(__tstate
);
2928 if (PyErr_Occurred()) return NULL
;
2930 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFlexGridSizer_p");
2931 _resultobj
= Py_BuildValue("s",_ptemp
);
2934 _resultobj
= Py_None
;
2939 #define wxFlexGridSizer_RecalcSizes(_swigobj) (_swigobj->RecalcSizes())
2940 static PyObject
*_wrap_wxFlexGridSizer_RecalcSizes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2941 PyObject
* _resultobj
;
2942 wxFlexGridSizer
* _arg0
;
2943 PyObject
* _argo0
= 0;
2944 char *_kwnames
[] = { "self", NULL
};
2947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFlexGridSizer_RecalcSizes",_kwnames
,&_argo0
))
2950 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2951 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFlexGridSizer_p")) {
2952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFlexGridSizer_RecalcSizes. Expected _wxFlexGridSizer_p.");
2957 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2958 wxFlexGridSizer_RecalcSizes(_arg0
);
2960 wxPyEndAllowThreads(__tstate
);
2961 if (PyErr_Occurred()) return NULL
;
2962 } Py_INCREF(Py_None
);
2963 _resultobj
= Py_None
;
2967 #define wxFlexGridSizer_CalcMin(_swigobj) (_swigobj->CalcMin())
2968 static PyObject
*_wrap_wxFlexGridSizer_CalcMin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2969 PyObject
* _resultobj
;
2971 wxFlexGridSizer
* _arg0
;
2972 PyObject
* _argo0
= 0;
2973 char *_kwnames
[] = { "self", NULL
};
2977 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFlexGridSizer_CalcMin",_kwnames
,&_argo0
))
2980 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2981 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFlexGridSizer_p")) {
2982 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFlexGridSizer_CalcMin. Expected _wxFlexGridSizer_p.");
2987 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2988 _result
= new wxSize (wxFlexGridSizer_CalcMin(_arg0
));
2990 wxPyEndAllowThreads(__tstate
);
2991 if (PyErr_Occurred()) return NULL
;
2992 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2993 _resultobj
= Py_BuildValue("s",_ptemp
);
2997 #define wxFlexGridSizer_AddGrowableRow(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddGrowableRow(_swigarg0,_swigarg1))
2998 static PyObject
*_wrap_wxFlexGridSizer_AddGrowableRow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2999 PyObject
* _resultobj
;
3000 wxFlexGridSizer
* _arg0
;
3002 int _arg2
= (int ) 0;
3003 PyObject
* _argo0
= 0;
3004 char *_kwnames
[] = { "self","idx","proportion", NULL
};
3007 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|i:wxFlexGridSizer_AddGrowableRow",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3010 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3011 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFlexGridSizer_p")) {
3012 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFlexGridSizer_AddGrowableRow. Expected _wxFlexGridSizer_p.");
3017 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3018 wxFlexGridSizer_AddGrowableRow(_arg0
,_arg1
,_arg2
);
3020 wxPyEndAllowThreads(__tstate
);
3021 if (PyErr_Occurred()) return NULL
;
3022 } Py_INCREF(Py_None
);
3023 _resultobj
= Py_None
;
3027 #define wxFlexGridSizer_RemoveGrowableRow(_swigobj,_swigarg0) (_swigobj->RemoveGrowableRow(_swigarg0))
3028 static PyObject
*_wrap_wxFlexGridSizer_RemoveGrowableRow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3029 PyObject
* _resultobj
;
3030 wxFlexGridSizer
* _arg0
;
3032 PyObject
* _argo0
= 0;
3033 char *_kwnames
[] = { "self","idx", NULL
};
3036 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFlexGridSizer_RemoveGrowableRow",_kwnames
,&_argo0
,&_arg1
))
3039 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3040 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFlexGridSizer_p")) {
3041 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFlexGridSizer_RemoveGrowableRow. Expected _wxFlexGridSizer_p.");
3046 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3047 wxFlexGridSizer_RemoveGrowableRow(_arg0
,_arg1
);
3049 wxPyEndAllowThreads(__tstate
);
3050 if (PyErr_Occurred()) return NULL
;
3051 } Py_INCREF(Py_None
);
3052 _resultobj
= Py_None
;
3056 #define wxFlexGridSizer_AddGrowableCol(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddGrowableCol(_swigarg0,_swigarg1))
3057 static PyObject
*_wrap_wxFlexGridSizer_AddGrowableCol(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3058 PyObject
* _resultobj
;
3059 wxFlexGridSizer
* _arg0
;
3061 int _arg2
= (int ) 0;
3062 PyObject
* _argo0
= 0;
3063 char *_kwnames
[] = { "self","idx","proportion", NULL
};
3066 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|i:wxFlexGridSizer_AddGrowableCol",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3069 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3070 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFlexGridSizer_p")) {
3071 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFlexGridSizer_AddGrowableCol. Expected _wxFlexGridSizer_p.");
3076 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3077 wxFlexGridSizer_AddGrowableCol(_arg0
,_arg1
,_arg2
);
3079 wxPyEndAllowThreads(__tstate
);
3080 if (PyErr_Occurred()) return NULL
;
3081 } Py_INCREF(Py_None
);
3082 _resultobj
= Py_None
;
3086 #define wxFlexGridSizer_RemoveGrowableCol(_swigobj,_swigarg0) (_swigobj->RemoveGrowableCol(_swigarg0))
3087 static PyObject
*_wrap_wxFlexGridSizer_RemoveGrowableCol(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3088 PyObject
* _resultobj
;
3089 wxFlexGridSizer
* _arg0
;
3091 PyObject
* _argo0
= 0;
3092 char *_kwnames
[] = { "self","idx", NULL
};
3095 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFlexGridSizer_RemoveGrowableCol",_kwnames
,&_argo0
,&_arg1
))
3098 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3099 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFlexGridSizer_p")) {
3100 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFlexGridSizer_RemoveGrowableCol. Expected _wxFlexGridSizer_p.");
3105 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3106 wxFlexGridSizer_RemoveGrowableCol(_arg0
,_arg1
);
3108 wxPyEndAllowThreads(__tstate
);
3109 if (PyErr_Occurred()) return NULL
;
3110 } Py_INCREF(Py_None
);
3111 _resultobj
= Py_None
;
3115 #define wxFlexGridSizer_SetFlexibleDirection(_swigobj,_swigarg0) (_swigobj->SetFlexibleDirection(_swigarg0))
3116 static PyObject
*_wrap_wxFlexGridSizer_SetFlexibleDirection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3117 PyObject
* _resultobj
;
3118 wxFlexGridSizer
* _arg0
;
3120 PyObject
* _argo0
= 0;
3121 char *_kwnames
[] = { "self","direction", NULL
};
3124 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFlexGridSizer_SetFlexibleDirection",_kwnames
,&_argo0
,&_arg1
))
3127 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3128 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFlexGridSizer_p")) {
3129 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFlexGridSizer_SetFlexibleDirection. Expected _wxFlexGridSizer_p.");
3134 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3135 wxFlexGridSizer_SetFlexibleDirection(_arg0
,_arg1
);
3137 wxPyEndAllowThreads(__tstate
);
3138 if (PyErr_Occurred()) return NULL
;
3139 } Py_INCREF(Py_None
);
3140 _resultobj
= Py_None
;
3144 #define wxFlexGridSizer_GetFlexibleDirection(_swigobj) (_swigobj->GetFlexibleDirection())
3145 static PyObject
*_wrap_wxFlexGridSizer_GetFlexibleDirection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3146 PyObject
* _resultobj
;
3148 wxFlexGridSizer
* _arg0
;
3149 PyObject
* _argo0
= 0;
3150 char *_kwnames
[] = { "self", NULL
};
3153 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFlexGridSizer_GetFlexibleDirection",_kwnames
,&_argo0
))
3156 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3157 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFlexGridSizer_p")) {
3158 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFlexGridSizer_GetFlexibleDirection. Expected _wxFlexGridSizer_p.");
3163 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3164 _result
= (int )wxFlexGridSizer_GetFlexibleDirection(_arg0
);
3166 wxPyEndAllowThreads(__tstate
);
3167 if (PyErr_Occurred()) return NULL
;
3168 } _resultobj
= Py_BuildValue("i",_result
);
3172 #define wxFlexGridSizer_SetNonFlexibleGrowMode(_swigobj,_swigarg0) (_swigobj->SetNonFlexibleGrowMode(_swigarg0))
3173 static PyObject
*_wrap_wxFlexGridSizer_SetNonFlexibleGrowMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3174 PyObject
* _resultobj
;
3175 wxFlexGridSizer
* _arg0
;
3176 wxFlexSizerGrowMode _arg1
;
3177 PyObject
* _argo0
= 0;
3178 char *_kwnames
[] = { "self","mode", NULL
};
3181 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFlexGridSizer_SetNonFlexibleGrowMode",_kwnames
,&_argo0
,&_arg1
))
3184 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3185 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFlexGridSizer_p")) {
3186 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFlexGridSizer_SetNonFlexibleGrowMode. Expected _wxFlexGridSizer_p.");
3191 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3192 wxFlexGridSizer_SetNonFlexibleGrowMode(_arg0
,_arg1
);
3194 wxPyEndAllowThreads(__tstate
);
3195 if (PyErr_Occurred()) return NULL
;
3196 } Py_INCREF(Py_None
);
3197 _resultobj
= Py_None
;
3201 #define wxFlexGridSizer_GetNonFlexibleGrowMode(_swigobj) (_swigobj->GetNonFlexibleGrowMode())
3202 static PyObject
*_wrap_wxFlexGridSizer_GetNonFlexibleGrowMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3203 PyObject
* _resultobj
;
3204 wxFlexSizerGrowMode _result
;
3205 wxFlexGridSizer
* _arg0
;
3206 PyObject
* _argo0
= 0;
3207 char *_kwnames
[] = { "self", NULL
};
3210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFlexGridSizer_GetNonFlexibleGrowMode",_kwnames
,&_argo0
))
3213 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3214 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFlexGridSizer_p")) {
3215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFlexGridSizer_GetNonFlexibleGrowMode. Expected _wxFlexGridSizer_p.");
3220 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3221 _result
= (wxFlexSizerGrowMode
)wxFlexGridSizer_GetNonFlexibleGrowMode(_arg0
);
3223 wxPyEndAllowThreads(__tstate
);
3224 if (PyErr_Occurred()) return NULL
;
3225 } _resultobj
= Py_BuildValue("i",_result
);
3229 static PyMethodDef sizerscMethods
[] = {
3230 { "wxFlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction
) _wrap_wxFlexGridSizer_GetNonFlexibleGrowMode
, METH_VARARGS
| METH_KEYWORDS
},
3231 { "wxFlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction
) _wrap_wxFlexGridSizer_SetNonFlexibleGrowMode
, METH_VARARGS
| METH_KEYWORDS
},
3232 { "wxFlexGridSizer_GetFlexibleDirection", (PyCFunction
) _wrap_wxFlexGridSizer_GetFlexibleDirection
, METH_VARARGS
| METH_KEYWORDS
},
3233 { "wxFlexGridSizer_SetFlexibleDirection", (PyCFunction
) _wrap_wxFlexGridSizer_SetFlexibleDirection
, METH_VARARGS
| METH_KEYWORDS
},
3234 { "wxFlexGridSizer_RemoveGrowableCol", (PyCFunction
) _wrap_wxFlexGridSizer_RemoveGrowableCol
, METH_VARARGS
| METH_KEYWORDS
},
3235 { "wxFlexGridSizer_AddGrowableCol", (PyCFunction
) _wrap_wxFlexGridSizer_AddGrowableCol
, METH_VARARGS
| METH_KEYWORDS
},
3236 { "wxFlexGridSizer_RemoveGrowableRow", (PyCFunction
) _wrap_wxFlexGridSizer_RemoveGrowableRow
, METH_VARARGS
| METH_KEYWORDS
},
3237 { "wxFlexGridSizer_AddGrowableRow", (PyCFunction
) _wrap_wxFlexGridSizer_AddGrowableRow
, METH_VARARGS
| METH_KEYWORDS
},
3238 { "wxFlexGridSizer_CalcMin", (PyCFunction
) _wrap_wxFlexGridSizer_CalcMin
, METH_VARARGS
| METH_KEYWORDS
},
3239 { "wxFlexGridSizer_RecalcSizes", (PyCFunction
) _wrap_wxFlexGridSizer_RecalcSizes
, METH_VARARGS
| METH_KEYWORDS
},
3240 { "new_wxFlexGridSizer", (PyCFunction
) _wrap_new_wxFlexGridSizer
, METH_VARARGS
| METH_KEYWORDS
},
3241 { "wxGridSizer_GetHGap", (PyCFunction
) _wrap_wxGridSizer_GetHGap
, METH_VARARGS
| METH_KEYWORDS
},
3242 { "wxGridSizer_GetVGap", (PyCFunction
) _wrap_wxGridSizer_GetVGap
, METH_VARARGS
| METH_KEYWORDS
},
3243 { "wxGridSizer_GetRows", (PyCFunction
) _wrap_wxGridSizer_GetRows
, METH_VARARGS
| METH_KEYWORDS
},
3244 { "wxGridSizer_GetCols", (PyCFunction
) _wrap_wxGridSizer_GetCols
, METH_VARARGS
| METH_KEYWORDS
},
3245 { "wxGridSizer_SetHGap", (PyCFunction
) _wrap_wxGridSizer_SetHGap
, METH_VARARGS
| METH_KEYWORDS
},
3246 { "wxGridSizer_SetVGap", (PyCFunction
) _wrap_wxGridSizer_SetVGap
, METH_VARARGS
| METH_KEYWORDS
},
3247 { "wxGridSizer_SetRows", (PyCFunction
) _wrap_wxGridSizer_SetRows
, METH_VARARGS
| METH_KEYWORDS
},
3248 { "wxGridSizer_SetCols", (PyCFunction
) _wrap_wxGridSizer_SetCols
, METH_VARARGS
| METH_KEYWORDS
},
3249 { "wxGridSizer_CalcMin", (PyCFunction
) _wrap_wxGridSizer_CalcMin
, METH_VARARGS
| METH_KEYWORDS
},
3250 { "wxGridSizer_RecalcSizes", (PyCFunction
) _wrap_wxGridSizer_RecalcSizes
, METH_VARARGS
| METH_KEYWORDS
},
3251 { "new_wxGridSizer", (PyCFunction
) _wrap_new_wxGridSizer
, METH_VARARGS
| METH_KEYWORDS
},
3252 { "wxNotebookSizer_GetNotebook", (PyCFunction
) _wrap_wxNotebookSizer_GetNotebook
, METH_VARARGS
| METH_KEYWORDS
},
3253 { "wxNotebookSizer_CalcMin", (PyCFunction
) _wrap_wxNotebookSizer_CalcMin
, METH_VARARGS
| METH_KEYWORDS
},
3254 { "wxNotebookSizer_RecalcSizes", (PyCFunction
) _wrap_wxNotebookSizer_RecalcSizes
, METH_VARARGS
| METH_KEYWORDS
},
3255 { "new_wxNotebookSizer", (PyCFunction
) _wrap_new_wxNotebookSizer
, METH_VARARGS
| METH_KEYWORDS
},
3256 { "wxStaticBoxSizer_CalcMin", (PyCFunction
) _wrap_wxStaticBoxSizer_CalcMin
, METH_VARARGS
| METH_KEYWORDS
},
3257 { "wxStaticBoxSizer_RecalcSizes", (PyCFunction
) _wrap_wxStaticBoxSizer_RecalcSizes
, METH_VARARGS
| METH_KEYWORDS
},
3258 { "wxStaticBoxSizer_GetStaticBox", (PyCFunction
) _wrap_wxStaticBoxSizer_GetStaticBox
, METH_VARARGS
| METH_KEYWORDS
},
3259 { "new_wxStaticBoxSizer", (PyCFunction
) _wrap_new_wxStaticBoxSizer
, METH_VARARGS
| METH_KEYWORDS
},
3260 { "wxBoxSizer_CalcMin", (PyCFunction
) _wrap_wxBoxSizer_CalcMin
, METH_VARARGS
| METH_KEYWORDS
},
3261 { "wxBoxSizer_RecalcSizes", (PyCFunction
) _wrap_wxBoxSizer_RecalcSizes
, METH_VARARGS
| METH_KEYWORDS
},
3262 { "wxBoxSizer_SetOrientation", (PyCFunction
) _wrap_wxBoxSizer_SetOrientation
, METH_VARARGS
| METH_KEYWORDS
},
3263 { "wxBoxSizer_GetOrientation", (PyCFunction
) _wrap_wxBoxSizer_GetOrientation
, METH_VARARGS
| METH_KEYWORDS
},
3264 { "new_wxBoxSizer", (PyCFunction
) _wrap_new_wxBoxSizer
, METH_VARARGS
| METH_KEYWORDS
},
3265 { "wxPySizer__setCallbackInfo", (PyCFunction
) _wrap_wxPySizer__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3266 { "new_wxPySizer", (PyCFunction
) _wrap_new_wxPySizer
, METH_VARARGS
| METH_KEYWORDS
},
3267 { "wxSizer_ShowItems", (PyCFunction
) _wrap_wxSizer_ShowItems
, METH_VARARGS
| METH_KEYWORDS
},
3268 { "wxSizer_IsShown", (PyCFunction
) _wrap_wxSizer_IsShown
, METH_VARARGS
| METH_KEYWORDS
},
3269 { "wxSizer_Hide", (PyCFunction
) _wrap_wxSizer_Hide
, METH_VARARGS
| METH_KEYWORDS
},
3270 { "wxSizer_Show", (PyCFunction
) _wrap_wxSizer_Show
, METH_VARARGS
| METH_KEYWORDS
},
3271 { "wxSizer_GetChildren", (PyCFunction
) _wrap_wxSizer_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
3272 { "wxSizer_DeleteWindows", (PyCFunction
) _wrap_wxSizer_DeleteWindows
, METH_VARARGS
| METH_KEYWORDS
},
3273 { "wxSizer_Clear", (PyCFunction
) _wrap_wxSizer_Clear
, METH_VARARGS
| METH_KEYWORDS
},
3274 { "wxSizer_SetVirtualSizeHints", (PyCFunction
) _wrap_wxSizer_SetVirtualSizeHints
, METH_VARARGS
| METH_KEYWORDS
},
3275 { "wxSizer_SetSizeHints", (PyCFunction
) _wrap_wxSizer_SetSizeHints
, METH_VARARGS
| METH_KEYWORDS
},
3276 { "wxSizer_FitInside", (PyCFunction
) _wrap_wxSizer_FitInside
, METH_VARARGS
| METH_KEYWORDS
},
3277 { "wxSizer_Fit", (PyCFunction
) _wrap_wxSizer_Fit
, METH_VARARGS
| METH_KEYWORDS
},
3278 { "wxSizer_Layout", (PyCFunction
) _wrap_wxSizer_Layout
, METH_VARARGS
| METH_KEYWORDS
},
3279 { "wxSizer_GetMinSize", (PyCFunction
) _wrap_wxSizer_GetMinSize
, METH_VARARGS
| METH_KEYWORDS
},
3280 { "wxSizer_GetPosition", (PyCFunction
) _wrap_wxSizer_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
3281 { "wxSizer_GetSize", (PyCFunction
) _wrap_wxSizer_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
3282 { "wxSizer_SetMinSize", (PyCFunction
) _wrap_wxSizer_SetMinSize
, METH_VARARGS
| METH_KEYWORDS
},
3283 { "wxSizer_SetDimension", (PyCFunction
) _wrap_wxSizer_SetDimension
, METH_VARARGS
| METH_KEYWORDS
},
3284 { "wxSizer__SetItemMinSize", (PyCFunction
) _wrap_wxSizer__SetItemMinSize
, METH_VARARGS
| METH_KEYWORDS
},
3285 { "wxSizer_Remove", (PyCFunction
) _wrap_wxSizer_Remove
, METH_VARARGS
| METH_KEYWORDS
},
3286 { "wxSizer__Prepend", (PyCFunction
) _wrap_wxSizer__Prepend
, METH_VARARGS
| METH_KEYWORDS
},
3287 { "wxSizer__Insert", (PyCFunction
) _wrap_wxSizer__Insert
, METH_VARARGS
| METH_KEYWORDS
},
3288 { "wxSizer__Add", (PyCFunction
) _wrap_wxSizer__Add
, METH_VARARGS
| METH_KEYWORDS
},
3289 { "wxSizer_Destroy", (PyCFunction
) _wrap_wxSizer_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
3290 { "wxSizer__setOORInfo", (PyCFunction
) _wrap_wxSizer__setOORInfo
, METH_VARARGS
| METH_KEYWORDS
},
3291 { "wxSizerItem_GetUserData", (PyCFunction
) _wrap_wxSizerItem_GetUserData
, METH_VARARGS
| METH_KEYWORDS
},
3292 { "wxSizerItem_GetPosition", (PyCFunction
) _wrap_wxSizerItem_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
3293 { "wxSizerItem_IsShown", (PyCFunction
) _wrap_wxSizerItem_IsShown
, METH_VARARGS
| METH_KEYWORDS
},
3294 { "wxSizerItem_Show", (PyCFunction
) _wrap_wxSizerItem_Show
, METH_VARARGS
| METH_KEYWORDS
},
3295 { "wxSizerItem_SetSpacer", (PyCFunction
) _wrap_wxSizerItem_SetSpacer
, METH_VARARGS
| METH_KEYWORDS
},
3296 { "wxSizerItem_GetSpacer", (PyCFunction
) _wrap_wxSizerItem_GetSpacer
, METH_VARARGS
| METH_KEYWORDS
},
3297 { "wxSizerItem_SetSizer", (PyCFunction
) _wrap_wxSizerItem_SetSizer
, METH_VARARGS
| METH_KEYWORDS
},
3298 { "wxSizerItem_GetSizer", (PyCFunction
) _wrap_wxSizerItem_GetSizer
, METH_VARARGS
| METH_KEYWORDS
},
3299 { "wxSizerItem_SetWindow", (PyCFunction
) _wrap_wxSizerItem_SetWindow
, METH_VARARGS
| METH_KEYWORDS
},
3300 { "wxSizerItem_GetWindow", (PyCFunction
) _wrap_wxSizerItem_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
3301 { "wxSizerItem_GetBorder", (PyCFunction
) _wrap_wxSizerItem_GetBorder
, METH_VARARGS
| METH_KEYWORDS
},
3302 { "wxSizerItem_SetBorder", (PyCFunction
) _wrap_wxSizerItem_SetBorder
, METH_VARARGS
| METH_KEYWORDS
},
3303 { "wxSizerItem_GetFlag", (PyCFunction
) _wrap_wxSizerItem_GetFlag
, METH_VARARGS
| METH_KEYWORDS
},
3304 { "wxSizerItem_SetFlag", (PyCFunction
) _wrap_wxSizerItem_SetFlag
, METH_VARARGS
| METH_KEYWORDS
},
3305 { "wxSizerItem_GetProportion", (PyCFunction
) _wrap_wxSizerItem_GetProportion
, METH_VARARGS
| METH_KEYWORDS
},
3306 { "wxSizerItem_SetProportion", (PyCFunction
) _wrap_wxSizerItem_SetProportion
, METH_VARARGS
| METH_KEYWORDS
},
3307 { "wxSizerItem_IsSpacer", (PyCFunction
) _wrap_wxSizerItem_IsSpacer
, METH_VARARGS
| METH_KEYWORDS
},
3308 { "wxSizerItem_IsSizer", (PyCFunction
) _wrap_wxSizerItem_IsSizer
, METH_VARARGS
| METH_KEYWORDS
},
3309 { "wxSizerItem_IsWindow", (PyCFunction
) _wrap_wxSizerItem_IsWindow
, METH_VARARGS
| METH_KEYWORDS
},
3310 { "wxSizerItem_GetRatio", (PyCFunction
) _wrap_wxSizerItem_GetRatio
, METH_VARARGS
| METH_KEYWORDS
},
3311 { "wxSizerItem_SetRatio", (PyCFunction
) _wrap_wxSizerItem_SetRatio
, METH_VARARGS
| METH_KEYWORDS
},
3312 { "wxSizerItem_SetRatioSize", (PyCFunction
) _wrap_wxSizerItem_SetRatioSize
, METH_VARARGS
| METH_KEYWORDS
},
3313 { "wxSizerItem_SetRatioWH", (PyCFunction
) _wrap_wxSizerItem_SetRatioWH
, METH_VARARGS
| METH_KEYWORDS
},
3314 { "wxSizerItem_SetInitSize", (PyCFunction
) _wrap_wxSizerItem_SetInitSize
, METH_VARARGS
| METH_KEYWORDS
},
3315 { "wxSizerItem_GetMinSize", (PyCFunction
) _wrap_wxSizerItem_GetMinSize
, METH_VARARGS
| METH_KEYWORDS
},
3316 { "wxSizerItem_SetDimension", (PyCFunction
) _wrap_wxSizerItem_SetDimension
, METH_VARARGS
| METH_KEYWORDS
},
3317 { "wxSizerItem_CalcMin", (PyCFunction
) _wrap_wxSizerItem_CalcMin
, METH_VARARGS
| METH_KEYWORDS
},
3318 { "wxSizerItem_GetSize", (PyCFunction
) _wrap_wxSizerItem_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
3319 { "wxSizerItem_DetachSizer", (PyCFunction
) _wrap_wxSizerItem_DetachSizer
, METH_VARARGS
| METH_KEYWORDS
},
3320 { "wxSizerItem_DeleteWindows", (PyCFunction
) _wrap_wxSizerItem_DeleteWindows
, METH_VARARGS
| METH_KEYWORDS
},
3327 * This table is used by the pointer type-checker
3329 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3330 { "_signed_long","_long",0},
3331 { "_wxPrintQuality","_wxCoord",0},
3332 { "_wxPrintQuality","_int",0},
3333 { "_wxPrintQuality","_signed_int",0},
3334 { "_wxPrintQuality","_unsigned_int",0},
3335 { "_wxPrintQuality","_wxWindowID",0},
3336 { "_wxPrintQuality","_uint",0},
3337 { "_wxPrintQuality","_EBool",0},
3338 { "_wxPrintQuality","_size_t",0},
3339 { "_wxPrintQuality","_time_t",0},
3340 { "_byte","_unsigned_char",0},
3341 { "_long","_unsigned_long",0},
3342 { "_long","_signed_long",0},
3343 { "_wxGridSizer","_wxFlexGridSizer",SwigwxFlexGridSizerTowxGridSizer
},
3344 { "_size_t","_wxCoord",0},
3345 { "_size_t","_wxPrintQuality",0},
3346 { "_size_t","_time_t",0},
3347 { "_size_t","_unsigned_int",0},
3348 { "_size_t","_int",0},
3349 { "_size_t","_wxWindowID",0},
3350 { "_size_t","_uint",0},
3351 { "_uint","_wxCoord",0},
3352 { "_uint","_wxPrintQuality",0},
3353 { "_uint","_time_t",0},
3354 { "_uint","_size_t",0},
3355 { "_uint","_unsigned_int",0},
3356 { "_uint","_int",0},
3357 { "_uint","_wxWindowID",0},
3358 { "_wxChar","_char",0},
3359 { "_wxBoxSizer","_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxBoxSizer
},
3360 { "_char","_wxChar",0},
3361 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3362 { "_EBool","_wxCoord",0},
3363 { "_EBool","_wxPrintQuality",0},
3364 { "_EBool","_signed_int",0},
3365 { "_EBool","_int",0},
3366 { "_EBool","_wxWindowID",0},
3367 { "_unsigned_long","_long",0},
3368 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3369 { "_signed_int","_wxCoord",0},
3370 { "_signed_int","_wxPrintQuality",0},
3371 { "_signed_int","_EBool",0},
3372 { "_signed_int","_wxWindowID",0},
3373 { "_signed_int","_int",0},
3374 { "_WXTYPE","_short",0},
3375 { "_WXTYPE","_signed_short",0},
3376 { "_WXTYPE","_unsigned_short",0},
3377 { "_unsigned_short","_WXTYPE",0},
3378 { "_unsigned_short","_short",0},
3379 { "_wxObject","_wxFlexGridSizer",SwigwxFlexGridSizerTowxObject
},
3380 { "_wxObject","_wxGridSizer",SwigwxGridSizerTowxObject
},
3381 { "_wxObject","_wxNotebookSizer",SwigwxNotebookSizerTowxObject
},
3382 { "_wxObject","_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxObject
},
3383 { "_wxObject","_wxBoxSizer",SwigwxBoxSizerTowxObject
},
3384 { "_wxObject","_wxPySizer",SwigwxPySizerTowxObject
},
3385 { "_wxObject","_wxSizer",SwigwxSizerTowxObject
},
3386 { "_wxObject","_wxSizerItem",SwigwxSizerItemTowxObject
},
3387 { "_signed_short","_WXTYPE",0},
3388 { "_signed_short","_short",0},
3389 { "_unsigned_char","_byte",0},
3390 { "_unsigned_int","_wxCoord",0},
3391 { "_unsigned_int","_wxPrintQuality",0},
3392 { "_unsigned_int","_time_t",0},
3393 { "_unsigned_int","_size_t",0},
3394 { "_unsigned_int","_uint",0},
3395 { "_unsigned_int","_wxWindowID",0},
3396 { "_unsigned_int","_int",0},
3397 { "_short","_WXTYPE",0},
3398 { "_short","_unsigned_short",0},
3399 { "_short","_signed_short",0},
3400 { "_wxWindowID","_wxCoord",0},
3401 { "_wxWindowID","_wxPrintQuality",0},
3402 { "_wxWindowID","_time_t",0},
3403 { "_wxWindowID","_size_t",0},
3404 { "_wxWindowID","_EBool",0},
3405 { "_wxWindowID","_uint",0},
3406 { "_wxWindowID","_int",0},
3407 { "_wxWindowID","_signed_int",0},
3408 { "_wxWindowID","_unsigned_int",0},
3409 { "_int","_wxCoord",0},
3410 { "_int","_wxPrintQuality",0},
3411 { "_int","_time_t",0},
3412 { "_int","_size_t",0},
3413 { "_int","_EBool",0},
3414 { "_int","_uint",0},
3415 { "_int","_wxWindowID",0},
3416 { "_int","_unsigned_int",0},
3417 { "_int","_signed_int",0},
3418 { "_time_t","_wxCoord",0},
3419 { "_time_t","_wxPrintQuality",0},
3420 { "_time_t","_unsigned_int",0},
3421 { "_time_t","_int",0},
3422 { "_time_t","_wxWindowID",0},
3423 { "_time_t","_uint",0},
3424 { "_time_t","_size_t",0},
3425 { "_wxCoord","_int",0},
3426 { "_wxCoord","_signed_int",0},
3427 { "_wxCoord","_unsigned_int",0},
3428 { "_wxCoord","_wxWindowID",0},
3429 { "_wxCoord","_uint",0},
3430 { "_wxCoord","_EBool",0},
3431 { "_wxCoord","_size_t",0},
3432 { "_wxCoord","_time_t",0},
3433 { "_wxCoord","_wxPrintQuality",0},
3434 { "_wxSizer","_wxFlexGridSizer",SwigwxFlexGridSizerTowxSizer
},
3435 { "_wxSizer","_wxGridSizer",SwigwxGridSizerTowxSizer
},
3436 { "_wxSizer","_wxNotebookSizer",SwigwxNotebookSizerTowxSizer
},
3437 { "_wxSizer","_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxSizer
},
3438 { "_wxSizer","_wxBoxSizer",SwigwxBoxSizerTowxSizer
},
3439 { "_wxSizer","_wxPySizer",SwigwxPySizerTowxSizer
},
3442 static PyObject
*SWIG_globals
;
3446 SWIGEXPORT(void) initsizersc() {
3448 SWIG_globals
= SWIG_newvarlink();
3449 m
= Py_InitModule("sizersc", sizerscMethods
);
3450 d
= PyModule_GetDict(m
);
3451 PyDict_SetItemString(d
,"wxFLEX_GROWMODE_NONE", PyInt_FromLong((long) wxFLEX_GROWMODE_NONE
));
3452 PyDict_SetItemString(d
,"wxFLEX_GROWMODE_SPECIFIED", PyInt_FromLong((long) wxFLEX_GROWMODE_SPECIFIED
));
3453 PyDict_SetItemString(d
,"wxFLEX_GROWMODE_ALL", PyInt_FromLong((long) wxFLEX_GROWMODE_ALL
));
3456 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3457 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);