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