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