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