]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/mdi.cpp
fixes w.r.t. size_t vs. int
[wxWidgets.git] / wxPython / src / msw / mdi.cpp
1 /*
2 * FILE : src/msw/mdi.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 initmdic
55
56 #define SWIG_name "mdic"
57
58 #include "helpers.h"
59
60
61 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
62 PyObject* o2;
63 PyObject* o3;
64
65 if (!target) {
66 target = o;
67 } else if (target == Py_None) {
68 Py_DECREF(Py_None);
69 target = o;
70 } else {
71 if (!PyTuple_Check(target)) {
72 o2 = target;
73 target = PyTuple_New(1);
74 PyTuple_SetItem(target, 0, o2);
75 }
76 o3 = PyTuple_New(1);
77 PyTuple_SetItem(o3, 0, o);
78
79 o2 = target;
80 target = PySequence_Concat(o2, o3);
81 Py_DECREF(o2);
82 Py_DECREF(o3);
83 }
84 return target;
85 }
86
87 #if PYTHON_API_VERSION >= 1009
88 static char* wxStringErrorMsg = "String or Unicode type required";
89 #else
90 static char* wxStringErrorMsg = "String type required";
91 #endif
92 #ifdef __cplusplus
93 extern "C" {
94 #endif
95 static void *SwigwxMDIParentFrameTowxFrame(void *ptr) {
96 wxMDIParentFrame *src;
97 wxFrame *dest;
98 src = (wxMDIParentFrame *) ptr;
99 dest = (wxFrame *) src;
100 return (void *) dest;
101 }
102
103 static void *SwigwxMDIParentFrameTowxTopLevelWindow(void *ptr) {
104 wxMDIParentFrame *src;
105 wxTopLevelWindow *dest;
106 src = (wxMDIParentFrame *) ptr;
107 dest = (wxTopLevelWindow *) src;
108 return (void *) dest;
109 }
110
111 static void *SwigwxMDIParentFrameTowxWindow(void *ptr) {
112 wxMDIParentFrame *src;
113 wxWindow *dest;
114 src = (wxMDIParentFrame *) ptr;
115 dest = (wxWindow *) src;
116 return (void *) dest;
117 }
118
119 static void *SwigwxMDIParentFrameTowxEvtHandler(void *ptr) {
120 wxMDIParentFrame *src;
121 wxEvtHandler *dest;
122 src = (wxMDIParentFrame *) ptr;
123 dest = (wxEvtHandler *) src;
124 return (void *) dest;
125 }
126
127 static void *SwigwxMDIParentFrameTowxObject(void *ptr) {
128 wxMDIParentFrame *src;
129 wxObject *dest;
130 src = (wxMDIParentFrame *) ptr;
131 dest = (wxObject *) src;
132 return (void *) dest;
133 }
134
135 #define new_wxMDIParentFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMDIParentFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
136 static PyObject *_wrap_new_wxMDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
137 PyObject * _resultobj;
138 wxMDIParentFrame * _result;
139 wxWindow * _arg0;
140 wxWindowID _arg1;
141 wxString * _arg2;
142 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
143 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
144 long _arg5 = (long ) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL;
145 char * _arg6 = (char *) "frame";
146 PyObject * _argo0 = 0;
147 PyObject * _obj2 = 0;
148 wxPoint temp;
149 PyObject * _obj3 = 0;
150 wxSize temp0;
151 PyObject * _obj4 = 0;
152 char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL };
153 char _ptemp[128];
154
155 self = self;
156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxMDIParentFrame",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
157 return NULL;
158 if (_argo0) {
159 if (_argo0 == Py_None) { _arg0 = NULL; }
160 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
161 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMDIParentFrame. Expected _wxWindow_p.");
162 return NULL;
163 }
164 }
165 {
166 #if PYTHON_API_VERSION >= 1009
167 char* tmpPtr; int tmpSize;
168 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
169 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
170 return NULL;
171 }
172 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
173 return NULL;
174 _arg2 = new wxString(tmpPtr, tmpSize);
175 #else
176 if (!PyString_Check(_obj2)) {
177 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
178 return NULL;
179 }
180 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
181 #endif
182 }
183 if (_obj3)
184 {
185 _arg3 = &temp;
186 if (! wxPoint_helper(_obj3, &_arg3))
187 return NULL;
188 }
189 if (_obj4)
190 {
191 _arg4 = &temp0;
192 if (! wxSize_helper(_obj4, &_arg4))
193 return NULL;
194 }
195 {
196 wxPy_BEGIN_ALLOW_THREADS;
197 _result = (wxMDIParentFrame *)new_wxMDIParentFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
198
199 wxPy_END_ALLOW_THREADS;
200 if (PyErr_Occurred()) return NULL;
201 } if (_result) {
202 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIParentFrame_p");
203 _resultobj = Py_BuildValue("s",_ptemp);
204 } else {
205 Py_INCREF(Py_None);
206 _resultobj = Py_None;
207 }
208 {
209 if (_obj2)
210 delete _arg2;
211 }
212 return _resultobj;
213 }
214
215 #define new_wxPreMDIParentFrame() (new wxMDIParentFrame())
216 static PyObject *_wrap_new_wxPreMDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
217 PyObject * _resultobj;
218 wxMDIParentFrame * _result;
219 char *_kwnames[] = { NULL };
220 char _ptemp[128];
221
222 self = self;
223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreMDIParentFrame",_kwnames))
224 return NULL;
225 {
226 wxPy_BEGIN_ALLOW_THREADS;
227 _result = (wxMDIParentFrame *)new_wxPreMDIParentFrame();
228
229 wxPy_END_ALLOW_THREADS;
230 if (PyErr_Occurred()) return NULL;
231 } if (_result) {
232 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIParentFrame_p");
233 _resultobj = Py_BuildValue("s",_ptemp);
234 } else {
235 Py_INCREF(Py_None);
236 _resultobj = Py_None;
237 }
238 return _resultobj;
239 }
240
241 #define wxMDIParentFrame_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
242 static PyObject *_wrap_wxMDIParentFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
243 PyObject * _resultobj;
244 bool _result;
245 wxMDIParentFrame * _arg0;
246 wxWindow * _arg1;
247 wxWindowID _arg2;
248 wxString * _arg3;
249 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
250 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
251 long _arg6 = (long ) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL;
252 char * _arg7 = (char *) "frame";
253 PyObject * _argo0 = 0;
254 PyObject * _argo1 = 0;
255 PyObject * _obj3 = 0;
256 wxPoint temp;
257 PyObject * _obj4 = 0;
258 wxSize temp0;
259 PyObject * _obj5 = 0;
260 char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL };
261
262 self = self;
263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxMDIParentFrame_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7))
264 return NULL;
265 if (_argo0) {
266 if (_argo0 == Py_None) { _arg0 = NULL; }
267 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
268 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_Create. Expected _wxMDIParentFrame_p.");
269 return NULL;
270 }
271 }
272 if (_argo1) {
273 if (_argo1 == Py_None) { _arg1 = NULL; }
274 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
275 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMDIParentFrame_Create. Expected _wxWindow_p.");
276 return NULL;
277 }
278 }
279 {
280 #if PYTHON_API_VERSION >= 1009
281 char* tmpPtr; int tmpSize;
282 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
283 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
284 return NULL;
285 }
286 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
287 return NULL;
288 _arg3 = new wxString(tmpPtr, tmpSize);
289 #else
290 if (!PyString_Check(_obj3)) {
291 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
292 return NULL;
293 }
294 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
295 #endif
296 }
297 if (_obj4)
298 {
299 _arg4 = &temp;
300 if (! wxPoint_helper(_obj4, &_arg4))
301 return NULL;
302 }
303 if (_obj5)
304 {
305 _arg5 = &temp0;
306 if (! wxSize_helper(_obj5, &_arg5))
307 return NULL;
308 }
309 {
310 wxPy_BEGIN_ALLOW_THREADS;
311 _result = (bool )wxMDIParentFrame_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
312
313 wxPy_END_ALLOW_THREADS;
314 if (PyErr_Occurred()) return NULL;
315 } _resultobj = Py_BuildValue("i",_result);
316 {
317 if (_obj3)
318 delete _arg3;
319 }
320 return _resultobj;
321 }
322
323 #define wxMDIParentFrame_ActivateNext(_swigobj) (_swigobj->ActivateNext())
324 static PyObject *_wrap_wxMDIParentFrame_ActivateNext(PyObject *self, PyObject *args, PyObject *kwargs) {
325 PyObject * _resultobj;
326 wxMDIParentFrame * _arg0;
327 PyObject * _argo0 = 0;
328 char *_kwnames[] = { "self", NULL };
329
330 self = self;
331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_ActivateNext",_kwnames,&_argo0))
332 return NULL;
333 if (_argo0) {
334 if (_argo0 == Py_None) { _arg0 = NULL; }
335 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
336 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_ActivateNext. Expected _wxMDIParentFrame_p.");
337 return NULL;
338 }
339 }
340 {
341 wxPy_BEGIN_ALLOW_THREADS;
342 wxMDIParentFrame_ActivateNext(_arg0);
343
344 wxPy_END_ALLOW_THREADS;
345 if (PyErr_Occurred()) return NULL;
346 } Py_INCREF(Py_None);
347 _resultobj = Py_None;
348 return _resultobj;
349 }
350
351 #define wxMDIParentFrame_ActivatePrevious(_swigobj) (_swigobj->ActivatePrevious())
352 static PyObject *_wrap_wxMDIParentFrame_ActivatePrevious(PyObject *self, PyObject *args, PyObject *kwargs) {
353 PyObject * _resultobj;
354 wxMDIParentFrame * _arg0;
355 PyObject * _argo0 = 0;
356 char *_kwnames[] = { "self", NULL };
357
358 self = self;
359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_ActivatePrevious",_kwnames,&_argo0))
360 return NULL;
361 if (_argo0) {
362 if (_argo0 == Py_None) { _arg0 = NULL; }
363 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
364 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_ActivatePrevious. Expected _wxMDIParentFrame_p.");
365 return NULL;
366 }
367 }
368 {
369 wxPy_BEGIN_ALLOW_THREADS;
370 wxMDIParentFrame_ActivatePrevious(_arg0);
371
372 wxPy_END_ALLOW_THREADS;
373 if (PyErr_Occurred()) return NULL;
374 } Py_INCREF(Py_None);
375 _resultobj = Py_None;
376 return _resultobj;
377 }
378
379 #define wxMDIParentFrame_ArrangeIcons(_swigobj) (_swigobj->ArrangeIcons())
380 static PyObject *_wrap_wxMDIParentFrame_ArrangeIcons(PyObject *self, PyObject *args, PyObject *kwargs) {
381 PyObject * _resultobj;
382 wxMDIParentFrame * _arg0;
383 PyObject * _argo0 = 0;
384 char *_kwnames[] = { "self", NULL };
385
386 self = self;
387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_ArrangeIcons",_kwnames,&_argo0))
388 return NULL;
389 if (_argo0) {
390 if (_argo0 == Py_None) { _arg0 = NULL; }
391 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
392 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_ArrangeIcons. Expected _wxMDIParentFrame_p.");
393 return NULL;
394 }
395 }
396 {
397 wxPy_BEGIN_ALLOW_THREADS;
398 wxMDIParentFrame_ArrangeIcons(_arg0);
399
400 wxPy_END_ALLOW_THREADS;
401 if (PyErr_Occurred()) return NULL;
402 } Py_INCREF(Py_None);
403 _resultobj = Py_None;
404 return _resultobj;
405 }
406
407 #define wxMDIParentFrame_Cascade(_swigobj) (_swigobj->Cascade())
408 static PyObject *_wrap_wxMDIParentFrame_Cascade(PyObject *self, PyObject *args, PyObject *kwargs) {
409 PyObject * _resultobj;
410 wxMDIParentFrame * _arg0;
411 PyObject * _argo0 = 0;
412 char *_kwnames[] = { "self", NULL };
413
414 self = self;
415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_Cascade",_kwnames,&_argo0))
416 return NULL;
417 if (_argo0) {
418 if (_argo0 == Py_None) { _arg0 = NULL; }
419 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
420 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_Cascade. Expected _wxMDIParentFrame_p.");
421 return NULL;
422 }
423 }
424 {
425 wxPy_BEGIN_ALLOW_THREADS;
426 wxMDIParentFrame_Cascade(_arg0);
427
428 wxPy_END_ALLOW_THREADS;
429 if (PyErr_Occurred()) return NULL;
430 } Py_INCREF(Py_None);
431 _resultobj = Py_None;
432 return _resultobj;
433 }
434
435 #define wxMDIParentFrame_GetActiveChild(_swigobj) (_swigobj->GetActiveChild())
436 static PyObject *_wrap_wxMDIParentFrame_GetActiveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
437 PyObject * _resultobj;
438 wxMDIChildFrame * _result;
439 wxMDIParentFrame * _arg0;
440 PyObject * _argo0 = 0;
441 char *_kwnames[] = { "self", NULL };
442
443 self = self;
444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_GetActiveChild",_kwnames,&_argo0))
445 return NULL;
446 if (_argo0) {
447 if (_argo0 == Py_None) { _arg0 = NULL; }
448 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
449 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetActiveChild. Expected _wxMDIParentFrame_p.");
450 return NULL;
451 }
452 }
453 {
454 wxPy_BEGIN_ALLOW_THREADS;
455 _result = (wxMDIChildFrame *)wxMDIParentFrame_GetActiveChild(_arg0);
456
457 wxPy_END_ALLOW_THREADS;
458 if (PyErr_Occurred()) return NULL;
459 }{ _resultobj = wxPyMake_wxObject(_result); }
460 return _resultobj;
461 }
462
463 #define wxMDIParentFrame_GetClientWindow(_swigobj) (_swigobj->GetClientWindow())
464 static PyObject *_wrap_wxMDIParentFrame_GetClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
465 PyObject * _resultobj;
466 wxMDIClientWindow * _result;
467 wxMDIParentFrame * _arg0;
468 PyObject * _argo0 = 0;
469 char *_kwnames[] = { "self", NULL };
470
471 self = self;
472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_GetClientWindow",_kwnames,&_argo0))
473 return NULL;
474 if (_argo0) {
475 if (_argo0 == Py_None) { _arg0 = NULL; }
476 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
477 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetClientWindow. Expected _wxMDIParentFrame_p.");
478 return NULL;
479 }
480 }
481 {
482 wxPy_BEGIN_ALLOW_THREADS;
483 _result = (wxMDIClientWindow *)wxMDIParentFrame_GetClientWindow(_arg0);
484
485 wxPy_END_ALLOW_THREADS;
486 if (PyErr_Occurred()) return NULL;
487 }{ _resultobj = wxPyMake_wxObject(_result); }
488 return _resultobj;
489 }
490
491 #define wxMDIParentFrame_GetToolBar(_swigobj) (_swigobj->GetToolBar())
492 static PyObject *_wrap_wxMDIParentFrame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
493 PyObject * _resultobj;
494 wxWindow * _result;
495 wxMDIParentFrame * _arg0;
496 PyObject * _argo0 = 0;
497 char *_kwnames[] = { "self", NULL };
498
499 self = self;
500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_GetToolBar",_kwnames,&_argo0))
501 return NULL;
502 if (_argo0) {
503 if (_argo0 == Py_None) { _arg0 = NULL; }
504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetToolBar. Expected _wxMDIParentFrame_p.");
506 return NULL;
507 }
508 }
509 {
510 wxPy_BEGIN_ALLOW_THREADS;
511 _result = (wxWindow *)wxMDIParentFrame_GetToolBar(_arg0);
512
513 wxPy_END_ALLOW_THREADS;
514 if (PyErr_Occurred()) return NULL;
515 }{ _resultobj = wxPyMake_wxObject(_result); }
516 return _resultobj;
517 }
518
519 #define wxMDIParentFrame_GetWindowMenu(_swigobj) (_swigobj->GetWindowMenu())
520 static PyObject *_wrap_wxMDIParentFrame_GetWindowMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
521 PyObject * _resultobj;
522 wxMenu * _result;
523 wxMDIParentFrame * _arg0;
524 PyObject * _argo0 = 0;
525 char *_kwnames[] = { "self", NULL };
526
527 self = self;
528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_GetWindowMenu",_kwnames,&_argo0))
529 return NULL;
530 if (_argo0) {
531 if (_argo0 == Py_None) { _arg0 = NULL; }
532 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
533 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetWindowMenu. Expected _wxMDIParentFrame_p.");
534 return NULL;
535 }
536 }
537 {
538 wxPy_BEGIN_ALLOW_THREADS;
539 _result = (wxMenu *)wxMDIParentFrame_GetWindowMenu(_arg0);
540
541 wxPy_END_ALLOW_THREADS;
542 if (PyErr_Occurred()) return NULL;
543 }{ _resultobj = wxPyMake_wxObject(_result); }
544 return _resultobj;
545 }
546
547 #define wxMDIParentFrame_SetWindowMenu(_swigobj,_swigarg0) (_swigobj->SetWindowMenu(_swigarg0))
548 static PyObject *_wrap_wxMDIParentFrame_SetWindowMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
549 PyObject * _resultobj;
550 wxMDIParentFrame * _arg0;
551 wxMenu * _arg1;
552 PyObject * _argo0 = 0;
553 PyObject * _argo1 = 0;
554 char *_kwnames[] = { "self","menu", NULL };
555
556 self = self;
557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMDIParentFrame_SetWindowMenu",_kwnames,&_argo0,&_argo1))
558 return NULL;
559 if (_argo0) {
560 if (_argo0 == Py_None) { _arg0 = NULL; }
561 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
562 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_SetWindowMenu. Expected _wxMDIParentFrame_p.");
563 return NULL;
564 }
565 }
566 if (_argo1) {
567 if (_argo1 == Py_None) { _arg1 = NULL; }
568 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
569 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMDIParentFrame_SetWindowMenu. Expected _wxMenu_p.");
570 return NULL;
571 }
572 }
573 {
574 wxPy_BEGIN_ALLOW_THREADS;
575 wxMDIParentFrame_SetWindowMenu(_arg0,_arg1);
576
577 wxPy_END_ALLOW_THREADS;
578 if (PyErr_Occurred()) return NULL;
579 } Py_INCREF(Py_None);
580 _resultobj = Py_None;
581 return _resultobj;
582 }
583
584 #define wxMDIParentFrame_SetToolBar(_swigobj,_swigarg0) (_swigobj->SetToolBar(_swigarg0))
585 static PyObject *_wrap_wxMDIParentFrame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
586 PyObject * _resultobj;
587 wxMDIParentFrame * _arg0;
588 wxToolBar * _arg1;
589 PyObject * _argo0 = 0;
590 PyObject * _argo1 = 0;
591 char *_kwnames[] = { "self","toolbar", NULL };
592
593 self = self;
594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMDIParentFrame_SetToolBar",_kwnames,&_argo0,&_argo1))
595 return NULL;
596 if (_argo0) {
597 if (_argo0 == Py_None) { _arg0 = NULL; }
598 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
599 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_SetToolBar. Expected _wxMDIParentFrame_p.");
600 return NULL;
601 }
602 }
603 if (_argo1) {
604 if (_argo1 == Py_None) { _arg1 = NULL; }
605 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolBar_p")) {
606 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMDIParentFrame_SetToolBar. Expected _wxToolBar_p.");
607 return NULL;
608 }
609 }
610 {
611 wxPy_BEGIN_ALLOW_THREADS;
612 wxMDIParentFrame_SetToolBar(_arg0,_arg1);
613
614 wxPy_END_ALLOW_THREADS;
615 if (PyErr_Occurred()) return NULL;
616 } Py_INCREF(Py_None);
617 _resultobj = Py_None;
618 return _resultobj;
619 }
620
621 #define wxMDIParentFrame_Tile(_swigobj) (_swigobj->Tile())
622 static PyObject *_wrap_wxMDIParentFrame_Tile(PyObject *self, PyObject *args, PyObject *kwargs) {
623 PyObject * _resultobj;
624 wxMDIParentFrame * _arg0;
625 PyObject * _argo0 = 0;
626 char *_kwnames[] = { "self", NULL };
627
628 self = self;
629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_Tile",_kwnames,&_argo0))
630 return NULL;
631 if (_argo0) {
632 if (_argo0 == Py_None) { _arg0 = NULL; }
633 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
634 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_Tile. Expected _wxMDIParentFrame_p.");
635 return NULL;
636 }
637 }
638 {
639 wxPy_BEGIN_ALLOW_THREADS;
640 wxMDIParentFrame_Tile(_arg0);
641
642 wxPy_END_ALLOW_THREADS;
643 if (PyErr_Occurred()) return NULL;
644 } Py_INCREF(Py_None);
645 _resultobj = Py_None;
646 return _resultobj;
647 }
648
649 static void *SwigwxMDIChildFrameTowxFrame(void *ptr) {
650 wxMDIChildFrame *src;
651 wxFrame *dest;
652 src = (wxMDIChildFrame *) ptr;
653 dest = (wxFrame *) src;
654 return (void *) dest;
655 }
656
657 static void *SwigwxMDIChildFrameTowxTopLevelWindow(void *ptr) {
658 wxMDIChildFrame *src;
659 wxTopLevelWindow *dest;
660 src = (wxMDIChildFrame *) ptr;
661 dest = (wxTopLevelWindow *) src;
662 return (void *) dest;
663 }
664
665 static void *SwigwxMDIChildFrameTowxWindow(void *ptr) {
666 wxMDIChildFrame *src;
667 wxWindow *dest;
668 src = (wxMDIChildFrame *) ptr;
669 dest = (wxWindow *) src;
670 return (void *) dest;
671 }
672
673 static void *SwigwxMDIChildFrameTowxEvtHandler(void *ptr) {
674 wxMDIChildFrame *src;
675 wxEvtHandler *dest;
676 src = (wxMDIChildFrame *) ptr;
677 dest = (wxEvtHandler *) src;
678 return (void *) dest;
679 }
680
681 static void *SwigwxMDIChildFrameTowxObject(void *ptr) {
682 wxMDIChildFrame *src;
683 wxObject *dest;
684 src = (wxMDIChildFrame *) ptr;
685 dest = (wxObject *) src;
686 return (void *) dest;
687 }
688
689 #define new_wxMDIChildFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMDIChildFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
690 static PyObject *_wrap_new_wxMDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
691 PyObject * _resultobj;
692 wxMDIChildFrame * _result;
693 wxMDIParentFrame * _arg0;
694 wxWindowID _arg1;
695 wxString * _arg2;
696 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
697 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
698 long _arg5 = (long ) wxDEFAULT_FRAME_STYLE;
699 char * _arg6 = (char *) "frame";
700 PyObject * _argo0 = 0;
701 PyObject * _obj2 = 0;
702 wxPoint temp;
703 PyObject * _obj3 = 0;
704 wxSize temp0;
705 PyObject * _obj4 = 0;
706 char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL };
707 char _ptemp[128];
708
709 self = self;
710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxMDIChildFrame",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
711 return NULL;
712 if (_argo0) {
713 if (_argo0 == Py_None) { _arg0 = NULL; }
714 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
715 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMDIChildFrame. Expected _wxMDIParentFrame_p.");
716 return NULL;
717 }
718 }
719 {
720 #if PYTHON_API_VERSION >= 1009
721 char* tmpPtr; int tmpSize;
722 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
723 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
724 return NULL;
725 }
726 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
727 return NULL;
728 _arg2 = new wxString(tmpPtr, tmpSize);
729 #else
730 if (!PyString_Check(_obj2)) {
731 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
732 return NULL;
733 }
734 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
735 #endif
736 }
737 if (_obj3)
738 {
739 _arg3 = &temp;
740 if (! wxPoint_helper(_obj3, &_arg3))
741 return NULL;
742 }
743 if (_obj4)
744 {
745 _arg4 = &temp0;
746 if (! wxSize_helper(_obj4, &_arg4))
747 return NULL;
748 }
749 {
750 wxPy_BEGIN_ALLOW_THREADS;
751 _result = (wxMDIChildFrame *)new_wxMDIChildFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
752
753 wxPy_END_ALLOW_THREADS;
754 if (PyErr_Occurred()) return NULL;
755 } if (_result) {
756 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIChildFrame_p");
757 _resultobj = Py_BuildValue("s",_ptemp);
758 } else {
759 Py_INCREF(Py_None);
760 _resultobj = Py_None;
761 }
762 {
763 if (_obj2)
764 delete _arg2;
765 }
766 return _resultobj;
767 }
768
769 #define new_wxPreMDIChildFrame() (new wxMDIChildFrame())
770 static PyObject *_wrap_new_wxPreMDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
771 PyObject * _resultobj;
772 wxMDIChildFrame * _result;
773 char *_kwnames[] = { NULL };
774 char _ptemp[128];
775
776 self = self;
777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreMDIChildFrame",_kwnames))
778 return NULL;
779 {
780 wxPy_BEGIN_ALLOW_THREADS;
781 _result = (wxMDIChildFrame *)new_wxPreMDIChildFrame();
782
783 wxPy_END_ALLOW_THREADS;
784 if (PyErr_Occurred()) return NULL;
785 } if (_result) {
786 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIChildFrame_p");
787 _resultobj = Py_BuildValue("s",_ptemp);
788 } else {
789 Py_INCREF(Py_None);
790 _resultobj = Py_None;
791 }
792 return _resultobj;
793 }
794
795 #define wxMDIChildFrame_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
796 static PyObject *_wrap_wxMDIChildFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
797 PyObject * _resultobj;
798 bool _result;
799 wxMDIChildFrame * _arg0;
800 wxMDIParentFrame * _arg1;
801 wxWindowID _arg2;
802 wxString * _arg3;
803 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
804 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
805 long _arg6 = (long ) wxDEFAULT_FRAME_STYLE;
806 char * _arg7 = (char *) "frame";
807 PyObject * _argo0 = 0;
808 PyObject * _argo1 = 0;
809 PyObject * _obj3 = 0;
810 wxPoint temp;
811 PyObject * _obj4 = 0;
812 wxSize temp0;
813 PyObject * _obj5 = 0;
814 char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL };
815
816 self = self;
817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxMDIChildFrame_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7))
818 return NULL;
819 if (_argo0) {
820 if (_argo0 == Py_None) { _arg0 = NULL; }
821 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
822 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_Create. Expected _wxMDIChildFrame_p.");
823 return NULL;
824 }
825 }
826 if (_argo1) {
827 if (_argo1 == Py_None) { _arg1 = NULL; }
828 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMDIParentFrame_p")) {
829 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMDIChildFrame_Create. Expected _wxMDIParentFrame_p.");
830 return NULL;
831 }
832 }
833 {
834 #if PYTHON_API_VERSION >= 1009
835 char* tmpPtr; int tmpSize;
836 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
837 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
838 return NULL;
839 }
840 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
841 return NULL;
842 _arg3 = new wxString(tmpPtr, tmpSize);
843 #else
844 if (!PyString_Check(_obj3)) {
845 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
846 return NULL;
847 }
848 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
849 #endif
850 }
851 if (_obj4)
852 {
853 _arg4 = &temp;
854 if (! wxPoint_helper(_obj4, &_arg4))
855 return NULL;
856 }
857 if (_obj5)
858 {
859 _arg5 = &temp0;
860 if (! wxSize_helper(_obj5, &_arg5))
861 return NULL;
862 }
863 {
864 wxPy_BEGIN_ALLOW_THREADS;
865 _result = (bool )wxMDIChildFrame_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
866
867 wxPy_END_ALLOW_THREADS;
868 if (PyErr_Occurred()) return NULL;
869 } _resultobj = Py_BuildValue("i",_result);
870 {
871 if (_obj3)
872 delete _arg3;
873 }
874 return _resultobj;
875 }
876
877 #define wxMDIChildFrame_Activate(_swigobj) (_swigobj->Activate())
878 static PyObject *_wrap_wxMDIChildFrame_Activate(PyObject *self, PyObject *args, PyObject *kwargs) {
879 PyObject * _resultobj;
880 wxMDIChildFrame * _arg0;
881 PyObject * _argo0 = 0;
882 char *_kwnames[] = { "self", NULL };
883
884 self = self;
885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIChildFrame_Activate",_kwnames,&_argo0))
886 return NULL;
887 if (_argo0) {
888 if (_argo0 == Py_None) { _arg0 = NULL; }
889 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
890 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_Activate. Expected _wxMDIChildFrame_p.");
891 return NULL;
892 }
893 }
894 {
895 wxPy_BEGIN_ALLOW_THREADS;
896 wxMDIChildFrame_Activate(_arg0);
897
898 wxPy_END_ALLOW_THREADS;
899 if (PyErr_Occurred()) return NULL;
900 } Py_INCREF(Py_None);
901 _resultobj = Py_None;
902 return _resultobj;
903 }
904
905 #define wxMDIChildFrame_Maximize(_swigobj,_swigarg0) (_swigobj->Maximize(_swigarg0))
906 static PyObject *_wrap_wxMDIChildFrame_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) {
907 PyObject * _resultobj;
908 wxMDIChildFrame * _arg0;
909 bool _arg1;
910 PyObject * _argo0 = 0;
911 int tempbool1;
912 char *_kwnames[] = { "self","maximize", NULL };
913
914 self = self;
915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMDIChildFrame_Maximize",_kwnames,&_argo0,&tempbool1))
916 return NULL;
917 if (_argo0) {
918 if (_argo0 == Py_None) { _arg0 = NULL; }
919 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
920 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_Maximize. Expected _wxMDIChildFrame_p.");
921 return NULL;
922 }
923 }
924 _arg1 = (bool ) tempbool1;
925 {
926 wxPy_BEGIN_ALLOW_THREADS;
927 wxMDIChildFrame_Maximize(_arg0,_arg1);
928
929 wxPy_END_ALLOW_THREADS;
930 if (PyErr_Occurred()) return NULL;
931 } Py_INCREF(Py_None);
932 _resultobj = Py_None;
933 return _resultobj;
934 }
935
936 #define wxMDIChildFrame_Restore(_swigobj) (_swigobj->Restore())
937 static PyObject *_wrap_wxMDIChildFrame_Restore(PyObject *self, PyObject *args, PyObject *kwargs) {
938 PyObject * _resultobj;
939 wxMDIChildFrame * _arg0;
940 PyObject * _argo0 = 0;
941 char *_kwnames[] = { "self", NULL };
942
943 self = self;
944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIChildFrame_Restore",_kwnames,&_argo0))
945 return NULL;
946 if (_argo0) {
947 if (_argo0 == Py_None) { _arg0 = NULL; }
948 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
949 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_Restore. Expected _wxMDIChildFrame_p.");
950 return NULL;
951 }
952 }
953 {
954 wxPy_BEGIN_ALLOW_THREADS;
955 wxMDIChildFrame_Restore(_arg0);
956
957 wxPy_END_ALLOW_THREADS;
958 if (PyErr_Occurred()) return NULL;
959 } Py_INCREF(Py_None);
960 _resultobj = Py_None;
961 return _resultobj;
962 }
963
964 static void *SwigwxMDIClientWindowTowxWindow(void *ptr) {
965 wxMDIClientWindow *src;
966 wxWindow *dest;
967 src = (wxMDIClientWindow *) ptr;
968 dest = (wxWindow *) src;
969 return (void *) dest;
970 }
971
972 static void *SwigwxMDIClientWindowTowxEvtHandler(void *ptr) {
973 wxMDIClientWindow *src;
974 wxEvtHandler *dest;
975 src = (wxMDIClientWindow *) ptr;
976 dest = (wxEvtHandler *) src;
977 return (void *) dest;
978 }
979
980 static void *SwigwxMDIClientWindowTowxObject(void *ptr) {
981 wxMDIClientWindow *src;
982 wxObject *dest;
983 src = (wxMDIClientWindow *) ptr;
984 dest = (wxObject *) src;
985 return (void *) dest;
986 }
987
988 #define new_wxMDIClientWindow(_swigarg0,_swigarg1) (new wxMDIClientWindow(_swigarg0,_swigarg1))
989 static PyObject *_wrap_new_wxMDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
990 PyObject * _resultobj;
991 wxMDIClientWindow * _result;
992 wxMDIParentFrame * _arg0;
993 long _arg1 = (long ) 0;
994 PyObject * _argo0 = 0;
995 char *_kwnames[] = { "parent","style", NULL };
996 char _ptemp[128];
997
998 self = self;
999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:new_wxMDIClientWindow",_kwnames,&_argo0,&_arg1))
1000 return NULL;
1001 if (_argo0) {
1002 if (_argo0 == Py_None) { _arg0 = NULL; }
1003 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
1004 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMDIClientWindow. Expected _wxMDIParentFrame_p.");
1005 return NULL;
1006 }
1007 }
1008 {
1009 wxPy_BEGIN_ALLOW_THREADS;
1010 _result = (wxMDIClientWindow *)new_wxMDIClientWindow(_arg0,_arg1);
1011
1012 wxPy_END_ALLOW_THREADS;
1013 if (PyErr_Occurred()) return NULL;
1014 } if (_result) {
1015 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p");
1016 _resultobj = Py_BuildValue("s",_ptemp);
1017 } else {
1018 Py_INCREF(Py_None);
1019 _resultobj = Py_None;
1020 }
1021 return _resultobj;
1022 }
1023
1024 #define new_wxPreMDIClientWindow() (new wxMDIClientWindow())
1025 static PyObject *_wrap_new_wxPreMDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1026 PyObject * _resultobj;
1027 wxMDIClientWindow * _result;
1028 char *_kwnames[] = { NULL };
1029 char _ptemp[128];
1030
1031 self = self;
1032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreMDIClientWindow",_kwnames))
1033 return NULL;
1034 {
1035 wxPy_BEGIN_ALLOW_THREADS;
1036 _result = (wxMDIClientWindow *)new_wxPreMDIClientWindow();
1037
1038 wxPy_END_ALLOW_THREADS;
1039 if (PyErr_Occurred()) return NULL;
1040 } if (_result) {
1041 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p");
1042 _resultobj = Py_BuildValue("s",_ptemp);
1043 } else {
1044 Py_INCREF(Py_None);
1045 _resultobj = Py_None;
1046 }
1047 return _resultobj;
1048 }
1049
1050 #define wxMDIClientWindow_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1))
1051 static PyObject *_wrap_wxMDIClientWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1052 PyObject * _resultobj;
1053 bool _result;
1054 wxMDIClientWindow * _arg0;
1055 wxMDIParentFrame * _arg1;
1056 long _arg2 = (long ) 0;
1057 PyObject * _argo0 = 0;
1058 PyObject * _argo1 = 0;
1059 char *_kwnames[] = { "self","parent","style", NULL };
1060
1061 self = self;
1062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|l:wxMDIClientWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2))
1063 return NULL;
1064 if (_argo0) {
1065 if (_argo0 == Py_None) { _arg0 = NULL; }
1066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIClientWindow_p")) {
1067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIClientWindow_Create. Expected _wxMDIClientWindow_p.");
1068 return NULL;
1069 }
1070 }
1071 if (_argo1) {
1072 if (_argo1 == Py_None) { _arg1 = NULL; }
1073 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMDIParentFrame_p")) {
1074 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMDIClientWindow_Create. Expected _wxMDIParentFrame_p.");
1075 return NULL;
1076 }
1077 }
1078 {
1079 wxPy_BEGIN_ALLOW_THREADS;
1080 _result = (bool )wxMDIClientWindow_Create(_arg0,_arg1,_arg2);
1081
1082 wxPy_END_ALLOW_THREADS;
1083 if (PyErr_Occurred()) return NULL;
1084 } _resultobj = Py_BuildValue("i",_result);
1085 return _resultobj;
1086 }
1087
1088 static PyMethodDef mdicMethods[] = {
1089 { "wxMDIClientWindow_Create", (PyCFunction) _wrap_wxMDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS },
1090 { "new_wxPreMDIClientWindow", (PyCFunction) _wrap_new_wxPreMDIClientWindow, METH_VARARGS | METH_KEYWORDS },
1091 { "new_wxMDIClientWindow", (PyCFunction) _wrap_new_wxMDIClientWindow, METH_VARARGS | METH_KEYWORDS },
1092 { "wxMDIChildFrame_Restore", (PyCFunction) _wrap_wxMDIChildFrame_Restore, METH_VARARGS | METH_KEYWORDS },
1093 { "wxMDIChildFrame_Maximize", (PyCFunction) _wrap_wxMDIChildFrame_Maximize, METH_VARARGS | METH_KEYWORDS },
1094 { "wxMDIChildFrame_Activate", (PyCFunction) _wrap_wxMDIChildFrame_Activate, METH_VARARGS | METH_KEYWORDS },
1095 { "wxMDIChildFrame_Create", (PyCFunction) _wrap_wxMDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS },
1096 { "new_wxPreMDIChildFrame", (PyCFunction) _wrap_new_wxPreMDIChildFrame, METH_VARARGS | METH_KEYWORDS },
1097 { "new_wxMDIChildFrame", (PyCFunction) _wrap_new_wxMDIChildFrame, METH_VARARGS | METH_KEYWORDS },
1098 { "wxMDIParentFrame_Tile", (PyCFunction) _wrap_wxMDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS },
1099 { "wxMDIParentFrame_SetToolBar", (PyCFunction) _wrap_wxMDIParentFrame_SetToolBar, METH_VARARGS | METH_KEYWORDS },
1100 { "wxMDIParentFrame_SetWindowMenu", (PyCFunction) _wrap_wxMDIParentFrame_SetWindowMenu, METH_VARARGS | METH_KEYWORDS },
1101 { "wxMDIParentFrame_GetWindowMenu", (PyCFunction) _wrap_wxMDIParentFrame_GetWindowMenu, METH_VARARGS | METH_KEYWORDS },
1102 { "wxMDIParentFrame_GetToolBar", (PyCFunction) _wrap_wxMDIParentFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS },
1103 { "wxMDIParentFrame_GetClientWindow", (PyCFunction) _wrap_wxMDIParentFrame_GetClientWindow, METH_VARARGS | METH_KEYWORDS },
1104 { "wxMDIParentFrame_GetActiveChild", (PyCFunction) _wrap_wxMDIParentFrame_GetActiveChild, METH_VARARGS | METH_KEYWORDS },
1105 { "wxMDIParentFrame_Cascade", (PyCFunction) _wrap_wxMDIParentFrame_Cascade, METH_VARARGS | METH_KEYWORDS },
1106 { "wxMDIParentFrame_ArrangeIcons", (PyCFunction) _wrap_wxMDIParentFrame_ArrangeIcons, METH_VARARGS | METH_KEYWORDS },
1107 { "wxMDIParentFrame_ActivatePrevious", (PyCFunction) _wrap_wxMDIParentFrame_ActivatePrevious, METH_VARARGS | METH_KEYWORDS },
1108 { "wxMDIParentFrame_ActivateNext", (PyCFunction) _wrap_wxMDIParentFrame_ActivateNext, METH_VARARGS | METH_KEYWORDS },
1109 { "wxMDIParentFrame_Create", (PyCFunction) _wrap_wxMDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS },
1110 { "new_wxPreMDIParentFrame", (PyCFunction) _wrap_new_wxPreMDIParentFrame, METH_VARARGS | METH_KEYWORDS },
1111 { "new_wxMDIParentFrame", (PyCFunction) _wrap_new_wxMDIParentFrame, METH_VARARGS | METH_KEYWORDS },
1112 { NULL, NULL }
1113 };
1114 #ifdef __cplusplus
1115 }
1116 #endif
1117 /*
1118 * This table is used by the pointer type-checker
1119 */
1120 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
1121 { "_signed_long","_long",0},
1122 { "_wxPrintQuality","_wxCoord",0},
1123 { "_wxPrintQuality","_int",0},
1124 { "_wxPrintQuality","_signed_int",0},
1125 { "_wxPrintQuality","_unsigned_int",0},
1126 { "_wxPrintQuality","_wxWindowID",0},
1127 { "_wxPrintQuality","_uint",0},
1128 { "_wxPrintQuality","_EBool",0},
1129 { "_wxPrintQuality","_size_t",0},
1130 { "_wxPrintQuality","_time_t",0},
1131 { "_byte","_unsigned_char",0},
1132 { "_long","_unsigned_long",0},
1133 { "_long","_signed_long",0},
1134 { "_size_t","_wxCoord",0},
1135 { "_size_t","_wxPrintQuality",0},
1136 { "_size_t","_time_t",0},
1137 { "_size_t","_unsigned_int",0},
1138 { "_size_t","_int",0},
1139 { "_size_t","_wxWindowID",0},
1140 { "_size_t","_uint",0},
1141 { "_wxTopLevelWindow","_wxMDIChildFrame",SwigwxMDIChildFrameTowxTopLevelWindow},
1142 { "_wxTopLevelWindow","_wxMDIParentFrame",SwigwxMDIParentFrameTowxTopLevelWindow},
1143 { "_uint","_wxCoord",0},
1144 { "_uint","_wxPrintQuality",0},
1145 { "_uint","_time_t",0},
1146 { "_uint","_size_t",0},
1147 { "_uint","_unsigned_int",0},
1148 { "_uint","_int",0},
1149 { "_uint","_wxWindowID",0},
1150 { "_wxChar","_char",0},
1151 { "_char","_wxChar",0},
1152 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
1153 { "_EBool","_wxCoord",0},
1154 { "_EBool","_wxPrintQuality",0},
1155 { "_EBool","_signed_int",0},
1156 { "_EBool","_int",0},
1157 { "_EBool","_wxWindowID",0},
1158 { "_unsigned_long","_long",0},
1159 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
1160 { "_signed_int","_wxCoord",0},
1161 { "_signed_int","_wxPrintQuality",0},
1162 { "_signed_int","_EBool",0},
1163 { "_signed_int","_wxWindowID",0},
1164 { "_signed_int","_int",0},
1165 { "_WXTYPE","_short",0},
1166 { "_WXTYPE","_signed_short",0},
1167 { "_WXTYPE","_unsigned_short",0},
1168 { "_unsigned_short","_WXTYPE",0},
1169 { "_unsigned_short","_short",0},
1170 { "_wxObject","_wxMDIClientWindow",SwigwxMDIClientWindowTowxObject},
1171 { "_wxObject","_wxMDIChildFrame",SwigwxMDIChildFrameTowxObject},
1172 { "_wxObject","_wxMDIParentFrame",SwigwxMDIParentFrameTowxObject},
1173 { "_signed_short","_WXTYPE",0},
1174 { "_signed_short","_short",0},
1175 { "_unsigned_char","_byte",0},
1176 { "_unsigned_int","_wxCoord",0},
1177 { "_unsigned_int","_wxPrintQuality",0},
1178 { "_unsigned_int","_time_t",0},
1179 { "_unsigned_int","_size_t",0},
1180 { "_unsigned_int","_uint",0},
1181 { "_unsigned_int","_wxWindowID",0},
1182 { "_unsigned_int","_int",0},
1183 { "_short","_WXTYPE",0},
1184 { "_short","_unsigned_short",0},
1185 { "_short","_signed_short",0},
1186 { "_wxFrame","_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame},
1187 { "_wxFrame","_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame},
1188 { "_wxWindowID","_wxCoord",0},
1189 { "_wxWindowID","_wxPrintQuality",0},
1190 { "_wxWindowID","_time_t",0},
1191 { "_wxWindowID","_size_t",0},
1192 { "_wxWindowID","_EBool",0},
1193 { "_wxWindowID","_uint",0},
1194 { "_wxWindowID","_int",0},
1195 { "_wxWindowID","_signed_int",0},
1196 { "_wxWindowID","_unsigned_int",0},
1197 { "_int","_wxCoord",0},
1198 { "_int","_wxPrintQuality",0},
1199 { "_int","_time_t",0},
1200 { "_int","_size_t",0},
1201 { "_int","_EBool",0},
1202 { "_int","_uint",0},
1203 { "_int","_wxWindowID",0},
1204 { "_int","_unsigned_int",0},
1205 { "_int","_signed_int",0},
1206 { "_time_t","_wxCoord",0},
1207 { "_time_t","_wxPrintQuality",0},
1208 { "_time_t","_unsigned_int",0},
1209 { "_time_t","_int",0},
1210 { "_time_t","_wxWindowID",0},
1211 { "_time_t","_uint",0},
1212 { "_time_t","_size_t",0},
1213 { "_wxCoord","_int",0},
1214 { "_wxCoord","_signed_int",0},
1215 { "_wxCoord","_unsigned_int",0},
1216 { "_wxCoord","_wxWindowID",0},
1217 { "_wxCoord","_uint",0},
1218 { "_wxCoord","_EBool",0},
1219 { "_wxCoord","_size_t",0},
1220 { "_wxCoord","_time_t",0},
1221 { "_wxCoord","_wxPrintQuality",0},
1222 { "_wxEvtHandler","_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler},
1223 { "_wxEvtHandler","_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler},
1224 { "_wxEvtHandler","_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler},
1225 { "_wxWindow","_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow},
1226 { "_wxWindow","_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow},
1227 { "_wxWindow","_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow},
1228 {0,0,0}};
1229
1230 static PyObject *SWIG_globals;
1231 #ifdef __cplusplus
1232 extern "C"
1233 #endif
1234 SWIGEXPORT(void) initmdic() {
1235 PyObject *m, *d;
1236 SWIG_globals = SWIG_newvarlink();
1237 m = Py_InitModule("mdic", mdicMethods);
1238 d = PyModule_GetDict(m);
1239 {
1240 int i;
1241 for (i = 0; _swig_mapping[i].n1; i++)
1242 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
1243 }
1244 }