]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/frames.cpp
highlight the focused item in non report mode too
[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 #define wxFrame_IsFullScreen(_swigobj) (_swigobj->IsFullScreen())
1082 static PyObject *_wrap_wxFrame_IsFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
1083 PyObject * _resultobj;
1084 bool _result;
1085 wxFrame * _arg0;
1086 PyObject * _argo0 = 0;
1087 char *_kwnames[] = { "self", NULL };
1088
1089 self = self;
1090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_IsFullScreen",_kwnames,&_argo0))
1091 return NULL;
1092 if (_argo0) {
1093 if (_argo0 == Py_None) { _arg0 = NULL; }
1094 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1095 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_IsFullScreen. Expected _wxFrame_p.");
1096 return NULL;
1097 }
1098 }
1099 {
1100 wxPy_BEGIN_ALLOW_THREADS;
1101 _result = (bool )wxFrame_IsFullScreen(_arg0);
1102
1103 wxPy_END_ALLOW_THREADS;
1104 if (PyErr_Occurred()) return NULL;
1105 } _resultobj = Py_BuildValue("i",_result);
1106 return _resultobj;
1107 }
1108
1109 static void *SwigwxMiniFrameTowxFrame(void *ptr) {
1110 wxMiniFrame *src;
1111 wxFrame *dest;
1112 src = (wxMiniFrame *) ptr;
1113 dest = (wxFrame *) src;
1114 return (void *) dest;
1115 }
1116
1117 static void *SwigwxMiniFrameTowxWindow(void *ptr) {
1118 wxMiniFrame *src;
1119 wxWindow *dest;
1120 src = (wxMiniFrame *) ptr;
1121 dest = (wxWindow *) src;
1122 return (void *) dest;
1123 }
1124
1125 static void *SwigwxMiniFrameTowxEvtHandler(void *ptr) {
1126 wxMiniFrame *src;
1127 wxEvtHandler *dest;
1128 src = (wxMiniFrame *) ptr;
1129 dest = (wxEvtHandler *) src;
1130 return (void *) dest;
1131 }
1132
1133 static void *SwigwxMiniFrameTowxObject(void *ptr) {
1134 wxMiniFrame *src;
1135 wxObject *dest;
1136 src = (wxMiniFrame *) ptr;
1137 dest = (wxObject *) src;
1138 return (void *) dest;
1139 }
1140
1141 #define new_wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
1142 static PyObject *_wrap_new_wxMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
1143 PyObject * _resultobj;
1144 wxMiniFrame * _result;
1145 wxWindow * _arg0;
1146 wxWindowID _arg1;
1147 wxString * _arg2;
1148 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
1149 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
1150 long _arg5 = (long ) wxDEFAULT_FRAME_STYLE;
1151 char * _arg6 = (char *) "frame";
1152 PyObject * _argo0 = 0;
1153 PyObject * _obj2 = 0;
1154 wxPoint temp;
1155 PyObject * _obj3 = 0;
1156 wxSize temp0;
1157 PyObject * _obj4 = 0;
1158 char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL };
1159 char _ptemp[128];
1160
1161 self = self;
1162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxMiniFrame",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
1163 return NULL;
1164 if (_argo0) {
1165 if (_argo0 == Py_None) { _arg0 = NULL; }
1166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMiniFrame. Expected _wxWindow_p.");
1168 return NULL;
1169 }
1170 }
1171 {
1172 #if PYTHON_API_VERSION >= 1009
1173 char* tmpPtr; int tmpSize;
1174 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
1175 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1176 return NULL;
1177 }
1178 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
1179 return NULL;
1180 _arg2 = new wxString(tmpPtr, tmpSize);
1181 #else
1182 if (!PyString_Check(_obj2)) {
1183 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1184 return NULL;
1185 }
1186 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
1187 #endif
1188 }
1189 if (_obj3)
1190 {
1191 _arg3 = &temp;
1192 if (! wxPoint_helper(_obj3, &_arg3))
1193 return NULL;
1194 }
1195 if (_obj4)
1196 {
1197 _arg4 = &temp0;
1198 if (! wxSize_helper(_obj4, &_arg4))
1199 return NULL;
1200 }
1201 {
1202 wxPy_BEGIN_ALLOW_THREADS;
1203 _result = (wxMiniFrame *)new_wxMiniFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
1204
1205 wxPy_END_ALLOW_THREADS;
1206 if (PyErr_Occurred()) return NULL;
1207 } if (_result) {
1208 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMiniFrame_p");
1209 _resultobj = Py_BuildValue("s",_ptemp);
1210 } else {
1211 Py_INCREF(Py_None);
1212 _resultobj = Py_None;
1213 }
1214 {
1215 if (_obj2)
1216 delete _arg2;
1217 }
1218 return _resultobj;
1219 }
1220
1221 static PyMethodDef framescMethods[] = {
1222 { "new_wxMiniFrame", (PyCFunction) _wrap_new_wxMiniFrame, METH_VARARGS | METH_KEYWORDS },
1223 { "wxFrame_IsFullScreen", (PyCFunction) _wrap_wxFrame_IsFullScreen, METH_VARARGS | METH_KEYWORDS },
1224 { "wxFrame_ShowFullScreen", (PyCFunction) _wrap_wxFrame_ShowFullScreen, METH_VARARGS | METH_KEYWORDS },
1225 { "wxFrame_ProcessCommand", (PyCFunction) _wrap_wxFrame_ProcessCommand, METH_VARARGS | METH_KEYWORDS },
1226 { "wxFrame_Command", (PyCFunction) _wrap_wxFrame_Command, METH_VARARGS | METH_KEYWORDS },
1227 { "wxFrame_GetClientAreaOrigin", (PyCFunction) _wrap_wxFrame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS },
1228 { "wxFrame_MakeModal", (PyCFunction) _wrap_wxFrame_MakeModal, METH_VARARGS | METH_KEYWORDS },
1229 { "wxFrame_SetToolBar", (PyCFunction) _wrap_wxFrame_SetToolBar, METH_VARARGS | METH_KEYWORDS },
1230 { "wxFrame_SetTitle", (PyCFunction) _wrap_wxFrame_SetTitle, METH_VARARGS | METH_KEYWORDS },
1231 { "wxFrame_SetStatusWidths", (PyCFunction) _wrap_wxFrame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS },
1232 { "wxFrame_SetStatusText", (PyCFunction) _wrap_wxFrame_SetStatusText, METH_VARARGS | METH_KEYWORDS },
1233 { "wxFrame_SetStatusBar", (PyCFunction) _wrap_wxFrame_SetStatusBar, METH_VARARGS | METH_KEYWORDS },
1234 { "wxFrame_SetMenuBar", (PyCFunction) _wrap_wxFrame_SetMenuBar, METH_VARARGS | METH_KEYWORDS },
1235 { "wxFrame_SetIcon", (PyCFunction) _wrap_wxFrame_SetIcon, METH_VARARGS | METH_KEYWORDS },
1236 { "wxFrame_SetAcceleratorTable", (PyCFunction) _wrap_wxFrame_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
1237 { "wxFrame_Restore", (PyCFunction) _wrap_wxFrame_Restore, METH_VARARGS | METH_KEYWORDS },
1238 { "wxFrame_IsMaximized", (PyCFunction) _wrap_wxFrame_IsMaximized, METH_VARARGS | METH_KEYWORDS },
1239 { "wxFrame_Maximize", (PyCFunction) _wrap_wxFrame_Maximize, METH_VARARGS | METH_KEYWORDS },
1240 { "wxFrame_IsIconized", (PyCFunction) _wrap_wxFrame_IsIconized, METH_VARARGS | METH_KEYWORDS },
1241 { "wxFrame_Iconize", (PyCFunction) _wrap_wxFrame_Iconize, METH_VARARGS | METH_KEYWORDS },
1242 { "wxFrame_GetToolBar", (PyCFunction) _wrap_wxFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS },
1243 { "wxFrame_GetTitle", (PyCFunction) _wrap_wxFrame_GetTitle, METH_VARARGS | METH_KEYWORDS },
1244 { "wxFrame_GetStatusBar", (PyCFunction) _wrap_wxFrame_GetStatusBar, METH_VARARGS | METH_KEYWORDS },
1245 { "wxFrame_GetMenuBar", (PyCFunction) _wrap_wxFrame_GetMenuBar, METH_VARARGS | METH_KEYWORDS },
1246 { "wxFrame_GetIcon", (PyCFunction) _wrap_wxFrame_GetIcon, METH_VARARGS | METH_KEYWORDS },
1247 { "wxFrame_CreateToolBar", (PyCFunction) _wrap_wxFrame_CreateToolBar, METH_VARARGS | METH_KEYWORDS },
1248 { "wxFrame_CreateStatusBar", (PyCFunction) _wrap_wxFrame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS },
1249 { "wxFrame_Centre", (PyCFunction) _wrap_wxFrame_Centre, METH_VARARGS | METH_KEYWORDS },
1250 { "new_wxFrame", (PyCFunction) _wrap_new_wxFrame, METH_VARARGS | METH_KEYWORDS },
1251 { NULL, NULL }
1252 };
1253 #ifdef __cplusplus
1254 }
1255 #endif
1256 /*
1257 * This table is used by the pointer type-checker
1258 */
1259 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
1260 { "_signed_long","_long",0},
1261 { "_wxPrintQuality","_wxCoord",0},
1262 { "_wxPrintQuality","_int",0},
1263 { "_wxPrintQuality","_signed_int",0},
1264 { "_wxPrintQuality","_unsigned_int",0},
1265 { "_wxPrintQuality","_wxWindowID",0},
1266 { "_wxPrintQuality","_uint",0},
1267 { "_wxPrintQuality","_EBool",0},
1268 { "_wxPrintQuality","_size_t",0},
1269 { "_wxPrintQuality","_time_t",0},
1270 { "_byte","_unsigned_char",0},
1271 { "_long","_unsigned_long",0},
1272 { "_long","_signed_long",0},
1273 { "_size_t","_wxCoord",0},
1274 { "_size_t","_wxPrintQuality",0},
1275 { "_size_t","_time_t",0},
1276 { "_size_t","_unsigned_int",0},
1277 { "_size_t","_int",0},
1278 { "_size_t","_wxWindowID",0},
1279 { "_size_t","_uint",0},
1280 { "_uint","_wxCoord",0},
1281 { "_uint","_wxPrintQuality",0},
1282 { "_uint","_time_t",0},
1283 { "_uint","_size_t",0},
1284 { "_uint","_unsigned_int",0},
1285 { "_uint","_int",0},
1286 { "_uint","_wxWindowID",0},
1287 { "_wxChar","_char",0},
1288 { "_char","_wxChar",0},
1289 { "_EBool","_wxCoord",0},
1290 { "_EBool","_wxPrintQuality",0},
1291 { "_EBool","_signed_int",0},
1292 { "_EBool","_int",0},
1293 { "_EBool","_wxWindowID",0},
1294 { "_unsigned_long","_long",0},
1295 { "_signed_int","_wxCoord",0},
1296 { "_signed_int","_wxPrintQuality",0},
1297 { "_signed_int","_EBool",0},
1298 { "_signed_int","_wxWindowID",0},
1299 { "_signed_int","_int",0},
1300 { "_WXTYPE","_short",0},
1301 { "_WXTYPE","_signed_short",0},
1302 { "_WXTYPE","_unsigned_short",0},
1303 { "_unsigned_short","_WXTYPE",0},
1304 { "_unsigned_short","_short",0},
1305 { "_wxObject","_wxMiniFrame",SwigwxMiniFrameTowxObject},
1306 { "_wxObject","_wxFrame",SwigwxFrameTowxObject},
1307 { "_signed_short","_WXTYPE",0},
1308 { "_signed_short","_short",0},
1309 { "_unsigned_char","_byte",0},
1310 { "_unsigned_int","_wxCoord",0},
1311 { "_unsigned_int","_wxPrintQuality",0},
1312 { "_unsigned_int","_time_t",0},
1313 { "_unsigned_int","_size_t",0},
1314 { "_unsigned_int","_uint",0},
1315 { "_unsigned_int","_wxWindowID",0},
1316 { "_unsigned_int","_int",0},
1317 { "_short","_WXTYPE",0},
1318 { "_short","_unsigned_short",0},
1319 { "_short","_signed_short",0},
1320 { "_wxFrame","_wxMiniFrame",SwigwxMiniFrameTowxFrame},
1321 { "_wxWindowID","_wxCoord",0},
1322 { "_wxWindowID","_wxPrintQuality",0},
1323 { "_wxWindowID","_time_t",0},
1324 { "_wxWindowID","_size_t",0},
1325 { "_wxWindowID","_EBool",0},
1326 { "_wxWindowID","_uint",0},
1327 { "_wxWindowID","_int",0},
1328 { "_wxWindowID","_signed_int",0},
1329 { "_wxWindowID","_unsigned_int",0},
1330 { "_int","_wxCoord",0},
1331 { "_int","_wxPrintQuality",0},
1332 { "_int","_time_t",0},
1333 { "_int","_size_t",0},
1334 { "_int","_EBool",0},
1335 { "_int","_uint",0},
1336 { "_int","_wxWindowID",0},
1337 { "_int","_unsigned_int",0},
1338 { "_int","_signed_int",0},
1339 { "_time_t","_wxCoord",0},
1340 { "_time_t","_wxPrintQuality",0},
1341 { "_time_t","_unsigned_int",0},
1342 { "_time_t","_int",0},
1343 { "_time_t","_wxWindowID",0},
1344 { "_time_t","_uint",0},
1345 { "_time_t","_size_t",0},
1346 { "_wxCoord","_int",0},
1347 { "_wxCoord","_signed_int",0},
1348 { "_wxCoord","_unsigned_int",0},
1349 { "_wxCoord","_wxWindowID",0},
1350 { "_wxCoord","_uint",0},
1351 { "_wxCoord","_EBool",0},
1352 { "_wxCoord","_size_t",0},
1353 { "_wxCoord","_time_t",0},
1354 { "_wxCoord","_wxPrintQuality",0},
1355 { "_wxEvtHandler","_wxMiniFrame",SwigwxMiniFrameTowxEvtHandler},
1356 { "_wxEvtHandler","_wxFrame",SwigwxFrameTowxEvtHandler},
1357 { "_wxWindow","_wxMiniFrame",SwigwxMiniFrameTowxWindow},
1358 { "_wxWindow","_wxFrame",SwigwxFrameTowxWindow},
1359 {0,0,0}};
1360
1361 static PyObject *SWIG_globals;
1362 #ifdef __cplusplus
1363 extern "C"
1364 #endif
1365 SWIGEXPORT(void) initframesc() {
1366 PyObject *m, *d;
1367 SWIG_globals = SWIG_newvarlink();
1368 m = Py_InitModule("framesc", framescMethods);
1369 d = PyModule_GetDict(m);
1370 PyDict_SetItemString(d,"wxFULLSCREEN_NOMENUBAR", PyInt_FromLong((long) wxFULLSCREEN_NOMENUBAR));
1371 PyDict_SetItemString(d,"wxFULLSCREEN_NOTOOLBAR", PyInt_FromLong((long) wxFULLSCREEN_NOTOOLBAR));
1372 PyDict_SetItemString(d,"wxFULLSCREEN_NOSTATUSBAR", PyInt_FromLong((long) wxFULLSCREEN_NOSTATUSBAR));
1373 PyDict_SetItemString(d,"wxFULLSCREEN_NOBORDER", PyInt_FromLong((long) wxFULLSCREEN_NOBORDER));
1374 PyDict_SetItemString(d,"wxFULLSCREEN_NOCAPTION", PyInt_FromLong((long) wxFULLSCREEN_NOCAPTION));
1375 PyDict_SetItemString(d,"wxFULLSCREEN_ALL", PyInt_FromLong((long) wxFULLSCREEN_ALL));
1376 {
1377 int i;
1378 for (i = 0; _swig_mapping[i].n1; i++)
1379 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
1380 }
1381 }