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