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