]>
Commit | Line | Data |
---|---|---|
e6056257 RD |
1 | /* |
2 | * FILE : src/mac/windows3.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
7 | * | |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
7108497a RD |
22 | #include "Python.h" |
23 | ||
e6056257 RD |
24 | #include <string.h> |
25 | #include <stdlib.h> | |
26 | /* Definitions for Windows/Unix exporting */ | |
27 | #if defined(__WIN32__) | |
28 | # if defined(_MSC_VER) | |
29 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
30 | # else | |
31 | # if defined(__BORLANDC__) | |
32 | # define SWIGEXPORT(a) a _export | |
33 | # else | |
34 | # define SWIGEXPORT(a) a | |
35 | # endif | |
36 | # endif | |
37 | #else | |
38 | # define SWIGEXPORT(a) a | |
39 | #endif | |
40 | ||
e6056257 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
e6056257 RD |
44 | extern void SWIG_MakePtr(char *, void *, char *); |
45 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
46 | extern char *SWIG_GetPtr(char *, void **, char *); | |
47 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
48 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
49 | extern PyObject *SWIG_newvarlink(void); | |
50 | #ifdef __cplusplus | |
51 | } | |
52 | #endif | |
53 | #define SWIG_init initwindows3c | |
54 | ||
55 | #define SWIG_name "windows3c" | |
56 | ||
57 | #include "helpers.h" | |
58 | #include <wx/sashwin.h> | |
59 | #include <wx/laywin.h> | |
60 | #ifndef __WXMAC__ | |
61 | #include <wx/popupwin.h> | |
00360d46 | 62 | #include <wx/tipwin.h> |
e6056257 RD |
63 | #endif |
64 | ||
65 | ||
66 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
67 | PyObject* o2; | |
68 | PyObject* o3; | |
69 | ||
70 | if (!target) { | |
71 | target = o; | |
72 | } else if (target == Py_None) { | |
73 | Py_DECREF(Py_None); | |
74 | target = o; | |
75 | } else { | |
76 | if (!PyTuple_Check(target)) { | |
77 | o2 = target; | |
78 | target = PyTuple_New(1); | |
79 | PyTuple_SetItem(target, 0, o2); | |
80 | } | |
81 | o3 = PyTuple_New(1); | |
82 | PyTuple_SetItem(o3, 0, o); | |
83 | ||
84 | o2 = target; | |
85 | target = PySequence_Concat(o2, o3); | |
86 | Py_DECREF(o2); | |
87 | Py_DECREF(o3); | |
88 | } | |
89 | return target; | |
90 | } | |
c3bfa1cb RD |
91 | |
92 | // Put some wx default wxChar* values into wxStrings. | |
93 | static const wxChar* wxSashNameStr = wxT("sashWindow"); | |
94 | DECLARE_DEF_STRING(SashNameStr); | |
95 | static const wxChar* wxSashLayoutNameStr = wxT("layoutWindow"); | |
96 | DECLARE_DEF_STRING(SashLayoutNameStr); | |
e6056257 RD |
97 | #ifdef __cplusplus |
98 | extern "C" { | |
99 | #endif | |
100 | static void *SwigwxSashEventTowxCommandEvent(void *ptr) { | |
101 | wxSashEvent *src; | |
102 | wxCommandEvent *dest; | |
103 | src = (wxSashEvent *) ptr; | |
104 | dest = (wxCommandEvent *) src; | |
105 | return (void *) dest; | |
106 | } | |
107 | ||
108 | static void *SwigwxSashEventTowxEvent(void *ptr) { | |
109 | wxSashEvent *src; | |
110 | wxEvent *dest; | |
111 | src = (wxSashEvent *) ptr; | |
112 | dest = (wxEvent *) src; | |
113 | return (void *) dest; | |
114 | } | |
115 | ||
116 | static void *SwigwxSashEventTowxObject(void *ptr) { | |
117 | wxSashEvent *src; | |
118 | wxObject *dest; | |
119 | src = (wxSashEvent *) ptr; | |
120 | dest = (wxObject *) src; | |
121 | return (void *) dest; | |
122 | } | |
123 | ||
124 | #define new_wxSashEvent(_swigarg0,_swigarg1) (new wxSashEvent(_swigarg0,_swigarg1)) | |
125 | static PyObject *_wrap_new_wxSashEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
126 | PyObject * _resultobj; | |
127 | wxSashEvent * _result; | |
128 | int _arg0 = (int ) 0; | |
129 | wxSashEdgePosition _arg1 = (wxSashEdgePosition ) (wxSASH_NONE); | |
130 | char *_kwnames[] = { "id","edge", NULL }; | |
131 | char _ptemp[128]; | |
132 | ||
133 | self = self; | |
134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxSashEvent",_kwnames,&_arg0,&_arg1)) | |
135 | return NULL; | |
136 | { | |
0e2ff151 | 137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 138 | _result = (wxSashEvent *)new_wxSashEvent(_arg0,_arg1); |
e6056257 | 139 | |
0e2ff151 | 140 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
141 | if (PyErr_Occurred()) return NULL; |
142 | } if (_result) { | |
143 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSashEvent_p"); | |
144 | _resultobj = Py_BuildValue("s",_ptemp); | |
145 | } else { | |
146 | Py_INCREF(Py_None); | |
147 | _resultobj = Py_None; | |
148 | } | |
149 | return _resultobj; | |
150 | } | |
151 | ||
152 | #define wxSashEvent_SetEdge(_swigobj,_swigarg0) (_swigobj->SetEdge(_swigarg0)) | |
153 | static PyObject *_wrap_wxSashEvent_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
154 | PyObject * _resultobj; | |
155 | wxSashEvent * _arg0; | |
156 | wxSashEdgePosition _arg1; | |
157 | PyObject * _argo0 = 0; | |
158 | char *_kwnames[] = { "self","edge", NULL }; | |
159 | ||
160 | self = self; | |
161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashEvent_SetEdge",_kwnames,&_argo0,&_arg1)) | |
162 | return NULL; | |
163 | if (_argo0) { | |
164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashEvent_p")) { | |
166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashEvent_SetEdge. Expected _wxSashEvent_p."); | |
167 | return NULL; | |
168 | } | |
169 | } | |
170 | { | |
0e2ff151 | 171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 172 | wxSashEvent_SetEdge(_arg0,_arg1); |
e6056257 | 173 | |
0e2ff151 | 174 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
175 | if (PyErr_Occurred()) return NULL; |
176 | } Py_INCREF(Py_None); | |
177 | _resultobj = Py_None; | |
178 | return _resultobj; | |
179 | } | |
180 | ||
181 | #define wxSashEvent_GetEdge(_swigobj) (_swigobj->GetEdge()) | |
182 | static PyObject *_wrap_wxSashEvent_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
183 | PyObject * _resultobj; | |
184 | wxSashEdgePosition _result; | |
185 | wxSashEvent * _arg0; | |
186 | PyObject * _argo0 = 0; | |
187 | char *_kwnames[] = { "self", NULL }; | |
188 | ||
189 | self = self; | |
190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashEvent_GetEdge",_kwnames,&_argo0)) | |
191 | return NULL; | |
192 | if (_argo0) { | |
193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashEvent_p")) { | |
195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashEvent_GetEdge. Expected _wxSashEvent_p."); | |
196 | return NULL; | |
197 | } | |
198 | } | |
199 | { | |
0e2ff151 | 200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 201 | _result = (wxSashEdgePosition )wxSashEvent_GetEdge(_arg0); |
e6056257 | 202 | |
0e2ff151 | 203 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
204 | if (PyErr_Occurred()) return NULL; |
205 | } _resultobj = Py_BuildValue("i",_result); | |
206 | return _resultobj; | |
207 | } | |
208 | ||
209 | #define wxSashEvent_SetDragRect(_swigobj,_swigarg0) (_swigobj->SetDragRect(_swigarg0)) | |
210 | static PyObject *_wrap_wxSashEvent_SetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
211 | PyObject * _resultobj; | |
212 | wxSashEvent * _arg0; | |
213 | wxRect * _arg1; | |
214 | PyObject * _argo0 = 0; | |
215 | wxRect temp; | |
216 | PyObject * _obj1 = 0; | |
217 | char *_kwnames[] = { "self","rect", NULL }; | |
218 | ||
219 | self = self; | |
220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSashEvent_SetDragRect",_kwnames,&_argo0,&_obj1)) | |
221 | return NULL; | |
222 | if (_argo0) { | |
223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashEvent_p")) { | |
225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashEvent_SetDragRect. Expected _wxSashEvent_p."); | |
226 | return NULL; | |
227 | } | |
228 | } | |
229 | { | |
230 | _arg1 = &temp; | |
231 | if (! wxRect_helper(_obj1, &_arg1)) | |
232 | return NULL; | |
233 | } | |
234 | { | |
0e2ff151 | 235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 236 | wxSashEvent_SetDragRect(_arg0,*_arg1); |
e6056257 | 237 | |
0e2ff151 | 238 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
239 | if (PyErr_Occurred()) return NULL; |
240 | } Py_INCREF(Py_None); | |
241 | _resultobj = Py_None; | |
242 | return _resultobj; | |
243 | } | |
244 | ||
245 | #define wxSashEvent_GetDragRect(_swigobj) (_swigobj->GetDragRect()) | |
246 | static PyObject *_wrap_wxSashEvent_GetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
247 | PyObject * _resultobj; | |
248 | wxRect * _result; | |
249 | wxSashEvent * _arg0; | |
250 | PyObject * _argo0 = 0; | |
251 | char *_kwnames[] = { "self", NULL }; | |
252 | char _ptemp[128]; | |
253 | ||
254 | self = self; | |
255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashEvent_GetDragRect",_kwnames,&_argo0)) | |
256 | return NULL; | |
257 | if (_argo0) { | |
258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashEvent_p")) { | |
260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashEvent_GetDragRect. Expected _wxSashEvent_p."); | |
261 | return NULL; | |
262 | } | |
263 | } | |
264 | { | |
0e2ff151 | 265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 266 | _result = new wxRect (wxSashEvent_GetDragRect(_arg0)); |
e6056257 | 267 | |
0e2ff151 | 268 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
269 | if (PyErr_Occurred()) return NULL; |
270 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
271 | _resultobj = Py_BuildValue("s",_ptemp); | |
272 | return _resultobj; | |
273 | } | |
274 | ||
275 | #define wxSashEvent_SetDragStatus(_swigobj,_swigarg0) (_swigobj->SetDragStatus(_swigarg0)) | |
276 | static PyObject *_wrap_wxSashEvent_SetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
277 | PyObject * _resultobj; | |
278 | wxSashEvent * _arg0; | |
279 | wxSashDragStatus _arg1; | |
280 | PyObject * _argo0 = 0; | |
281 | char *_kwnames[] = { "self","status", NULL }; | |
282 | ||
283 | self = self; | |
284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashEvent_SetDragStatus",_kwnames,&_argo0,&_arg1)) | |
285 | return NULL; | |
286 | if (_argo0) { | |
287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashEvent_p")) { | |
289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashEvent_SetDragStatus. Expected _wxSashEvent_p."); | |
290 | return NULL; | |
291 | } | |
292 | } | |
293 | { | |
0e2ff151 | 294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 295 | wxSashEvent_SetDragStatus(_arg0,_arg1); |
e6056257 | 296 | |
0e2ff151 | 297 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
298 | if (PyErr_Occurred()) return NULL; |
299 | } Py_INCREF(Py_None); | |
300 | _resultobj = Py_None; | |
301 | return _resultobj; | |
302 | } | |
303 | ||
304 | #define wxSashEvent_GetDragStatus(_swigobj) (_swigobj->GetDragStatus()) | |
305 | static PyObject *_wrap_wxSashEvent_GetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
306 | PyObject * _resultobj; | |
307 | wxSashDragStatus _result; | |
308 | wxSashEvent * _arg0; | |
309 | PyObject * _argo0 = 0; | |
310 | char *_kwnames[] = { "self", NULL }; | |
311 | ||
312 | self = self; | |
313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashEvent_GetDragStatus",_kwnames,&_argo0)) | |
314 | return NULL; | |
315 | if (_argo0) { | |
316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashEvent_p")) { | |
318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashEvent_GetDragStatus. Expected _wxSashEvent_p."); | |
319 | return NULL; | |
320 | } | |
321 | } | |
322 | { | |
0e2ff151 | 323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 324 | _result = (wxSashDragStatus )wxSashEvent_GetDragStatus(_arg0); |
e6056257 | 325 | |
0e2ff151 | 326 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
327 | if (PyErr_Occurred()) return NULL; |
328 | } _resultobj = Py_BuildValue("i",_result); | |
329 | return _resultobj; | |
330 | } | |
331 | ||
332 | static void *SwigwxSashWindowTowxWindow(void *ptr) { | |
333 | wxSashWindow *src; | |
334 | wxWindow *dest; | |
335 | src = (wxSashWindow *) ptr; | |
336 | dest = (wxWindow *) src; | |
337 | return (void *) dest; | |
338 | } | |
339 | ||
340 | static void *SwigwxSashWindowTowxEvtHandler(void *ptr) { | |
341 | wxSashWindow *src; | |
342 | wxEvtHandler *dest; | |
343 | src = (wxSashWindow *) ptr; | |
344 | dest = (wxEvtHandler *) src; | |
345 | return (void *) dest; | |
346 | } | |
347 | ||
348 | static void *SwigwxSashWindowTowxObject(void *ptr) { | |
349 | wxSashWindow *src; | |
350 | wxObject *dest; | |
351 | src = (wxSashWindow *) ptr; | |
352 | dest = (wxObject *) src; | |
353 | return (void *) dest; | |
354 | } | |
355 | ||
356 | #define new_wxSashWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSashWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
357 | static PyObject *_wrap_new_wxSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
358 | PyObject * _resultobj; | |
359 | wxSashWindow * _result; | |
360 | wxWindow * _arg0; | |
361 | wxWindowID _arg1; | |
362 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
363 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
364 | long _arg4 = (long ) wxCLIP_CHILDREN|(wxSW_3D); | |
c3bfa1cb | 365 | wxString * _arg5 = (wxString *) &wxPySashNameStr; |
e6056257 RD |
366 | PyObject * _argo0 = 0; |
367 | wxPoint temp; | |
368 | PyObject * _obj2 = 0; | |
369 | wxSize temp0; | |
370 | PyObject * _obj3 = 0; | |
c3bfa1cb | 371 | PyObject * _obj5 = 0; |
e6056257 RD |
372 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
373 | char _ptemp[128]; | |
374 | ||
375 | self = self; | |
c3bfa1cb | 376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxSashWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
e6056257 RD |
377 | return NULL; |
378 | if (_argo0) { | |
379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSashWindow. Expected _wxWindow_p."); | |
382 | return NULL; | |
383 | } | |
384 | } | |
385 | if (_obj2) | |
386 | { | |
387 | _arg2 = &temp; | |
388 | if (! wxPoint_helper(_obj2, &_arg2)) | |
389 | return NULL; | |
390 | } | |
391 | if (_obj3) | |
392 | { | |
393 | _arg3 = &temp0; | |
394 | if (! wxSize_helper(_obj3, &_arg3)) | |
395 | return NULL; | |
c3bfa1cb RD |
396 | } |
397 | if (_obj5) | |
398 | { | |
399 | _arg5 = wxString_in_helper(_obj5); | |
400 | if (_arg5 == NULL) | |
401 | return NULL; | |
e6056257 RD |
402 | } |
403 | { | |
0e2ff151 | 404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 405 | _result = (wxSashWindow *)new_wxSashWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
e6056257 | 406 | |
0e2ff151 | 407 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
408 | if (PyErr_Occurred()) return NULL; |
409 | } if (_result) { | |
410 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSashWindow_p"); | |
411 | _resultobj = Py_BuildValue("s",_ptemp); | |
412 | } else { | |
413 | Py_INCREF(Py_None); | |
414 | _resultobj = Py_None; | |
415 | } | |
c3bfa1cb RD |
416 | { |
417 | if (_obj5) | |
418 | delete _arg5; | |
419 | } | |
e6056257 RD |
420 | return _resultobj; |
421 | } | |
422 | ||
423 | #define new_wxPreSashWindow() (new wxSashWindow()) | |
424 | static PyObject *_wrap_new_wxPreSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
425 | PyObject * _resultobj; | |
426 | wxSashWindow * _result; | |
427 | char *_kwnames[] = { NULL }; | |
428 | char _ptemp[128]; | |
429 | ||
430 | self = self; | |
431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSashWindow",_kwnames)) | |
432 | return NULL; | |
433 | { | |
0e2ff151 | 434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 435 | _result = (wxSashWindow *)new_wxPreSashWindow(); |
e6056257 | 436 | |
0e2ff151 | 437 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
438 | if (PyErr_Occurred()) return NULL; |
439 | } if (_result) { | |
440 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSashWindow_p"); | |
441 | _resultobj = Py_BuildValue("s",_ptemp); | |
442 | } else { | |
443 | Py_INCREF(Py_None); | |
444 | _resultobj = Py_None; | |
445 | } | |
446 | return _resultobj; | |
447 | } | |
448 | ||
449 | #define wxSashWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
450 | static PyObject *_wrap_wxSashWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
451 | PyObject * _resultobj; | |
452 | bool _result; | |
453 | wxSashWindow * _arg0; | |
454 | wxWindow * _arg1; | |
455 | wxWindowID _arg2; | |
456 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
457 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
458 | long _arg5 = (long ) wxCLIP_CHILDREN|(wxSW_3D); | |
c3bfa1cb | 459 | wxString * _arg6 = (wxString *) &wxPySashNameStr; |
e6056257 RD |
460 | PyObject * _argo0 = 0; |
461 | PyObject * _argo1 = 0; | |
462 | wxPoint temp; | |
463 | PyObject * _obj3 = 0; | |
464 | wxSize temp0; | |
465 | PyObject * _obj4 = 0; | |
c3bfa1cb | 466 | PyObject * _obj6 = 0; |
e6056257 RD |
467 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
468 | ||
469 | self = self; | |
c3bfa1cb | 470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxSashWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
e6056257 RD |
471 | return NULL; |
472 | if (_argo0) { | |
473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_Create. Expected _wxSashWindow_p."); | |
476 | return NULL; | |
477 | } | |
478 | } | |
479 | if (_argo1) { | |
480 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
481 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSashWindow_Create. Expected _wxWindow_p."); | |
483 | return NULL; | |
484 | } | |
485 | } | |
486 | if (_obj3) | |
487 | { | |
488 | _arg3 = &temp; | |
489 | if (! wxPoint_helper(_obj3, &_arg3)) | |
490 | return NULL; | |
491 | } | |
492 | if (_obj4) | |
493 | { | |
494 | _arg4 = &temp0; | |
495 | if (! wxSize_helper(_obj4, &_arg4)) | |
496 | return NULL; | |
c3bfa1cb RD |
497 | } |
498 | if (_obj6) | |
499 | { | |
500 | _arg6 = wxString_in_helper(_obj6); | |
501 | if (_arg6 == NULL) | |
502 | return NULL; | |
e6056257 RD |
503 | } |
504 | { | |
0e2ff151 | 505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 506 | _result = (bool )wxSashWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
e6056257 | 507 | |
0e2ff151 | 508 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
509 | if (PyErr_Occurred()) return NULL; |
510 | } _resultobj = Py_BuildValue("i",_result); | |
c3bfa1cb RD |
511 | { |
512 | if (_obj6) | |
513 | delete _arg6; | |
514 | } | |
e6056257 RD |
515 | return _resultobj; |
516 | } | |
517 | ||
518 | #define wxSashWindow_GetSashVisible(_swigobj,_swigarg0) (_swigobj->GetSashVisible(_swigarg0)) | |
519 | static PyObject *_wrap_wxSashWindow_GetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
520 | PyObject * _resultobj; | |
521 | bool _result; | |
522 | wxSashWindow * _arg0; | |
523 | wxSashEdgePosition _arg1; | |
524 | PyObject * _argo0 = 0; | |
525 | char *_kwnames[] = { "self","edge", NULL }; | |
526 | ||
527 | self = self; | |
528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashWindow_GetSashVisible",_kwnames,&_argo0,&_arg1)) | |
529 | return NULL; | |
530 | if (_argo0) { | |
531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_GetSashVisible. Expected _wxSashWindow_p."); | |
534 | return NULL; | |
535 | } | |
536 | } | |
537 | { | |
0e2ff151 | 538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 539 | _result = (bool )wxSashWindow_GetSashVisible(_arg0,_arg1); |
e6056257 | 540 | |
0e2ff151 | 541 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
542 | if (PyErr_Occurred()) return NULL; |
543 | } _resultobj = Py_BuildValue("i",_result); | |
544 | return _resultobj; | |
545 | } | |
546 | ||
547 | #define wxSashWindow_GetDefaultBorderSize(_swigobj) (_swigobj->GetDefaultBorderSize()) | |
548 | static PyObject *_wrap_wxSashWindow_GetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
549 | PyObject * _resultobj; | |
550 | int _result; | |
551 | wxSashWindow * _arg0; | |
552 | PyObject * _argo0 = 0; | |
553 | char *_kwnames[] = { "self", NULL }; | |
554 | ||
555 | self = self; | |
556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashWindow_GetDefaultBorderSize",_kwnames,&_argo0)) | |
557 | return NULL; | |
558 | if (_argo0) { | |
559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_GetDefaultBorderSize. Expected _wxSashWindow_p."); | |
562 | return NULL; | |
563 | } | |
564 | } | |
565 | { | |
0e2ff151 | 566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 567 | _result = (int )wxSashWindow_GetDefaultBorderSize(_arg0); |
e6056257 | 568 | |
0e2ff151 | 569 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
570 | if (PyErr_Occurred()) return NULL; |
571 | } _resultobj = Py_BuildValue("i",_result); | |
572 | return _resultobj; | |
573 | } | |
574 | ||
575 | #define wxSashWindow_GetEdgeMargin(_swigobj,_swigarg0) (_swigobj->GetEdgeMargin(_swigarg0)) | |
576 | static PyObject *_wrap_wxSashWindow_GetEdgeMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
577 | PyObject * _resultobj; | |
578 | int _result; | |
579 | wxSashWindow * _arg0; | |
580 | wxSashEdgePosition _arg1; | |
581 | PyObject * _argo0 = 0; | |
582 | char *_kwnames[] = { "self","edge", NULL }; | |
583 | ||
584 | self = self; | |
585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashWindow_GetEdgeMargin",_kwnames,&_argo0,&_arg1)) | |
586 | return NULL; | |
587 | if (_argo0) { | |
588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_GetEdgeMargin. Expected _wxSashWindow_p."); | |
591 | return NULL; | |
592 | } | |
593 | } | |
594 | { | |
0e2ff151 | 595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 596 | _result = (int )wxSashWindow_GetEdgeMargin(_arg0,_arg1); |
e6056257 | 597 | |
0e2ff151 | 598 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
599 | if (PyErr_Occurred()) return NULL; |
600 | } _resultobj = Py_BuildValue("i",_result); | |
601 | return _resultobj; | |
602 | } | |
603 | ||
604 | #define wxSashWindow_GetExtraBorderSize(_swigobj) (_swigobj->GetExtraBorderSize()) | |
605 | static PyObject *_wrap_wxSashWindow_GetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
606 | PyObject * _resultobj; | |
607 | int _result; | |
608 | wxSashWindow * _arg0; | |
609 | PyObject * _argo0 = 0; | |
610 | char *_kwnames[] = { "self", NULL }; | |
611 | ||
612 | self = self; | |
613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashWindow_GetExtraBorderSize",_kwnames,&_argo0)) | |
614 | return NULL; | |
615 | if (_argo0) { | |
616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_GetExtraBorderSize. Expected _wxSashWindow_p."); | |
619 | return NULL; | |
620 | } | |
621 | } | |
622 | { | |
0e2ff151 | 623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 624 | _result = (int )wxSashWindow_GetExtraBorderSize(_arg0); |
e6056257 | 625 | |
0e2ff151 | 626 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
627 | if (PyErr_Occurred()) return NULL; |
628 | } _resultobj = Py_BuildValue("i",_result); | |
629 | return _resultobj; | |
630 | } | |
631 | ||
632 | #define wxSashWindow_GetMaximumSizeX(_swigobj) (_swigobj->GetMaximumSizeX()) | |
633 | static PyObject *_wrap_wxSashWindow_GetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
634 | PyObject * _resultobj; | |
635 | int _result; | |
636 | wxSashWindow * _arg0; | |
637 | PyObject * _argo0 = 0; | |
638 | char *_kwnames[] = { "self", NULL }; | |
639 | ||
640 | self = self; | |
641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashWindow_GetMaximumSizeX",_kwnames,&_argo0)) | |
642 | return NULL; | |
643 | if (_argo0) { | |
644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_GetMaximumSizeX. Expected _wxSashWindow_p."); | |
647 | return NULL; | |
648 | } | |
649 | } | |
650 | { | |
0e2ff151 | 651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 652 | _result = (int )wxSashWindow_GetMaximumSizeX(_arg0); |
e6056257 | 653 | |
0e2ff151 | 654 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
655 | if (PyErr_Occurred()) return NULL; |
656 | } _resultobj = Py_BuildValue("i",_result); | |
657 | return _resultobj; | |
658 | } | |
659 | ||
660 | #define wxSashWindow_GetMaximumSizeY(_swigobj) (_swigobj->GetMaximumSizeY()) | |
661 | static PyObject *_wrap_wxSashWindow_GetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
662 | PyObject * _resultobj; | |
663 | int _result; | |
664 | wxSashWindow * _arg0; | |
665 | PyObject * _argo0 = 0; | |
666 | char *_kwnames[] = { "self", NULL }; | |
667 | ||
668 | self = self; | |
669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashWindow_GetMaximumSizeY",_kwnames,&_argo0)) | |
670 | return NULL; | |
671 | if (_argo0) { | |
672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_GetMaximumSizeY. Expected _wxSashWindow_p."); | |
675 | return NULL; | |
676 | } | |
677 | } | |
678 | { | |
0e2ff151 | 679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 680 | _result = (int )wxSashWindow_GetMaximumSizeY(_arg0); |
e6056257 | 681 | |
0e2ff151 | 682 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
683 | if (PyErr_Occurred()) return NULL; |
684 | } _resultobj = Py_BuildValue("i",_result); | |
685 | return _resultobj; | |
686 | } | |
687 | ||
688 | #define wxSashWindow_GetMinimumSizeX(_swigobj) (_swigobj->GetMinimumSizeX()) | |
689 | static PyObject *_wrap_wxSashWindow_GetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
690 | PyObject * _resultobj; | |
691 | int _result; | |
692 | wxSashWindow * _arg0; | |
693 | PyObject * _argo0 = 0; | |
694 | char *_kwnames[] = { "self", NULL }; | |
695 | ||
696 | self = self; | |
697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashWindow_GetMinimumSizeX",_kwnames,&_argo0)) | |
698 | return NULL; | |
699 | if (_argo0) { | |
700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_GetMinimumSizeX. Expected _wxSashWindow_p."); | |
703 | return NULL; | |
704 | } | |
705 | } | |
706 | { | |
0e2ff151 | 707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 708 | _result = (int )wxSashWindow_GetMinimumSizeX(_arg0); |
e6056257 | 709 | |
0e2ff151 | 710 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
711 | if (PyErr_Occurred()) return NULL; |
712 | } _resultobj = Py_BuildValue("i",_result); | |
713 | return _resultobj; | |
714 | } | |
715 | ||
716 | #define wxSashWindow_GetMinimumSizeY(_swigobj) (_swigobj->GetMinimumSizeY()) | |
717 | static PyObject *_wrap_wxSashWindow_GetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
718 | PyObject * _resultobj; | |
719 | int _result; | |
720 | wxSashWindow * _arg0; | |
721 | PyObject * _argo0 = 0; | |
722 | char *_kwnames[] = { "self", NULL }; | |
723 | ||
724 | self = self; | |
725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashWindow_GetMinimumSizeY",_kwnames,&_argo0)) | |
726 | return NULL; | |
727 | if (_argo0) { | |
728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_GetMinimumSizeY. Expected _wxSashWindow_p."); | |
731 | return NULL; | |
732 | } | |
733 | } | |
734 | { | |
0e2ff151 | 735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 736 | _result = (int )wxSashWindow_GetMinimumSizeY(_arg0); |
e6056257 | 737 | |
0e2ff151 | 738 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
739 | if (PyErr_Occurred()) return NULL; |
740 | } _resultobj = Py_BuildValue("i",_result); | |
741 | return _resultobj; | |
742 | } | |
743 | ||
744 | #define wxSashWindow_HasBorder(_swigobj,_swigarg0) (_swigobj->HasBorder(_swigarg0)) | |
745 | static PyObject *_wrap_wxSashWindow_HasBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
746 | PyObject * _resultobj; | |
747 | bool _result; | |
748 | wxSashWindow * _arg0; | |
749 | wxSashEdgePosition _arg1; | |
750 | PyObject * _argo0 = 0; | |
751 | char *_kwnames[] = { "self","edge", NULL }; | |
752 | ||
753 | self = self; | |
754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashWindow_HasBorder",_kwnames,&_argo0,&_arg1)) | |
755 | return NULL; | |
756 | if (_argo0) { | |
757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_HasBorder. Expected _wxSashWindow_p."); | |
760 | return NULL; | |
761 | } | |
762 | } | |
763 | { | |
0e2ff151 | 764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 765 | _result = (bool )wxSashWindow_HasBorder(_arg0,_arg1); |
e6056257 | 766 | |
0e2ff151 | 767 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
768 | if (PyErr_Occurred()) return NULL; |
769 | } _resultobj = Py_BuildValue("i",_result); | |
770 | return _resultobj; | |
771 | } | |
772 | ||
773 | #define wxSashWindow_SetDefaultBorderSize(_swigobj,_swigarg0) (_swigobj->SetDefaultBorderSize(_swigarg0)) | |
774 | static PyObject *_wrap_wxSashWindow_SetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
775 | PyObject * _resultobj; | |
776 | wxSashWindow * _arg0; | |
777 | int _arg1; | |
778 | PyObject * _argo0 = 0; | |
779 | char *_kwnames[] = { "self","width", NULL }; | |
780 | ||
781 | self = self; | |
782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashWindow_SetDefaultBorderSize",_kwnames,&_argo0,&_arg1)) | |
783 | return NULL; | |
784 | if (_argo0) { | |
785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_SetDefaultBorderSize. Expected _wxSashWindow_p."); | |
788 | return NULL; | |
789 | } | |
790 | } | |
791 | { | |
0e2ff151 | 792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 793 | wxSashWindow_SetDefaultBorderSize(_arg0,_arg1); |
e6056257 | 794 | |
0e2ff151 | 795 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
796 | if (PyErr_Occurred()) return NULL; |
797 | } Py_INCREF(Py_None); | |
798 | _resultobj = Py_None; | |
799 | return _resultobj; | |
800 | } | |
801 | ||
802 | #define wxSashWindow_SetExtraBorderSize(_swigobj,_swigarg0) (_swigobj->SetExtraBorderSize(_swigarg0)) | |
803 | static PyObject *_wrap_wxSashWindow_SetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
804 | PyObject * _resultobj; | |
805 | wxSashWindow * _arg0; | |
806 | int _arg1; | |
807 | PyObject * _argo0 = 0; | |
808 | char *_kwnames[] = { "self","width", NULL }; | |
809 | ||
810 | self = self; | |
811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashWindow_SetExtraBorderSize",_kwnames,&_argo0,&_arg1)) | |
812 | return NULL; | |
813 | if (_argo0) { | |
814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_SetExtraBorderSize. Expected _wxSashWindow_p."); | |
817 | return NULL; | |
818 | } | |
819 | } | |
820 | { | |
0e2ff151 | 821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 822 | wxSashWindow_SetExtraBorderSize(_arg0,_arg1); |
e6056257 | 823 | |
0e2ff151 | 824 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
825 | if (PyErr_Occurred()) return NULL; |
826 | } Py_INCREF(Py_None); | |
827 | _resultobj = Py_None; | |
828 | return _resultobj; | |
829 | } | |
830 | ||
831 | #define wxSashWindow_SetMaximumSizeX(_swigobj,_swigarg0) (_swigobj->SetMaximumSizeX(_swigarg0)) | |
832 | static PyObject *_wrap_wxSashWindow_SetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
833 | PyObject * _resultobj; | |
834 | wxSashWindow * _arg0; | |
835 | int _arg1; | |
836 | PyObject * _argo0 = 0; | |
837 | char *_kwnames[] = { "self","min", NULL }; | |
838 | ||
839 | self = self; | |
840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashWindow_SetMaximumSizeX",_kwnames,&_argo0,&_arg1)) | |
841 | return NULL; | |
842 | if (_argo0) { | |
843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_SetMaximumSizeX. Expected _wxSashWindow_p."); | |
846 | return NULL; | |
847 | } | |
848 | } | |
849 | { | |
0e2ff151 | 850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 851 | wxSashWindow_SetMaximumSizeX(_arg0,_arg1); |
e6056257 | 852 | |
0e2ff151 | 853 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
854 | if (PyErr_Occurred()) return NULL; |
855 | } Py_INCREF(Py_None); | |
856 | _resultobj = Py_None; | |
857 | return _resultobj; | |
858 | } | |
859 | ||
860 | #define wxSashWindow_SetMaximumSizeY(_swigobj,_swigarg0) (_swigobj->SetMaximumSizeY(_swigarg0)) | |
861 | static PyObject *_wrap_wxSashWindow_SetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
862 | PyObject * _resultobj; | |
863 | wxSashWindow * _arg0; | |
864 | int _arg1; | |
865 | PyObject * _argo0 = 0; | |
866 | char *_kwnames[] = { "self","min", NULL }; | |
867 | ||
868 | self = self; | |
869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashWindow_SetMaximumSizeY",_kwnames,&_argo0,&_arg1)) | |
870 | return NULL; | |
871 | if (_argo0) { | |
872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_SetMaximumSizeY. Expected _wxSashWindow_p."); | |
875 | return NULL; | |
876 | } | |
877 | } | |
878 | { | |
0e2ff151 | 879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 880 | wxSashWindow_SetMaximumSizeY(_arg0,_arg1); |
e6056257 | 881 | |
0e2ff151 | 882 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
883 | if (PyErr_Occurred()) return NULL; |
884 | } Py_INCREF(Py_None); | |
885 | _resultobj = Py_None; | |
886 | return _resultobj; | |
887 | } | |
888 | ||
889 | #define wxSashWindow_SetMinimumSizeX(_swigobj,_swigarg0) (_swigobj->SetMinimumSizeX(_swigarg0)) | |
890 | static PyObject *_wrap_wxSashWindow_SetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
891 | PyObject * _resultobj; | |
892 | wxSashWindow * _arg0; | |
893 | int _arg1; | |
894 | PyObject * _argo0 = 0; | |
895 | char *_kwnames[] = { "self","min", NULL }; | |
896 | ||
897 | self = self; | |
898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashWindow_SetMinimumSizeX",_kwnames,&_argo0,&_arg1)) | |
899 | return NULL; | |
900 | if (_argo0) { | |
901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_SetMinimumSizeX. Expected _wxSashWindow_p."); | |
904 | return NULL; | |
905 | } | |
906 | } | |
907 | { | |
0e2ff151 | 908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 909 | wxSashWindow_SetMinimumSizeX(_arg0,_arg1); |
e6056257 | 910 | |
0e2ff151 | 911 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
912 | if (PyErr_Occurred()) return NULL; |
913 | } Py_INCREF(Py_None); | |
914 | _resultobj = Py_None; | |
915 | return _resultobj; | |
916 | } | |
917 | ||
918 | #define wxSashWindow_SetMinimumSizeY(_swigobj,_swigarg0) (_swigobj->SetMinimumSizeY(_swigarg0)) | |
919 | static PyObject *_wrap_wxSashWindow_SetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
920 | PyObject * _resultobj; | |
921 | wxSashWindow * _arg0; | |
922 | int _arg1; | |
923 | PyObject * _argo0 = 0; | |
924 | char *_kwnames[] = { "self","min", NULL }; | |
925 | ||
926 | self = self; | |
927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashWindow_SetMinimumSizeY",_kwnames,&_argo0,&_arg1)) | |
928 | return NULL; | |
929 | if (_argo0) { | |
930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_SetMinimumSizeY. Expected _wxSashWindow_p."); | |
933 | return NULL; | |
934 | } | |
935 | } | |
936 | { | |
0e2ff151 | 937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 938 | wxSashWindow_SetMinimumSizeY(_arg0,_arg1); |
e6056257 | 939 | |
0e2ff151 | 940 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
941 | if (PyErr_Occurred()) return NULL; |
942 | } Py_INCREF(Py_None); | |
943 | _resultobj = Py_None; | |
944 | return _resultobj; | |
945 | } | |
946 | ||
947 | #define wxSashWindow_SetSashVisible(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSashVisible(_swigarg0,_swigarg1)) | |
948 | static PyObject *_wrap_wxSashWindow_SetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
949 | PyObject * _resultobj; | |
950 | wxSashWindow * _arg0; | |
951 | wxSashEdgePosition _arg1; | |
952 | bool _arg2; | |
953 | PyObject * _argo0 = 0; | |
954 | int tempbool2; | |
955 | char *_kwnames[] = { "self","edge","visible", NULL }; | |
956 | ||
957 | self = self; | |
958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSashWindow_SetSashVisible",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
959 | return NULL; | |
960 | if (_argo0) { | |
961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_SetSashVisible. Expected _wxSashWindow_p."); | |
964 | return NULL; | |
965 | } | |
966 | } | |
967 | _arg2 = (bool ) tempbool2; | |
968 | { | |
0e2ff151 | 969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 970 | wxSashWindow_SetSashVisible(_arg0,_arg1,_arg2); |
e6056257 | 971 | |
0e2ff151 | 972 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
973 | if (PyErr_Occurred()) return NULL; |
974 | } Py_INCREF(Py_None); | |
975 | _resultobj = Py_None; | |
976 | return _resultobj; | |
977 | } | |
978 | ||
979 | #define wxSashWindow_SetSashBorder(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSashBorder(_swigarg0,_swigarg1)) | |
980 | static PyObject *_wrap_wxSashWindow_SetSashBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
981 | PyObject * _resultobj; | |
982 | wxSashWindow * _arg0; | |
983 | wxSashEdgePosition _arg1; | |
984 | bool _arg2; | |
985 | PyObject * _argo0 = 0; | |
986 | int tempbool2; | |
987 | char *_kwnames[] = { "self","edge","hasBorder", NULL }; | |
988 | ||
989 | self = self; | |
990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSashWindow_SetSashBorder",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
991 | return NULL; | |
992 | if (_argo0) { | |
993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_SetSashBorder. Expected _wxSashWindow_p."); | |
996 | return NULL; | |
997 | } | |
998 | } | |
999 | _arg2 = (bool ) tempbool2; | |
1000 | { | |
0e2ff151 | 1001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1002 | wxSashWindow_SetSashBorder(_arg0,_arg1,_arg2); |
e6056257 | 1003 | |
0e2ff151 | 1004 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1005 | if (PyErr_Occurred()) return NULL; |
1006 | } Py_INCREF(Py_None); | |
1007 | _resultobj = Py_None; | |
1008 | return _resultobj; | |
1009 | } | |
1010 | ||
1011 | static void *SwigwxQueryLayoutInfoEventTowxEvent(void *ptr) { | |
1012 | wxQueryLayoutInfoEvent *src; | |
1013 | wxEvent *dest; | |
1014 | src = (wxQueryLayoutInfoEvent *) ptr; | |
1015 | dest = (wxEvent *) src; | |
1016 | return (void *) dest; | |
1017 | } | |
1018 | ||
1019 | static void *SwigwxQueryLayoutInfoEventTowxObject(void *ptr) { | |
1020 | wxQueryLayoutInfoEvent *src; | |
1021 | wxObject *dest; | |
1022 | src = (wxQueryLayoutInfoEvent *) ptr; | |
1023 | dest = (wxObject *) src; | |
1024 | return (void *) dest; | |
1025 | } | |
1026 | ||
1027 | #define new_wxQueryLayoutInfoEvent(_swigarg0) (new wxQueryLayoutInfoEvent(_swigarg0)) | |
1028 | static PyObject *_wrap_new_wxQueryLayoutInfoEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1029 | PyObject * _resultobj; | |
1030 | wxQueryLayoutInfoEvent * _result; | |
1031 | wxWindowID _arg0 = (wxWindowID ) 0; | |
1032 | char *_kwnames[] = { "id", NULL }; | |
1033 | char _ptemp[128]; | |
1034 | ||
1035 | self = self; | |
1036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxQueryLayoutInfoEvent",_kwnames,&_arg0)) | |
1037 | return NULL; | |
1038 | { | |
0e2ff151 | 1039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1040 | _result = (wxQueryLayoutInfoEvent *)new_wxQueryLayoutInfoEvent(_arg0); |
e6056257 | 1041 | |
0e2ff151 | 1042 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1043 | if (PyErr_Occurred()) return NULL; |
1044 | } if (_result) { | |
1045 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxQueryLayoutInfoEvent_p"); | |
1046 | _resultobj = Py_BuildValue("s",_ptemp); | |
1047 | } else { | |
1048 | Py_INCREF(Py_None); | |
1049 | _resultobj = Py_None; | |
1050 | } | |
1051 | return _resultobj; | |
1052 | } | |
1053 | ||
1054 | #define wxQueryLayoutInfoEvent_SetRequestedLength(_swigobj,_swigarg0) (_swigobj->SetRequestedLength(_swigarg0)) | |
1055 | static PyObject *_wrap_wxQueryLayoutInfoEvent_SetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1056 | PyObject * _resultobj; | |
1057 | wxQueryLayoutInfoEvent * _arg0; | |
1058 | int _arg1; | |
1059 | PyObject * _argo0 = 0; | |
1060 | char *_kwnames[] = { "self","length", NULL }; | |
1061 | ||
1062 | self = self; | |
1063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxQueryLayoutInfoEvent_SetRequestedLength",_kwnames,&_argo0,&_arg1)) | |
1064 | return NULL; | |
1065 | if (_argo0) { | |
1066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxQueryLayoutInfoEvent_p")) { | |
1068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxQueryLayoutInfoEvent_SetRequestedLength. Expected _wxQueryLayoutInfoEvent_p."); | |
1069 | return NULL; | |
1070 | } | |
1071 | } | |
1072 | { | |
0e2ff151 | 1073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1074 | wxQueryLayoutInfoEvent_SetRequestedLength(_arg0,_arg1); |
e6056257 | 1075 | |
0e2ff151 | 1076 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1077 | if (PyErr_Occurred()) return NULL; |
1078 | } Py_INCREF(Py_None); | |
1079 | _resultobj = Py_None; | |
1080 | return _resultobj; | |
1081 | } | |
1082 | ||
1083 | #define wxQueryLayoutInfoEvent_GetRequestedLength(_swigobj) (_swigobj->GetRequestedLength()) | |
1084 | static PyObject *_wrap_wxQueryLayoutInfoEvent_GetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1085 | PyObject * _resultobj; | |
1086 | int _result; | |
1087 | wxQueryLayoutInfoEvent * _arg0; | |
1088 | PyObject * _argo0 = 0; | |
1089 | char *_kwnames[] = { "self", NULL }; | |
1090 | ||
1091 | self = self; | |
1092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxQueryLayoutInfoEvent_GetRequestedLength",_kwnames,&_argo0)) | |
1093 | return NULL; | |
1094 | if (_argo0) { | |
1095 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1096 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxQueryLayoutInfoEvent_p")) { | |
1097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxQueryLayoutInfoEvent_GetRequestedLength. Expected _wxQueryLayoutInfoEvent_p."); | |
1098 | return NULL; | |
1099 | } | |
1100 | } | |
1101 | { | |
0e2ff151 | 1102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1103 | _result = (int )wxQueryLayoutInfoEvent_GetRequestedLength(_arg0); |
e6056257 | 1104 | |
0e2ff151 | 1105 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1106 | if (PyErr_Occurred()) return NULL; |
1107 | } _resultobj = Py_BuildValue("i",_result); | |
1108 | return _resultobj; | |
1109 | } | |
1110 | ||
1111 | #define wxQueryLayoutInfoEvent_SetFlags(_swigobj,_swigarg0) (_swigobj->SetFlags(_swigarg0)) | |
1112 | static PyObject *_wrap_wxQueryLayoutInfoEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1113 | PyObject * _resultobj; | |
1114 | wxQueryLayoutInfoEvent * _arg0; | |
1115 | int _arg1; | |
1116 | PyObject * _argo0 = 0; | |
1117 | char *_kwnames[] = { "self","flags", NULL }; | |
1118 | ||
1119 | self = self; | |
1120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxQueryLayoutInfoEvent_SetFlags",_kwnames,&_argo0,&_arg1)) | |
1121 | return NULL; | |
1122 | if (_argo0) { | |
1123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxQueryLayoutInfoEvent_p")) { | |
1125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxQueryLayoutInfoEvent_SetFlags. Expected _wxQueryLayoutInfoEvent_p."); | |
1126 | return NULL; | |
1127 | } | |
1128 | } | |
1129 | { | |
0e2ff151 | 1130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1131 | wxQueryLayoutInfoEvent_SetFlags(_arg0,_arg1); |
e6056257 | 1132 | |
0e2ff151 | 1133 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1134 | if (PyErr_Occurred()) return NULL; |
1135 | } Py_INCREF(Py_None); | |
1136 | _resultobj = Py_None; | |
1137 | return _resultobj; | |
1138 | } | |
1139 | ||
1140 | #define wxQueryLayoutInfoEvent_GetFlags(_swigobj) (_swigobj->GetFlags()) | |
1141 | static PyObject *_wrap_wxQueryLayoutInfoEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1142 | PyObject * _resultobj; | |
1143 | int _result; | |
1144 | wxQueryLayoutInfoEvent * _arg0; | |
1145 | PyObject * _argo0 = 0; | |
1146 | char *_kwnames[] = { "self", NULL }; | |
1147 | ||
1148 | self = self; | |
1149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxQueryLayoutInfoEvent_GetFlags",_kwnames,&_argo0)) | |
1150 | return NULL; | |
1151 | if (_argo0) { | |
1152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxQueryLayoutInfoEvent_p")) { | |
1154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxQueryLayoutInfoEvent_GetFlags. Expected _wxQueryLayoutInfoEvent_p."); | |
1155 | return NULL; | |
1156 | } | |
1157 | } | |
1158 | { | |
0e2ff151 | 1159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1160 | _result = (int )wxQueryLayoutInfoEvent_GetFlags(_arg0); |
e6056257 | 1161 | |
0e2ff151 | 1162 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1163 | if (PyErr_Occurred()) return NULL; |
1164 | } _resultobj = Py_BuildValue("i",_result); | |
1165 | return _resultobj; | |
1166 | } | |
1167 | ||
1168 | #define wxQueryLayoutInfoEvent_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
1169 | static PyObject *_wrap_wxQueryLayoutInfoEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1170 | PyObject * _resultobj; | |
1171 | wxQueryLayoutInfoEvent * _arg0; | |
1172 | wxSize * _arg1; | |
1173 | PyObject * _argo0 = 0; | |
1174 | wxSize temp; | |
1175 | PyObject * _obj1 = 0; | |
1176 | char *_kwnames[] = { "self","size", NULL }; | |
1177 | ||
1178 | self = self; | |
1179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxQueryLayoutInfoEvent_SetSize",_kwnames,&_argo0,&_obj1)) | |
1180 | return NULL; | |
1181 | if (_argo0) { | |
1182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxQueryLayoutInfoEvent_p")) { | |
1184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxQueryLayoutInfoEvent_SetSize. Expected _wxQueryLayoutInfoEvent_p."); | |
1185 | return NULL; | |
1186 | } | |
1187 | } | |
1188 | { | |
1189 | _arg1 = &temp; | |
1190 | if (! wxSize_helper(_obj1, &_arg1)) | |
1191 | return NULL; | |
1192 | } | |
1193 | { | |
0e2ff151 | 1194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1195 | wxQueryLayoutInfoEvent_SetSize(_arg0,*_arg1); |
e6056257 | 1196 | |
0e2ff151 | 1197 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1198 | if (PyErr_Occurred()) return NULL; |
1199 | } Py_INCREF(Py_None); | |
1200 | _resultobj = Py_None; | |
1201 | return _resultobj; | |
1202 | } | |
1203 | ||
1204 | #define wxQueryLayoutInfoEvent_GetSize(_swigobj) (_swigobj->GetSize()) | |
1205 | static PyObject *_wrap_wxQueryLayoutInfoEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1206 | PyObject * _resultobj; | |
1207 | wxSize * _result; | |
1208 | wxQueryLayoutInfoEvent * _arg0; | |
1209 | PyObject * _argo0 = 0; | |
1210 | char *_kwnames[] = { "self", NULL }; | |
1211 | char _ptemp[128]; | |
1212 | ||
1213 | self = self; | |
1214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxQueryLayoutInfoEvent_GetSize",_kwnames,&_argo0)) | |
1215 | return NULL; | |
1216 | if (_argo0) { | |
1217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxQueryLayoutInfoEvent_p")) { | |
1219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxQueryLayoutInfoEvent_GetSize. Expected _wxQueryLayoutInfoEvent_p."); | |
1220 | return NULL; | |
1221 | } | |
1222 | } | |
1223 | { | |
0e2ff151 | 1224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1225 | _result = new wxSize (wxQueryLayoutInfoEvent_GetSize(_arg0)); |
e6056257 | 1226 | |
0e2ff151 | 1227 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1228 | if (PyErr_Occurred()) return NULL; |
1229 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1230 | _resultobj = Py_BuildValue("s",_ptemp); | |
1231 | return _resultobj; | |
1232 | } | |
1233 | ||
1234 | #define wxQueryLayoutInfoEvent_SetOrientation(_swigobj,_swigarg0) (_swigobj->SetOrientation(_swigarg0)) | |
1235 | static PyObject *_wrap_wxQueryLayoutInfoEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1236 | PyObject * _resultobj; | |
1237 | wxQueryLayoutInfoEvent * _arg0; | |
1238 | wxLayoutOrientation _arg1; | |
1239 | PyObject * _argo0 = 0; | |
1240 | char *_kwnames[] = { "self","orient", NULL }; | |
1241 | ||
1242 | self = self; | |
1243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxQueryLayoutInfoEvent_SetOrientation",_kwnames,&_argo0,&_arg1)) | |
1244 | return NULL; | |
1245 | if (_argo0) { | |
1246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxQueryLayoutInfoEvent_p")) { | |
1248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxQueryLayoutInfoEvent_SetOrientation. Expected _wxQueryLayoutInfoEvent_p."); | |
1249 | return NULL; | |
1250 | } | |
1251 | } | |
1252 | { | |
0e2ff151 | 1253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1254 | wxQueryLayoutInfoEvent_SetOrientation(_arg0,_arg1); |
e6056257 | 1255 | |
0e2ff151 | 1256 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1257 | if (PyErr_Occurred()) return NULL; |
1258 | } Py_INCREF(Py_None); | |
1259 | _resultobj = Py_None; | |
1260 | return _resultobj; | |
1261 | } | |
1262 | ||
1263 | #define wxQueryLayoutInfoEvent_GetOrientation(_swigobj) (_swigobj->GetOrientation()) | |
1264 | static PyObject *_wrap_wxQueryLayoutInfoEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1265 | PyObject * _resultobj; | |
1266 | wxLayoutOrientation _result; | |
1267 | wxQueryLayoutInfoEvent * _arg0; | |
1268 | PyObject * _argo0 = 0; | |
1269 | char *_kwnames[] = { "self", NULL }; | |
1270 | ||
1271 | self = self; | |
1272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxQueryLayoutInfoEvent_GetOrientation",_kwnames,&_argo0)) | |
1273 | return NULL; | |
1274 | if (_argo0) { | |
1275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxQueryLayoutInfoEvent_p")) { | |
1277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxQueryLayoutInfoEvent_GetOrientation. Expected _wxQueryLayoutInfoEvent_p."); | |
1278 | return NULL; | |
1279 | } | |
1280 | } | |
1281 | { | |
0e2ff151 | 1282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1283 | _result = (wxLayoutOrientation )wxQueryLayoutInfoEvent_GetOrientation(_arg0); |
e6056257 | 1284 | |
0e2ff151 | 1285 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1286 | if (PyErr_Occurred()) return NULL; |
1287 | } _resultobj = Py_BuildValue("i",_result); | |
1288 | return _resultobj; | |
1289 | } | |
1290 | ||
1291 | #define wxQueryLayoutInfoEvent_SetAlignment(_swigobj,_swigarg0) (_swigobj->SetAlignment(_swigarg0)) | |
1292 | static PyObject *_wrap_wxQueryLayoutInfoEvent_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1293 | PyObject * _resultobj; | |
1294 | wxQueryLayoutInfoEvent * _arg0; | |
1295 | wxLayoutAlignment _arg1; | |
1296 | PyObject * _argo0 = 0; | |
1297 | char *_kwnames[] = { "self","align", NULL }; | |
1298 | ||
1299 | self = self; | |
1300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxQueryLayoutInfoEvent_SetAlignment",_kwnames,&_argo0,&_arg1)) | |
1301 | return NULL; | |
1302 | if (_argo0) { | |
1303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxQueryLayoutInfoEvent_p")) { | |
1305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxQueryLayoutInfoEvent_SetAlignment. Expected _wxQueryLayoutInfoEvent_p."); | |
1306 | return NULL; | |
1307 | } | |
1308 | } | |
1309 | { | |
0e2ff151 | 1310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1311 | wxQueryLayoutInfoEvent_SetAlignment(_arg0,_arg1); |
e6056257 | 1312 | |
0e2ff151 | 1313 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1314 | if (PyErr_Occurred()) return NULL; |
1315 | } Py_INCREF(Py_None); | |
1316 | _resultobj = Py_None; | |
1317 | return _resultobj; | |
1318 | } | |
1319 | ||
1320 | #define wxQueryLayoutInfoEvent_GetAlignment(_swigobj) (_swigobj->GetAlignment()) | |
1321 | static PyObject *_wrap_wxQueryLayoutInfoEvent_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1322 | PyObject * _resultobj; | |
1323 | wxLayoutAlignment _result; | |
1324 | wxQueryLayoutInfoEvent * _arg0; | |
1325 | PyObject * _argo0 = 0; | |
1326 | char *_kwnames[] = { "self", NULL }; | |
1327 | ||
1328 | self = self; | |
1329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxQueryLayoutInfoEvent_GetAlignment",_kwnames,&_argo0)) | |
1330 | return NULL; | |
1331 | if (_argo0) { | |
1332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxQueryLayoutInfoEvent_p")) { | |
1334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxQueryLayoutInfoEvent_GetAlignment. Expected _wxQueryLayoutInfoEvent_p."); | |
1335 | return NULL; | |
1336 | } | |
1337 | } | |
1338 | { | |
0e2ff151 | 1339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1340 | _result = (wxLayoutAlignment )wxQueryLayoutInfoEvent_GetAlignment(_arg0); |
e6056257 | 1341 | |
0e2ff151 | 1342 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1343 | if (PyErr_Occurred()) return NULL; |
1344 | } _resultobj = Py_BuildValue("i",_result); | |
1345 | return _resultobj; | |
1346 | } | |
1347 | ||
1348 | static void *SwigwxCalculateLayoutEventTowxEvent(void *ptr) { | |
1349 | wxCalculateLayoutEvent *src; | |
1350 | wxEvent *dest; | |
1351 | src = (wxCalculateLayoutEvent *) ptr; | |
1352 | dest = (wxEvent *) src; | |
1353 | return (void *) dest; | |
1354 | } | |
1355 | ||
1356 | static void *SwigwxCalculateLayoutEventTowxObject(void *ptr) { | |
1357 | wxCalculateLayoutEvent *src; | |
1358 | wxObject *dest; | |
1359 | src = (wxCalculateLayoutEvent *) ptr; | |
1360 | dest = (wxObject *) src; | |
1361 | return (void *) dest; | |
1362 | } | |
1363 | ||
1364 | #define new_wxCalculateLayoutEvent(_swigarg0) (new wxCalculateLayoutEvent(_swigarg0)) | |
1365 | static PyObject *_wrap_new_wxCalculateLayoutEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1366 | PyObject * _resultobj; | |
1367 | wxCalculateLayoutEvent * _result; | |
1368 | wxWindowID _arg0 = (wxWindowID ) 0; | |
1369 | char *_kwnames[] = { "id", NULL }; | |
1370 | char _ptemp[128]; | |
1371 | ||
1372 | self = self; | |
1373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxCalculateLayoutEvent",_kwnames,&_arg0)) | |
1374 | return NULL; | |
1375 | { | |
0e2ff151 | 1376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1377 | _result = (wxCalculateLayoutEvent *)new_wxCalculateLayoutEvent(_arg0); |
e6056257 | 1378 | |
0e2ff151 | 1379 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1380 | if (PyErr_Occurred()) return NULL; |
1381 | } if (_result) { | |
1382 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalculateLayoutEvent_p"); | |
1383 | _resultobj = Py_BuildValue("s",_ptemp); | |
1384 | } else { | |
1385 | Py_INCREF(Py_None); | |
1386 | _resultobj = Py_None; | |
1387 | } | |
1388 | return _resultobj; | |
1389 | } | |
1390 | ||
1391 | #define wxCalculateLayoutEvent_SetFlags(_swigobj,_swigarg0) (_swigobj->SetFlags(_swigarg0)) | |
1392 | static PyObject *_wrap_wxCalculateLayoutEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1393 | PyObject * _resultobj; | |
1394 | wxCalculateLayoutEvent * _arg0; | |
1395 | int _arg1; | |
1396 | PyObject * _argo0 = 0; | |
1397 | char *_kwnames[] = { "self","flags", NULL }; | |
1398 | ||
1399 | self = self; | |
1400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalculateLayoutEvent_SetFlags",_kwnames,&_argo0,&_arg1)) | |
1401 | return NULL; | |
1402 | if (_argo0) { | |
1403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalculateLayoutEvent_p")) { | |
1405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalculateLayoutEvent_SetFlags. Expected _wxCalculateLayoutEvent_p."); | |
1406 | return NULL; | |
1407 | } | |
1408 | } | |
1409 | { | |
0e2ff151 | 1410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1411 | wxCalculateLayoutEvent_SetFlags(_arg0,_arg1); |
e6056257 | 1412 | |
0e2ff151 | 1413 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1414 | if (PyErr_Occurred()) return NULL; |
1415 | } Py_INCREF(Py_None); | |
1416 | _resultobj = Py_None; | |
1417 | return _resultobj; | |
1418 | } | |
1419 | ||
1420 | #define wxCalculateLayoutEvent_GetFlags(_swigobj) (_swigobj->GetFlags()) | |
1421 | static PyObject *_wrap_wxCalculateLayoutEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1422 | PyObject * _resultobj; | |
1423 | int _result; | |
1424 | wxCalculateLayoutEvent * _arg0; | |
1425 | PyObject * _argo0 = 0; | |
1426 | char *_kwnames[] = { "self", NULL }; | |
1427 | ||
1428 | self = self; | |
1429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalculateLayoutEvent_GetFlags",_kwnames,&_argo0)) | |
1430 | return NULL; | |
1431 | if (_argo0) { | |
1432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalculateLayoutEvent_p")) { | |
1434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalculateLayoutEvent_GetFlags. Expected _wxCalculateLayoutEvent_p."); | |
1435 | return NULL; | |
1436 | } | |
1437 | } | |
1438 | { | |
0e2ff151 | 1439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1440 | _result = (int )wxCalculateLayoutEvent_GetFlags(_arg0); |
e6056257 | 1441 | |
0e2ff151 | 1442 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1443 | if (PyErr_Occurred()) return NULL; |
1444 | } _resultobj = Py_BuildValue("i",_result); | |
1445 | return _resultobj; | |
1446 | } | |
1447 | ||
1448 | #define wxCalculateLayoutEvent_SetRect(_swigobj,_swigarg0) (_swigobj->SetRect(_swigarg0)) | |
1449 | static PyObject *_wrap_wxCalculateLayoutEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1450 | PyObject * _resultobj; | |
1451 | wxCalculateLayoutEvent * _arg0; | |
1452 | wxRect * _arg1; | |
1453 | PyObject * _argo0 = 0; | |
1454 | wxRect temp; | |
1455 | PyObject * _obj1 = 0; | |
1456 | char *_kwnames[] = { "self","rect", NULL }; | |
1457 | ||
1458 | self = self; | |
1459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCalculateLayoutEvent_SetRect",_kwnames,&_argo0,&_obj1)) | |
1460 | return NULL; | |
1461 | if (_argo0) { | |
1462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalculateLayoutEvent_p")) { | |
1464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalculateLayoutEvent_SetRect. Expected _wxCalculateLayoutEvent_p."); | |
1465 | return NULL; | |
1466 | } | |
1467 | } | |
1468 | { | |
1469 | _arg1 = &temp; | |
1470 | if (! wxRect_helper(_obj1, &_arg1)) | |
1471 | return NULL; | |
1472 | } | |
1473 | { | |
0e2ff151 | 1474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1475 | wxCalculateLayoutEvent_SetRect(_arg0,*_arg1); |
e6056257 | 1476 | |
0e2ff151 | 1477 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1478 | if (PyErr_Occurred()) return NULL; |
1479 | } Py_INCREF(Py_None); | |
1480 | _resultobj = Py_None; | |
1481 | return _resultobj; | |
1482 | } | |
1483 | ||
1484 | #define wxCalculateLayoutEvent_GetRect(_swigobj) (_swigobj->GetRect()) | |
1485 | static PyObject *_wrap_wxCalculateLayoutEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1486 | PyObject * _resultobj; | |
1487 | wxRect * _result; | |
1488 | wxCalculateLayoutEvent * _arg0; | |
1489 | PyObject * _argo0 = 0; | |
1490 | char *_kwnames[] = { "self", NULL }; | |
1491 | char _ptemp[128]; | |
1492 | ||
1493 | self = self; | |
1494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalculateLayoutEvent_GetRect",_kwnames,&_argo0)) | |
1495 | return NULL; | |
1496 | if (_argo0) { | |
1497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalculateLayoutEvent_p")) { | |
1499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalculateLayoutEvent_GetRect. Expected _wxCalculateLayoutEvent_p."); | |
1500 | return NULL; | |
1501 | } | |
1502 | } | |
1503 | { | |
0e2ff151 | 1504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1505 | _result = new wxRect (wxCalculateLayoutEvent_GetRect(_arg0)); |
e6056257 | 1506 | |
0e2ff151 | 1507 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1508 | if (PyErr_Occurred()) return NULL; |
1509 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
1510 | _resultobj = Py_BuildValue("s",_ptemp); | |
1511 | return _resultobj; | |
1512 | } | |
1513 | ||
1514 | static void *SwigwxSashLayoutWindowTowxSashWindow(void *ptr) { | |
1515 | wxSashLayoutWindow *src; | |
1516 | wxSashWindow *dest; | |
1517 | src = (wxSashLayoutWindow *) ptr; | |
1518 | dest = (wxSashWindow *) src; | |
1519 | return (void *) dest; | |
1520 | } | |
1521 | ||
1522 | static void *SwigwxSashLayoutWindowTowxWindow(void *ptr) { | |
1523 | wxSashLayoutWindow *src; | |
1524 | wxWindow *dest; | |
1525 | src = (wxSashLayoutWindow *) ptr; | |
1526 | dest = (wxWindow *) src; | |
1527 | return (void *) dest; | |
1528 | } | |
1529 | ||
1530 | static void *SwigwxSashLayoutWindowTowxEvtHandler(void *ptr) { | |
1531 | wxSashLayoutWindow *src; | |
1532 | wxEvtHandler *dest; | |
1533 | src = (wxSashLayoutWindow *) ptr; | |
1534 | dest = (wxEvtHandler *) src; | |
1535 | return (void *) dest; | |
1536 | } | |
1537 | ||
1538 | static void *SwigwxSashLayoutWindowTowxObject(void *ptr) { | |
1539 | wxSashLayoutWindow *src; | |
1540 | wxObject *dest; | |
1541 | src = (wxSashLayoutWindow *) ptr; | |
1542 | dest = (wxObject *) src; | |
1543 | return (void *) dest; | |
1544 | } | |
1545 | ||
1546 | #define new_wxSashLayoutWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSashLayoutWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1547 | static PyObject *_wrap_new_wxSashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1548 | PyObject * _resultobj; | |
1549 | wxSashLayoutWindow * _result; | |
1550 | wxWindow * _arg0; | |
1551 | wxWindowID _arg1; | |
1552 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
1553 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1554 | long _arg4 = (long ) wxCLIP_CHILDREN|(wxSW_3D); | |
c3bfa1cb | 1555 | wxString * _arg5 = (wxString *) &wxPySashLayoutNameStr; |
e6056257 RD |
1556 | PyObject * _argo0 = 0; |
1557 | wxPoint temp; | |
1558 | PyObject * _obj2 = 0; | |
1559 | wxSize temp0; | |
1560 | PyObject * _obj3 = 0; | |
c3bfa1cb | 1561 | PyObject * _obj5 = 0; |
e6056257 RD |
1562 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
1563 | char _ptemp[128]; | |
1564 | ||
1565 | self = self; | |
c3bfa1cb | 1566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxSashLayoutWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
e6056257 RD |
1567 | return NULL; |
1568 | if (_argo0) { | |
1569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSashLayoutWindow. Expected _wxWindow_p."); | |
1572 | return NULL; | |
1573 | } | |
1574 | } | |
1575 | if (_obj2) | |
1576 | { | |
1577 | _arg2 = &temp; | |
1578 | if (! wxPoint_helper(_obj2, &_arg2)) | |
1579 | return NULL; | |
1580 | } | |
1581 | if (_obj3) | |
1582 | { | |
1583 | _arg3 = &temp0; | |
1584 | if (! wxSize_helper(_obj3, &_arg3)) | |
1585 | return NULL; | |
c3bfa1cb RD |
1586 | } |
1587 | if (_obj5) | |
1588 | { | |
1589 | _arg5 = wxString_in_helper(_obj5); | |
1590 | if (_arg5 == NULL) | |
1591 | return NULL; | |
e6056257 RD |
1592 | } |
1593 | { | |
0e2ff151 | 1594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 1595 | _result = (wxSashLayoutWindow *)new_wxSashLayoutWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
e6056257 | 1596 | |
0e2ff151 | 1597 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1598 | if (PyErr_Occurred()) return NULL; |
1599 | } if (_result) { | |
1600 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSashLayoutWindow_p"); | |
1601 | _resultobj = Py_BuildValue("s",_ptemp); | |
1602 | } else { | |
1603 | Py_INCREF(Py_None); | |
1604 | _resultobj = Py_None; | |
1605 | } | |
c3bfa1cb RD |
1606 | { |
1607 | if (_obj5) | |
1608 | delete _arg5; | |
1609 | } | |
e6056257 RD |
1610 | return _resultobj; |
1611 | } | |
1612 | ||
1613 | #define new_wxPreSashLayoutWindow() (new wxSashLayoutWindow()) | |
1614 | static PyObject *_wrap_new_wxPreSashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1615 | PyObject * _resultobj; | |
1616 | wxSashLayoutWindow * _result; | |
1617 | char *_kwnames[] = { NULL }; | |
1618 | char _ptemp[128]; | |
1619 | ||
1620 | self = self; | |
1621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSashLayoutWindow",_kwnames)) | |
1622 | return NULL; | |
1623 | { | |
0e2ff151 | 1624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1625 | _result = (wxSashLayoutWindow *)new_wxPreSashLayoutWindow(); |
e6056257 | 1626 | |
0e2ff151 | 1627 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1628 | if (PyErr_Occurred()) return NULL; |
1629 | } if (_result) { | |
1630 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSashLayoutWindow_p"); | |
1631 | _resultobj = Py_BuildValue("s",_ptemp); | |
1632 | } else { | |
1633 | Py_INCREF(Py_None); | |
1634 | _resultobj = Py_None; | |
1635 | } | |
1636 | return _resultobj; | |
1637 | } | |
1638 | ||
1639 | #define wxSashLayoutWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1640 | static PyObject *_wrap_wxSashLayoutWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1641 | PyObject * _resultobj; | |
1642 | bool _result; | |
1643 | wxSashLayoutWindow * _arg0; | |
1644 | wxWindow * _arg1; | |
1645 | wxWindowID _arg2; | |
1646 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1647 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1648 | long _arg5 = (long ) wxCLIP_CHILDREN|(wxSW_3D); | |
c3bfa1cb | 1649 | wxString * _arg6 = (wxString *) &wxPySashLayoutNameStr; |
e6056257 RD |
1650 | PyObject * _argo0 = 0; |
1651 | PyObject * _argo1 = 0; | |
1652 | wxPoint temp; | |
1653 | PyObject * _obj3 = 0; | |
1654 | wxSize temp0; | |
1655 | PyObject * _obj4 = 0; | |
c3bfa1cb | 1656 | PyObject * _obj6 = 0; |
e6056257 RD |
1657 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
1658 | ||
1659 | self = self; | |
c3bfa1cb | 1660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxSashLayoutWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
e6056257 RD |
1661 | return NULL; |
1662 | if (_argo0) { | |
1663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashLayoutWindow_p")) { | |
1665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashLayoutWindow_Create. Expected _wxSashLayoutWindow_p."); | |
1666 | return NULL; | |
1667 | } | |
1668 | } | |
1669 | if (_argo1) { | |
1670 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1671 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSashLayoutWindow_Create. Expected _wxWindow_p."); | |
1673 | return NULL; | |
1674 | } | |
1675 | } | |
1676 | if (_obj3) | |
1677 | { | |
1678 | _arg3 = &temp; | |
1679 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1680 | return NULL; | |
1681 | } | |
1682 | if (_obj4) | |
1683 | { | |
1684 | _arg4 = &temp0; | |
1685 | if (! wxSize_helper(_obj4, &_arg4)) | |
1686 | return NULL; | |
c3bfa1cb RD |
1687 | } |
1688 | if (_obj6) | |
1689 | { | |
1690 | _arg6 = wxString_in_helper(_obj6); | |
1691 | if (_arg6 == NULL) | |
1692 | return NULL; | |
e6056257 RD |
1693 | } |
1694 | { | |
0e2ff151 | 1695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 1696 | _result = (bool )wxSashLayoutWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
e6056257 | 1697 | |
0e2ff151 | 1698 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1699 | if (PyErr_Occurred()) return NULL; |
1700 | } _resultobj = Py_BuildValue("i",_result); | |
c3bfa1cb RD |
1701 | { |
1702 | if (_obj6) | |
1703 | delete _arg6; | |
1704 | } | |
e6056257 RD |
1705 | return _resultobj; |
1706 | } | |
1707 | ||
1708 | #define wxSashLayoutWindow_GetAlignment(_swigobj) (_swigobj->GetAlignment()) | |
1709 | static PyObject *_wrap_wxSashLayoutWindow_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1710 | PyObject * _resultobj; | |
1711 | wxLayoutAlignment _result; | |
1712 | wxSashLayoutWindow * _arg0; | |
1713 | PyObject * _argo0 = 0; | |
1714 | char *_kwnames[] = { "self", NULL }; | |
1715 | ||
1716 | self = self; | |
1717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashLayoutWindow_GetAlignment",_kwnames,&_argo0)) | |
1718 | return NULL; | |
1719 | if (_argo0) { | |
1720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashLayoutWindow_p")) { | |
1722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashLayoutWindow_GetAlignment. Expected _wxSashLayoutWindow_p."); | |
1723 | return NULL; | |
1724 | } | |
1725 | } | |
1726 | { | |
0e2ff151 | 1727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1728 | _result = (wxLayoutAlignment )wxSashLayoutWindow_GetAlignment(_arg0); |
e6056257 | 1729 | |
0e2ff151 | 1730 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1731 | if (PyErr_Occurred()) return NULL; |
1732 | } _resultobj = Py_BuildValue("i",_result); | |
1733 | return _resultobj; | |
1734 | } | |
1735 | ||
1736 | #define wxSashLayoutWindow_GetOrientation(_swigobj) (_swigobj->GetOrientation()) | |
1737 | static PyObject *_wrap_wxSashLayoutWindow_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1738 | PyObject * _resultobj; | |
1739 | wxLayoutOrientation _result; | |
1740 | wxSashLayoutWindow * _arg0; | |
1741 | PyObject * _argo0 = 0; | |
1742 | char *_kwnames[] = { "self", NULL }; | |
1743 | ||
1744 | self = self; | |
1745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashLayoutWindow_GetOrientation",_kwnames,&_argo0)) | |
1746 | return NULL; | |
1747 | if (_argo0) { | |
1748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashLayoutWindow_p")) { | |
1750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashLayoutWindow_GetOrientation. Expected _wxSashLayoutWindow_p."); | |
1751 | return NULL; | |
1752 | } | |
1753 | } | |
1754 | { | |
0e2ff151 | 1755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1756 | _result = (wxLayoutOrientation )wxSashLayoutWindow_GetOrientation(_arg0); |
e6056257 | 1757 | |
0e2ff151 | 1758 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1759 | if (PyErr_Occurred()) return NULL; |
1760 | } _resultobj = Py_BuildValue("i",_result); | |
1761 | return _resultobj; | |
1762 | } | |
1763 | ||
1764 | #define wxSashLayoutWindow_SetAlignment(_swigobj,_swigarg0) (_swigobj->SetAlignment(_swigarg0)) | |
1765 | static PyObject *_wrap_wxSashLayoutWindow_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1766 | PyObject * _resultobj; | |
1767 | wxSashLayoutWindow * _arg0; | |
1768 | wxLayoutAlignment _arg1; | |
1769 | PyObject * _argo0 = 0; | |
1770 | char *_kwnames[] = { "self","alignment", NULL }; | |
1771 | ||
1772 | self = self; | |
1773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashLayoutWindow_SetAlignment",_kwnames,&_argo0,&_arg1)) | |
1774 | return NULL; | |
1775 | if (_argo0) { | |
1776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashLayoutWindow_p")) { | |
1778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashLayoutWindow_SetAlignment. Expected _wxSashLayoutWindow_p."); | |
1779 | return NULL; | |
1780 | } | |
1781 | } | |
1782 | { | |
0e2ff151 | 1783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1784 | wxSashLayoutWindow_SetAlignment(_arg0,_arg1); |
e6056257 | 1785 | |
0e2ff151 | 1786 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1787 | if (PyErr_Occurred()) return NULL; |
1788 | } Py_INCREF(Py_None); | |
1789 | _resultobj = Py_None; | |
1790 | return _resultobj; | |
1791 | } | |
1792 | ||
1793 | #define wxSashLayoutWindow_SetDefaultSize(_swigobj,_swigarg0) (_swigobj->SetDefaultSize(_swigarg0)) | |
1794 | static PyObject *_wrap_wxSashLayoutWindow_SetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1795 | PyObject * _resultobj; | |
1796 | wxSashLayoutWindow * _arg0; | |
1797 | wxSize * _arg1; | |
1798 | PyObject * _argo0 = 0; | |
1799 | wxSize temp; | |
1800 | PyObject * _obj1 = 0; | |
1801 | char *_kwnames[] = { "self","size", NULL }; | |
1802 | ||
1803 | self = self; | |
1804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSashLayoutWindow_SetDefaultSize",_kwnames,&_argo0,&_obj1)) | |
1805 | return NULL; | |
1806 | if (_argo0) { | |
1807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashLayoutWindow_p")) { | |
1809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashLayoutWindow_SetDefaultSize. Expected _wxSashLayoutWindow_p."); | |
1810 | return NULL; | |
1811 | } | |
1812 | } | |
1813 | { | |
1814 | _arg1 = &temp; | |
1815 | if (! wxSize_helper(_obj1, &_arg1)) | |
1816 | return NULL; | |
1817 | } | |
1818 | { | |
0e2ff151 | 1819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1820 | wxSashLayoutWindow_SetDefaultSize(_arg0,*_arg1); |
e6056257 | 1821 | |
0e2ff151 | 1822 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1823 | if (PyErr_Occurred()) return NULL; |
1824 | } Py_INCREF(Py_None); | |
1825 | _resultobj = Py_None; | |
1826 | return _resultobj; | |
1827 | } | |
1828 | ||
1829 | #define wxSashLayoutWindow_SetOrientation(_swigobj,_swigarg0) (_swigobj->SetOrientation(_swigarg0)) | |
1830 | static PyObject *_wrap_wxSashLayoutWindow_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1831 | PyObject * _resultobj; | |
1832 | wxSashLayoutWindow * _arg0; | |
1833 | wxLayoutOrientation _arg1; | |
1834 | PyObject * _argo0 = 0; | |
1835 | char *_kwnames[] = { "self","orientation", NULL }; | |
1836 | ||
1837 | self = self; | |
1838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashLayoutWindow_SetOrientation",_kwnames,&_argo0,&_arg1)) | |
1839 | return NULL; | |
1840 | if (_argo0) { | |
1841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashLayoutWindow_p")) { | |
1843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashLayoutWindow_SetOrientation. Expected _wxSashLayoutWindow_p."); | |
1844 | return NULL; | |
1845 | } | |
1846 | } | |
1847 | { | |
0e2ff151 | 1848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1849 | wxSashLayoutWindow_SetOrientation(_arg0,_arg1); |
e6056257 | 1850 | |
0e2ff151 | 1851 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1852 | if (PyErr_Occurred()) return NULL; |
1853 | } Py_INCREF(Py_None); | |
1854 | _resultobj = Py_None; | |
1855 | return _resultobj; | |
1856 | } | |
1857 | ||
1858 | static void *SwigwxLayoutAlgorithmTowxObject(void *ptr) { | |
1859 | wxLayoutAlgorithm *src; | |
1860 | wxObject *dest; | |
1861 | src = (wxLayoutAlgorithm *) ptr; | |
1862 | dest = (wxObject *) src; | |
1863 | return (void *) dest; | |
1864 | } | |
1865 | ||
1866 | #define new_wxLayoutAlgorithm() (new wxLayoutAlgorithm()) | |
1867 | static PyObject *_wrap_new_wxLayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1868 | PyObject * _resultobj; | |
1869 | wxLayoutAlgorithm * _result; | |
1870 | char *_kwnames[] = { NULL }; | |
1871 | char _ptemp[128]; | |
1872 | ||
1873 | self = self; | |
1874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLayoutAlgorithm",_kwnames)) | |
1875 | return NULL; | |
1876 | { | |
0e2ff151 | 1877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1878 | _result = (wxLayoutAlgorithm *)new_wxLayoutAlgorithm(); |
e6056257 | 1879 | |
0e2ff151 | 1880 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1881 | if (PyErr_Occurred()) return NULL; |
1882 | } if (_result) { | |
1883 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutAlgorithm_p"); | |
1884 | _resultobj = Py_BuildValue("s",_ptemp); | |
1885 | } else { | |
1886 | Py_INCREF(Py_None); | |
1887 | _resultobj = Py_None; | |
1888 | } | |
1889 | return _resultobj; | |
1890 | } | |
1891 | ||
1892 | #define delete_wxLayoutAlgorithm(_swigobj) (delete _swigobj) | |
1893 | static PyObject *_wrap_delete_wxLayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1894 | PyObject * _resultobj; | |
1895 | wxLayoutAlgorithm * _arg0; | |
1896 | PyObject * _argo0 = 0; | |
1897 | char *_kwnames[] = { "self", NULL }; | |
1898 | ||
1899 | self = self; | |
1900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLayoutAlgorithm",_kwnames,&_argo0)) | |
1901 | return NULL; | |
1902 | if (_argo0) { | |
1903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutAlgorithm_p")) { | |
1905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLayoutAlgorithm. Expected _wxLayoutAlgorithm_p."); | |
1906 | return NULL; | |
1907 | } | |
1908 | } | |
1909 | { | |
0e2ff151 | 1910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1911 | delete_wxLayoutAlgorithm(_arg0); |
e6056257 | 1912 | |
0e2ff151 | 1913 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1914 | if (PyErr_Occurred()) return NULL; |
1915 | } Py_INCREF(Py_None); | |
1916 | _resultobj = Py_None; | |
1917 | return _resultobj; | |
1918 | } | |
1919 | ||
1920 | #define wxLayoutAlgorithm_LayoutMDIFrame(_swigobj,_swigarg0,_swigarg1) (_swigobj->LayoutMDIFrame(_swigarg0,_swigarg1)) | |
1921 | static PyObject *_wrap_wxLayoutAlgorithm_LayoutMDIFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1922 | PyObject * _resultobj; | |
1923 | bool _result; | |
1924 | wxLayoutAlgorithm * _arg0; | |
1925 | wxMDIParentFrame * _arg1; | |
1926 | wxRect * _arg2 = (wxRect *) NULL; | |
1927 | PyObject * _argo0 = 0; | |
1928 | PyObject * _argo1 = 0; | |
1929 | wxRect temp; | |
1930 | PyObject * _obj2 = 0; | |
1931 | char *_kwnames[] = { "self","frame","rect", NULL }; | |
1932 | ||
1933 | self = self; | |
1934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxLayoutAlgorithm_LayoutMDIFrame",_kwnames,&_argo0,&_argo1,&_obj2)) | |
1935 | return NULL; | |
1936 | if (_argo0) { | |
1937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutAlgorithm_p")) { | |
1939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutAlgorithm_LayoutMDIFrame. Expected _wxLayoutAlgorithm_p."); | |
1940 | return NULL; | |
1941 | } | |
1942 | } | |
1943 | if (_argo1) { | |
1944 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1945 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMDIParentFrame_p")) { | |
1946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLayoutAlgorithm_LayoutMDIFrame. Expected _wxMDIParentFrame_p."); | |
1947 | return NULL; | |
1948 | } | |
1949 | } | |
1950 | if (_obj2) | |
1951 | { | |
1952 | _arg2 = &temp; | |
1953 | if (! wxRect_helper(_obj2, &_arg2)) | |
1954 | return NULL; | |
1955 | } | |
1956 | { | |
0e2ff151 | 1957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1958 | _result = (bool )wxLayoutAlgorithm_LayoutMDIFrame(_arg0,_arg1,_arg2); |
e6056257 | 1959 | |
0e2ff151 | 1960 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1961 | if (PyErr_Occurred()) return NULL; |
1962 | } _resultobj = Py_BuildValue("i",_result); | |
1963 | return _resultobj; | |
1964 | } | |
1965 | ||
1966 | #define wxLayoutAlgorithm_LayoutFrame(_swigobj,_swigarg0,_swigarg1) (_swigobj->LayoutFrame(_swigarg0,_swigarg1)) | |
1967 | static PyObject *_wrap_wxLayoutAlgorithm_LayoutFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1968 | PyObject * _resultobj; | |
1969 | bool _result; | |
1970 | wxLayoutAlgorithm * _arg0; | |
1971 | wxFrame * _arg1; | |
1972 | wxWindow * _arg2 = (wxWindow *) NULL; | |
1973 | PyObject * _argo0 = 0; | |
1974 | PyObject * _argo1 = 0; | |
1975 | PyObject * _argo2 = 0; | |
1976 | char *_kwnames[] = { "self","frame","mainWindow", NULL }; | |
1977 | ||
1978 | self = self; | |
1979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxLayoutAlgorithm_LayoutFrame",_kwnames,&_argo0,&_argo1,&_argo2)) | |
1980 | return NULL; | |
1981 | if (_argo0) { | |
1982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutAlgorithm_p")) { | |
1984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutAlgorithm_LayoutFrame. Expected _wxLayoutAlgorithm_p."); | |
1985 | return NULL; | |
1986 | } | |
1987 | } | |
1988 | if (_argo1) { | |
1989 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1990 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFrame_p")) { | |
1991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLayoutAlgorithm_LayoutFrame. Expected _wxFrame_p."); | |
1992 | return NULL; | |
1993 | } | |
1994 | } | |
1995 | if (_argo2) { | |
1996 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1997 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
1998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxLayoutAlgorithm_LayoutFrame. Expected _wxWindow_p."); | |
1999 | return NULL; | |
2000 | } | |
2001 | } | |
2002 | { | |
0e2ff151 | 2003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2004 | _result = (bool )wxLayoutAlgorithm_LayoutFrame(_arg0,_arg1,_arg2); |
e6056257 | 2005 | |
0e2ff151 | 2006 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2007 | if (PyErr_Occurred()) return NULL; |
2008 | } _resultobj = Py_BuildValue("i",_result); | |
2009 | return _resultobj; | |
2010 | } | |
2011 | ||
2012 | #define wxLayoutAlgorithm_LayoutWindow(_swigobj,_swigarg0,_swigarg1) (_swigobj->LayoutWindow(_swigarg0,_swigarg1)) | |
2013 | static PyObject *_wrap_wxLayoutAlgorithm_LayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2014 | PyObject * _resultobj; | |
2015 | bool _result; | |
2016 | wxLayoutAlgorithm * _arg0; | |
2017 | wxWindow * _arg1; | |
2018 | wxWindow * _arg2 = (wxWindow *) NULL; | |
2019 | PyObject * _argo0 = 0; | |
2020 | PyObject * _argo1 = 0; | |
2021 | PyObject * _argo2 = 0; | |
2022 | char *_kwnames[] = { "self","parent","mainWindow", NULL }; | |
2023 | ||
2024 | self = self; | |
2025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxLayoutAlgorithm_LayoutWindow",_kwnames,&_argo0,&_argo1,&_argo2)) | |
2026 | return NULL; | |
2027 | if (_argo0) { | |
2028 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2029 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutAlgorithm_p")) { | |
2030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutAlgorithm_LayoutWindow. Expected _wxLayoutAlgorithm_p."); | |
2031 | return NULL; | |
2032 | } | |
2033 | } | |
2034 | if (_argo1) { | |
2035 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2036 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLayoutAlgorithm_LayoutWindow. Expected _wxWindow_p."); | |
2038 | return NULL; | |
2039 | } | |
2040 | } | |
2041 | if (_argo2) { | |
2042 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2043 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
2044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxLayoutAlgorithm_LayoutWindow. Expected _wxWindow_p."); | |
2045 | return NULL; | |
2046 | } | |
2047 | } | |
2048 | { | |
0e2ff151 | 2049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2050 | _result = (bool )wxLayoutAlgorithm_LayoutWindow(_arg0,_arg1,_arg2); |
e6056257 | 2051 | |
0e2ff151 | 2052 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2053 | if (PyErr_Occurred()) return NULL; |
2054 | } _resultobj = Py_BuildValue("i",_result); | |
2055 | return _resultobj; | |
2056 | } | |
2057 | ||
2058 | static PyMethodDef windows3cMethods[] = { | |
2059 | { "wxLayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_wxLayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
2060 | { "wxLayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_wxLayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS }, | |
2061 | { "wxLayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_wxLayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS }, | |
2062 | { "delete_wxLayoutAlgorithm", (PyCFunction) _wrap_delete_wxLayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
2063 | { "new_wxLayoutAlgorithm", (PyCFunction) _wrap_new_wxLayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
2064 | { "wxSashLayoutWindow_SetOrientation", (PyCFunction) _wrap_wxSashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
2065 | { "wxSashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_wxSashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
2066 | { "wxSashLayoutWindow_SetAlignment", (PyCFunction) _wrap_wxSashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
2067 | { "wxSashLayoutWindow_GetOrientation", (PyCFunction) _wrap_wxSashLayoutWindow_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
2068 | { "wxSashLayoutWindow_GetAlignment", (PyCFunction) _wrap_wxSashLayoutWindow_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
2069 | { "wxSashLayoutWindow_Create", (PyCFunction) _wrap_wxSashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
2070 | { "new_wxPreSashLayoutWindow", (PyCFunction) _wrap_new_wxPreSashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
2071 | { "new_wxSashLayoutWindow", (PyCFunction) _wrap_new_wxSashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
2072 | { "wxCalculateLayoutEvent_GetRect", (PyCFunction) _wrap_wxCalculateLayoutEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
2073 | { "wxCalculateLayoutEvent_SetRect", (PyCFunction) _wrap_wxCalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
2074 | { "wxCalculateLayoutEvent_GetFlags", (PyCFunction) _wrap_wxCalculateLayoutEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
2075 | { "wxCalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_wxCalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
2076 | { "new_wxCalculateLayoutEvent", (PyCFunction) _wrap_new_wxCalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS }, | |
2077 | { "wxQueryLayoutInfoEvent_GetAlignment", (PyCFunction) _wrap_wxQueryLayoutInfoEvent_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
2078 | { "wxQueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_wxQueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
2079 | { "wxQueryLayoutInfoEvent_GetOrientation", (PyCFunction) _wrap_wxQueryLayoutInfoEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
2080 | { "wxQueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_wxQueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
2081 | { "wxQueryLayoutInfoEvent_GetSize", (PyCFunction) _wrap_wxQueryLayoutInfoEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
2082 | { "wxQueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_wxQueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
2083 | { "wxQueryLayoutInfoEvent_GetFlags", (PyCFunction) _wrap_wxQueryLayoutInfoEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
2084 | { "wxQueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_wxQueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
2085 | { "wxQueryLayoutInfoEvent_GetRequestedLength", (PyCFunction) _wrap_wxQueryLayoutInfoEvent_GetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
2086 | { "wxQueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_wxQueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
2087 | { "new_wxQueryLayoutInfoEvent", (PyCFunction) _wrap_new_wxQueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS }, | |
2088 | { "wxSashWindow_SetSashBorder", (PyCFunction) _wrap_wxSashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS }, | |
2089 | { "wxSashWindow_SetSashVisible", (PyCFunction) _wrap_wxSashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
2090 | { "wxSashWindow_SetMinimumSizeY", (PyCFunction) _wrap_wxSashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
2091 | { "wxSashWindow_SetMinimumSizeX", (PyCFunction) _wrap_wxSashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
2092 | { "wxSashWindow_SetMaximumSizeY", (PyCFunction) _wrap_wxSashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
2093 | { "wxSashWindow_SetMaximumSizeX", (PyCFunction) _wrap_wxSashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
2094 | { "wxSashWindow_SetExtraBorderSize", (PyCFunction) _wrap_wxSashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
2095 | { "wxSashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_wxSashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
2096 | { "wxSashWindow_HasBorder", (PyCFunction) _wrap_wxSashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS }, | |
2097 | { "wxSashWindow_GetMinimumSizeY", (PyCFunction) _wrap_wxSashWindow_GetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
2098 | { "wxSashWindow_GetMinimumSizeX", (PyCFunction) _wrap_wxSashWindow_GetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
2099 | { "wxSashWindow_GetMaximumSizeY", (PyCFunction) _wrap_wxSashWindow_GetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
2100 | { "wxSashWindow_GetMaximumSizeX", (PyCFunction) _wrap_wxSashWindow_GetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
2101 | { "wxSashWindow_GetExtraBorderSize", (PyCFunction) _wrap_wxSashWindow_GetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
2102 | { "wxSashWindow_GetEdgeMargin", (PyCFunction) _wrap_wxSashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS }, | |
2103 | { "wxSashWindow_GetDefaultBorderSize", (PyCFunction) _wrap_wxSashWindow_GetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
2104 | { "wxSashWindow_GetSashVisible", (PyCFunction) _wrap_wxSashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
2105 | { "wxSashWindow_Create", (PyCFunction) _wrap_wxSashWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
2106 | { "new_wxPreSashWindow", (PyCFunction) _wrap_new_wxPreSashWindow, METH_VARARGS | METH_KEYWORDS }, | |
2107 | { "new_wxSashWindow", (PyCFunction) _wrap_new_wxSashWindow, METH_VARARGS | METH_KEYWORDS }, | |
2108 | { "wxSashEvent_GetDragStatus", (PyCFunction) _wrap_wxSashEvent_GetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
2109 | { "wxSashEvent_SetDragStatus", (PyCFunction) _wrap_wxSashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
2110 | { "wxSashEvent_GetDragRect", (PyCFunction) _wrap_wxSashEvent_GetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
2111 | { "wxSashEvent_SetDragRect", (PyCFunction) _wrap_wxSashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
2112 | { "wxSashEvent_GetEdge", (PyCFunction) _wrap_wxSashEvent_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
2113 | { "wxSashEvent_SetEdge", (PyCFunction) _wrap_wxSashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
2114 | { "new_wxSashEvent", (PyCFunction) _wrap_new_wxSashEvent, METH_VARARGS | METH_KEYWORDS }, | |
2115 | { NULL, NULL } | |
2116 | }; | |
2117 | #ifdef __cplusplus | |
2118 | } | |
2119 | #endif | |
2120 | /* | |
2121 | * This table is used by the pointer type-checker | |
2122 | */ | |
2123 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
2124 | { "_wxEvent","_wxCalculateLayoutEvent",SwigwxCalculateLayoutEventTowxEvent}, | |
2125 | { "_wxEvent","_wxQueryLayoutInfoEvent",SwigwxQueryLayoutInfoEventTowxEvent}, | |
2126 | { "_wxEvent","_wxSashEvent",SwigwxSashEventTowxEvent}, | |
2127 | { "_signed_long","_long",0}, | |
2128 | { "_wxPrintQuality","_wxCoord",0}, | |
2129 | { "_wxPrintQuality","_int",0}, | |
2130 | { "_wxPrintQuality","_signed_int",0}, | |
2131 | { "_wxPrintQuality","_unsigned_int",0}, | |
2132 | { "_wxPrintQuality","_wxWindowID",0}, | |
2133 | { "_wxPrintQuality","_uint",0}, | |
2134 | { "_wxPrintQuality","_EBool",0}, | |
2135 | { "_wxPrintQuality","_size_t",0}, | |
2136 | { "_wxPrintQuality","_time_t",0}, | |
2137 | { "_byte","_unsigned_char",0}, | |
2138 | { "_long","_unsigned_long",0}, | |
2139 | { "_long","_signed_long",0}, | |
2140 | { "_wxSashWindow","_wxSashLayoutWindow",SwigwxSashLayoutWindowTowxSashWindow}, | |
2141 | { "_size_t","_wxCoord",0}, | |
2142 | { "_size_t","_wxPrintQuality",0}, | |
2143 | { "_size_t","_time_t",0}, | |
2144 | { "_size_t","_unsigned_int",0}, | |
2145 | { "_size_t","_int",0}, | |
2146 | { "_size_t","_wxWindowID",0}, | |
2147 | { "_size_t","_uint",0}, | |
2148 | { "_uint","_wxCoord",0}, | |
2149 | { "_uint","_wxPrintQuality",0}, | |
2150 | { "_uint","_time_t",0}, | |
2151 | { "_uint","_size_t",0}, | |
2152 | { "_uint","_unsigned_int",0}, | |
2153 | { "_uint","_int",0}, | |
2154 | { "_uint","_wxWindowID",0}, | |
2155 | { "_wxChar","_char",0}, | |
2156 | { "_wxCommandEvent","_wxSashEvent",SwigwxSashEventTowxCommandEvent}, | |
2157 | { "_char","_wxChar",0}, | |
2158 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
2159 | { "_EBool","_wxCoord",0}, | |
2160 | { "_EBool","_wxPrintQuality",0}, | |
2161 | { "_EBool","_signed_int",0}, | |
2162 | { "_EBool","_int",0}, | |
2163 | { "_EBool","_wxWindowID",0}, | |
2164 | { "_unsigned_long","_long",0}, | |
2165 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
2166 | { "_signed_int","_wxCoord",0}, | |
2167 | { "_signed_int","_wxPrintQuality",0}, | |
2168 | { "_signed_int","_EBool",0}, | |
2169 | { "_signed_int","_wxWindowID",0}, | |
2170 | { "_signed_int","_int",0}, | |
2171 | { "_WXTYPE","_short",0}, | |
2172 | { "_WXTYPE","_signed_short",0}, | |
2173 | { "_WXTYPE","_unsigned_short",0}, | |
2174 | { "_unsigned_short","_WXTYPE",0}, | |
2175 | { "_unsigned_short","_short",0}, | |
2176 | { "_wxObject","_wxLayoutAlgorithm",SwigwxLayoutAlgorithmTowxObject}, | |
2177 | { "_wxObject","_wxSashLayoutWindow",SwigwxSashLayoutWindowTowxObject}, | |
2178 | { "_wxObject","_wxCalculateLayoutEvent",SwigwxCalculateLayoutEventTowxObject}, | |
2179 | { "_wxObject","_wxQueryLayoutInfoEvent",SwigwxQueryLayoutInfoEventTowxObject}, | |
2180 | { "_wxObject","_wxSashWindow",SwigwxSashWindowTowxObject}, | |
2181 | { "_wxObject","_wxSashEvent",SwigwxSashEventTowxObject}, | |
2182 | { "_signed_short","_WXTYPE",0}, | |
2183 | { "_signed_short","_short",0}, | |
2184 | { "_unsigned_char","_byte",0}, | |
2185 | { "_unsigned_int","_wxCoord",0}, | |
2186 | { "_unsigned_int","_wxPrintQuality",0}, | |
2187 | { "_unsigned_int","_time_t",0}, | |
2188 | { "_unsigned_int","_size_t",0}, | |
2189 | { "_unsigned_int","_uint",0}, | |
2190 | { "_unsigned_int","_wxWindowID",0}, | |
2191 | { "_unsigned_int","_int",0}, | |
2192 | { "_short","_WXTYPE",0}, | |
2193 | { "_short","_unsigned_short",0}, | |
2194 | { "_short","_signed_short",0}, | |
2195 | { "_wxWindowID","_wxCoord",0}, | |
2196 | { "_wxWindowID","_wxPrintQuality",0}, | |
2197 | { "_wxWindowID","_time_t",0}, | |
2198 | { "_wxWindowID","_size_t",0}, | |
2199 | { "_wxWindowID","_EBool",0}, | |
2200 | { "_wxWindowID","_uint",0}, | |
2201 | { "_wxWindowID","_int",0}, | |
2202 | { "_wxWindowID","_signed_int",0}, | |
2203 | { "_wxWindowID","_unsigned_int",0}, | |
2204 | { "_int","_wxCoord",0}, | |
2205 | { "_int","_wxPrintQuality",0}, | |
2206 | { "_int","_time_t",0}, | |
2207 | { "_int","_size_t",0}, | |
2208 | { "_int","_EBool",0}, | |
2209 | { "_int","_uint",0}, | |
2210 | { "_int","_wxWindowID",0}, | |
2211 | { "_int","_unsigned_int",0}, | |
2212 | { "_int","_signed_int",0}, | |
2213 | { "_time_t","_wxCoord",0}, | |
2214 | { "_time_t","_wxPrintQuality",0}, | |
2215 | { "_time_t","_unsigned_int",0}, | |
2216 | { "_time_t","_int",0}, | |
2217 | { "_time_t","_wxWindowID",0}, | |
2218 | { "_time_t","_uint",0}, | |
2219 | { "_time_t","_size_t",0}, | |
2220 | { "_wxCoord","_int",0}, | |
2221 | { "_wxCoord","_signed_int",0}, | |
2222 | { "_wxCoord","_unsigned_int",0}, | |
2223 | { "_wxCoord","_wxWindowID",0}, | |
2224 | { "_wxCoord","_uint",0}, | |
2225 | { "_wxCoord","_EBool",0}, | |
2226 | { "_wxCoord","_size_t",0}, | |
2227 | { "_wxCoord","_time_t",0}, | |
2228 | { "_wxCoord","_wxPrintQuality",0}, | |
2229 | { "_wxEvtHandler","_wxSashLayoutWindow",SwigwxSashLayoutWindowTowxEvtHandler}, | |
2230 | { "_wxEvtHandler","_wxSashWindow",SwigwxSashWindowTowxEvtHandler}, | |
2231 | { "_wxWindow","_wxSashLayoutWindow",SwigwxSashLayoutWindowTowxWindow}, | |
2232 | { "_wxWindow","_wxSashWindow",SwigwxSashWindowTowxWindow}, | |
2233 | {0,0,0}}; | |
2234 | ||
2235 | static PyObject *SWIG_globals; | |
2236 | #ifdef __cplusplus | |
2237 | extern "C" | |
2238 | #endif | |
2239 | SWIGEXPORT(void) initwindows3c() { | |
2240 | PyObject *m, *d; | |
2241 | SWIG_globals = SWIG_newvarlink(); | |
2242 | m = Py_InitModule("windows3c", windows3cMethods); | |
2243 | d = PyModule_GetDict(m); | |
2244 | PyDict_SetItemString(d,"wxSASH_TOP", PyInt_FromLong((long) wxSASH_TOP)); | |
2245 | PyDict_SetItemString(d,"wxSASH_RIGHT", PyInt_FromLong((long) wxSASH_RIGHT)); | |
2246 | PyDict_SetItemString(d,"wxSASH_BOTTOM", PyInt_FromLong((long) wxSASH_BOTTOM)); | |
2247 | PyDict_SetItemString(d,"wxSASH_LEFT", PyInt_FromLong((long) wxSASH_LEFT)); | |
2248 | PyDict_SetItemString(d,"wxSASH_NONE", PyInt_FromLong((long) wxSASH_NONE)); | |
2249 | PyDict_SetItemString(d,"wxEVT_SASH_DRAGGED", PyInt_FromLong((long) wxEVT_SASH_DRAGGED)); | |
2250 | PyDict_SetItemString(d,"wxSW_3D", PyInt_FromLong((long) wxSW_3D)); | |
2251 | PyDict_SetItemString(d,"wxSW_3DSASH", PyInt_FromLong((long) wxSW_3DSASH)); | |
2252 | PyDict_SetItemString(d,"wxSW_3DBORDER", PyInt_FromLong((long) wxSW_3DBORDER)); | |
2253 | PyDict_SetItemString(d,"wxSW_BORDER", PyInt_FromLong((long) wxSW_BORDER)); | |
2254 | PyDict_SetItemString(d,"wxSASH_STATUS_OK", PyInt_FromLong((long) wxSASH_STATUS_OK)); | |
2255 | PyDict_SetItemString(d,"wxSASH_STATUS_OUT_OF_RANGE", PyInt_FromLong((long) wxSASH_STATUS_OUT_OF_RANGE)); | |
2256 | PyDict_SetItemString(d,"wxLAYOUT_HORIZONTAL", PyInt_FromLong((long) wxLAYOUT_HORIZONTAL)); | |
2257 | PyDict_SetItemString(d,"wxLAYOUT_VERTICAL", PyInt_FromLong((long) wxLAYOUT_VERTICAL)); | |
2258 | PyDict_SetItemString(d,"wxLAYOUT_NONE", PyInt_FromLong((long) wxLAYOUT_NONE)); | |
2259 | PyDict_SetItemString(d,"wxLAYOUT_TOP", PyInt_FromLong((long) wxLAYOUT_TOP)); | |
2260 | PyDict_SetItemString(d,"wxLAYOUT_LEFT", PyInt_FromLong((long) wxLAYOUT_LEFT)); | |
2261 | PyDict_SetItemString(d,"wxLAYOUT_RIGHT", PyInt_FromLong((long) wxLAYOUT_RIGHT)); | |
2262 | PyDict_SetItemString(d,"wxLAYOUT_BOTTOM", PyInt_FromLong((long) wxLAYOUT_BOTTOM)); | |
2263 | PyDict_SetItemString(d,"wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong((long) wxEVT_QUERY_LAYOUT_INFO)); | |
2264 | PyDict_SetItemString(d,"wxEVT_CALCULATE_LAYOUT", PyInt_FromLong((long) wxEVT_CALCULATE_LAYOUT)); | |
2265 | { | |
2266 | int i; | |
2267 | for (i = 0; _swig_mapping[i].n1; i++) | |
2268 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
2269 | } | |
2270 | } |