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