2 * FILE : src/gtk/mdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
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.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
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);
54 #define SWIG_init initmdic
56 #define SWIG_name "mdic"
61 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
67 } else if (target
== Py_None
) {
71 if (!PyTuple_Check(target
)) {
73 target
= PyTuple_New(1);
74 PyTuple_SetItem(target
, 0, o2
);
77 PyTuple_SetItem(o3
, 0, o
);
80 target
= PySequence_Concat(o2
, o3
);
89 static void *SwigwxMDIParentFrameTowxFrame(void *ptr
) {
90 wxMDIParentFrame
*src
;
92 src
= (wxMDIParentFrame
*) ptr
;
93 dest
= (wxFrame
*) src
;
97 static void *SwigwxMDIParentFrameTowxTopLevelWindow(void *ptr
) {
98 wxMDIParentFrame
*src
;
99 wxTopLevelWindow
*dest
;
100 src
= (wxMDIParentFrame
*) ptr
;
101 dest
= (wxTopLevelWindow
*) src
;
102 return (void *) dest
;
105 static void *SwigwxMDIParentFrameTowxWindow(void *ptr
) {
106 wxMDIParentFrame
*src
;
108 src
= (wxMDIParentFrame
*) ptr
;
109 dest
= (wxWindow
*) src
;
110 return (void *) dest
;
113 static void *SwigwxMDIParentFrameTowxEvtHandler(void *ptr
) {
114 wxMDIParentFrame
*src
;
116 src
= (wxMDIParentFrame
*) ptr
;
117 dest
= (wxEvtHandler
*) src
;
118 return (void *) dest
;
121 static void *SwigwxMDIParentFrameTowxObject(void *ptr
) {
122 wxMDIParentFrame
*src
;
124 src
= (wxMDIParentFrame
*) ptr
;
125 dest
= (wxObject
*) src
;
126 return (void *) dest
;
129 #define new_wxMDIParentFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMDIParentFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
130 static PyObject
*_wrap_new_wxMDIParentFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
131 PyObject
* _resultobj
;
132 wxMDIParentFrame
* _result
;
136 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
137 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
138 long _arg5
= (long ) wxDEFAULT_FRAME_STYLE
|wxVSCROLL
|wxHSCROLL
;
139 char * _arg6
= (char *) "frame";
140 PyObject
* _argo0
= 0;
141 PyObject
* _obj2
= 0;
143 PyObject
* _obj3
= 0;
145 PyObject
* _obj4
= 0;
146 char *_kwnames
[] = { "parent","id","title","pos","size","style","name", NULL
};
150 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOls:new_wxMDIParentFrame",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
153 if (_argo0
== Py_None
) { _arg0
= NULL
; }
154 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
155 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMDIParentFrame. Expected _wxWindow_p.");
160 _arg2
= wxString_in_helper(_obj2
);
167 if (! wxPoint_helper(_obj3
, &_arg3
))
173 if (! wxSize_helper(_obj4
, &_arg4
))
177 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
178 _result
= (wxMDIParentFrame
*)new_wxMDIParentFrame(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
180 wxPyEndAllowThreads(__tstate
);
181 if (PyErr_Occurred()) return NULL
;
183 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMDIParentFrame_p");
184 _resultobj
= Py_BuildValue("s",_ptemp
);
187 _resultobj
= Py_None
;
196 #define new_wxPreMDIParentFrame() (new wxMDIParentFrame())
197 static PyObject
*_wrap_new_wxPreMDIParentFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
198 PyObject
* _resultobj
;
199 wxMDIParentFrame
* _result
;
200 char *_kwnames
[] = { NULL
};
204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreMDIParentFrame",_kwnames
))
207 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
208 _result
= (wxMDIParentFrame
*)new_wxPreMDIParentFrame();
210 wxPyEndAllowThreads(__tstate
);
211 if (PyErr_Occurred()) return NULL
;
213 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMDIParentFrame_p");
214 _resultobj
= Py_BuildValue("s",_ptemp
);
217 _resultobj
= Py_None
;
222 #define wxMDIParentFrame_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
223 static PyObject
*_wrap_wxMDIParentFrame_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
224 PyObject
* _resultobj
;
226 wxMDIParentFrame
* _arg0
;
230 wxPoint
* _arg4
= (wxPoint
*) &wxDefaultPosition
;
231 wxSize
* _arg5
= (wxSize
*) &wxDefaultSize
;
232 long _arg6
= (long ) wxDEFAULT_FRAME_STYLE
|wxVSCROLL
|wxHSCROLL
;
233 char * _arg7
= (char *) "frame";
234 PyObject
* _argo0
= 0;
235 PyObject
* _argo1
= 0;
236 PyObject
* _obj3
= 0;
238 PyObject
* _obj4
= 0;
240 PyObject
* _obj5
= 0;
241 char *_kwnames
[] = { "self","parent","id","title","pos","size","style","name", NULL
};
244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiO|OOls:wxMDIParentFrame_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_obj5
,&_arg6
,&_arg7
))
247 if (_argo0
== Py_None
) { _arg0
= NULL
; }
248 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
249 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIParentFrame_Create. Expected _wxMDIParentFrame_p.");
254 if (_argo1
== Py_None
) { _arg1
= NULL
; }
255 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
256 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMDIParentFrame_Create. Expected _wxWindow_p.");
261 _arg3
= wxString_in_helper(_obj3
);
268 if (! wxPoint_helper(_obj4
, &_arg4
))
274 if (! wxSize_helper(_obj5
, &_arg5
))
278 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
279 _result
= (bool )wxMDIParentFrame_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,*_arg5
,_arg6
,_arg7
);
281 wxPyEndAllowThreads(__tstate
);
282 if (PyErr_Occurred()) return NULL
;
283 } _resultobj
= Py_BuildValue("i",_result
);
291 #define wxMDIParentFrame_ActivateNext(_swigobj) (_swigobj->ActivateNext())
292 static PyObject
*_wrap_wxMDIParentFrame_ActivateNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
293 PyObject
* _resultobj
;
294 wxMDIParentFrame
* _arg0
;
295 PyObject
* _argo0
= 0;
296 char *_kwnames
[] = { "self", NULL
};
299 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMDIParentFrame_ActivateNext",_kwnames
,&_argo0
))
302 if (_argo0
== Py_None
) { _arg0
= NULL
; }
303 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
304 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIParentFrame_ActivateNext. Expected _wxMDIParentFrame_p.");
309 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
310 wxMDIParentFrame_ActivateNext(_arg0
);
312 wxPyEndAllowThreads(__tstate
);
313 if (PyErr_Occurred()) return NULL
;
314 } Py_INCREF(Py_None
);
315 _resultobj
= Py_None
;
319 #define wxMDIParentFrame_ActivatePrevious(_swigobj) (_swigobj->ActivatePrevious())
320 static PyObject
*_wrap_wxMDIParentFrame_ActivatePrevious(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
321 PyObject
* _resultobj
;
322 wxMDIParentFrame
* _arg0
;
323 PyObject
* _argo0
= 0;
324 char *_kwnames
[] = { "self", NULL
};
327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMDIParentFrame_ActivatePrevious",_kwnames
,&_argo0
))
330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIParentFrame_ActivatePrevious. Expected _wxMDIParentFrame_p.");
337 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
338 wxMDIParentFrame_ActivatePrevious(_arg0
);
340 wxPyEndAllowThreads(__tstate
);
341 if (PyErr_Occurred()) return NULL
;
342 } Py_INCREF(Py_None
);
343 _resultobj
= Py_None
;
347 #define wxMDIParentFrame_ArrangeIcons(_swigobj) (_swigobj->ArrangeIcons())
348 static PyObject
*_wrap_wxMDIParentFrame_ArrangeIcons(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
349 PyObject
* _resultobj
;
350 wxMDIParentFrame
* _arg0
;
351 PyObject
* _argo0
= 0;
352 char *_kwnames
[] = { "self", NULL
};
355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMDIParentFrame_ArrangeIcons",_kwnames
,&_argo0
))
358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIParentFrame_ArrangeIcons. Expected _wxMDIParentFrame_p.");
365 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
366 wxMDIParentFrame_ArrangeIcons(_arg0
);
368 wxPyEndAllowThreads(__tstate
);
369 if (PyErr_Occurred()) return NULL
;
370 } Py_INCREF(Py_None
);
371 _resultobj
= Py_None
;
375 #define wxMDIParentFrame_Cascade(_swigobj) (_swigobj->Cascade())
376 static PyObject
*_wrap_wxMDIParentFrame_Cascade(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
377 PyObject
* _resultobj
;
378 wxMDIParentFrame
* _arg0
;
379 PyObject
* _argo0
= 0;
380 char *_kwnames
[] = { "self", NULL
};
383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMDIParentFrame_Cascade",_kwnames
,&_argo0
))
386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIParentFrame_Cascade. Expected _wxMDIParentFrame_p.");
393 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
394 wxMDIParentFrame_Cascade(_arg0
);
396 wxPyEndAllowThreads(__tstate
);
397 if (PyErr_Occurred()) return NULL
;
398 } Py_INCREF(Py_None
);
399 _resultobj
= Py_None
;
403 #define wxMDIParentFrame_GetActiveChild(_swigobj) (_swigobj->GetActiveChild())
404 static PyObject
*_wrap_wxMDIParentFrame_GetActiveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
405 PyObject
* _resultobj
;
406 wxMDIChildFrame
* _result
;
407 wxMDIParentFrame
* _arg0
;
408 PyObject
* _argo0
= 0;
409 char *_kwnames
[] = { "self", NULL
};
412 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMDIParentFrame_GetActiveChild",_kwnames
,&_argo0
))
415 if (_argo0
== Py_None
) { _arg0
= NULL
; }
416 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIParentFrame_GetActiveChild. Expected _wxMDIParentFrame_p.");
422 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
423 _result
= (wxMDIChildFrame
*)wxMDIParentFrame_GetActiveChild(_arg0
);
425 wxPyEndAllowThreads(__tstate
);
426 if (PyErr_Occurred()) return NULL
;
427 }{ _resultobj
= wxPyMake_wxObject(_result
); }
431 #define wxMDIParentFrame_GetClientWindow(_swigobj) (_swigobj->GetClientWindow())
432 static PyObject
*_wrap_wxMDIParentFrame_GetClientWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
433 PyObject
* _resultobj
;
434 wxMDIClientWindow
* _result
;
435 wxMDIParentFrame
* _arg0
;
436 PyObject
* _argo0
= 0;
437 char *_kwnames
[] = { "self", NULL
};
440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMDIParentFrame_GetClientWindow",_kwnames
,&_argo0
))
443 if (_argo0
== Py_None
) { _arg0
= NULL
; }
444 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIParentFrame_GetClientWindow. Expected _wxMDIParentFrame_p.");
450 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
451 _result
= (wxMDIClientWindow
*)wxMDIParentFrame_GetClientWindow(_arg0
);
453 wxPyEndAllowThreads(__tstate
);
454 if (PyErr_Occurred()) return NULL
;
455 }{ _resultobj
= wxPyMake_wxObject(_result
); }
459 #define wxMDIParentFrame_GetToolBar(_swigobj) (_swigobj->GetToolBar())
460 static PyObject
*_wrap_wxMDIParentFrame_GetToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
461 PyObject
* _resultobj
;
463 wxMDIParentFrame
* _arg0
;
464 PyObject
* _argo0
= 0;
465 char *_kwnames
[] = { "self", NULL
};
468 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMDIParentFrame_GetToolBar",_kwnames
,&_argo0
))
471 if (_argo0
== Py_None
) { _arg0
= NULL
; }
472 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
473 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIParentFrame_GetToolBar. Expected _wxMDIParentFrame_p.");
478 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
479 _result
= (wxWindow
*)wxMDIParentFrame_GetToolBar(_arg0
);
481 wxPyEndAllowThreads(__tstate
);
482 if (PyErr_Occurred()) return NULL
;
483 }{ _resultobj
= wxPyMake_wxObject(_result
); }
487 #define wxMDIParentFrame_Tile(_swigobj) (_swigobj->Tile())
488 static PyObject
*_wrap_wxMDIParentFrame_Tile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
489 PyObject
* _resultobj
;
490 wxMDIParentFrame
* _arg0
;
491 PyObject
* _argo0
= 0;
492 char *_kwnames
[] = { "self", NULL
};
495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMDIParentFrame_Tile",_kwnames
,&_argo0
))
498 if (_argo0
== Py_None
) { _arg0
= NULL
; }
499 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIParentFrame_Tile. Expected _wxMDIParentFrame_p.");
505 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
506 wxMDIParentFrame_Tile(_arg0
);
508 wxPyEndAllowThreads(__tstate
);
509 if (PyErr_Occurred()) return NULL
;
510 } Py_INCREF(Py_None
);
511 _resultobj
= Py_None
;
515 static void *SwigwxMDIChildFrameTowxFrame(void *ptr
) {
516 wxMDIChildFrame
*src
;
518 src
= (wxMDIChildFrame
*) ptr
;
519 dest
= (wxFrame
*) src
;
520 return (void *) dest
;
523 static void *SwigwxMDIChildFrameTowxTopLevelWindow(void *ptr
) {
524 wxMDIChildFrame
*src
;
525 wxTopLevelWindow
*dest
;
526 src
= (wxMDIChildFrame
*) ptr
;
527 dest
= (wxTopLevelWindow
*) src
;
528 return (void *) dest
;
531 static void *SwigwxMDIChildFrameTowxWindow(void *ptr
) {
532 wxMDIChildFrame
*src
;
534 src
= (wxMDIChildFrame
*) ptr
;
535 dest
= (wxWindow
*) src
;
536 return (void *) dest
;
539 static void *SwigwxMDIChildFrameTowxEvtHandler(void *ptr
) {
540 wxMDIChildFrame
*src
;
542 src
= (wxMDIChildFrame
*) ptr
;
543 dest
= (wxEvtHandler
*) src
;
544 return (void *) dest
;
547 static void *SwigwxMDIChildFrameTowxObject(void *ptr
) {
548 wxMDIChildFrame
*src
;
550 src
= (wxMDIChildFrame
*) ptr
;
551 dest
= (wxObject
*) src
;
552 return (void *) dest
;
555 #define new_wxMDIChildFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMDIChildFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
556 static PyObject
*_wrap_new_wxMDIChildFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
557 PyObject
* _resultobj
;
558 wxMDIChildFrame
* _result
;
559 wxMDIParentFrame
* _arg0
;
562 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
563 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
564 long _arg5
= (long ) wxDEFAULT_FRAME_STYLE
;
565 char * _arg6
= (char *) "frame";
566 PyObject
* _argo0
= 0;
567 PyObject
* _obj2
= 0;
569 PyObject
* _obj3
= 0;
571 PyObject
* _obj4
= 0;
572 char *_kwnames
[] = { "parent","id","title","pos","size","style","name", NULL
};
576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOls:new_wxMDIChildFrame",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMDIChildFrame. Expected _wxMDIParentFrame_p.");
586 _arg2
= wxString_in_helper(_obj2
);
593 if (! wxPoint_helper(_obj3
, &_arg3
))
599 if (! wxSize_helper(_obj4
, &_arg4
))
603 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
604 _result
= (wxMDIChildFrame
*)new_wxMDIChildFrame(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
606 wxPyEndAllowThreads(__tstate
);
607 if (PyErr_Occurred()) return NULL
;
609 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMDIChildFrame_p");
610 _resultobj
= Py_BuildValue("s",_ptemp
);
613 _resultobj
= Py_None
;
622 #define new_wxPreMDIChildFrame() (new wxMDIChildFrame())
623 static PyObject
*_wrap_new_wxPreMDIChildFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
624 PyObject
* _resultobj
;
625 wxMDIChildFrame
* _result
;
626 char *_kwnames
[] = { NULL
};
630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreMDIChildFrame",_kwnames
))
633 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
634 _result
= (wxMDIChildFrame
*)new_wxPreMDIChildFrame();
636 wxPyEndAllowThreads(__tstate
);
637 if (PyErr_Occurred()) return NULL
;
639 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMDIChildFrame_p");
640 _resultobj
= Py_BuildValue("s",_ptemp
);
643 _resultobj
= Py_None
;
648 #define wxMDIChildFrame_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
649 static PyObject
*_wrap_wxMDIChildFrame_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
650 PyObject
* _resultobj
;
652 wxMDIChildFrame
* _arg0
;
653 wxMDIParentFrame
* _arg1
;
656 wxPoint
* _arg4
= (wxPoint
*) &wxDefaultPosition
;
657 wxSize
* _arg5
= (wxSize
*) &wxDefaultSize
;
658 long _arg6
= (long ) wxDEFAULT_FRAME_STYLE
;
659 char * _arg7
= (char *) "frame";
660 PyObject
* _argo0
= 0;
661 PyObject
* _argo1
= 0;
662 PyObject
* _obj3
= 0;
664 PyObject
* _obj4
= 0;
666 PyObject
* _obj5
= 0;
667 char *_kwnames
[] = { "self","parent","id","title","pos","size","style","name", NULL
};
670 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiO|OOls:wxMDIChildFrame_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_obj5
,&_arg6
,&_arg7
))
673 if (_argo0
== Py_None
) { _arg0
= NULL
; }
674 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIChildFrame_p")) {
675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIChildFrame_Create. Expected _wxMDIChildFrame_p.");
680 if (_argo1
== Py_None
) { _arg1
= NULL
; }
681 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMDIParentFrame_p")) {
682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMDIChildFrame_Create. Expected _wxMDIParentFrame_p.");
687 _arg3
= wxString_in_helper(_obj3
);
694 if (! wxPoint_helper(_obj4
, &_arg4
))
700 if (! wxSize_helper(_obj5
, &_arg5
))
704 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
705 _result
= (bool )wxMDIChildFrame_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,*_arg5
,_arg6
,_arg7
);
707 wxPyEndAllowThreads(__tstate
);
708 if (PyErr_Occurred()) return NULL
;
709 } _resultobj
= Py_BuildValue("i",_result
);
717 #define wxMDIChildFrame_Activate(_swigobj) (_swigobj->Activate())
718 static PyObject
*_wrap_wxMDIChildFrame_Activate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
719 PyObject
* _resultobj
;
720 wxMDIChildFrame
* _arg0
;
721 PyObject
* _argo0
= 0;
722 char *_kwnames
[] = { "self", NULL
};
725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMDIChildFrame_Activate",_kwnames
,&_argo0
))
728 if (_argo0
== Py_None
) { _arg0
= NULL
; }
729 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIChildFrame_p")) {
730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIChildFrame_Activate. Expected _wxMDIChildFrame_p.");
735 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
736 wxMDIChildFrame_Activate(_arg0
);
738 wxPyEndAllowThreads(__tstate
);
739 if (PyErr_Occurred()) return NULL
;
740 } Py_INCREF(Py_None
);
741 _resultobj
= Py_None
;
745 #define wxMDIChildFrame_Maximize(_swigobj,_swigarg0) (_swigobj->Maximize(_swigarg0))
746 static PyObject
*_wrap_wxMDIChildFrame_Maximize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
747 PyObject
* _resultobj
;
748 wxMDIChildFrame
* _arg0
;
750 PyObject
* _argo0
= 0;
752 char *_kwnames
[] = { "self","maximize", NULL
};
755 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMDIChildFrame_Maximize",_kwnames
,&_argo0
,&tempbool1
))
758 if (_argo0
== Py_None
) { _arg0
= NULL
; }
759 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIChildFrame_p")) {
760 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIChildFrame_Maximize. Expected _wxMDIChildFrame_p.");
764 _arg1
= (bool ) tempbool1
;
766 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
767 wxMDIChildFrame_Maximize(_arg0
,_arg1
);
769 wxPyEndAllowThreads(__tstate
);
770 if (PyErr_Occurred()) return NULL
;
771 } Py_INCREF(Py_None
);
772 _resultobj
= Py_None
;
776 #define wxMDIChildFrame_Restore(_swigobj) (_swigobj->Restore())
777 static PyObject
*_wrap_wxMDIChildFrame_Restore(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
778 PyObject
* _resultobj
;
779 wxMDIChildFrame
* _arg0
;
780 PyObject
* _argo0
= 0;
781 char *_kwnames
[] = { "self", NULL
};
784 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMDIChildFrame_Restore",_kwnames
,&_argo0
))
787 if (_argo0
== Py_None
) { _arg0
= NULL
; }
788 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIChildFrame_p")) {
789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIChildFrame_Restore. Expected _wxMDIChildFrame_p.");
794 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
795 wxMDIChildFrame_Restore(_arg0
);
797 wxPyEndAllowThreads(__tstate
);
798 if (PyErr_Occurred()) return NULL
;
799 } Py_INCREF(Py_None
);
800 _resultobj
= Py_None
;
804 static void *SwigwxMDIClientWindowTowxWindow(void *ptr
) {
805 wxMDIClientWindow
*src
;
807 src
= (wxMDIClientWindow
*) ptr
;
808 dest
= (wxWindow
*) src
;
809 return (void *) dest
;
812 static void *SwigwxMDIClientWindowTowxEvtHandler(void *ptr
) {
813 wxMDIClientWindow
*src
;
815 src
= (wxMDIClientWindow
*) ptr
;
816 dest
= (wxEvtHandler
*) src
;
817 return (void *) dest
;
820 static void *SwigwxMDIClientWindowTowxObject(void *ptr
) {
821 wxMDIClientWindow
*src
;
823 src
= (wxMDIClientWindow
*) ptr
;
824 dest
= (wxObject
*) src
;
825 return (void *) dest
;
828 #define new_wxMDIClientWindow(_swigarg0,_swigarg1) (new wxMDIClientWindow(_swigarg0,_swigarg1))
829 static PyObject
*_wrap_new_wxMDIClientWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
830 PyObject
* _resultobj
;
831 wxMDIClientWindow
* _result
;
832 wxMDIParentFrame
* _arg0
;
833 long _arg1
= (long ) 0;
834 PyObject
* _argo0
= 0;
835 char *_kwnames
[] = { "parent","style", NULL
};
839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|l:new_wxMDIClientWindow",_kwnames
,&_argo0
,&_arg1
))
842 if (_argo0
== Py_None
) { _arg0
= NULL
; }
843 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIParentFrame_p")) {
844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMDIClientWindow. Expected _wxMDIParentFrame_p.");
849 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
850 _result
= (wxMDIClientWindow
*)new_wxMDIClientWindow(_arg0
,_arg1
);
852 wxPyEndAllowThreads(__tstate
);
853 if (PyErr_Occurred()) return NULL
;
855 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMDIClientWindow_p");
856 _resultobj
= Py_BuildValue("s",_ptemp
);
859 _resultobj
= Py_None
;
864 #define new_wxPreMDIClientWindow() (new wxMDIClientWindow())
865 static PyObject
*_wrap_new_wxPreMDIClientWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
866 PyObject
* _resultobj
;
867 wxMDIClientWindow
* _result
;
868 char *_kwnames
[] = { NULL
};
872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreMDIClientWindow",_kwnames
))
875 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
876 _result
= (wxMDIClientWindow
*)new_wxPreMDIClientWindow();
878 wxPyEndAllowThreads(__tstate
);
879 if (PyErr_Occurred()) return NULL
;
881 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMDIClientWindow_p");
882 _resultobj
= Py_BuildValue("s",_ptemp
);
885 _resultobj
= Py_None
;
890 #define wxMDIClientWindow_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1))
891 static PyObject
*_wrap_wxMDIClientWindow_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
892 PyObject
* _resultobj
;
894 wxMDIClientWindow
* _arg0
;
895 wxMDIParentFrame
* _arg1
;
896 long _arg2
= (long ) 0;
897 PyObject
* _argo0
= 0;
898 PyObject
* _argo1
= 0;
899 char *_kwnames
[] = { "self","parent","style", NULL
};
902 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|l:wxMDIClientWindow_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
905 if (_argo0
== Py_None
) { _arg0
= NULL
; }
906 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMDIClientWindow_p")) {
907 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMDIClientWindow_Create. Expected _wxMDIClientWindow_p.");
912 if (_argo1
== Py_None
) { _arg1
= NULL
; }
913 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMDIParentFrame_p")) {
914 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMDIClientWindow_Create. Expected _wxMDIParentFrame_p.");
919 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
920 _result
= (bool )wxMDIClientWindow_Create(_arg0
,_arg1
,_arg2
);
922 wxPyEndAllowThreads(__tstate
);
923 if (PyErr_Occurred()) return NULL
;
924 } _resultobj
= Py_BuildValue("i",_result
);
928 static PyMethodDef mdicMethods
[] = {
929 { "wxMDIClientWindow_Create", (PyCFunction
) _wrap_wxMDIClientWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
930 { "new_wxPreMDIClientWindow", (PyCFunction
) _wrap_new_wxPreMDIClientWindow
, METH_VARARGS
| METH_KEYWORDS
},
931 { "new_wxMDIClientWindow", (PyCFunction
) _wrap_new_wxMDIClientWindow
, METH_VARARGS
| METH_KEYWORDS
},
932 { "wxMDIChildFrame_Restore", (PyCFunction
) _wrap_wxMDIChildFrame_Restore
, METH_VARARGS
| METH_KEYWORDS
},
933 { "wxMDIChildFrame_Maximize", (PyCFunction
) _wrap_wxMDIChildFrame_Maximize
, METH_VARARGS
| METH_KEYWORDS
},
934 { "wxMDIChildFrame_Activate", (PyCFunction
) _wrap_wxMDIChildFrame_Activate
, METH_VARARGS
| METH_KEYWORDS
},
935 { "wxMDIChildFrame_Create", (PyCFunction
) _wrap_wxMDIChildFrame_Create
, METH_VARARGS
| METH_KEYWORDS
},
936 { "new_wxPreMDIChildFrame", (PyCFunction
) _wrap_new_wxPreMDIChildFrame
, METH_VARARGS
| METH_KEYWORDS
},
937 { "new_wxMDIChildFrame", (PyCFunction
) _wrap_new_wxMDIChildFrame
, METH_VARARGS
| METH_KEYWORDS
},
938 { "wxMDIParentFrame_Tile", (PyCFunction
) _wrap_wxMDIParentFrame_Tile
, METH_VARARGS
| METH_KEYWORDS
},
939 { "wxMDIParentFrame_GetToolBar", (PyCFunction
) _wrap_wxMDIParentFrame_GetToolBar
, METH_VARARGS
| METH_KEYWORDS
},
940 { "wxMDIParentFrame_GetClientWindow", (PyCFunction
) _wrap_wxMDIParentFrame_GetClientWindow
, METH_VARARGS
| METH_KEYWORDS
},
941 { "wxMDIParentFrame_GetActiveChild", (PyCFunction
) _wrap_wxMDIParentFrame_GetActiveChild
, METH_VARARGS
| METH_KEYWORDS
},
942 { "wxMDIParentFrame_Cascade", (PyCFunction
) _wrap_wxMDIParentFrame_Cascade
, METH_VARARGS
| METH_KEYWORDS
},
943 { "wxMDIParentFrame_ArrangeIcons", (PyCFunction
) _wrap_wxMDIParentFrame_ArrangeIcons
, METH_VARARGS
| METH_KEYWORDS
},
944 { "wxMDIParentFrame_ActivatePrevious", (PyCFunction
) _wrap_wxMDIParentFrame_ActivatePrevious
, METH_VARARGS
| METH_KEYWORDS
},
945 { "wxMDIParentFrame_ActivateNext", (PyCFunction
) _wrap_wxMDIParentFrame_ActivateNext
, METH_VARARGS
| METH_KEYWORDS
},
946 { "wxMDIParentFrame_Create", (PyCFunction
) _wrap_wxMDIParentFrame_Create
, METH_VARARGS
| METH_KEYWORDS
},
947 { "new_wxPreMDIParentFrame", (PyCFunction
) _wrap_new_wxPreMDIParentFrame
, METH_VARARGS
| METH_KEYWORDS
},
948 { "new_wxMDIParentFrame", (PyCFunction
) _wrap_new_wxMDIParentFrame
, METH_VARARGS
| METH_KEYWORDS
},
955 * This table is used by the pointer type-checker
957 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
958 { "_signed_long","_long",0},
959 { "_wxPrintQuality","_wxCoord",0},
960 { "_wxPrintQuality","_int",0},
961 { "_wxPrintQuality","_signed_int",0},
962 { "_wxPrintQuality","_unsigned_int",0},
963 { "_wxPrintQuality","_wxWindowID",0},
964 { "_wxPrintQuality","_uint",0},
965 { "_wxPrintQuality","_EBool",0},
966 { "_wxPrintQuality","_size_t",0},
967 { "_wxPrintQuality","_time_t",0},
968 { "_byte","_unsigned_char",0},
969 { "_long","_unsigned_long",0},
970 { "_long","_signed_long",0},
971 { "_size_t","_wxCoord",0},
972 { "_size_t","_wxPrintQuality",0},
973 { "_size_t","_time_t",0},
974 { "_size_t","_unsigned_int",0},
975 { "_size_t","_int",0},
976 { "_size_t","_wxWindowID",0},
977 { "_size_t","_uint",0},
978 { "_wxTopLevelWindow","_wxMDIChildFrame",SwigwxMDIChildFrameTowxTopLevelWindow
},
979 { "_wxTopLevelWindow","_wxMDIParentFrame",SwigwxMDIParentFrameTowxTopLevelWindow
},
980 { "_uint","_wxCoord",0},
981 { "_uint","_wxPrintQuality",0},
982 { "_uint","_time_t",0},
983 { "_uint","_size_t",0},
984 { "_uint","_unsigned_int",0},
986 { "_uint","_wxWindowID",0},
987 { "_wxChar","_char",0},
988 { "_char","_wxChar",0},
989 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
990 { "_EBool","_wxCoord",0},
991 { "_EBool","_wxPrintQuality",0},
992 { "_EBool","_signed_int",0},
993 { "_EBool","_int",0},
994 { "_EBool","_wxWindowID",0},
995 { "_unsigned_long","_long",0},
996 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
997 { "_signed_int","_wxCoord",0},
998 { "_signed_int","_wxPrintQuality",0},
999 { "_signed_int","_EBool",0},
1000 { "_signed_int","_wxWindowID",0},
1001 { "_signed_int","_int",0},
1002 { "_WXTYPE","_short",0},
1003 { "_WXTYPE","_signed_short",0},
1004 { "_WXTYPE","_unsigned_short",0},
1005 { "_unsigned_short","_WXTYPE",0},
1006 { "_unsigned_short","_short",0},
1007 { "_wxObject","_wxMDIClientWindow",SwigwxMDIClientWindowTowxObject
},
1008 { "_wxObject","_wxMDIChildFrame",SwigwxMDIChildFrameTowxObject
},
1009 { "_wxObject","_wxMDIParentFrame",SwigwxMDIParentFrameTowxObject
},
1010 { "_signed_short","_WXTYPE",0},
1011 { "_signed_short","_short",0},
1012 { "_unsigned_char","_byte",0},
1013 { "_unsigned_int","_wxCoord",0},
1014 { "_unsigned_int","_wxPrintQuality",0},
1015 { "_unsigned_int","_time_t",0},
1016 { "_unsigned_int","_size_t",0},
1017 { "_unsigned_int","_uint",0},
1018 { "_unsigned_int","_wxWindowID",0},
1019 { "_unsigned_int","_int",0},
1020 { "_short","_WXTYPE",0},
1021 { "_short","_unsigned_short",0},
1022 { "_short","_signed_short",0},
1023 { "_wxFrame","_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame
},
1024 { "_wxFrame","_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame
},
1025 { "_wxWindowID","_wxCoord",0},
1026 { "_wxWindowID","_wxPrintQuality",0},
1027 { "_wxWindowID","_time_t",0},
1028 { "_wxWindowID","_size_t",0},
1029 { "_wxWindowID","_EBool",0},
1030 { "_wxWindowID","_uint",0},
1031 { "_wxWindowID","_int",0},
1032 { "_wxWindowID","_signed_int",0},
1033 { "_wxWindowID","_unsigned_int",0},
1034 { "_int","_wxCoord",0},
1035 { "_int","_wxPrintQuality",0},
1036 { "_int","_time_t",0},
1037 { "_int","_size_t",0},
1038 { "_int","_EBool",0},
1039 { "_int","_uint",0},
1040 { "_int","_wxWindowID",0},
1041 { "_int","_unsigned_int",0},
1042 { "_int","_signed_int",0},
1043 { "_time_t","_wxCoord",0},
1044 { "_time_t","_wxPrintQuality",0},
1045 { "_time_t","_unsigned_int",0},
1046 { "_time_t","_int",0},
1047 { "_time_t","_wxWindowID",0},
1048 { "_time_t","_uint",0},
1049 { "_time_t","_size_t",0},
1050 { "_wxCoord","_int",0},
1051 { "_wxCoord","_signed_int",0},
1052 { "_wxCoord","_unsigned_int",0},
1053 { "_wxCoord","_wxWindowID",0},
1054 { "_wxCoord","_uint",0},
1055 { "_wxCoord","_EBool",0},
1056 { "_wxCoord","_size_t",0},
1057 { "_wxCoord","_time_t",0},
1058 { "_wxCoord","_wxPrintQuality",0},
1059 { "_wxEvtHandler","_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler
},
1060 { "_wxEvtHandler","_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler
},
1061 { "_wxEvtHandler","_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler
},
1062 { "_wxWindow","_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow
},
1063 { "_wxWindow","_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow
},
1064 { "_wxWindow","_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow
},
1067 static PyObject
*SWIG_globals
;
1071 SWIGEXPORT(void) initmdic() {
1073 SWIG_globals
= SWIG_newvarlink();
1074 m
= Py_InitModule("mdic", mdicMethods
);
1075 d
= PyModule_GetDict(m
);
1076 PyDict_SetItemString(d
,"IDM_WINDOWTILE", PyInt_FromLong((long) 4001));
1077 PyDict_SetItemString(d
,"IDM_WINDOWTILEHOR", PyInt_FromLong((long) 4001));
1078 PyDict_SetItemString(d
,"IDM_WINDOWCASCADE", PyInt_FromLong((long) 4002));
1079 PyDict_SetItemString(d
,"IDM_WINDOWICONS", PyInt_FromLong((long) 4003));
1080 PyDict_SetItemString(d
,"IDM_WINDOWNEXT", PyInt_FromLong((long) 4004));
1081 PyDict_SetItemString(d
,"IDM_WINDOWTILEVERT", PyInt_FromLong((long) 4005));
1082 PyDict_SetItemString(d
,"wxFIRST_MDI_CHILD", PyInt_FromLong((long) 4100));
1083 PyDict_SetItemString(d
,"wxLAST_MDI_CHILD", PyInt_FromLong((long) 4600));
1086 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
1087 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);