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