]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/windows.cpp
Commented out the bitmap-greying code until I have time to debug it
[wxWidgets.git] / wxPython / src / mac / windows.cpp
CommitLineData
e6056257
RD
1/*
2 * FILE : src/mac/windows.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
42extern "C" {
43#endif
44
45extern void SWIG_MakePtr(char *, void *, char *);
46extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47extern char *SWIG_GetPtr(char *, void **, char *);
48extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50extern PyObject *SWIG_newvarlink(void);
51#ifdef __cplusplus
52}
53#endif
54#define SWIG_init initwindowsc
55
56#define SWIG_name "windowsc"
57
58#include "helpers.h"
59#include <wx/menuitem.h>
60#include <wx/tooltip.h>
61
62
63static 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 required";
93#endif
94
e6056257
RD
95class wxPyValidator : public wxValidator {
96 DECLARE_DYNAMIC_CLASS(wxPyValidator);
97public:
98 wxPyValidator() {
99 }
100
101 ~wxPyValidator() {
102 }
103
104 wxObject* Clone() const {
105 wxPyValidator* ptr = NULL;
106 wxPyValidator* self = (wxPyValidator*)this;
107
0e2ff151 108 wxPyBeginBlockThreads();
e6056257
RD
109 if (self->m_myInst.findCallback("Clone")) {
110 PyObject* ro;
111 ro = self->m_myInst.callCallbackObj(Py_BuildValue("()"));
112 if (ro) {
113 SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p");
114 Py_DECREF(ro);
115 }
116 }
0e2ff151 117 wxPyEndBlockThreads();
e6056257
RD
118
119 // This is very dangerous!!! But is the only way I could find
120 // to squash a memory leak. Currently it is okay, but if the
121 // validator architecture in wxWindows ever changes, problems
122 // could arise.
123 delete self;
124 return ptr;
125 }
126
127
128 DEC_PYCALLBACK_BOOL_WXWIN(Validate);
129 DEC_PYCALLBACK_BOOL_(TransferToWindow);
130 DEC_PYCALLBACK_BOOL_(TransferFromWindow);
131
132 PYPRIVATE;
133};
134
135IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate);
136IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow);
137IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow);
138
139IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator);
140
141#ifdef __cplusplus
142extern "C" {
143#endif
144static void *SwigwxEvtHandlerTowxObject(void *ptr) {
145 wxEvtHandler *src;
146 wxObject *dest;
147 src = (wxEvtHandler *) ptr;
148 dest = (wxObject *) src;
149 return (void *) dest;
150}
151
152#define new_wxEvtHandler() (new wxEvtHandler())
153static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
154 PyObject * _resultobj;
155 wxEvtHandler * _result;
156 char *_kwnames[] = { NULL };
157 char _ptemp[128];
158
159 self = self;
160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames))
161 return NULL;
162{
0e2ff151 163 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
164 _result = (wxEvtHandler *)new_wxEvtHandler();
165
0e2ff151 166 wxPyEndAllowThreads(__tstate);
e6056257
RD
167 if (PyErr_Occurred()) return NULL;
168} if (_result) {
169 SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p");
170 _resultobj = Py_BuildValue("s",_ptemp);
171 } else {
172 Py_INCREF(Py_None);
173 _resultobj = Py_None;
174 }
175 return _resultobj;
176}
177
178#define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0))
179static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
180 PyObject * _resultobj;
181 bool _result;
182 wxEvtHandler * _arg0;
183 wxEvent * _arg1;
184 PyObject * _argo0 = 0;
185 PyObject * _argo1 = 0;
186 char *_kwnames[] = { "self","event", NULL };
187
188 self = self;
189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1))
190 return NULL;
191 if (_argo0) {
192 if (_argo0 == Py_None) { _arg0 = NULL; }
193 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
194 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p.");
195 return NULL;
196 }
197 }
198 if (_argo1) {
199 if (_argo1 == Py_None) { _arg1 = NULL; }
200 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) {
201 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p.");
202 return NULL;
203 }
204 }
205{
0e2ff151 206 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
207 _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1);
208
0e2ff151 209 wxPyEndAllowThreads(__tstate);
e6056257
RD
210 if (PyErr_Occurred()) return NULL;
211} _resultobj = Py_BuildValue("i",_result);
212 return _resultobj;
213}
214
215#define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0))
216static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
217 PyObject * _resultobj;
218 wxEvtHandler * _arg0;
219 wxEvent * _arg1;
220 PyObject * _argo0 = 0;
221 PyObject * _argo1 = 0;
222 char *_kwnames[] = { "self","event", NULL };
223
224 self = self;
225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1))
226 return NULL;
227 if (_argo0) {
228 if (_argo0 == Py_None) { _arg0 = NULL; }
229 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
230 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p.");
231 return NULL;
232 }
233 }
234 if (_argo1) {
235 if (_argo1 == Py_None) { _arg1 = NULL; }
236 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) {
237 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p.");
238 return NULL;
239 }
240 }
241{
0e2ff151 242 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
243 wxEvtHandler_AddPendingEvent(_arg0,*_arg1);
244
0e2ff151 245 wxPyEndAllowThreads(__tstate);
e6056257
RD
246 if (PyErr_Occurred()) return NULL;
247} Py_INCREF(Py_None);
248 _resultobj = Py_None;
249 return _resultobj;
250}
251
252#define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled())
253static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
254 PyObject * _resultobj;
255 bool _result;
256 wxEvtHandler * _arg0;
257 PyObject * _argo0 = 0;
258 char *_kwnames[] = { "self", NULL };
259
260 self = self;
261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0))
262 return NULL;
263 if (_argo0) {
264 if (_argo0 == Py_None) { _arg0 = NULL; }
265 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
266 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
267 return NULL;
268 }
269 }
270{
0e2ff151 271 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
272 _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0);
273
0e2ff151 274 wxPyEndAllowThreads(__tstate);
e6056257
RD
275 if (PyErr_Occurred()) return NULL;
276} _resultobj = Py_BuildValue("i",_result);
277 return _resultobj;
278}
279
280#define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0))
281static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
282 PyObject * _resultobj;
283 wxEvtHandler * _arg0;
284 bool _arg1;
285 PyObject * _argo0 = 0;
286 int tempbool1;
287 char *_kwnames[] = { "self","enabled", NULL };
288
289 self = self;
290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1))
291 return NULL;
292 if (_argo0) {
293 if (_argo0 == Py_None) { _arg0 = NULL; }
294 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
295 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
296 return NULL;
297 }
298 }
299 _arg1 = (bool ) tempbool1;
300{
0e2ff151 301 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
302 wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1);
303
0e2ff151 304 wxPyEndAllowThreads(__tstate);
e6056257
RD
305 if (PyErr_Occurred()) return NULL;
306} Py_INCREF(Py_None);
307 _resultobj = Py_None;
308 return _resultobj;
309}
310
311#define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler())
312static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
313 PyObject * _resultobj;
314 wxEvtHandler * _result;
315 wxEvtHandler * _arg0;
316 PyObject * _argo0 = 0;
317 char *_kwnames[] = { "self", NULL };
318
319 self = self;
320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0))
321 return NULL;
322 if (_argo0) {
323 if (_argo0 == Py_None) { _arg0 = NULL; }
324 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
325 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p.");
326 return NULL;
327 }
328 }
329{
0e2ff151 330 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
331 _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0);
332
0e2ff151 333 wxPyEndAllowThreads(__tstate);
e6056257
RD
334 if (PyErr_Occurred()) return NULL;
335}{ _resultobj = wxPyMake_wxObject(_result); }
336 return _resultobj;
337}
338
339#define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler())
340static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
341 PyObject * _resultobj;
342 wxEvtHandler * _result;
343 wxEvtHandler * _arg0;
344 PyObject * _argo0 = 0;
345 char *_kwnames[] = { "self", NULL };
346
347 self = self;
348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0))
349 return NULL;
350 if (_argo0) {
351 if (_argo0 == Py_None) { _arg0 = NULL; }
352 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
353 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p.");
354 return NULL;
355 }
356 }
357{
0e2ff151 358 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
359 _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0);
360
0e2ff151 361 wxPyEndAllowThreads(__tstate);
e6056257
RD
362 if (PyErr_Occurred()) return NULL;
363}{ _resultobj = wxPyMake_wxObject(_result); }
364 return _resultobj;
365}
366
367#define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0))
368static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
369 PyObject * _resultobj;
370 wxEvtHandler * _arg0;
371 wxEvtHandler * _arg1;
372 PyObject * _argo0 = 0;
373 PyObject * _argo1 = 0;
374 char *_kwnames[] = { "self","handler", NULL };
375
376 self = self;
377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1))
378 return NULL;
379 if (_argo0) {
380 if (_argo0 == Py_None) { _arg0 = NULL; }
381 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
382 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
383 return NULL;
384 }
385 }
386 if (_argo1) {
387 if (_argo1 == Py_None) { _arg1 = NULL; }
388 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
389 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
390 return NULL;
391 }
392 }
393{
0e2ff151 394 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
395 wxEvtHandler_SetNextHandler(_arg0,_arg1);
396
0e2ff151 397 wxPyEndAllowThreads(__tstate);
e6056257
RD
398 if (PyErr_Occurred()) return NULL;
399} Py_INCREF(Py_None);
400 _resultobj = Py_None;
401 return _resultobj;
402}
403
404#define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0))
405static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
406 PyObject * _resultobj;
407 wxEvtHandler * _arg0;
408 wxEvtHandler * _arg1;
409 PyObject * _argo0 = 0;
410 PyObject * _argo1 = 0;
411 char *_kwnames[] = { "self","handler", NULL };
412
413 self = self;
414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1))
415 return NULL;
416 if (_argo0) {
417 if (_argo0 == Py_None) { _arg0 = NULL; }
418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
420 return NULL;
421 }
422 }
423 if (_argo1) {
424 if (_argo1 == Py_None) { _arg1 = NULL; }
425 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
426 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
427 return NULL;
428 }
429 }
430{
0e2ff151 431 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
432 wxEvtHandler_SetPreviousHandler(_arg0,_arg1);
433
0e2ff151 434 wxPyEndAllowThreads(__tstate);
e6056257
RD
435 if (PyErr_Occurred()) return NULL;
436} Py_INCREF(Py_None);
437 _resultobj = Py_None;
438 return _resultobj;
439}
440
441static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) {
442 if (PyCallable_Check(func)) {
443 self->Connect(id, lastId, eventType,
444 (wxObjectEventFunction) &wxPyCallback::EventThunker,
445 new wxPyCallback(func));
446 }
742fc581
RD
447 else if (func == Py_None) {
448 self->Disconnect(id, lastId, eventType,
449 (wxObjectEventFunction)
450 &wxPyCallback::EventThunker);
451 }
452 else {
453 PyErr_SetString(PyExc_TypeError, "Expected callable object or None.");
454 }
e6056257
RD
455 }
456static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) {
457 PyObject * _resultobj;
458 wxEvtHandler * _arg0;
459 int _arg1;
460 int _arg2;
461 int _arg3;
462 PyObject * _arg4;
463 PyObject * _argo0 = 0;
464 PyObject * _obj4 = 0;
465 char *_kwnames[] = { "self","id","lastId","eventType","func", NULL };
466
467 self = self;
468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4))
469 return NULL;
470 if (_argo0) {
471 if (_argo0 == Py_None) { _arg0 = NULL; }
472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p.");
474 return NULL;
475 }
476 }
477{
478 _arg4 = _obj4;
479}
480{
0e2ff151 481 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
482 wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4);
483
0e2ff151 484 wxPyEndAllowThreads(__tstate);
e6056257
RD
485 if (PyErr_Occurred()) return NULL;
486} Py_INCREF(Py_None);
487 _resultobj = Py_None;
488 return _resultobj;
489}
490
491static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) {
492 return self->Disconnect(id, lastId, eventType,
493 (wxObjectEventFunction)
494 &wxPyCallback::EventThunker);
495 }
496static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) {
497 PyObject * _resultobj;
498 bool _result;
499 wxEvtHandler * _arg0;
500 int _arg1;
501 int _arg2 = (int ) -1;
502 wxEventType _arg3 = (wxEventType ) wxEVT_NULL;
503 PyObject * _argo0 = 0;
504 char *_kwnames[] = { "self","id","lastId","eventType", NULL };
505
506 self = self;
507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
508 return NULL;
509 if (_argo0) {
510 if (_argo0 == Py_None) { _arg0 = NULL; }
511 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
512 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p.");
513 return NULL;
514 }
515 }
516{
0e2ff151 517 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
518 _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3);
519
0e2ff151 520 wxPyEndAllowThreads(__tstate);
e6056257
RD
521 if (PyErr_Occurred()) return NULL;
522} _resultobj = Py_BuildValue("i",_result);
523 return _resultobj;
524}
525
526static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject * _self) {
527 self->SetClientObject(new wxPyClientData(_self));
528 }
529static PyObject *_wrap_wxEvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
530 PyObject * _resultobj;
531 wxEvtHandler * _arg0;
532 PyObject * _arg1;
533 PyObject * _argo0 = 0;
534 PyObject * _obj1 = 0;
535 char *_kwnames[] = { "self","_self", NULL };
536
537 self = self;
538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler__setOORInfo",_kwnames,&_argo0,&_obj1))
539 return NULL;
540 if (_argo0) {
541 if (_argo0 == Py_None) { _arg0 = NULL; }
542 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
543 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p.");
544 return NULL;
545 }
546 }
547{
548 _arg1 = _obj1;
549}
550{
0e2ff151 551 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
552 wxEvtHandler__setOORInfo(_arg0,_arg1);
553
0e2ff151 554 wxPyEndAllowThreads(__tstate);
e6056257
RD
555 if (PyErr_Occurred()) return NULL;
556} Py_INCREF(Py_None);
557 _resultobj = Py_None;
558 return _resultobj;
559}
560
561static void *SwigwxValidatorTowxEvtHandler(void *ptr) {
562 wxValidator *src;
563 wxEvtHandler *dest;
564 src = (wxValidator *) ptr;
565 dest = (wxEvtHandler *) src;
566 return (void *) dest;
567}
568
569static void *SwigwxValidatorTowxObject(void *ptr) {
570 wxValidator *src;
571 wxObject *dest;
572 src = (wxValidator *) ptr;
573 dest = (wxObject *) src;
574 return (void *) dest;
575}
576
577#define new_wxValidator() (new wxValidator())
578static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
579 PyObject * _resultobj;
580 wxValidator * _result;
581 char *_kwnames[] = { NULL };
582 char _ptemp[128];
583
584 self = self;
585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames))
586 return NULL;
587{
0e2ff151 588 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
589 _result = (wxValidator *)new_wxValidator();
590
0e2ff151 591 wxPyEndAllowThreads(__tstate);
e6056257
RD
592 if (PyErr_Occurred()) return NULL;
593} if (_result) {
594 SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p");
595 _resultobj = Py_BuildValue("s",_ptemp);
596 } else {
597 Py_INCREF(Py_None);
598 _resultobj = Py_None;
599 }
600 return _resultobj;
601}
602
603#define wxValidator_Clone(_swigobj) (_swigobj->Clone())
604static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
605 PyObject * _resultobj;
606 wxValidator * _result;
607 wxValidator * _arg0;
608 PyObject * _argo0 = 0;
609 char *_kwnames[] = { "self", NULL };
610
611 self = self;
612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0))
613 return NULL;
614 if (_argo0) {
615 if (_argo0 == Py_None) { _arg0 = NULL; }
616 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) {
617 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p.");
618 return NULL;
619 }
620 }
621{
0e2ff151 622 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
623 _result = (wxValidator *)wxValidator_Clone(_arg0);
624
0e2ff151 625 wxPyEndAllowThreads(__tstate);
e6056257
RD
626 if (PyErr_Occurred()) return NULL;
627}{ _resultobj = wxPyMake_wxObject(_result); }
628 return _resultobj;
629}
630
631#define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow())
632static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
633 PyObject * _resultobj;
634 wxWindow * _result;
635 wxValidator * _arg0;
636 PyObject * _argo0 = 0;
637 char *_kwnames[] = { "self", NULL };
638
639 self = self;
640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0))
641 return NULL;
642 if (_argo0) {
643 if (_argo0 == Py_None) { _arg0 = NULL; }
644 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) {
645 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p.");
646 return NULL;
647 }
648 }
649{
0e2ff151 650 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
651 _result = (wxWindow *)wxValidator_GetWindow(_arg0);
652
0e2ff151 653 wxPyEndAllowThreads(__tstate);
e6056257
RD
654 if (PyErr_Occurred()) return NULL;
655}{ _resultobj = wxPyMake_wxObject(_result); }
656 return _resultobj;
657}
658
659#define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0))
660static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
661 PyObject * _resultobj;
662 wxValidator * _arg0;
663 wxWindow * _arg1;
664 PyObject * _argo0 = 0;
665 PyObject * _argo1 = 0;
666 char *_kwnames[] = { "self","window", NULL };
667
668 self = self;
669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1))
670 return NULL;
671 if (_argo0) {
672 if (_argo0 == Py_None) { _arg0 = NULL; }
673 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) {
674 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p.");
675 return NULL;
676 }
677 }
678 if (_argo1) {
679 if (_argo1 == Py_None) { _arg1 = NULL; }
680 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
681 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p.");
682 return NULL;
683 }
684 }
685{
0e2ff151 686 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
687 wxValidator_SetWindow(_arg0,_arg1);
688
0e2ff151 689 wxPyEndAllowThreads(__tstate);
e6056257
RD
690 if (PyErr_Occurred()) return NULL;
691} Py_INCREF(Py_None);
692 _resultobj = Py_None;
693 return _resultobj;
694}
695
696static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) {
697 PyObject * _resultobj;
698 bool _result;
699 char *_kwnames[] = { NULL };
700
701 self = self;
702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames))
703 return NULL;
704{
0e2ff151 705 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
706 _result = (bool )wxValidator::IsSilent();
707
0e2ff151 708 wxPyEndAllowThreads(__tstate);
e6056257
RD
709 if (PyErr_Occurred()) return NULL;
710} _resultobj = Py_BuildValue("i",_result);
711 return _resultobj;
712}
713
714static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) {
715 PyObject * _resultobj;
716 int _arg0 = (int ) TRUE;
717 char *_kwnames[] = { "doIt", NULL };
718
719 self = self;
720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0))
721 return NULL;
722{
0e2ff151 723 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
724 wxValidator::SetBellOnError(_arg0);
725
0e2ff151 726 wxPyEndAllowThreads(__tstate);
e6056257
RD
727 if (PyErr_Occurred()) return NULL;
728} Py_INCREF(Py_None);
729 _resultobj = Py_None;
730 return _resultobj;
731}
732
733static void *SwigwxPyValidatorTowxValidator(void *ptr) {
734 wxPyValidator *src;
735 wxValidator *dest;
736 src = (wxPyValidator *) ptr;
737 dest = (wxValidator *) src;
738 return (void *) dest;
739}
740
741static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) {
742 wxPyValidator *src;
743 wxEvtHandler *dest;
744 src = (wxPyValidator *) ptr;
745 dest = (wxEvtHandler *) src;
746 return (void *) dest;
747}
748
749static void *SwigwxPyValidatorTowxObject(void *ptr) {
750 wxPyValidator *src;
751 wxObject *dest;
752 src = (wxPyValidator *) ptr;
753 dest = (wxObject *) src;
754 return (void *) dest;
755}
756
757#define new_wxPyValidator() (new wxPyValidator())
758static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
759 PyObject * _resultobj;
760 wxPyValidator * _result;
761 char *_kwnames[] = { NULL };
762 char _ptemp[128];
763
764 self = self;
765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames))
766 return NULL;
767{
0e2ff151 768 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
769 _result = (wxPyValidator *)new_wxPyValidator();
770
0e2ff151 771 wxPyEndAllowThreads(__tstate);
e6056257
RD
772 if (PyErr_Occurred()) return NULL;
773} if (_result) {
774 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p");
775 _resultobj = Py_BuildValue("s",_ptemp);
776 } else {
777 Py_INCREF(Py_None);
778 _resultobj = Py_None;
779 }
780 return _resultobj;
781}
782
783#define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
784static PyObject *_wrap_wxPyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
785 PyObject * _resultobj;
786 wxPyValidator * _arg0;
787 PyObject * _arg1;
788 PyObject * _arg2;
789 int _arg3 = (int ) TRUE;
790 PyObject * _argo0 = 0;
791 PyObject * _obj1 = 0;
792 PyObject * _obj2 = 0;
793 char *_kwnames[] = { "self","self","_class","incref", NULL };
794
795 self = self;
796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3))
797 return NULL;
798 if (_argo0) {
799 if (_argo0 == Py_None) { _arg0 = NULL; }
800 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) {
801 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p.");
802 return NULL;
803 }
804 }
805{
806 _arg1 = _obj1;
807}
808{
809 _arg2 = _obj2;
810}
811{
0e2ff151 812 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
813 wxPyValidator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3);
814
0e2ff151 815 wxPyEndAllowThreads(__tstate);
e6056257
RD
816 if (PyErr_Occurred()) return NULL;
817} Py_INCREF(Py_None);
818 _resultobj = Py_None;
819 return _resultobj;
820}
821
822static void *SwigwxWindowTowxEvtHandler(void *ptr) {
823 wxWindow *src;
824 wxEvtHandler *dest;
825 src = (wxWindow *) ptr;
826 dest = (wxEvtHandler *) src;
827 return (void *) dest;
828}
829
830static void *SwigwxWindowTowxObject(void *ptr) {
831 wxWindow *src;
832 wxObject *dest;
833 src = (wxWindow *) ptr;
834 dest = (wxObject *) src;
835 return (void *) dest;
836}
837
838#define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
839static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
840 PyObject * _resultobj;
841 wxWindow * _result;
842 wxWindow * _arg0;
843 wxWindowID _arg1;
844 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
845 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
846 long _arg4 = (long ) 0;
847 char * _arg5 = (char *) "panel";
848 PyObject * _argo0 = 0;
849 wxPoint temp;
850 PyObject * _obj2 = 0;
851 wxSize temp0;
852 PyObject * _obj3 = 0;
853 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
854 char _ptemp[128];
855
856 self = self;
857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
858 return NULL;
859 if (_argo0) {
860 if (_argo0 == Py_None) { _arg0 = NULL; }
861 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
862 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p.");
863 return NULL;
864 }
865 }
866 if (_obj2)
867{
868 _arg2 = &temp;
869 if (! wxPoint_helper(_obj2, &_arg2))
870 return NULL;
871}
872 if (_obj3)
873{
874 _arg3 = &temp0;
875 if (! wxSize_helper(_obj3, &_arg3))
876 return NULL;
877}
878{
0e2ff151 879 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
880 _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
881
0e2ff151 882 wxPyEndAllowThreads(__tstate);
e6056257
RD
883 if (PyErr_Occurred()) return NULL;
884} if (_result) {
885 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
886 _resultobj = Py_BuildValue("s",_ptemp);
887 } else {
888 Py_INCREF(Py_None);
889 _resultobj = Py_None;
890 }
891 return _resultobj;
892}
893
894#define new_wxPreWindow() (new wxWindow())
895static PyObject *_wrap_new_wxPreWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
896 PyObject * _resultobj;
897 wxWindow * _result;
898 char *_kwnames[] = { NULL };
899 char _ptemp[128];
900
901 self = self;
902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreWindow",_kwnames))
903 return NULL;
904{
0e2ff151 905 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
906 _result = (wxWindow *)new_wxPreWindow();
907
0e2ff151 908 wxPyEndAllowThreads(__tstate);
e6056257
RD
909 if (PyErr_Occurred()) return NULL;
910} if (_result) {
911 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
912 _resultobj = Py_BuildValue("s",_ptemp);
913 } else {
914 Py_INCREF(Py_None);
915 _resultobj = Py_None;
916 }
917 return _resultobj;
918}
919
920#define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
921static PyObject *_wrap_wxWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
922 PyObject * _resultobj;
923 bool _result;
924 wxWindow * _arg0;
925 wxWindow * _arg1;
926 wxWindowID _arg2;
927 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
928 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
929 long _arg5 = (long ) 0;
930 char * _arg6 = (char *) "panel";
931 PyObject * _argo0 = 0;
932 PyObject * _argo1 = 0;
933 wxPoint temp;
934 PyObject * _obj3 = 0;
935 wxSize temp0;
936 PyObject * _obj4 = 0;
937 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
938
939 self = self;
940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
941 return NULL;
942 if (_argo0) {
943 if (_argo0 == Py_None) { _arg0 = NULL; }
944 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
945 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p.");
946 return NULL;
947 }
948 }
949 if (_argo1) {
950 if (_argo1 == Py_None) { _arg1 = NULL; }
951 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
952 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p.");
953 return NULL;
954 }
955 }
956 if (_obj3)
957{
958 _arg3 = &temp;
959 if (! wxPoint_helper(_obj3, &_arg3))
960 return NULL;
961}
962 if (_obj4)
963{
964 _arg4 = &temp0;
965 if (! wxSize_helper(_obj4, &_arg4))
966 return NULL;
967}
968{
0e2ff151 969 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
970 _result = (bool )wxWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
971
0e2ff151 972 wxPyEndAllowThreads(__tstate);
e6056257
RD
973 if (PyErr_Occurred()) return NULL;
974} _resultobj = Py_BuildValue("i",_result);
975 return _resultobj;
976}
977
978#define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse())
979static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
980 PyObject * _resultobj;
981 wxWindow * _arg0;
982 PyObject * _argo0 = 0;
983 char *_kwnames[] = { "self", NULL };
984
985 self = self;
986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0))
987 return NULL;
988 if (_argo0) {
989 if (_argo0 == Py_None) { _arg0 = NULL; }
990 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
991 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p.");
992 return NULL;
993 }
994 }
995{
0e2ff151 996 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
997 wxWindow_CaptureMouse(_arg0);
998
0e2ff151 999 wxPyEndAllowThreads(__tstate);
e6056257
RD
1000 if (PyErr_Occurred()) return NULL;
1001} Py_INCREF(Py_None);
1002 _resultobj = Py_None;
1003 return _resultobj;
1004}
1005
1006#define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0))
1007static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) {
1008 PyObject * _resultobj;
1009 wxWindow * _arg0;
1010 int _arg1 = (int ) wxBOTH;
1011 PyObject * _argo0 = 0;
1012 char *_kwnames[] = { "self","direction", NULL };
1013
1014 self = self;
1015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1))
1016 return NULL;
1017 if (_argo0) {
1018 if (_argo0 == Py_None) { _arg0 = NULL; }
1019 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1020 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p.");
1021 return NULL;
1022 }
1023 }
1024{
0e2ff151 1025 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1026 wxWindow_Center(_arg0,_arg1);
1027
0e2ff151 1028 wxPyEndAllowThreads(__tstate);
e6056257
RD
1029 if (PyErr_Occurred()) return NULL;
1030} Py_INCREF(Py_None);
1031 _resultobj = Py_None;
1032 return _resultobj;
1033}
1034
1035#define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
1036static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) {
1037 PyObject * _resultobj;
1038 wxWindow * _arg0;
1039 int _arg1 = (int ) wxBOTH;
1040 PyObject * _argo0 = 0;
1041 char *_kwnames[] = { "self","direction", NULL };
1042
1043 self = self;
1044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1))
1045 return NULL;
1046 if (_argo0) {
1047 if (_argo0 == Py_None) { _arg0 = NULL; }
1048 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1049 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p.");
1050 return NULL;
1051 }
1052 }
1053{
0e2ff151 1054 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1055 wxWindow_Centre(_arg0,_arg1);
1056
0e2ff151 1057 wxPyEndAllowThreads(__tstate);
e6056257
RD
1058 if (PyErr_Occurred()) return NULL;
1059} Py_INCREF(Py_None);
1060 _resultobj = Py_None;
1061 return _resultobj;
1062}
1063
1064#define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0))
1065static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) {
1066 PyObject * _resultobj;
1067 wxWindow * _arg0;
1068 int _arg1 = (int ) wxBOTH;
1069 PyObject * _argo0 = 0;
1070 char *_kwnames[] = { "self","direction", NULL };
1071
1072 self = self;
1073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1))
1074 return NULL;
1075 if (_argo0) {
1076 if (_argo0 == Py_None) { _arg0 = NULL; }
1077 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1078 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p.");
1079 return NULL;
1080 }
1081 }
1082{
0e2ff151 1083 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1084 wxWindow_CentreOnParent(_arg0,_arg1);
1085
0e2ff151 1086 wxPyEndAllowThreads(__tstate);
e6056257
RD
1087 if (PyErr_Occurred()) return NULL;
1088} Py_INCREF(Py_None);
1089 _resultobj = Py_None;
1090 return _resultobj;
1091}
1092
1093#define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0))
1094static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) {
1095 PyObject * _resultobj;
1096 wxWindow * _arg0;
1097 int _arg1 = (int ) wxBOTH;
1098 PyObject * _argo0 = 0;
1099 char *_kwnames[] = { "self","direction", NULL };
1100
1101 self = self;
1102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1))
1103 return NULL;
1104 if (_argo0) {
1105 if (_argo0 == Py_None) { _arg0 = NULL; }
1106 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1107 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p.");
1108 return NULL;
1109 }
1110 }
1111{
0e2ff151 1112 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1113 wxWindow_CenterOnParent(_arg0,_arg1);
1114
0e2ff151 1115 wxPyEndAllowThreads(__tstate);
e6056257
RD
1116 if (PyErr_Occurred()) return NULL;
1117} Py_INCREF(Py_None);
1118 _resultobj = Py_None;
1119 return _resultobj;
1120}
1121
1122#define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0))
1123static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
1124 PyObject * _resultobj;
1125 wxWindow * _arg0;
1126 int _arg1 = (int ) wxBOTH;
1127 PyObject * _argo0 = 0;
1128 char *_kwnames[] = { "self","direction", NULL };
1129
1130 self = self;
1131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1))
1132 return NULL;
1133 if (_argo0) {
1134 if (_argo0 == Py_None) { _arg0 = NULL; }
1135 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1136 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p.");
1137 return NULL;
1138 }
1139 }
1140{
0e2ff151 1141 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1142 wxWindow_CentreOnScreen(_arg0,_arg1);
1143
0e2ff151 1144 wxPyEndAllowThreads(__tstate);
e6056257
RD
1145 if (PyErr_Occurred()) return NULL;
1146} Py_INCREF(Py_None);
1147 _resultobj = Py_None;
1148 return _resultobj;
1149}
1150
1151#define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0))
1152static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
1153 PyObject * _resultobj;
1154 wxWindow * _arg0;
1155 int _arg1 = (int ) wxBOTH;
1156 PyObject * _argo0 = 0;
1157 char *_kwnames[] = { "self","direction", NULL };
1158
1159 self = self;
1160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1))
1161 return NULL;
1162 if (_argo0) {
1163 if (_argo0 == Py_None) { _arg0 = NULL; }
1164 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1165 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p.");
1166 return NULL;
1167 }
1168 }
1169{
0e2ff151 1170 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1171 wxWindow_CenterOnScreen(_arg0,_arg1);
1172
0e2ff151 1173 wxPyEndAllowThreads(__tstate);
e6056257
RD
1174 if (PyErr_Occurred()) return NULL;
1175} Py_INCREF(Py_None);
1176 _resultobj = Py_None;
1177 return _resultobj;
1178}
1179
1180#define wxWindow_Clear(_swigobj) (_swigobj->Clear())
1181static PyObject *_wrap_wxWindow_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
1182 PyObject * _resultobj;
1183 wxWindow * _arg0;
1184 PyObject * _argo0 = 0;
1185 char *_kwnames[] = { "self", NULL };
1186
1187 self = self;
1188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Clear",_kwnames,&_argo0))
1189 return NULL;
1190 if (_argo0) {
1191 if (_argo0 == Py_None) { _arg0 = NULL; }
1192 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1193 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p.");
1194 return NULL;
1195 }
1196 }
1197{
0e2ff151 1198 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1199 wxWindow_Clear(_arg0);
1200
0e2ff151 1201 wxPyEndAllowThreads(__tstate);
e6056257
RD
1202 if (PyErr_Occurred()) return NULL;
1203} Py_INCREF(Py_None);
1204 _resultobj = Py_None;
1205 return _resultobj;
1206}
1207
1208#define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1))
1209static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) {
1210 PyObject * _resultobj;
1211 wxWindow * _arg0;
1212 int * _arg1;
1213 int * _arg2;
1214 PyObject * _argo0 = 0;
1215 int temp;
1216 PyObject * _obj1 = 0;
1217 int temp0;
1218 PyObject * _obj2 = 0;
1219 char *_kwnames[] = { "self","x","y", NULL };
1220
1221 self = self;
1222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2))
1223 return NULL;
1224 if (_argo0) {
1225 if (_argo0 == Py_None) { _arg0 = NULL; }
1226 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1227 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p.");
1228 return NULL;
1229 }
1230 }
1231{
1232 temp = (int) PyInt_AsLong(_obj1);
1233 _arg1 = &temp;
1234}
1235{
1236 temp0 = (int) PyInt_AsLong(_obj2);
1237 _arg2 = &temp0;
1238}
1239{
0e2ff151 1240 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1241 wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2);
1242
0e2ff151 1243 wxPyEndAllowThreads(__tstate);
e6056257
RD
1244 if (PyErr_Occurred()) return NULL;
1245} Py_INCREF(Py_None);
1246 _resultobj = Py_None;
1247{
1248 PyObject *o;
1249 o = PyInt_FromLong((long) (*_arg1));
1250 _resultobj = t_output_helper(_resultobj, o);
1251}
1252{
1253 PyObject *o;
1254 o = PyInt_FromLong((long) (*_arg2));
1255 _resultobj = t_output_helper(_resultobj, o);
1256}
1257 return _resultobj;
1258}
1259
1260#define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0))
1261static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
1262 PyObject * _resultobj;
1263 wxPoint * _result;
1264 wxWindow * _arg0;
1265 wxPoint * _arg1;
1266 PyObject * _argo0 = 0;
1267 wxPoint temp;
1268 PyObject * _obj1 = 0;
1269 char *_kwnames[] = { "self","pt", NULL };
1270 char _ptemp[128];
1271
1272 self = self;
1273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1))
1274 return NULL;
1275 if (_argo0) {
1276 if (_argo0 == Py_None) { _arg0 = NULL; }
1277 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1278 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p.");
1279 return NULL;
1280 }
1281 }
1282{
1283 _arg1 = &temp;
1284 if (! wxPoint_helper(_obj1, &_arg1))
1285 return NULL;
1286}
1287{
0e2ff151 1288 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1289 _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1));
1290
0e2ff151 1291 wxPyEndAllowThreads(__tstate);
e6056257
RD
1292 if (PyErr_Occurred()) return NULL;
1293} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
1294 _resultobj = Py_BuildValue("s",_ptemp);
1295 return _resultobj;
1296}
1297
1298#define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0))
1299static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
1300 PyObject * _resultobj;
1301 bool _result;
1302 wxWindow * _arg0;
1303 int _arg1 = (int ) FALSE;
1304 PyObject * _argo0 = 0;
1305 char *_kwnames[] = { "self","force", NULL };
1306
1307 self = self;
1308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1))
1309 return NULL;
1310 if (_argo0) {
1311 if (_argo0 == Py_None) { _arg0 = NULL; }
1312 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1313 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p.");
1314 return NULL;
1315 }
1316 }
1317{
0e2ff151 1318 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1319 _result = (bool )wxWindow_Close(_arg0,_arg1);
1320
0e2ff151 1321 wxPyEndAllowThreads(__tstate);
e6056257
RD
1322 if (PyErr_Occurred()) return NULL;
1323} _resultobj = Py_BuildValue("i",_result);
1324 return _resultobj;
1325}
1326
1327#define wxWindow_Destroy(_swigobj) (_swigobj->Destroy())
1328static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
1329 PyObject * _resultobj;
1330 bool _result;
1331 wxWindow * _arg0;
1332 PyObject * _argo0 = 0;
1333 char *_kwnames[] = { "self", NULL };
1334
1335 self = self;
1336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0))
1337 return NULL;
1338 if (_argo0) {
1339 if (_argo0 == Py_None) { _arg0 = NULL; }
1340 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1341 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p.");
1342 return NULL;
1343 }
1344 }
1345{
0e2ff151 1346 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1347 _result = (bool )wxWindow_Destroy(_arg0);
1348
0e2ff151 1349 wxPyEndAllowThreads(__tstate);
e6056257
RD
1350 if (PyErr_Occurred()) return NULL;
1351} _resultobj = Py_BuildValue("i",_result);
1352 return _resultobj;
1353}
1354
1355#define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren())
1356static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
1357 PyObject * _resultobj;
1358 wxWindow * _arg0;
1359 PyObject * _argo0 = 0;
1360 char *_kwnames[] = { "self", NULL };
1361
1362 self = self;
1363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0))
1364 return NULL;
1365 if (_argo0) {
1366 if (_argo0 == Py_None) { _arg0 = NULL; }
1367 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1368 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p.");
1369 return NULL;
1370 }
1371 }
1372{
0e2ff151 1373 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1374 wxWindow_DestroyChildren(_arg0);
1375
0e2ff151 1376 wxPyEndAllowThreads(__tstate);
e6056257
RD
1377 if (PyErr_Occurred()) return NULL;
1378} Py_INCREF(Py_None);
1379 _resultobj = Py_None;
1380 return _resultobj;
1381}
1382
1383#define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted())
1384static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) {
1385 PyObject * _resultobj;
1386 bool _result;
1387 wxWindow * _arg0;
1388 PyObject * _argo0 = 0;
1389 char *_kwnames[] = { "self", NULL };
1390
1391 self = self;
1392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0))
1393 return NULL;
1394 if (_argo0) {
1395 if (_argo0 == Py_None) { _arg0 = NULL; }
1396 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1397 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p.");
1398 return NULL;
1399 }
1400 }
1401{
0e2ff151 1402 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1403 _result = (bool )wxWindow_IsBeingDeleted(_arg0);
1404
0e2ff151 1405 wxPyEndAllowThreads(__tstate);
e6056257
RD
1406 if (PyErr_Occurred()) return NULL;
1407} _resultobj = Py_BuildValue("i",_result);
1408 return _resultobj;
1409}
1410
1411#define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1412static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
1413 PyObject * _resultobj;
1414 wxWindow * _arg0;
1415 bool _arg1;
1416 PyObject * _argo0 = 0;
1417 int tempbool1;
1418 char *_kwnames[] = { "self","enable", NULL };
1419
1420 self = self;
1421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1))
1422 return NULL;
1423 if (_argo0) {
1424 if (_argo0 == Py_None) { _arg0 = NULL; }
1425 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1426 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p.");
1427 return NULL;
1428 }
1429 }
1430 _arg1 = (bool ) tempbool1;
1431{
0e2ff151 1432 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1433 wxWindow_Enable(_arg0,_arg1);
1434
0e2ff151 1435 wxPyEndAllowThreads(__tstate);
e6056257
RD
1436 if (PyErr_Occurred()) return NULL;
1437} Py_INCREF(Py_None);
1438 _resultobj = Py_None;
1439 return _resultobj;
1440}
1441
1442#define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1443static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) {
1444 PyObject * _resultobj;
1445 wxWindow * _result;
1446 wxWindow * _arg0;
1447 long _arg1;
1448 PyObject * _argo0 = 0;
1449 char *_kwnames[] = { "self","id", NULL };
1450
1451 self = self;
1452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1))
1453 return NULL;
1454 if (_argo0) {
1455 if (_argo0 == Py_None) { _arg0 = NULL; }
1456 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1457 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p.");
1458 return NULL;
1459 }
1460 }
1461{
0e2ff151 1462 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1463 _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1);
1464
0e2ff151 1465 wxPyEndAllowThreads(__tstate);
e6056257
RD
1466 if (PyErr_Occurred()) return NULL;
1467}{ _resultobj = wxPyMake_wxObject(_result); }
1468 return _resultobj;
1469}
1470
1471#define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1472static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
1473 PyObject * _resultobj;
1474 wxWindow * _result;
1475 wxWindow * _arg0;
1476 wxString * _arg1;
1477 PyObject * _argo0 = 0;
1478 PyObject * _obj1 = 0;
1479 char *_kwnames[] = { "self","name", NULL };
1480
1481 self = self;
1482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1))
1483 return NULL;
1484 if (_argo0) {
1485 if (_argo0 == Py_None) { _arg0 = NULL; }
1486 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1487 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p.");
1488 return NULL;
1489 }
1490 }
1491{
1492#if PYTHON_API_VERSION >= 1009
1493 char* tmpPtr; int tmpSize;
1494 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1495 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1496 return NULL;
1497 }
1498 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1499 return NULL;
1500 _arg1 = new wxString(tmpPtr, tmpSize);
1501#else
1502 if (!PyString_Check(_obj1)) {
1503 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1504 return NULL;
1505 }
1506 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1507#endif
1508}
1509{
0e2ff151 1510 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1511 _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1);
1512
0e2ff151 1513 wxPyEndAllowThreads(__tstate);
e6056257
RD
1514 if (PyErr_Occurred()) return NULL;
1515}{ _resultobj = wxPyMake_wxObject(_result); }
1516{
1517 if (_obj1)
1518 delete _arg1;
1519}
1520 return _resultobj;
1521}
1522
1523#define wxWindow_Fit(_swigobj) (_swigobj->Fit())
1524static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
1525 PyObject * _resultobj;
1526 wxWindow * _arg0;
1527 PyObject * _argo0 = 0;
1528 char *_kwnames[] = { "self", NULL };
1529
1530 self = self;
1531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0))
1532 return NULL;
1533 if (_argo0) {
1534 if (_argo0 == Py_None) { _arg0 = NULL; }
1535 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1536 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p.");
1537 return NULL;
1538 }
1539 }
1540{
0e2ff151 1541 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1542 wxWindow_Fit(_arg0);
1543
0e2ff151 1544 wxPyEndAllowThreads(__tstate);
e6056257
RD
1545 if (PyErr_Occurred()) return NULL;
1546} Py_INCREF(Py_None);
1547 _resultobj = Py_None;
1548 return _resultobj;
1549}
1550
1551#define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
1552static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1553 PyObject * _resultobj;
1554 wxColour * _result;
1555 wxWindow * _arg0;
1556 PyObject * _argo0 = 0;
1557 char *_kwnames[] = { "self", NULL };
1558 char _ptemp[128];
1559
1560 self = self;
1561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0))
1562 return NULL;
1563 if (_argo0) {
1564 if (_argo0 == Py_None) { _arg0 = NULL; }
1565 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1566 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p.");
1567 return NULL;
1568 }
1569 }
1570{
0e2ff151 1571 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1572 _result = new wxColour (wxWindow_GetBackgroundColour(_arg0));
1573
0e2ff151 1574 wxPyEndAllowThreads(__tstate);
e6056257
RD
1575 if (PyErr_Occurred()) return NULL;
1576} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
1577 _resultobj = Py_BuildValue("s",_ptemp);
1578 return _resultobj;
1579}
1580
a341e32e
RD
1581#define wxWindow_GetBorder(_swigobj) (_swigobj->GetBorder())
1582static PyObject *_wrap_wxWindow_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
1583 PyObject * _resultobj;
1584 wxBorder _result;
1585 wxWindow * _arg0;
1586 PyObject * _argo0 = 0;
1587 char *_kwnames[] = { "self", NULL };
1588
1589 self = self;
1590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBorder",_kwnames,&_argo0))
1591 return NULL;
1592 if (_argo0) {
1593 if (_argo0 == Py_None) { _arg0 = NULL; }
1594 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1595 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBorder. Expected _wxWindow_p.");
1596 return NULL;
1597 }
1598 }
1599{
1600 PyThreadState* __tstate = wxPyBeginAllowThreads();
1601 _result = (wxBorder )wxWindow_GetBorder(_arg0);
1602
1603 wxPyEndAllowThreads(__tstate);
1604 if (PyErr_Occurred()) return NULL;
1605} _resultobj = Py_BuildValue("i",_result);
1606 return _resultobj;
1607}
1608
e6056257
RD
1609static PyObject * wxWindow_GetChildren(wxWindow *self) {
1610 wxWindowList& list = self->GetChildren();
1611 return wxPy_ConvertList(&list, "wxWindow");
1612 }
1613static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
1614 PyObject * _resultobj;
1615 PyObject * _result;
1616 wxWindow * _arg0;
1617 PyObject * _argo0 = 0;
1618 char *_kwnames[] = { "self", NULL };
1619
1620 self = self;
1621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0))
1622 return NULL;
1623 if (_argo0) {
1624 if (_argo0 == Py_None) { _arg0 = NULL; }
1625 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1626 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p.");
1627 return NULL;
1628 }
1629 }
1630{
0e2ff151 1631 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1632 _result = (PyObject *)wxWindow_GetChildren(_arg0);
1633
0e2ff151 1634 wxPyEndAllowThreads(__tstate);
e6056257
RD
1635 if (PyErr_Occurred()) return NULL;
1636}{
1637 _resultobj = _result;
1638}
1639 return _resultobj;
1640}
1641
1642#define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
1643static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1644 PyObject * _resultobj;
1645 int _result;
1646 wxWindow * _arg0;
1647 PyObject * _argo0 = 0;
1648 char *_kwnames[] = { "self", NULL };
1649
1650 self = self;
1651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0))
1652 return NULL;
1653 if (_argo0) {
1654 if (_argo0 == Py_None) { _arg0 = NULL; }
1655 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1656 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p.");
1657 return NULL;
1658 }
1659 }
1660{
0e2ff151 1661 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1662 _result = (int )wxWindow_GetCharHeight(_arg0);
1663
0e2ff151 1664 wxPyEndAllowThreads(__tstate);
e6056257
RD
1665 if (PyErr_Occurred()) return NULL;
1666} _resultobj = Py_BuildValue("i",_result);
1667 return _resultobj;
1668}
1669
1670#define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
1671static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1672 PyObject * _resultobj;
1673 int _result;
1674 wxWindow * _arg0;
1675 PyObject * _argo0 = 0;
1676 char *_kwnames[] = { "self", NULL };
1677
1678 self = self;
1679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0))
1680 return NULL;
1681 if (_argo0) {
1682 if (_argo0 == Py_None) { _arg0 = NULL; }
1683 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1684 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p.");
1685 return NULL;
1686 }
1687 }
1688{
0e2ff151 1689 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1690 _result = (int )wxWindow_GetCharWidth(_arg0);
1691
0e2ff151 1692 wxPyEndAllowThreads(__tstate);
e6056257
RD
1693 if (PyErr_Occurred()) return NULL;
1694} _resultobj = Py_BuildValue("i",_result);
1695 return _resultobj;
1696}
1697
1698#define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1))
1699static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
1700 PyObject * _resultobj;
1701 wxWindow * _arg0;
1702 int * _arg1;
1703 int temp;
1704 int * _arg2;
1705 int temp0;
1706 PyObject * _argo0 = 0;
1707 char *_kwnames[] = { "self", NULL };
1708
1709 self = self;
1710{
1711 _arg1 = &temp;
1712}
1713{
1714 _arg2 = &temp0;
1715}
1716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0))
1717 return NULL;
1718 if (_argo0) {
1719 if (_argo0 == Py_None) { _arg0 = NULL; }
1720 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1721 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p.");
1722 return NULL;
1723 }
1724 }
1725{
0e2ff151 1726 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1727 wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2);
1728
0e2ff151 1729 wxPyEndAllowThreads(__tstate);
e6056257
RD
1730 if (PyErr_Occurred()) return NULL;
1731} Py_INCREF(Py_None);
1732 _resultobj = Py_None;
1733{
1734 PyObject *o;
1735 o = PyInt_FromLong((long) (*_arg1));
1736 _resultobj = t_output_helper(_resultobj, o);
1737}
1738{
1739 PyObject *o;
1740 o = PyInt_FromLong((long) (*_arg2));
1741 _resultobj = t_output_helper(_resultobj, o);
1742}
1743 return _resultobj;
1744}
1745
1746#define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize())
1747static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1748 PyObject * _resultobj;
1749 wxSize * _result;
1750 wxWindow * _arg0;
1751 PyObject * _argo0 = 0;
1752 char *_kwnames[] = { "self", NULL };
1753 char _ptemp[128];
1754
1755 self = self;
1756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0))
1757 return NULL;
1758 if (_argo0) {
1759 if (_argo0 == Py_None) { _arg0 = NULL; }
1760 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1761 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p.");
1762 return NULL;
1763 }
1764 }
1765{
0e2ff151 1766 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1767 _result = new wxSize (wxWindow_GetClientSize(_arg0));
1768
0e2ff151 1769 wxPyEndAllowThreads(__tstate);
e6056257
RD
1770 if (PyErr_Occurred()) return NULL;
1771} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
1772 _resultobj = Py_BuildValue("s",_ptemp);
1773 return _resultobj;
1774}
1775
a341e32e
RD
1776#define wxWindow_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin())
1777static PyObject *_wrap_wxWindow_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
1778 PyObject * _resultobj;
1779 wxPoint * _result;
1780 wxWindow * _arg0;
1781 PyObject * _argo0 = 0;
1782 char *_kwnames[] = { "self", NULL };
1783 char _ptemp[128];
1784
1785 self = self;
1786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientAreaOrigin",_kwnames,&_argo0))
1787 return NULL;
1788 if (_argo0) {
1789 if (_argo0 == Py_None) { _arg0 = NULL; }
1790 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1791 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientAreaOrigin. Expected _wxWindow_p.");
1792 return NULL;
1793 }
1794 }
1795{
1796 PyThreadState* __tstate = wxPyBeginAllowThreads();
1797 _result = new wxPoint (wxWindow_GetClientAreaOrigin(_arg0));
1798
1799 wxPyEndAllowThreads(__tstate);
1800 if (PyErr_Occurred()) return NULL;
1801} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
1802 _resultobj = Py_BuildValue("s",_ptemp);
1803 return _resultobj;
1804}
1805
1806#define wxWindow_GetClientRect(_swigobj) (_swigobj->GetClientRect())
1807static PyObject *_wrap_wxWindow_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
1808 PyObject * _resultobj;
1809 wxRect * _result;
1810 wxWindow * _arg0;
1811 PyObject * _argo0 = 0;
1812 char *_kwnames[] = { "self", NULL };
1813 char _ptemp[128];
1814
1815 self = self;
1816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientRect",_kwnames,&_argo0))
1817 return NULL;
1818 if (_argo0) {
1819 if (_argo0 == Py_None) { _arg0 = NULL; }
1820 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1821 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientRect. Expected _wxWindow_p.");
1822 return NULL;
1823 }
1824 }
1825{
1826 PyThreadState* __tstate = wxPyBeginAllowThreads();
1827 _result = new wxRect (wxWindow_GetClientRect(_arg0));
1828
1829 wxPyEndAllowThreads(__tstate);
1830 if (PyErr_Occurred()) return NULL;
1831} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
1832 _resultobj = Py_BuildValue("s",_ptemp);
1833 return _resultobj;
1834}
1835
e6056257
RD
1836#define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints())
1837static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
1838 PyObject * _resultobj;
1839 wxLayoutConstraints * _result;
1840 wxWindow * _arg0;
1841 PyObject * _argo0 = 0;
1842 char *_kwnames[] = { "self", NULL };
1843 char _ptemp[128];
1844
1845 self = self;
1846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0))
1847 return NULL;
1848 if (_argo0) {
1849 if (_argo0 == Py_None) { _arg0 = NULL; }
1850 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1851 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p.");
1852 return NULL;
1853 }
1854 }
1855{
0e2ff151 1856 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1857 _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0);
1858
0e2ff151 1859 wxPyEndAllowThreads(__tstate);
e6056257
RD
1860 if (PyErr_Occurred()) return NULL;
1861} if (_result) {
1862 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p");
1863 _resultobj = Py_BuildValue("s",_ptemp);
1864 } else {
1865 Py_INCREF(Py_None);
1866 _resultobj = Py_None;
1867 }
1868 return _resultobj;
1869}
1870
1871#define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
1872static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
1873 PyObject * _resultobj;
1874 wxEvtHandler * _result;
1875 wxWindow * _arg0;
1876 PyObject * _argo0 = 0;
1877 char *_kwnames[] = { "self", NULL };
1878
1879 self = self;
1880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0))
1881 return NULL;
1882 if (_argo0) {
1883 if (_argo0 == Py_None) { _arg0 = NULL; }
1884 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1885 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p.");
1886 return NULL;
1887 }
1888 }
1889{
0e2ff151 1890 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1891 _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0);
1892
0e2ff151 1893 wxPyEndAllowThreads(__tstate);
e6056257
RD
1894 if (PyErr_Occurred()) return NULL;
1895}{ _resultobj = wxPyMake_wxObject(_result); }
1896 return _resultobj;
1897}
1898
1899#define wxWindow_GetFont(_swigobj) (_swigobj->GetFont())
1900static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1901 PyObject * _resultobj;
1902 wxFont * _result;
1903 wxWindow * _arg0;
1904 PyObject * _argo0 = 0;
1905 char *_kwnames[] = { "self", NULL };
1906 char _ptemp[128];
1907
1908 self = self;
1909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0))
1910 return NULL;
1911 if (_argo0) {
1912 if (_argo0 == Py_None) { _arg0 = NULL; }
1913 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1914 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p.");
1915 return NULL;
1916 }
1917 }
1918{
0e2ff151 1919 PyThreadState* __tstate = wxPyBeginAllowThreads();
00360d46 1920 _result = new wxFont (wxWindow_GetFont(_arg0));
e6056257 1921
0e2ff151 1922 wxPyEndAllowThreads(__tstate);
e6056257 1923 if (PyErr_Occurred()) return NULL;
00360d46
RD
1924} SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
1925 _resultobj = Py_BuildValue("s",_ptemp);
e6056257
RD
1926 return _resultobj;
1927}
1928
1929#define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour())
1930static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1931 PyObject * _resultobj;
1932 wxColour * _result;
1933 wxWindow * _arg0;
1934 PyObject * _argo0 = 0;
1935 char *_kwnames[] = { "self", NULL };
1936 char _ptemp[128];
1937
1938 self = self;
1939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0))
1940 return NULL;
1941 if (_argo0) {
1942 if (_argo0 == Py_None) { _arg0 = NULL; }
1943 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1944 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p.");
1945 return NULL;
1946 }
1947 }
1948{
0e2ff151 1949 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1950 _result = new wxColour (wxWindow_GetForegroundColour(_arg0));
1951
0e2ff151 1952 wxPyEndAllowThreads(__tstate);
e6056257
RD
1953 if (PyErr_Occurred()) return NULL;
1954} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
1955 _resultobj = Py_BuildValue("s",_ptemp);
1956 return _resultobj;
1957}
1958
1959#define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent())
1960static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) {
1961 PyObject * _resultobj;
1962 wxWindow * _result;
1963 wxWindow * _arg0;
1964 PyObject * _argo0 = 0;
1965 char *_kwnames[] = { "self", NULL };
1966
1967 self = self;
1968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0))
1969 return NULL;
1970 if (_argo0) {
1971 if (_argo0 == Py_None) { _arg0 = NULL; }
1972 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1973 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p.");
1974 return NULL;
1975 }
1976 }
1977{
0e2ff151 1978 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1979 _result = (wxWindow *)wxWindow_GetGrandParent(_arg0);
1980
0e2ff151 1981 wxPyEndAllowThreads(__tstate);
e6056257
RD
1982 if (PyErr_Occurred()) return NULL;
1983}{ _resultobj = wxPyMake_wxObject(_result); }
1984 return _resultobj;
1985}
1986
1987static long wxWindow_GetHandle(wxWindow *self) {
1988 return wxPyGetWinHandle(self); //(long)self->GetHandle();
1989 }
1990static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1991 PyObject * _resultobj;
1992 long _result;
1993 wxWindow * _arg0;
1994 PyObject * _argo0 = 0;
1995 char *_kwnames[] = { "self", NULL };
1996
1997 self = self;
1998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0))
1999 return NULL;
2000 if (_argo0) {
2001 if (_argo0 == Py_None) { _arg0 = NULL; }
2002 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2003 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p.");
2004 return NULL;
2005 }
2006 }
2007{
0e2ff151 2008 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2009 _result = (long )wxWindow_GetHandle(_arg0);
2010
0e2ff151 2011 wxPyEndAllowThreads(__tstate);
e6056257
RD
2012 if (PyErr_Occurred()) return NULL;
2013} _resultobj = Py_BuildValue("l",_result);
2014 return _resultobj;
2015}
2016
2017#define wxWindow_GetId(_swigobj) (_swigobj->GetId())
2018static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
2019 PyObject * _resultobj;
2020 int _result;
2021 wxWindow * _arg0;
2022 PyObject * _argo0 = 0;
2023 char *_kwnames[] = { "self", NULL };
2024
2025 self = self;
2026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0))
2027 return NULL;
2028 if (_argo0) {
2029 if (_argo0 == Py_None) { _arg0 = NULL; }
2030 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2031 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p.");
2032 return NULL;
2033 }
2034 }
2035{
0e2ff151 2036 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2037 _result = (int )wxWindow_GetId(_arg0);
2038
0e2ff151 2039 wxPyEndAllowThreads(__tstate);
e6056257
RD
2040 if (PyErr_Occurred()) return NULL;
2041} _resultobj = Py_BuildValue("i",_result);
2042 return _resultobj;
2043}
2044
2045#define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel())
2046static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
2047 PyObject * _resultobj;
2048 wxString * _result;
2049 wxWindow * _arg0;
2050 PyObject * _argo0 = 0;
2051 char *_kwnames[] = { "self", NULL };
2052
2053 self = self;
2054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0))
2055 return NULL;
2056 if (_argo0) {
2057 if (_argo0 == Py_None) { _arg0 = NULL; }
2058 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2059 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p.");
2060 return NULL;
2061 }
2062 }
2063{
0e2ff151 2064 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2065 _result = new wxString (wxWindow_GetLabel(_arg0));
2066
0e2ff151 2067 wxPyEndAllowThreads(__tstate);
e6056257
RD
2068 if (PyErr_Occurred()) return NULL;
2069}{
2070 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2071}
2072{
2073 delete _result;
2074}
2075 return _resultobj;
2076}
2077
2078#define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
2079static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
2080 PyObject * _resultobj;
2081 wxWindow * _arg0;
2082 wxString * _arg1;
2083 PyObject * _argo0 = 0;
2084 PyObject * _obj1 = 0;
2085 char *_kwnames[] = { "self","label", NULL };
2086
2087 self = self;
2088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1))
2089 return NULL;
2090 if (_argo0) {
2091 if (_argo0 == Py_None) { _arg0 = NULL; }
2092 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2093 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p.");
2094 return NULL;
2095 }
2096 }
2097{
2098#if PYTHON_API_VERSION >= 1009
2099 char* tmpPtr; int tmpSize;
2100 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2101 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2102 return NULL;
2103 }
2104 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2105 return NULL;
2106 _arg1 = new wxString(tmpPtr, tmpSize);
2107#else
2108 if (!PyString_Check(_obj1)) {
2109 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2110 return NULL;
2111 }
2112 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2113#endif
2114}
2115{
0e2ff151 2116 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2117 wxWindow_SetLabel(_arg0,*_arg1);
2118
0e2ff151 2119 wxPyEndAllowThreads(__tstate);
e6056257
RD
2120 if (PyErr_Occurred()) return NULL;
2121} Py_INCREF(Py_None);
2122 _resultobj = Py_None;
2123{
2124 if (_obj1)
2125 delete _arg1;
2126}
2127 return _resultobj;
2128}
2129
2130#define wxWindow_GetName(_swigobj) (_swigobj->GetName())
2131static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
2132 PyObject * _resultobj;
2133 wxString * _result;
2134 wxWindow * _arg0;
2135 PyObject * _argo0 = 0;
2136 char *_kwnames[] = { "self", NULL };
2137
2138 self = self;
2139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0))
2140 return NULL;
2141 if (_argo0) {
2142 if (_argo0 == Py_None) { _arg0 = NULL; }
2143 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2144 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p.");
2145 return NULL;
2146 }
2147 }
2148{
0e2ff151 2149 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2150 _result = new wxString (wxWindow_GetName(_arg0));
2151
0e2ff151 2152 wxPyEndAllowThreads(__tstate);
e6056257
RD
2153 if (PyErr_Occurred()) return NULL;
2154}{
2155 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2156}
2157{
2158 delete _result;
2159}
2160 return _resultobj;
2161}
2162
2163#define wxWindow_GetParent(_swigobj) (_swigobj->GetParent())
2164static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
2165 PyObject * _resultobj;
2166 wxWindow * _result;
2167 wxWindow * _arg0;
2168 PyObject * _argo0 = 0;
2169 char *_kwnames[] = { "self", NULL };
2170
2171 self = self;
2172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0))
2173 return NULL;
2174 if (_argo0) {
2175 if (_argo0 == Py_None) { _arg0 = NULL; }
2176 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2177 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p.");
2178 return NULL;
2179 }
2180 }
2181{
0e2ff151 2182 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2183 _result = (wxWindow *)wxWindow_GetParent(_arg0);
2184
0e2ff151 2185 wxPyEndAllowThreads(__tstate);
e6056257
RD
2186 if (PyErr_Occurred()) return NULL;
2187}{ _resultobj = wxPyMake_wxObject(_result); }
2188 return _resultobj;
2189}
2190
2191#define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
2192static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
2193 PyObject * _resultobj;
2194 wxWindow * _arg0;
2195 int * _arg1;
2196 int temp;
2197 int * _arg2;
2198 int temp0;
2199 PyObject * _argo0 = 0;
2200 char *_kwnames[] = { "self", NULL };
2201
2202 self = self;
2203{
2204 _arg1 = &temp;
2205}
2206{
2207 _arg2 = &temp0;
2208}
2209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0))
2210 return NULL;
2211 if (_argo0) {
2212 if (_argo0 == Py_None) { _arg0 = NULL; }
2213 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p.");
2215 return NULL;
2216 }
2217 }
2218{
0e2ff151 2219 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2220 wxWindow_GetPositionTuple(_arg0,_arg1,_arg2);
2221
0e2ff151 2222 wxPyEndAllowThreads(__tstate);
e6056257
RD
2223 if (PyErr_Occurred()) return NULL;
2224} Py_INCREF(Py_None);
2225 _resultobj = Py_None;
2226{
2227 PyObject *o;
2228 o = PyInt_FromLong((long) (*_arg1));
2229 _resultobj = t_output_helper(_resultobj, o);
2230}
2231{
2232 PyObject *o;
2233 o = PyInt_FromLong((long) (*_arg2));
2234 _resultobj = t_output_helper(_resultobj, o);
2235}
2236 return _resultobj;
2237}
2238
2239#define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition())
2240static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2241 PyObject * _resultobj;
2242 wxPoint * _result;
2243 wxWindow * _arg0;
2244 PyObject * _argo0 = 0;
2245 char *_kwnames[] = { "self", NULL };
2246 char _ptemp[128];
2247
2248 self = self;
2249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0))
2250 return NULL;
2251 if (_argo0) {
2252 if (_argo0 == Py_None) { _arg0 = NULL; }
2253 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2254 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p.");
2255 return NULL;
2256 }
2257 }
2258{
0e2ff151 2259 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2260 _result = new wxPoint (wxWindow_GetPosition(_arg0));
2261
0e2ff151 2262 wxPyEndAllowThreads(__tstate);
e6056257
RD
2263 if (PyErr_Occurred()) return NULL;
2264} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2265 _resultobj = Py_BuildValue("s",_ptemp);
2266 return _resultobj;
2267}
2268
2269#define wxWindow_GetRect(_swigobj) (_swigobj->GetRect())
2270static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
2271 PyObject * _resultobj;
2272 wxRect * _result;
2273 wxWindow * _arg0;
2274 PyObject * _argo0 = 0;
2275 char *_kwnames[] = { "self", NULL };
2276 char _ptemp[128];
2277
2278 self = self;
2279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0))
2280 return NULL;
2281 if (_argo0) {
2282 if (_argo0 == Py_None) { _arg0 = NULL; }
2283 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2284 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p.");
2285 return NULL;
2286 }
2287 }
2288{
0e2ff151 2289 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2290 _result = new wxRect (wxWindow_GetRect(_arg0));
2291
0e2ff151 2292 wxPyEndAllowThreads(__tstate);
e6056257
RD
2293 if (PyErr_Occurred()) return NULL;
2294} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
2295 _resultobj = Py_BuildValue("s",_ptemp);
2296 return _resultobj;
2297}
2298
2299#define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0))
2300static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) {
2301 PyObject * _resultobj;
2302 int _result;
2303 wxWindow * _arg0;
2304 int _arg1;
2305 PyObject * _argo0 = 0;
2306 char *_kwnames[] = { "self","orientation", NULL };
2307
2308 self = self;
2309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1))
2310 return NULL;
2311 if (_argo0) {
2312 if (_argo0 == Py_None) { _arg0 = NULL; }
2313 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2314 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p.");
2315 return NULL;
2316 }
2317 }
2318{
0e2ff151 2319 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2320 _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1);
2321
0e2ff151 2322 wxPyEndAllowThreads(__tstate);
e6056257
RD
2323 if (PyErr_Occurred()) return NULL;
2324} _resultobj = Py_BuildValue("i",_result);
2325 return _resultobj;
2326}
2327
2328#define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0))
2329static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
2330 PyObject * _resultobj;
2331 int _result;
2332 wxWindow * _arg0;
2333 int _arg1;
2334 PyObject * _argo0 = 0;
2335 char *_kwnames[] = { "self","orientation", NULL };
2336
2337 self = self;
2338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1))
2339 return NULL;
2340 if (_argo0) {
2341 if (_argo0 == Py_None) { _arg0 = NULL; }
2342 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2343 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p.");
2344 return NULL;
2345 }
2346 }
2347{
0e2ff151 2348 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2349 _result = (int )wxWindow_GetScrollPos(_arg0,_arg1);
2350
0e2ff151 2351 wxPyEndAllowThreads(__tstate);
e6056257
RD
2352 if (PyErr_Occurred()) return NULL;
2353} _resultobj = Py_BuildValue("i",_result);
2354 return _resultobj;
2355}
2356
2357#define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0))
2358static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) {
2359 PyObject * _resultobj;
2360 int _result;
2361 wxWindow * _arg0;
2362 int _arg1;
2363 PyObject * _argo0 = 0;
2364 char *_kwnames[] = { "self","orientation", NULL };
2365
2366 self = self;
2367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1))
2368 return NULL;
2369 if (_argo0) {
2370 if (_argo0 == Py_None) { _arg0 = NULL; }
2371 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2372 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p.");
2373 return NULL;
2374 }
2375 }
2376{
0e2ff151 2377 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2378 _result = (int )wxWindow_GetScrollRange(_arg0,_arg1);
2379
0e2ff151 2380 wxPyEndAllowThreads(__tstate);
e6056257
RD
2381 if (PyErr_Occurred()) return NULL;
2382} _resultobj = Py_BuildValue("i",_result);
2383 return _resultobj;
2384}
2385
2386#define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
2387static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
2388 PyObject * _resultobj;
2389 wxWindow * _arg0;
2390 int * _arg1;
2391 int temp;
2392 int * _arg2;
2393 int temp0;
2394 PyObject * _argo0 = 0;
2395 char *_kwnames[] = { "self", NULL };
2396
2397 self = self;
2398{
2399 _arg1 = &temp;
2400}
2401{
2402 _arg2 = &temp0;
2403}
2404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0))
2405 return NULL;
2406 if (_argo0) {
2407 if (_argo0 == Py_None) { _arg0 = NULL; }
2408 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2409 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p.");
2410 return NULL;
2411 }
2412 }
2413{
0e2ff151 2414 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2415 wxWindow_GetSizeTuple(_arg0,_arg1,_arg2);
2416
0e2ff151 2417 wxPyEndAllowThreads(__tstate);
e6056257
RD
2418 if (PyErr_Occurred()) return NULL;
2419} Py_INCREF(Py_None);
2420 _resultobj = Py_None;
2421{
2422 PyObject *o;
2423 o = PyInt_FromLong((long) (*_arg1));
2424 _resultobj = t_output_helper(_resultobj, o);
2425}
2426{
2427 PyObject *o;
2428 o = PyInt_FromLong((long) (*_arg2));
2429 _resultobj = t_output_helper(_resultobj, o);
2430}
2431 return _resultobj;
2432}
2433
2434#define wxWindow_GetSize(_swigobj) (_swigobj->GetSize())
2435static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2436 PyObject * _resultobj;
2437 wxSize * _result;
2438 wxWindow * _arg0;
2439 PyObject * _argo0 = 0;
2440 char *_kwnames[] = { "self", NULL };
2441 char _ptemp[128];
2442
2443 self = self;
2444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0))
2445 return NULL;
2446 if (_argo0) {
2447 if (_argo0 == Py_None) { _arg0 = NULL; }
2448 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2449 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p.");
2450 return NULL;
2451 }
2452 }
2453{
0e2ff151 2454 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2455 _result = new wxSize (wxWindow_GetSize(_arg0));
2456
0e2ff151 2457 wxPyEndAllowThreads(__tstate);
e6056257
RD
2458 if (PyErr_Occurred()) return NULL;
2459} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2460 _resultobj = Py_BuildValue("s",_ptemp);
2461 return _resultobj;
2462}
2463
2464#define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
2465static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
2466 PyObject * _resultobj;
2467 wxWindow * _arg0;
2468 wxString * _arg1;
2469 int * _arg2;
2470 int temp;
2471 int * _arg3;
2472 int temp0;
2473 PyObject * _argo0 = 0;
2474 PyObject * _obj1 = 0;
2475 char *_kwnames[] = { "self","string", NULL };
2476
2477 self = self;
2478{
2479 _arg2 = &temp;
2480}
2481{
2482 _arg3 = &temp0;
2483}
2484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1))
2485 return NULL;
2486 if (_argo0) {
2487 if (_argo0 == Py_None) { _arg0 = NULL; }
2488 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2489 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p.");
2490 return NULL;
2491 }
2492 }
2493{
2494#if PYTHON_API_VERSION >= 1009
2495 char* tmpPtr; int tmpSize;
2496 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2497 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2498 return NULL;
2499 }
2500 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2501 return NULL;
2502 _arg1 = new wxString(tmpPtr, tmpSize);
2503#else
2504 if (!PyString_Check(_obj1)) {
2505 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2506 return NULL;
2507 }
2508 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2509#endif
2510}
2511{
0e2ff151 2512 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2513 wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
2514
0e2ff151 2515 wxPyEndAllowThreads(__tstate);
e6056257
RD
2516 if (PyErr_Occurred()) return NULL;
2517} Py_INCREF(Py_None);
2518 _resultobj = Py_None;
2519{
2520 PyObject *o;
2521 o = PyInt_FromLong((long) (*_arg2));
2522 _resultobj = t_output_helper(_resultobj, o);
2523}
2524{
2525 PyObject *o;
2526 o = PyInt_FromLong((long) (*_arg3));
2527 _resultobj = t_output_helper(_resultobj, o);
2528}
2529{
2530 if (_obj1)
2531 delete _arg1;
2532}
2533 return _resultobj;
2534}
2535
2536#define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2537static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
2538 PyObject * _resultobj;
2539 wxWindow * _arg0;
2540 wxString * _arg1;
2541 int * _arg2;
2542 int temp;
2543 int * _arg3;
2544 int temp0;
2545 int * _arg4;
2546 int temp1;
2547 int * _arg5;
2548 int temp2;
2549 wxFont * _arg6 = (wxFont *) NULL;
2550 PyObject * _argo0 = 0;
2551 PyObject * _obj1 = 0;
2552 PyObject * _argo6 = 0;
2553 char *_kwnames[] = { "self","string","font", NULL };
2554
2555 self = self;
2556{
2557 _arg2 = &temp;
2558}
2559{
2560 _arg3 = &temp0;
2561}
2562{
2563 _arg4 = &temp1;
2564}
2565{
2566 _arg5 = &temp2;
2567}
2568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
2569 return NULL;
2570 if (_argo0) {
2571 if (_argo0 == Py_None) { _arg0 = NULL; }
2572 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2573 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p.");
2574 return NULL;
2575 }
2576 }
2577{
2578#if PYTHON_API_VERSION >= 1009
2579 char* tmpPtr; int tmpSize;
2580 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2581 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2582 return NULL;
2583 }
2584 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2585 return NULL;
2586 _arg1 = new wxString(tmpPtr, tmpSize);
2587#else
2588 if (!PyString_Check(_obj1)) {
2589 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2590 return NULL;
2591 }
2592 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2593#endif
2594}
2595 if (_argo6) {
2596 if (_argo6 == Py_None) { _arg6 = NULL; }
2597 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
2598 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p.");
2599 return NULL;
2600 }
2601 }
2602{
0e2ff151 2603 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2604 wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
2605
0e2ff151 2606 wxPyEndAllowThreads(__tstate);
e6056257
RD
2607 if (PyErr_Occurred()) return NULL;
2608} Py_INCREF(Py_None);
2609 _resultobj = Py_None;
2610{
2611 PyObject *o;
2612 o = PyInt_FromLong((long) (*_arg2));
2613 _resultobj = t_output_helper(_resultobj, o);
2614}
2615{
2616 PyObject *o;
2617 o = PyInt_FromLong((long) (*_arg3));
2618 _resultobj = t_output_helper(_resultobj, o);
2619}
2620{
2621 PyObject *o;
2622 o = PyInt_FromLong((long) (*_arg4));
2623 _resultobj = t_output_helper(_resultobj, o);
2624}
2625{
2626 PyObject *o;
2627 o = PyInt_FromLong((long) (*_arg5));
2628 _resultobj = t_output_helper(_resultobj, o);
2629}
2630{
2631 if (_obj1)
2632 delete _arg1;
2633}
2634 return _resultobj;
2635}
2636
2637#define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
2638static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
2639 PyObject * _resultobj;
2640 wxString * _result;
2641 wxWindow * _arg0;
2642 PyObject * _argo0 = 0;
2643 char *_kwnames[] = { "self", NULL };
2644
2645 self = self;
2646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0))
2647 return NULL;
2648 if (_argo0) {
2649 if (_argo0 == Py_None) { _arg0 = NULL; }
2650 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2651 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p.");
2652 return NULL;
2653 }
2654 }
2655{
0e2ff151 2656 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2657 _result = new wxString (wxWindow_GetTitle(_arg0));
2658
0e2ff151 2659 wxPyEndAllowThreads(__tstate);
e6056257
RD
2660 if (PyErr_Occurred()) return NULL;
2661}{
2662 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2663}
2664{
2665 delete _result;
2666}
2667 return _resultobj;
2668}
2669
2670#define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion())
2671static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
2672 PyObject * _resultobj;
2673 wxRegion * _result;
2674 wxWindow * _arg0;
2675 PyObject * _argo0 = 0;
2676 char *_kwnames[] = { "self", NULL };
2677 char _ptemp[128];
2678
2679 self = self;
2680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0))
2681 return NULL;
2682 if (_argo0) {
2683 if (_argo0 == Py_None) { _arg0 = NULL; }
2684 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2685 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p.");
2686 return NULL;
2687 }
2688 }
2689{
0e2ff151 2690 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2691 _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0));
2692
0e2ff151 2693 wxPyEndAllowThreads(__tstate);
e6056257
RD
2694 if (PyErr_Occurred()) return NULL;
2695} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p");
2696 _resultobj = Py_BuildValue("s",_ptemp);
2697 return _resultobj;
2698}
2699
2700#define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag())
2701static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
2702 PyObject * _resultobj;
2703 long _result;
2704 wxWindow * _arg0;
2705 PyObject * _argo0 = 0;
2706 char *_kwnames[] = { "self", NULL };
2707
2708 self = self;
2709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0))
2710 return NULL;
2711 if (_argo0) {
2712 if (_argo0 == Py_None) { _arg0 = NULL; }
2713 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2714 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p.");
2715 return NULL;
2716 }
2717 }
2718{
0e2ff151 2719 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2720 _result = (long )wxWindow_GetWindowStyleFlag(_arg0);
2721
0e2ff151 2722 wxPyEndAllowThreads(__tstate);
e6056257
RD
2723 if (PyErr_Occurred()) return NULL;
2724} _resultobj = Py_BuildValue("l",_result);
2725 return _resultobj;
2726}
2727
2728#define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
2729static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
2730 PyObject * _resultobj;
2731 wxWindow * _arg0;
2732 long _arg1;
2733 PyObject * _argo0 = 0;
2734 char *_kwnames[] = { "self","style", NULL };
2735
2736 self = self;
2737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1))
2738 return NULL;
2739 if (_argo0) {
2740 if (_argo0 == Py_None) { _arg0 = NULL; }
2741 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2742 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p.");
2743 return NULL;
2744 }
2745 }
2746{
0e2ff151 2747 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2748 wxWindow_SetWindowStyleFlag(_arg0,_arg1);
2749
0e2ff151 2750 wxPyEndAllowThreads(__tstate);
e6056257
RD
2751 if (PyErr_Occurred()) return NULL;
2752} Py_INCREF(Py_None);
2753 _resultobj = Py_None;
2754 return _resultobj;
2755}
2756
2757#define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0))
2758static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2759 PyObject * _resultobj;
2760 wxWindow * _arg0;
2761 long _arg1;
2762 PyObject * _argo0 = 0;
2763 char *_kwnames[] = { "self","style", NULL };
2764
2765 self = self;
2766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1))
2767 return NULL;
2768 if (_argo0) {
2769 if (_argo0 == Py_None) { _arg0 = NULL; }
2770 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2771 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p.");
2772 return NULL;
2773 }
2774 }
2775{
0e2ff151 2776 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2777 wxWindow_SetWindowStyle(_arg0,_arg1);
2778
0e2ff151 2779 wxPyEndAllowThreads(__tstate);
e6056257
RD
2780 if (PyErr_Occurred()) return NULL;
2781} Py_INCREF(Py_None);
2782 _resultobj = Py_None;
2783 return _resultobj;
2784}
2785
a341e32e
RD
2786#define wxWindow_HasScrollbar(_swigobj,_swigarg0) (_swigobj->HasScrollbar(_swigarg0))
2787static PyObject *_wrap_wxWindow_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
2788 PyObject * _resultobj;
2789 bool _result;
2790 wxWindow * _arg0;
2791 int _arg1;
2792 PyObject * _argo0 = 0;
2793 char *_kwnames[] = { "self","orient", NULL };
2794
2795 self = self;
2796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_HasScrollbar",_kwnames,&_argo0,&_arg1))
2797 return NULL;
2798 if (_argo0) {
2799 if (_argo0 == Py_None) { _arg0 = NULL; }
2800 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2801 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasScrollbar. Expected _wxWindow_p.");
2802 return NULL;
2803 }
2804 }
2805{
2806 PyThreadState* __tstate = wxPyBeginAllowThreads();
2807 _result = (bool )wxWindow_HasScrollbar(_arg0,_arg1);
2808
2809 wxPyEndAllowThreads(__tstate);
2810 if (PyErr_Occurred()) return NULL;
2811} _resultobj = Py_BuildValue("i",_result);
2812 return _resultobj;
2813}
2814
e6056257
RD
2815#define wxWindow_Hide(_swigobj) (_swigobj->Hide())
2816static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
2817 PyObject * _resultobj;
2818 bool _result;
2819 wxWindow * _arg0;
2820 PyObject * _argo0 = 0;
2821 char *_kwnames[] = { "self", NULL };
2822
2823 self = self;
2824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0))
2825 return NULL;
2826 if (_argo0) {
2827 if (_argo0 == Py_None) { _arg0 = NULL; }
2828 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2829 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p.");
2830 return NULL;
2831 }
2832 }
2833{
0e2ff151 2834 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2835 _result = (bool )wxWindow_Hide(_arg0);
2836
0e2ff151 2837 wxPyEndAllowThreads(__tstate);
e6056257
RD
2838 if (PyErr_Occurred()) return NULL;
2839} _resultobj = Py_BuildValue("i",_result);
2840 return _resultobj;
2841}
2842
a341e32e
RD
2843#define wxWindow_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0))
2844static PyObject *_wrap_wxWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
2845 PyObject * _resultobj;
2846 wxHitTest _result;
2847 wxWindow * _arg0;
2848 wxPoint * _arg1;
2849 PyObject * _argo0 = 0;
2850 wxPoint temp;
2851 PyObject * _obj1 = 0;
2852 char *_kwnames[] = { "self","pt", NULL };
2853
2854 self = self;
2855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_HitTest",_kwnames,&_argo0,&_obj1))
2856 return NULL;
2857 if (_argo0) {
2858 if (_argo0 == Py_None) { _arg0 = NULL; }
2859 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2860 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HitTest. Expected _wxWindow_p.");
2861 return NULL;
2862 }
2863 }
2864{
2865 _arg1 = &temp;
2866 if (! wxPoint_helper(_obj1, &_arg1))
2867 return NULL;
2868}
2869{
2870 PyThreadState* __tstate = wxPyBeginAllowThreads();
2871 _result = (wxHitTest )wxWindow_HitTest(_arg0,*_arg1);
2872
2873 wxPyEndAllowThreads(__tstate);
2874 if (PyErr_Occurred()) return NULL;
2875} _resultobj = Py_BuildValue("i",_result);
2876 return _resultobj;
2877}
2878
e6056257
RD
2879#define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog())
2880static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
2881 PyObject * _resultobj;
2882 wxWindow * _arg0;
2883 PyObject * _argo0 = 0;
2884 char *_kwnames[] = { "self", NULL };
2885
2886 self = self;
2887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0))
2888 return NULL;
2889 if (_argo0) {
2890 if (_argo0 == Py_None) { _arg0 = NULL; }
2891 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2892 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p.");
2893 return NULL;
2894 }
2895 }
2896{
0e2ff151 2897 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2898 wxWindow_InitDialog(_arg0);
2899
0e2ff151 2900 wxPyEndAllowThreads(__tstate);
e6056257
RD
2901 if (PyErr_Occurred()) return NULL;
2902} Py_INCREF(Py_None);
2903 _resultobj = Py_None;
2904 return _resultobj;
2905}
2906
2907#define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled())
2908static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
2909 PyObject * _resultobj;
2910 bool _result;
2911 wxWindow * _arg0;
2912 PyObject * _argo0 = 0;
2913 char *_kwnames[] = { "self", NULL };
2914
2915 self = self;
2916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0))
2917 return NULL;
2918 if (_argo0) {
2919 if (_argo0 == Py_None) { _arg0 = NULL; }
2920 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2921 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p.");
2922 return NULL;
2923 }
2924 }
2925{
0e2ff151 2926 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2927 _result = (bool )wxWindow_IsEnabled(_arg0);
2928
0e2ff151 2929 wxPyEndAllowThreads(__tstate);
e6056257
RD
2930 if (PyErr_Occurred()) return NULL;
2931} _resultobj = Py_BuildValue("i",_result);
2932 return _resultobj;
2933}
2934
2935#define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2936static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) {
2937 PyObject * _resultobj;
2938 bool _result;
2939 wxWindow * _arg0;
2940 int _arg1;
2941 int _arg2;
2942 int _arg3 = (int ) 0;
2943 int _arg4 = (int ) 0;
2944 PyObject * _argo0 = 0;
2945 char *_kwnames[] = { "self","x","y","w","h", NULL };
2946
2947 self = self;
2948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
2949 return NULL;
2950 if (_argo0) {
2951 if (_argo0 == Py_None) { _arg0 = NULL; }
2952 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2953 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p.");
2954 return NULL;
2955 }
2956 }
2957{
0e2ff151 2958 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2959 _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4);
2960
0e2ff151 2961 wxPyEndAllowThreads(__tstate);
e6056257
RD
2962 if (PyErr_Occurred()) return NULL;
2963} _resultobj = Py_BuildValue("i",_result);
2964 return _resultobj;
2965}
2966
2967#define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2968static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2969 PyObject * _resultobj;
2970 bool _result;
2971 wxWindow * _arg0;
2972 wxPoint * _arg1;
2973 PyObject * _argo0 = 0;
2974 wxPoint temp;
2975 PyObject * _obj1 = 0;
2976 char *_kwnames[] = { "self","pt", NULL };
2977
2978 self = self;
2979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1))
2980 return NULL;
2981 if (_argo0) {
2982 if (_argo0 == Py_None) { _arg0 = NULL; }
2983 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2984 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p.");
2985 return NULL;
2986 }
2987 }
2988{
2989 _arg1 = &temp;
2990 if (! wxPoint_helper(_obj1, &_arg1))
2991 return NULL;
2992}
2993{
0e2ff151 2994 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2995 _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1);
2996
0e2ff151 2997 wxPyEndAllowThreads(__tstate);
e6056257
RD
2998 if (PyErr_Occurred()) return NULL;
2999} _resultobj = Py_BuildValue("i",_result);
3000 return _resultobj;
3001}
3002
3003#define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
3004static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3005 PyObject * _resultobj;
3006 bool _result;
3007 wxWindow * _arg0;
3008 wxRect * _arg1;
3009 PyObject * _argo0 = 0;
3010 wxRect temp;
3011 PyObject * _obj1 = 0;
3012 char *_kwnames[] = { "self","rect", NULL };
3013
3014 self = self;
3015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1))
3016 return NULL;
3017 if (_argo0) {
3018 if (_argo0 == Py_None) { _arg0 = NULL; }
3019 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3020 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p.");
3021 return NULL;
3022 }
3023 }
3024{
3025 _arg1 = &temp;
3026 if (! wxRect_helper(_obj1, &_arg1))
3027 return NULL;
3028}
3029{
0e2ff151 3030 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3031 _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1);
3032
0e2ff151 3033 wxPyEndAllowThreads(__tstate);
e6056257
RD
3034 if (PyErr_Occurred()) return NULL;
3035} _resultobj = Py_BuildValue("i",_result);
3036 return _resultobj;
3037}
3038
3039#define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
3040static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
3041 PyObject * _resultobj;
3042 bool _result;
3043 wxWindow * _arg0;
3044 PyObject * _argo0 = 0;
3045 char *_kwnames[] = { "self", NULL };
3046
3047 self = self;
3048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0))
3049 return NULL;
3050 if (_argo0) {
3051 if (_argo0 == Py_None) { _arg0 = NULL; }
3052 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3053 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p.");
3054 return NULL;
3055 }
3056 }
3057{
0e2ff151 3058 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3059 _result = (bool )wxWindow_IsRetained(_arg0);
3060
0e2ff151 3061 wxPyEndAllowThreads(__tstate);
e6056257
RD
3062 if (PyErr_Occurred()) return NULL;
3063} _resultobj = Py_BuildValue("i",_result);
3064 return _resultobj;
3065}
3066
3067#define wxWindow_IsShown(_swigobj) (_swigobj->IsShown())
3068static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
3069 PyObject * _resultobj;
3070 bool _result;
3071 wxWindow * _arg0;
3072 PyObject * _argo0 = 0;
3073 char *_kwnames[] = { "self", NULL };
3074
3075 self = self;
3076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0))
3077 return NULL;
3078 if (_argo0) {
3079 if (_argo0 == Py_None) { _arg0 = NULL; }
3080 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3081 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p.");
3082 return NULL;
3083 }
3084 }
3085{
0e2ff151 3086 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3087 _result = (bool )wxWindow_IsShown(_arg0);
3088
0e2ff151 3089 wxPyEndAllowThreads(__tstate);
e6056257
RD
3090 if (PyErr_Occurred()) return NULL;
3091} _resultobj = Py_BuildValue("i",_result);
3092 return _resultobj;
3093}
3094
3095#define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel())
3096static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
3097 PyObject * _resultobj;
3098 bool _result;
3099 wxWindow * _arg0;
3100 PyObject * _argo0 = 0;
3101 char *_kwnames[] = { "self", NULL };
3102
3103 self = self;
3104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0))
3105 return NULL;
3106 if (_argo0) {
3107 if (_argo0 == Py_None) { _arg0 = NULL; }
3108 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3109 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p.");
3110 return NULL;
3111 }
3112 }
3113{
0e2ff151 3114 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3115 _result = (bool )wxWindow_IsTopLevel(_arg0);
3116
0e2ff151 3117 wxPyEndAllowThreads(__tstate);
e6056257
RD
3118 if (PyErr_Occurred()) return NULL;
3119} _resultobj = Py_BuildValue("i",_result);
3120 return _resultobj;
3121}
3122
3123#define wxWindow_Layout(_swigobj) (_swigobj->Layout())
3124static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
3125 PyObject * _resultobj;
3126 wxWindow * _arg0;
3127 PyObject * _argo0 = 0;
3128 char *_kwnames[] = { "self", NULL };
3129
3130 self = self;
3131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0))
3132 return NULL;
3133 if (_argo0) {
3134 if (_argo0 == Py_None) { _arg0 = NULL; }
3135 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3136 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p.");
3137 return NULL;
3138 }
3139 }
3140{
0e2ff151 3141 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3142 wxWindow_Layout(_arg0);
3143
0e2ff151 3144 wxPyEndAllowThreads(__tstate);
e6056257
RD
3145 if (PyErr_Occurred()) return NULL;
3146} Py_INCREF(Py_None);
3147 _resultobj = Py_None;
3148 return _resultobj;
3149}
3150
3151#define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2))
3152static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) {
3153 PyObject * _resultobj;
3154 bool _result;
3155 wxWindow * _arg0;
3156 wxWindow * _arg1;
3157 wxString * _arg2;
3158 wxResourceTable * _arg3 = (wxResourceTable *) NULL;
3159 PyObject * _argo0 = 0;
3160 PyObject * _argo1 = 0;
3161 PyObject * _obj2 = 0;
3162 PyObject * _argo3 = 0;
3163 char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL };
3164
3165 self = self;
3166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3))
3167 return NULL;
3168 if (_argo0) {
3169 if (_argo0 == Py_None) { _arg0 = NULL; }
3170 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3171 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3172 return NULL;
3173 }
3174 }
3175 if (_argo1) {
3176 if (_argo1 == Py_None) { _arg1 = NULL; }
3177 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3178 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3179 return NULL;
3180 }
3181 }
3182{
3183#if PYTHON_API_VERSION >= 1009
3184 char* tmpPtr; int tmpSize;
3185 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
3186 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3187 return NULL;
3188 }
3189 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
3190 return NULL;
3191 _arg2 = new wxString(tmpPtr, tmpSize);
3192#else
3193 if (!PyString_Check(_obj2)) {
3194 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3195 return NULL;
3196 }
3197 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3198#endif
3199}
3200 if (_argo3) {
3201 if (_argo3 == Py_None) { _arg3 = NULL; }
3202 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) {
3203 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p.");
3204 return NULL;
3205 }
3206 }
3207{
0e2ff151 3208 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3209 _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3);
3210
0e2ff151 3211 wxPyEndAllowThreads(__tstate);
e6056257
RD
3212 if (PyErr_Occurred()) return NULL;
3213} _resultobj = Py_BuildValue("i",_result);
3214{
3215 if (_obj2)
3216 delete _arg2;
3217}
3218 return _resultobj;
3219}
3220
3221#define wxWindow_Lower(_swigobj) (_swigobj->Lower())
3222static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) {
3223 PyObject * _resultobj;
3224 wxWindow * _arg0;
3225 PyObject * _argo0 = 0;
3226 char *_kwnames[] = { "self", NULL };
3227
3228 self = self;
3229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0))
3230 return NULL;
3231 if (_argo0) {
3232 if (_argo0 == Py_None) { _arg0 = NULL; }
3233 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3234 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p.");
3235 return NULL;
3236 }
3237 }
3238{
0e2ff151 3239 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3240 wxWindow_Lower(_arg0);
3241
0e2ff151 3242 wxPyEndAllowThreads(__tstate);
e6056257
RD
3243 if (PyErr_Occurred()) return NULL;
3244} Py_INCREF(Py_None);
3245 _resultobj = Py_None;
3246 return _resultobj;
3247}
3248
3249#define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
3250static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) {
3251 PyObject * _resultobj;
3252 wxWindow * _arg0;
3253 bool _arg1 = (bool ) TRUE;
3254 PyObject * _argo0 = 0;
3255 int tempbool1 = (int) TRUE;
3256 char *_kwnames[] = { "self","flag", NULL };
3257
3258 self = self;
3259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1))
3260 return NULL;
3261 if (_argo0) {
3262 if (_argo0 == Py_None) { _arg0 = NULL; }
3263 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3264 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p.");
3265 return NULL;
3266 }
3267 }
3268 _arg1 = (bool ) tempbool1;
3269{
0e2ff151 3270 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3271 wxWindow_MakeModal(_arg0,_arg1);
3272
0e2ff151 3273 wxPyEndAllowThreads(__tstate);
e6056257
RD
3274 if (PyErr_Occurred()) return NULL;
3275} Py_INCREF(Py_None);
3276 _resultobj = Py_None;
3277 return _resultobj;
3278}
3279
a341e32e 3280#define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Move(_swigarg0,_swigarg1,_swigarg2))
e6056257
RD
3281static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
3282 PyObject * _resultobj;
3283 wxWindow * _arg0;
3284 int _arg1;
3285 int _arg2;
a341e32e 3286 int _arg3 = (int ) wxSIZE_USE_EXISTING;
e6056257 3287 PyObject * _argo0 = 0;
a341e32e 3288 char *_kwnames[] = { "self","x","y","flags", NULL };
e6056257
RD
3289
3290 self = self;
a341e32e 3291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
e6056257
RD
3292 return NULL;
3293 if (_argo0) {
3294 if (_argo0 == Py_None) { _arg0 = NULL; }
3295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p.");
3297 return NULL;
3298 }
3299 }
3300{
0e2ff151 3301 PyThreadState* __tstate = wxPyBeginAllowThreads();
a341e32e 3302 wxWindow_MoveXY(_arg0,_arg1,_arg2,_arg3);
e6056257 3303
0e2ff151 3304 wxPyEndAllowThreads(__tstate);
e6056257
RD
3305 if (PyErr_Occurred()) return NULL;
3306} Py_INCREF(Py_None);
3307 _resultobj = Py_None;
3308 return _resultobj;
3309}
3310
a341e32e 3311#define wxWindow_Move(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
e6056257
RD
3312static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
3313 PyObject * _resultobj;
3314 wxWindow * _arg0;
3315 wxPoint * _arg1;
a341e32e 3316 int _arg2 = (int ) wxSIZE_USE_EXISTING;
e6056257
RD
3317 PyObject * _argo0 = 0;
3318 wxPoint temp;
3319 PyObject * _obj1 = 0;
a341e32e 3320 char *_kwnames[] = { "self","point","flags", NULL };
e6056257
RD
3321
3322 self = self;
a341e32e 3323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_Move",_kwnames,&_argo0,&_obj1,&_arg2))
e6056257
RD
3324 return NULL;
3325 if (_argo0) {
3326 if (_argo0 == Py_None) { _arg0 = NULL; }
3327 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3328 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p.");
3329 return NULL;
3330 }
3331 }
3332{
3333 _arg1 = &temp;
3334 if (! wxPoint_helper(_obj1, &_arg1))
3335 return NULL;
3336}
3337{
0e2ff151 3338 PyThreadState* __tstate = wxPyBeginAllowThreads();
a341e32e 3339 wxWindow_Move(_arg0,*_arg1,_arg2);
e6056257 3340
0e2ff151 3341 wxPyEndAllowThreads(__tstate);
e6056257
RD
3342 if (PyErr_Occurred()) return NULL;
3343} Py_INCREF(Py_None);
3344 _resultobj = Py_None;
3345 return _resultobj;
3346}
3347
3348#define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0))
3349static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
3350 PyObject * _resultobj;
3351 wxEvtHandler * _result;
3352 wxWindow * _arg0;
3353 bool _arg1 = (bool ) FALSE;
3354 PyObject * _argo0 = 0;
3355 int tempbool1 = (int) FALSE;
3356 char *_kwnames[] = { "self","deleteHandler", NULL };
3357
3358 self = self;
3359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1))
3360 return NULL;
3361 if (_argo0) {
3362 if (_argo0 == Py_None) { _arg0 = NULL; }
3363 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3364 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p.");
3365 return NULL;
3366 }
3367 }
3368 _arg1 = (bool ) tempbool1;
3369{
0e2ff151 3370 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3371 _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1);
3372
0e2ff151 3373 wxPyEndAllowThreads(__tstate);
e6056257
RD
3374 if (PyErr_Occurred()) return NULL;
3375}{ _resultobj = wxPyMake_wxObject(_result); }
3376 return _resultobj;
3377}
3378
3379#define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0))
3380static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
3381 PyObject * _resultobj;
3382 wxWindow * _arg0;
3383 wxEvtHandler * _arg1;
3384 PyObject * _argo0 = 0;
3385 PyObject * _argo1 = 0;
3386 char *_kwnames[] = { "self","handler", NULL };
3387
3388 self = self;
3389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1))
3390 return NULL;
3391 if (_argo0) {
3392 if (_argo0 == Py_None) { _arg0 = NULL; }
3393 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3394 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p.");
3395 return NULL;
3396 }
3397 }
3398 if (_argo1) {
3399 if (_argo1 == Py_None) { _arg1 = NULL; }
3400 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
3401 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p.");
3402 return NULL;
3403 }
3404 }
3405{
0e2ff151 3406 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3407 wxWindow_PushEventHandler(_arg0,_arg1);
3408
0e2ff151 3409 wxPyEndAllowThreads(__tstate);
e6056257
RD
3410 if (PyErr_Occurred()) return NULL;
3411} Py_INCREF(Py_None);
3412 _resultobj = Py_None;
3413 return _resultobj;
3414}
3415
ca31b3da
RD
3416#define wxWindow_RemoveEventHandler(_swigobj,_swigarg0) (_swigobj->RemoveEventHandler(_swigarg0))
3417static PyObject *_wrap_wxWindow_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
3418 PyObject * _resultobj;
3419 bool _result;
3420 wxWindow * _arg0;
3421 wxEvtHandler * _arg1;
3422 PyObject * _argo0 = 0;
3423 PyObject * _argo1 = 0;
3424 char *_kwnames[] = { "self","handler", NULL };
3425
3426 self = self;
3427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveEventHandler",_kwnames,&_argo0,&_argo1))
3428 return NULL;
3429 if (_argo0) {
3430 if (_argo0 == Py_None) { _arg0 = NULL; }
3431 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3432 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveEventHandler. Expected _wxWindow_p.");
3433 return NULL;
3434 }
3435 }
3436 if (_argo1) {
3437 if (_argo1 == Py_None) { _arg1 = NULL; }
3438 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
3439 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveEventHandler. Expected _wxEvtHandler_p.");
3440 return NULL;
3441 }
3442 }
3443{
3444 PyThreadState* __tstate = wxPyBeginAllowThreads();
3445 _result = (bool )wxWindow_RemoveEventHandler(_arg0,_arg1);
3446
3447 wxPyEndAllowThreads(__tstate);
3448 if (PyErr_Occurred()) return NULL;
3449} _resultobj = Py_BuildValue("i",_result);
3450 return _resultobj;
3451}
3452
e6056257
RD
3453#define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2))
3454static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) {
3455 PyObject * _resultobj;
3456 bool _result;
3457 wxWindow * _arg0;
3458 wxMenu * _arg1;
3459 int _arg2;
3460 int _arg3;
3461 PyObject * _argo0 = 0;
3462 PyObject * _argo1 = 0;
3463 char *_kwnames[] = { "self","menu","x","y", NULL };
3464
3465 self = self;
3466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
3467 return NULL;
3468 if (_argo0) {
3469 if (_argo0 == Py_None) { _arg0 = NULL; }
3470 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3471 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p.");
3472 return NULL;
3473 }
3474 }
3475 if (_argo1) {
3476 if (_argo1 == Py_None) { _arg1 = NULL; }
3477 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
3478 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p.");
3479 return NULL;
3480 }
3481 }
3482{
0e2ff151 3483 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3484 _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3);
3485
0e2ff151 3486 wxPyEndAllowThreads(__tstate);
e6056257
RD
3487 if (PyErr_Occurred()) return NULL;
3488} _resultobj = Py_BuildValue("i",_result);
3489 return _resultobj;
3490}
3491
3492#define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1))
3493static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
3494 PyObject * _resultobj;
3495 bool _result;
3496 wxWindow * _arg0;
3497 wxMenu * _arg1;
3498 wxPoint * _arg2;
3499 PyObject * _argo0 = 0;
3500 PyObject * _argo1 = 0;
3501 wxPoint temp;
3502 PyObject * _obj2 = 0;
3503 char *_kwnames[] = { "self","menu","pos", NULL };
3504
3505 self = self;
3506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2))
3507 return NULL;
3508 if (_argo0) {
3509 if (_argo0 == Py_None) { _arg0 = NULL; }
3510 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3511 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p.");
3512 return NULL;
3513 }
3514 }
3515 if (_argo1) {
3516 if (_argo1 == Py_None) { _arg1 = NULL; }
3517 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
3518 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p.");
3519 return NULL;
3520 }
3521 }
3522{
3523 _arg2 = &temp;
3524 if (! wxPoint_helper(_obj2, &_arg2))
3525 return NULL;
3526}
3527{
0e2ff151 3528 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3529 _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2);
3530
0e2ff151 3531 wxPyEndAllowThreads(__tstate);
e6056257
RD
3532 if (PyErr_Occurred()) return NULL;
3533} _resultobj = Py_BuildValue("i",_result);
3534 return _resultobj;
3535}
3536
3537#define wxWindow_Raise(_swigobj) (_swigobj->Raise())
3538static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) {
3539 PyObject * _resultobj;
3540 wxWindow * _arg0;
3541 PyObject * _argo0 = 0;
3542 char *_kwnames[] = { "self", NULL };
3543
3544 self = self;
3545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0))
3546 return NULL;
3547 if (_argo0) {
3548 if (_argo0 == Py_None) { _arg0 = NULL; }
3549 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3550 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p.");
3551 return NULL;
3552 }
3553 }
3554{
0e2ff151 3555 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3556 wxWindow_Raise(_arg0);
3557
0e2ff151 3558 wxPyEndAllowThreads(__tstate);
e6056257
RD
3559 if (PyErr_Occurred()) return NULL;
3560} Py_INCREF(Py_None);
3561 _resultobj = Py_None;
3562 return _resultobj;
3563}
3564
3565#define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1))
3566static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
3567 PyObject * _resultobj;
3568 wxWindow * _arg0;
3569 bool _arg1 = (bool ) TRUE;
3570 wxRect * _arg2 = (wxRect *) NULL;
3571 PyObject * _argo0 = 0;
3572 int tempbool1 = (int) TRUE;
3573 wxRect temp;
3574 PyObject * _obj2 = 0;
3575 char *_kwnames[] = { "self","eraseBackground","rect", NULL };
3576
3577 self = self;
3578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2))
3579 return NULL;
3580 if (_argo0) {
3581 if (_argo0 == Py_None) { _arg0 = NULL; }
3582 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3583 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p.");
3584 return NULL;
3585 }
3586 }
3587 _arg1 = (bool ) tempbool1;
3588 if (_obj2)
3589{
3590 _arg2 = &temp;
3591 if (! wxRect_helper(_obj2, &_arg2))
3592 return NULL;
3593}
3594{
0e2ff151 3595 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3596 wxWindow_Refresh(_arg0,_arg1,_arg2);
3597
0e2ff151 3598 wxPyEndAllowThreads(__tstate);
e6056257
RD
3599 if (PyErr_Occurred()) return NULL;
3600} Py_INCREF(Py_None);
3601 _resultobj = Py_None;
3602 return _resultobj;
3603}
3604
3605#define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0))
3606static PyObject *_wrap_wxWindow_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3607 PyObject * _resultobj;
3608 wxWindow * _arg0;
3609 wxRect * _arg1;
3610 PyObject * _argo0 = 0;
3611 wxRect temp;
3612 PyObject * _obj1 = 0;
3613 char *_kwnames[] = { "self","rect", NULL };
3614
3615 self = self;
3616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RefreshRect",_kwnames,&_argo0,&_obj1))
3617 return NULL;
3618 if (_argo0) {
3619 if (_argo0 == Py_None) { _arg0 = NULL; }
3620 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3621 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p.");
3622 return NULL;
3623 }
3624 }
3625{
3626 _arg1 = &temp;
3627 if (! wxRect_helper(_obj1, &_arg1))
3628 return NULL;
3629}
3630{
0e2ff151 3631 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3632 wxWindow_RefreshRect(_arg0,*_arg1);
3633
0e2ff151 3634 wxPyEndAllowThreads(__tstate);
e6056257
RD
3635 if (PyErr_Occurred()) return NULL;
3636} Py_INCREF(Py_None);
3637 _resultobj = Py_None;
3638 return _resultobj;
3639}
3640
3641#define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse())
3642static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
3643 PyObject * _resultobj;
3644 wxWindow * _arg0;
3645 PyObject * _argo0 = 0;
3646 char *_kwnames[] = { "self", NULL };
3647
3648 self = self;
3649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0))
3650 return NULL;
3651 if (_argo0) {
3652 if (_argo0 == Py_None) { _arg0 = NULL; }
3653 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3654 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p.");
3655 return NULL;
3656 }
3657 }
3658{
0e2ff151 3659 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3660 wxWindow_ReleaseMouse(_arg0);
3661
0e2ff151 3662 wxPyEndAllowThreads(__tstate);
e6056257
RD
3663 if (PyErr_Occurred()) return NULL;
3664} Py_INCREF(Py_None);
3665 _resultobj = Py_None;
3666 return _resultobj;
3667}
3668
3669#define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0))
3670static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
3671 PyObject * _resultobj;
3672 wxWindow * _arg0;
3673 wxWindow * _arg1;
3674 PyObject * _argo0 = 0;
3675 PyObject * _argo1 = 0;
3676 char *_kwnames[] = { "self","child", NULL };
3677
3678 self = self;
3679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1))
3680 return NULL;
3681 if (_argo0) {
3682 if (_argo0 == Py_None) { _arg0 = NULL; }
3683 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3684 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3685 return NULL;
3686 }
3687 }
3688 if (_argo1) {
3689 if (_argo1 == Py_None) { _arg1 = NULL; }
3690 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3691 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3692 return NULL;
3693 }
3694 }
3695{
0e2ff151 3696 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3697 wxWindow_RemoveChild(_arg0,_arg1);
3698
0e2ff151 3699 wxPyEndAllowThreads(__tstate);
e6056257
RD
3700 if (PyErr_Occurred()) return NULL;
3701} Py_INCREF(Py_None);
3702 _resultobj = Py_None;
3703 return _resultobj;
3704}
3705
3706#define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0))
3707static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) {
3708 PyObject * _resultobj;
3709 bool _result;
3710 wxWindow * _arg0;
3711 wxWindow * _arg1;
3712 PyObject * _argo0 = 0;
3713 PyObject * _argo1 = 0;
3714 char *_kwnames[] = { "self","newParent", NULL };
3715
3716 self = self;
3717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1))
3718 return NULL;
3719 if (_argo0) {
3720 if (_argo0 == Py_None) { _arg0 = NULL; }
3721 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3722 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p.");
3723 return NULL;
3724 }
3725 }
3726 if (_argo1) {
3727 if (_argo1 == Py_None) { _arg1 = NULL; }
3728 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3729 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p.");
3730 return NULL;
3731 }
3732 }
3733{
0e2ff151 3734 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3735 _result = (bool )wxWindow_Reparent(_arg0,_arg1);
3736
0e2ff151 3737 wxPyEndAllowThreads(__tstate);
e6056257
RD
3738 if (PyErr_Occurred()) return NULL;
3739} _resultobj = Py_BuildValue("i",_result);
3740 return _resultobj;
3741}
3742
3743#define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1))
3744static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) {
3745 PyObject * _resultobj;
3746 wxWindow * _arg0;
3747 int * _arg1;
3748 int * _arg2;
3749 PyObject * _argo0 = 0;
3750 int temp;
3751 PyObject * _obj1 = 0;
3752 int temp0;
3753 PyObject * _obj2 = 0;
3754 char *_kwnames[] = { "self","x","y", NULL };
3755
3756 self = self;
3757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2))
3758 return NULL;
3759 if (_argo0) {
3760 if (_argo0 == Py_None) { _arg0 = NULL; }
3761 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3762 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p.");
3763 return NULL;
3764 }
3765 }
3766{
3767 temp = (int) PyInt_AsLong(_obj1);
3768 _arg1 = &temp;
3769}
3770{
3771 temp0 = (int) PyInt_AsLong(_obj2);
3772 _arg2 = &temp0;
3773}
3774{
0e2ff151 3775 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3776 wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2);
3777
0e2ff151 3778 wxPyEndAllowThreads(__tstate);
e6056257
RD
3779 if (PyErr_Occurred()) return NULL;
3780} Py_INCREF(Py_None);
3781 _resultobj = Py_None;
3782{
3783 PyObject *o;
3784 o = PyInt_FromLong((long) (*_arg1));
3785 _resultobj = t_output_helper(_resultobj, o);
3786}
3787{
3788 PyObject *o;
3789 o = PyInt_FromLong((long) (*_arg2));
3790 _resultobj = t_output_helper(_resultobj, o);
3791}
3792 return _resultobj;
3793}
3794
3795#define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0))
3796static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) {
3797 PyObject * _resultobj;
3798 wxPoint * _result;
3799 wxWindow * _arg0;
3800 wxPoint * _arg1;
3801 PyObject * _argo0 = 0;
3802 wxPoint temp;
3803 PyObject * _obj1 = 0;
3804 char *_kwnames[] = { "self","pt", NULL };
3805 char _ptemp[128];
3806
3807 self = self;
3808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1))
3809 return NULL;
3810 if (_argo0) {
3811 if (_argo0 == Py_None) { _arg0 = NULL; }
3812 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3813 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p.");
3814 return NULL;
3815 }
3816 }
3817{
3818 _arg1 = &temp;
3819 if (! wxPoint_helper(_obj1, &_arg1))
3820 return NULL;
3821}
3822{
0e2ff151 3823 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3824 _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1));
3825
0e2ff151 3826 wxPyEndAllowThreads(__tstate);
e6056257
RD
3827 if (PyErr_Occurred()) return NULL;
3828} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
3829 _resultobj = Py_BuildValue("s",_ptemp);
3830 return _resultobj;
3831}
3832
3833#define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2))
3834static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3835 PyObject * _resultobj;
3836 wxWindow * _arg0;
3837 int _arg1;
3838 int _arg2;
3839 wxRect * _arg3 = (wxRect *) NULL;
3840 PyObject * _argo0 = 0;
3841 wxRect temp;
3842 PyObject * _obj3 = 0;
3843 char *_kwnames[] = { "self","dx","dy","rect", NULL };
3844
3845 self = self;
3846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3))
3847 return NULL;
3848 if (_argo0) {
3849 if (_argo0 == Py_None) { _arg0 = NULL; }
3850 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3851 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p.");
3852 return NULL;
3853 }
3854 }
3855 if (_obj3)
3856{
3857 _arg3 = &temp;
3858 if (! wxRect_helper(_obj3, &_arg3))
3859 return NULL;
3860}
3861{
0e2ff151 3862 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3863 wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3);
3864
0e2ff151 3865 wxPyEndAllowThreads(__tstate);
e6056257
RD
3866 if (PyErr_Occurred()) return NULL;
3867} Py_INCREF(Py_None);
3868 _resultobj = Py_None;
3869 return _resultobj;
3870}
3871
3872#define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0))
3873static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
3874 PyObject * _resultobj;
3875 wxWindow * _arg0;
3876 bool _arg1;
3877 PyObject * _argo0 = 0;
3878 int tempbool1;
3879 char *_kwnames[] = { "self","autoLayout", NULL };
3880
3881 self = self;
3882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1))
3883 return NULL;
3884 if (_argo0) {
3885 if (_argo0 == Py_None) { _arg0 = NULL; }
3886 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3887 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p.");
3888 return NULL;
3889 }
3890 }
3891 _arg1 = (bool ) tempbool1;
3892{
0e2ff151 3893 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3894 wxWindow_SetAutoLayout(_arg0,_arg1);
3895
0e2ff151 3896 wxPyEndAllowThreads(__tstate);
e6056257
RD
3897 if (PyErr_Occurred()) return NULL;
3898} Py_INCREF(Py_None);
3899 _resultobj = Py_None;
3900 return _resultobj;
3901}
3902
3903#define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout())
3904static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
3905 PyObject * _resultobj;
3906 bool _result;
3907 wxWindow * _arg0;
3908 PyObject * _argo0 = 0;
3909 char *_kwnames[] = { "self", NULL };
3910
3911 self = self;
3912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0))
3913 return NULL;
3914 if (_argo0) {
3915 if (_argo0 == Py_None) { _arg0 = NULL; }
3916 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3917 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p.");
3918 return NULL;
3919 }
3920 }
3921{
0e2ff151 3922 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3923 _result = (bool )wxWindow_GetAutoLayout(_arg0);
3924
0e2ff151 3925 wxPyEndAllowThreads(__tstate);
e6056257
RD
3926 if (PyErr_Occurred()) return NULL;
3927} _resultobj = Py_BuildValue("i",_result);
3928 return _resultobj;
3929}
3930
3931#define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
3932static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3933 PyObject * _resultobj;
3934 wxWindow * _arg0;
3935 wxColour * _arg1;
3936 PyObject * _argo0 = 0;
3937 wxColour temp;
3938 PyObject * _obj1 = 0;
3939 char *_kwnames[] = { "self","colour", NULL };
3940
3941 self = self;
3942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
3943 return NULL;
3944 if (_argo0) {
3945 if (_argo0 == Py_None) { _arg0 = NULL; }
3946 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3947 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p.");
3948 return NULL;
3949 }
3950 }
3951{
3952 _arg1 = &temp;
3953 if (! wxColour_helper(_obj1, &_arg1))
3954 return NULL;
3955}
3956{
0e2ff151 3957 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3958 wxWindow_SetBackgroundColour(_arg0,*_arg1);
3959
0e2ff151 3960 wxPyEndAllowThreads(__tstate);
e6056257
RD
3961 if (PyErr_Occurred()) return NULL;
3962} Py_INCREF(Py_None);
3963 _resultobj = Py_None;
3964 return _resultobj;
3965}
3966
3967#define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0))
3968static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
3969 PyObject * _resultobj;
3970 wxWindow * _arg0;
3971 wxLayoutConstraints * _arg1;
3972 PyObject * _argo0 = 0;
3973 PyObject * _argo1 = 0;
3974 char *_kwnames[] = { "self","constraints", NULL };
3975
3976 self = self;
3977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1))
3978 return NULL;
3979 if (_argo0) {
3980 if (_argo0 == Py_None) { _arg0 = NULL; }
3981 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3982 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p.");
3983 return NULL;
3984 }
3985 }
3986 if (_argo1) {
3987 if (_argo1 == Py_None) { _arg1 = NULL; }
3988 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) {
3989 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p.");
3990 return NULL;
3991 }
3992 }
3993{
0e2ff151 3994 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3995 wxWindow_SetConstraints(_arg0,_arg1);
3996
0e2ff151 3997 wxPyEndAllowThreads(__tstate);
e6056257
RD
3998 if (PyErr_Occurred()) return NULL;
3999} Py_INCREF(Py_None);
4000 _resultobj = Py_None;
4001 return _resultobj;
4002}
4003
4004#define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0))
4005static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
4006 PyObject * _resultobj;
4007 wxWindow * _arg0;
4008 wxLayoutConstraints * _arg1;
4009 PyObject * _argo0 = 0;
4010 PyObject * _argo1 = 0;
4011 char *_kwnames[] = { "self","constraints", NULL };
4012
4013 self = self;
4014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1))
4015 return NULL;
4016 if (_argo0) {
4017 if (_argo0 == Py_None) { _arg0 = NULL; }
4018 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4019 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p.");
4020 return NULL;
4021 }
4022 }
4023 if (_argo1) {
4024 if (_argo1 == Py_None) { _arg1 = NULL; }
4025 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) {
4026 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p.");
4027 return NULL;
4028 }
4029 }
4030{
0e2ff151 4031 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4032 wxWindow_UnsetConstraints(_arg0,_arg1);
4033
0e2ff151 4034 wxPyEndAllowThreads(__tstate);
e6056257
RD
4035 if (PyErr_Occurred()) return NULL;
4036} Py_INCREF(Py_None);
4037 _resultobj = Py_None;
4038 return _resultobj;
4039}
4040
4041#define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus())
4042static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
4043 PyObject * _resultobj;
4044 wxWindow * _arg0;
4045 PyObject * _argo0 = 0;
4046 char *_kwnames[] = { "self", NULL };
4047
4048 self = self;
4049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0))
4050 return NULL;
4051 if (_argo0) {
4052 if (_argo0 == Py_None) { _arg0 = NULL; }
4053 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4054 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p.");
4055 return NULL;
4056 }
4057 }
4058{
0e2ff151 4059 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4060 wxWindow_SetFocus(_arg0);
4061
0e2ff151 4062 wxPyEndAllowThreads(__tstate);
e6056257
RD
4063 if (PyErr_Occurred()) return NULL;
4064} Py_INCREF(Py_None);
4065 _resultobj = Py_None;
4066 return _resultobj;
4067}
4068
4069#define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus())
4070static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
4071 PyObject * _resultobj;
4072 bool _result;
4073 wxWindow * _arg0;
4074 PyObject * _argo0 = 0;
4075 char *_kwnames[] = { "self", NULL };
4076
4077 self = self;
4078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0))
4079 return NULL;
4080 if (_argo0) {
4081 if (_argo0 == Py_None) { _arg0 = NULL; }
4082 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4083 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p.");
4084 return NULL;
4085 }
4086 }
4087{
0e2ff151 4088 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4089 _result = (bool )wxWindow_AcceptsFocus(_arg0);
4090
0e2ff151 4091 wxPyEndAllowThreads(__tstate);
e6056257
RD
4092 if (PyErr_Occurred()) return NULL;
4093} _resultobj = Py_BuildValue("i",_result);
4094 return _resultobj;
4095}
4096
4097#define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
4098static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4099 PyObject * _resultobj;
4100 wxWindow * _arg0;
4101 wxFont * _arg1;
4102 PyObject * _argo0 = 0;
4103 PyObject * _argo1 = 0;
4104 char *_kwnames[] = { "self","font", NULL };
4105
4106 self = self;
4107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1))
4108 return NULL;
4109 if (_argo0) {
4110 if (_argo0 == Py_None) { _arg0 = NULL; }
4111 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4112 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p.");
4113 return NULL;
4114 }
4115 }
4116 if (_argo1) {
4117 if (_argo1 == Py_None) { _arg1 = NULL; }
4118 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
4119 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p.");
4120 return NULL;
4121 }
4122 }
4123{
0e2ff151 4124 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4125 wxWindow_SetFont(_arg0,*_arg1);
4126
0e2ff151 4127 wxPyEndAllowThreads(__tstate);
e6056257
RD
4128 if (PyErr_Occurred()) return NULL;
4129} Py_INCREF(Py_None);
4130 _resultobj = Py_None;
4131 return _resultobj;
4132}
4133
4134#define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
4135static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4136 PyObject * _resultobj;
4137 wxWindow * _arg0;
4138 wxColour * _arg1;
4139 PyObject * _argo0 = 0;
4140 wxColour temp;
4141 PyObject * _obj1 = 0;
4142 char *_kwnames[] = { "self","colour", NULL };
4143
4144 self = self;
4145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1))
4146 return NULL;
4147 if (_argo0) {
4148 if (_argo0 == Py_None) { _arg0 = NULL; }
4149 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4150 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p.");
4151 return NULL;
4152 }
4153 }
4154{
4155 _arg1 = &temp;
4156 if (! wxColour_helper(_obj1, &_arg1))
4157 return NULL;
4158}
4159{
0e2ff151 4160 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4161 wxWindow_SetForegroundColour(_arg0,*_arg1);
4162
0e2ff151 4163 wxPyEndAllowThreads(__tstate);
e6056257
RD
4164 if (PyErr_Occurred()) return NULL;
4165} Py_INCREF(Py_None);
4166 _resultobj = Py_None;
4167 return _resultobj;
4168}
4169
4170#define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
4171static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
4172 PyObject * _resultobj;
4173 wxWindow * _arg0;
4174 int _arg1;
4175 PyObject * _argo0 = 0;
4176 char *_kwnames[] = { "self","id", NULL };
4177
4178 self = self;
4179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1))
4180 return NULL;
4181 if (_argo0) {
4182 if (_argo0 == Py_None) { _arg0 = NULL; }
4183 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4184 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p.");
4185 return NULL;
4186 }
4187 }
4188{
0e2ff151 4189 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4190 wxWindow_SetId(_arg0,_arg1);
4191
0e2ff151 4192 wxPyEndAllowThreads(__tstate);
e6056257
RD
4193 if (PyErr_Occurred()) return NULL;
4194} Py_INCREF(Py_None);
4195 _resultobj = Py_None;
4196 return _resultobj;
4197}
4198
4199#define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
4200static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
4201 PyObject * _resultobj;
4202 wxWindow * _arg0;
4203 wxString * _arg1;
4204 PyObject * _argo0 = 0;
4205 PyObject * _obj1 = 0;
4206 char *_kwnames[] = { "self","name", NULL };
4207
4208 self = self;
4209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1))
4210 return NULL;
4211 if (_argo0) {
4212 if (_argo0 == Py_None) { _arg0 = NULL; }
4213 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p.");
4215 return NULL;
4216 }
4217 }
4218{
4219#if PYTHON_API_VERSION >= 1009
4220 char* tmpPtr; int tmpSize;
4221 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4222 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4223 return NULL;
4224 }
4225 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4226 return NULL;
4227 _arg1 = new wxString(tmpPtr, tmpSize);
4228#else
4229 if (!PyString_Check(_obj1)) {
4230 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4231 return NULL;
4232 }
4233 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4234#endif
4235}
4236{
0e2ff151 4237 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4238 wxWindow_SetName(_arg0,*_arg1);
4239
0e2ff151 4240 wxPyEndAllowThreads(__tstate);
e6056257
RD
4241 if (PyErr_Occurred()) return NULL;
4242} Py_INCREF(Py_None);
4243 _resultobj = Py_None;
4244{
4245 if (_obj1)
4246 delete _arg1;
4247}
4248 return _resultobj;
4249}
4250
4251#define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4252static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
4253 PyObject * _resultobj;
4254 wxWindow * _arg0;
4255 int _arg1;
4256 int _arg2;
4257 int _arg3;
4258 int _arg4;
4259 int _arg5 = (int ) TRUE;
4260 PyObject * _argo0 = 0;
4261 char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL };
4262
4263 self = self;
4264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
4265 return NULL;
4266 if (_argo0) {
4267 if (_argo0 == Py_None) { _arg0 = NULL; }
4268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p.");
4270 return NULL;
4271 }
4272 }
4273{
0e2ff151 4274 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4275 wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
4276
0e2ff151 4277 wxPyEndAllowThreads(__tstate);
e6056257
RD
4278 if (PyErr_Occurred()) return NULL;
4279} Py_INCREF(Py_None);
4280 _resultobj = Py_None;
4281 return _resultobj;
4282}
4283
4284#define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2))
4285static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
4286 PyObject * _resultobj;
4287 wxWindow * _arg0;
4288 int _arg1;
4289 int _arg2;
4290 bool _arg3 = (bool ) TRUE;
4291 PyObject * _argo0 = 0;
4292 int tempbool3 = (int) TRUE;
4293 char *_kwnames[] = { "self","orientation","pos","refresh", NULL };
4294
4295 self = self;
4296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3))
4297 return NULL;
4298 if (_argo0) {
4299 if (_argo0 == Py_None) { _arg0 = NULL; }
4300 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4301 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p.");
4302 return NULL;
4303 }
4304 }
4305 _arg3 = (bool ) tempbool3;
4306{
0e2ff151 4307 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4308 wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3);
4309
0e2ff151 4310 wxPyEndAllowThreads(__tstate);
e6056257
RD
4311 if (PyErr_Occurred()) return NULL;
4312} Py_INCREF(Py_None);
4313 _resultobj = Py_None;
4314 return _resultobj;
4315}
4316
4317#define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4318static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) {
4319 PyObject * _resultobj;
4320 wxWindow * _arg0;
4321 int _arg1;
4322 int _arg2;
4323 int _arg3;
4324 int _arg4;
4325 int _arg5 = (int ) wxSIZE_AUTO;
4326 PyObject * _argo0 = 0;
4327 char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL };
4328
4329 self = self;
4330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
4331 return NULL;
4332 if (_argo0) {
4333 if (_argo0 == Py_None) { _arg0 = NULL; }
4334 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4335 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p.");
4336 return NULL;
4337 }
4338 }
4339{
0e2ff151 4340 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4341 wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
4342
0e2ff151 4343 wxPyEndAllowThreads(__tstate);
e6056257
RD
4344 if (PyErr_Occurred()) return NULL;
4345} Py_INCREF(Py_None);
4346 _resultobj = Py_None;
4347 return _resultobj;
4348}
4349
4350static void wxWindow_SetSize(wxWindow *self,const wxSize & size) {
4351 self->SetSize(size);
4352 }
4353static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4354 PyObject * _resultobj;
4355 wxWindow * _arg0;
4356 wxSize * _arg1;
4357 PyObject * _argo0 = 0;
4358 wxSize temp;
4359 PyObject * _obj1 = 0;
4360 char *_kwnames[] = { "self","size", NULL };
4361
4362 self = self;
4363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1))
4364 return NULL;
4365 if (_argo0) {
4366 if (_argo0 == Py_None) { _arg0 = NULL; }
4367 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4368 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p.");
4369 return NULL;
4370 }
4371 }
4372{
4373 _arg1 = &temp;
4374 if (! wxSize_helper(_obj1, &_arg1))
4375 return NULL;
4376}
4377{
0e2ff151 4378 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4379 wxWindow_SetSize(_arg0,*_arg1);
4380
0e2ff151 4381 wxPyEndAllowThreads(__tstate);
e6056257
RD
4382 if (PyErr_Occurred()) return NULL;
4383} Py_INCREF(Py_None);
4384 _resultobj = Py_None;
4385 return _resultobj;
4386}
4387
a341e32e
RD
4388static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos,int flags) {
4389 self->Move(pos, flags);
e6056257
RD
4390 }
4391static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4392 PyObject * _resultobj;
4393 wxWindow * _arg0;
4394 wxPoint * _arg1;
a341e32e 4395 int _arg2 = (int ) wxSIZE_USE_EXISTING;
e6056257
RD
4396 PyObject * _argo0 = 0;
4397 wxPoint temp;
4398 PyObject * _obj1 = 0;
a341e32e 4399 char *_kwnames[] = { "self","pos","flags", NULL };
e6056257
RD
4400
4401 self = self;
a341e32e 4402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1,&_arg2))
e6056257
RD
4403 return NULL;
4404 if (_argo0) {
4405 if (_argo0 == Py_None) { _arg0 = NULL; }
4406 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4407 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p.");
4408 return NULL;
4409 }
4410 }
4411{
4412 _arg1 = &temp;
4413 if (! wxPoint_helper(_obj1, &_arg1))
4414 return NULL;
4415}
4416{
0e2ff151 4417 PyThreadState* __tstate = wxPyBeginAllowThreads();
a341e32e 4418 wxWindow_SetPosition(_arg0,*_arg1,_arg2);
e6056257 4419
0e2ff151 4420 wxPyEndAllowThreads(__tstate);
e6056257
RD
4421 if (PyErr_Occurred()) return NULL;
4422} Py_INCREF(Py_None);
4423 _resultobj = Py_None;
4424 return _resultobj;
4425}
4426
4427static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) {
4428 self->SetSize(rect, sizeFlags);
4429 }
4430static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4431 PyObject * _resultobj;
4432 wxWindow * _arg0;
4433 wxRect * _arg1;
4434 int _arg2 = (int ) wxSIZE_AUTO;
4435 PyObject * _argo0 = 0;
4436 wxRect temp;
4437 PyObject * _obj1 = 0;
4438 char *_kwnames[] = { "self","rect","sizeFlags", NULL };
4439
4440 self = self;
4441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2))
4442 return NULL;
4443 if (_argo0) {
4444 if (_argo0 == Py_None) { _arg0 = NULL; }
4445 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4446 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p.");
4447 return NULL;
4448 }
4449 }
4450{
4451 _arg1 = &temp;
4452 if (! wxRect_helper(_obj1, &_arg1))
4453 return NULL;
4454}
4455{
0e2ff151 4456 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4457 wxWindow_SetRect(_arg0,*_arg1,_arg2);
4458
0e2ff151 4459 wxPyEndAllowThreads(__tstate);
e6056257
RD
4460 if (PyErr_Occurred()) return NULL;
4461} Py_INCREF(Py_None);
4462 _resultobj = Py_None;
4463 return _resultobj;
4464}
4465
4466#define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4467static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
4468 PyObject * _resultobj;
4469 wxWindow * _arg0;
4470 int _arg1 = (int ) -1;
4471 int _arg2 = (int ) -1;
4472 int _arg3 = (int ) -1;
4473 int _arg4 = (int ) -1;
4474 int _arg5 = (int ) -1;
4475 int _arg6 = (int ) -1;
4476 PyObject * _argo0 = 0;
4477 char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL };
4478
4479 self = self;
4480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
4481 return NULL;
4482 if (_argo0) {
4483 if (_argo0 == Py_None) { _arg0 = NULL; }
4484 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4485 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p.");
4486 return NULL;
4487 }
4488 }
4489{
0e2ff151 4490 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4491 wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
4492
0e2ff151 4493 wxPyEndAllowThreads(__tstate);
e6056257
RD
4494 if (PyErr_Occurred()) return NULL;
4495} Py_INCREF(Py_None);
4496 _resultobj = Py_None;
4497 return _resultobj;
4498}
4499
4500#define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
4501static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
4502 PyObject * _resultobj;
4503 wxWindow * _arg0;
4504 int _arg1;
4505 int _arg2;
4506 PyObject * _argo0 = 0;
4507 char *_kwnames[] = { "self","width","height", NULL };
4508
4509 self = self;
4510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2))
4511 return NULL;
4512 if (_argo0) {
4513 if (_argo0 == Py_None) { _arg0 = NULL; }
4514 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4515 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p.");
4516 return NULL;
4517 }
4518 }
4519{
0e2ff151 4520 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4521 wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2);
4522
0e2ff151 4523 wxPyEndAllowThreads(__tstate);
e6056257
RD
4524 if (PyErr_Occurred()) return NULL;
4525} Py_INCREF(Py_None);
4526 _resultobj = Py_None;
4527 return _resultobj;
4528}
4529
4530#define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0))
4531static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4532 PyObject * _resultobj;
4533 wxWindow * _arg0;
4534 wxSize * _arg1;
4535 PyObject * _argo0 = 0;
4536 wxSize temp;
4537 PyObject * _obj1 = 0;
4538 char *_kwnames[] = { "self","size", NULL };
4539
4540 self = self;
4541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1))
4542 return NULL;
4543 if (_argo0) {
4544 if (_argo0 == Py_None) { _arg0 = NULL; }
4545 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4546 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p.");
4547 return NULL;
4548 }
4549 }
4550{
4551 _arg1 = &temp;
4552 if (! wxSize_helper(_obj1, &_arg1))
4553 return NULL;
4554}
4555{
0e2ff151 4556 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4557 wxWindow_SetClientSize(_arg0,*_arg1);
4558
0e2ff151 4559 wxPyEndAllowThreads(__tstate);
e6056257
RD
4560 if (PyErr_Occurred()) return NULL;
4561} Py_INCREF(Py_None);
4562 _resultobj = Py_None;
4563 return _resultobj;
4564}
4565
4566#define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0))
4567static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4568 PyObject * _resultobj;
4569 wxWindow * _arg0;
4570 wxCursor * _arg1;
4571 PyObject * _argo0 = 0;
4572 PyObject * _argo1 = 0;
4573 char *_kwnames[] = { "self","cursor", NULL };
4574
4575 self = self;
4576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1))
4577 return NULL;
4578 if (_argo0) {
4579 if (_argo0 == Py_None) { _arg0 = NULL; }
4580 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4581 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p.");
4582 return NULL;
4583 }
4584 }
4585 if (_argo1) {
4586 if (_argo1 == Py_None) { _arg1 = NULL; }
4587 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
4588 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p.");
4589 return NULL;
4590 }
4591 }
4592{
0e2ff151 4593 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4594 wxWindow_SetCursor(_arg0,*_arg1);
4595
0e2ff151 4596 wxPyEndAllowThreads(__tstate);
e6056257
RD
4597 if (PyErr_Occurred()) return NULL;
4598} Py_INCREF(Py_None);
4599 _resultobj = Py_None;
4600 return _resultobj;
4601}
4602
4603#define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
4604static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
4605 PyObject * _resultobj;
4606 wxWindow * _arg0;
4607 wxEvtHandler * _arg1;
4608 PyObject * _argo0 = 0;
4609 PyObject * _argo1 = 0;
4610 char *_kwnames[] = { "self","handler", NULL };
4611
4612 self = self;
4613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1))
4614 return NULL;
4615 if (_argo0) {
4616 if (_argo0 == Py_None) { _arg0 = NULL; }
4617 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4618 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p.");
4619 return NULL;
4620 }
4621 }
4622 if (_argo1) {
4623 if (_argo1 == Py_None) { _arg1 = NULL; }
4624 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
4625 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p.");
4626 return NULL;
4627 }
4628 }
4629{
0e2ff151 4630 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4631 wxWindow_SetEventHandler(_arg0,_arg1);
4632
0e2ff151 4633 wxPyEndAllowThreads(__tstate);
e6056257
RD
4634 if (PyErr_Occurred()) return NULL;
4635} Py_INCREF(Py_None);
4636 _resultobj = Py_None;
4637 return _resultobj;
4638}
4639
4640#define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0))
4641static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4642 PyObject * _resultobj;
4643 wxWindow * _arg0;
4644 long _arg1;
4645 PyObject * _argo0 = 0;
4646 char *_kwnames[] = { "self","exStyle", NULL };
4647
4648 self = self;
4649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1))
4650 return NULL;
4651 if (_argo0) {
4652 if (_argo0 == Py_None) { _arg0 = NULL; }
4653 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4654 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p.");
4655 return NULL;
4656 }
4657 }
4658{
0e2ff151 4659 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4660 wxWindow_SetExtraStyle(_arg0,_arg1);
4661
0e2ff151 4662 wxPyEndAllowThreads(__tstate);
e6056257
RD
4663 if (PyErr_Occurred()) return NULL;
4664} Py_INCREF(Py_None);
4665 _resultobj = Py_None;
4666 return _resultobj;
4667}
4668
4669#define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
4670static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
4671 PyObject * _resultobj;
4672 wxWindow * _arg0;
4673 wxString * _arg1;
4674 PyObject * _argo0 = 0;
4675 PyObject * _obj1 = 0;
4676 char *_kwnames[] = { "self","title", NULL };
4677
4678 self = self;
4679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1))
4680 return NULL;
4681 if (_argo0) {
4682 if (_argo0 == Py_None) { _arg0 = NULL; }
4683 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4684 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p.");
4685 return NULL;
4686 }
4687 }
4688{
4689#if PYTHON_API_VERSION >= 1009
4690 char* tmpPtr; int tmpSize;
4691 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4692 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4693 return NULL;
4694 }
4695 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4696 return NULL;
4697 _arg1 = new wxString(tmpPtr, tmpSize);
4698#else
4699 if (!PyString_Check(_obj1)) {
4700 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4701 return NULL;
4702 }
4703 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4704#endif
4705}
4706{
0e2ff151 4707 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4708 wxWindow_SetTitle(_arg0,*_arg1);
4709
0e2ff151 4710 wxPyEndAllowThreads(__tstate);
e6056257
RD
4711 if (PyErr_Occurred()) return NULL;
4712} Py_INCREF(Py_None);
4713 _resultobj = Py_None;
4714{
4715 if (_obj1)
4716 delete _arg1;
4717}
4718 return _resultobj;
4719}
4720
4721#define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
4722static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
4723 PyObject * _resultobj;
4724 bool _result;
4725 wxWindow * _arg0;
00360d46 4726 bool _arg1 = (bool ) TRUE;
e6056257 4727 PyObject * _argo0 = 0;
00360d46 4728 int tempbool1 = (int) TRUE;
e6056257
RD
4729 char *_kwnames[] = { "self","show", NULL };
4730
4731 self = self;
00360d46 4732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Show",_kwnames,&_argo0,&tempbool1))
e6056257
RD
4733 return NULL;
4734 if (_argo0) {
4735 if (_argo0 == Py_None) { _arg0 = NULL; }
4736 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4737 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p.");
4738 return NULL;
4739 }
4740 }
4741 _arg1 = (bool ) tempbool1;
4742{
0e2ff151 4743 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4744 _result = (bool )wxWindow_Show(_arg0,_arg1);
4745
0e2ff151 4746 wxPyEndAllowThreads(__tstate);
e6056257
RD
4747 if (PyErr_Occurred()) return NULL;
4748} _resultobj = Py_BuildValue("i",_result);
4749 return _resultobj;
4750}
4751
4752#define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow())
4753static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4754 PyObject * _resultobj;
4755 bool _result;
4756 wxWindow * _arg0;
4757 PyObject * _argo0 = 0;
4758 char *_kwnames[] = { "self", NULL };
4759
4760 self = self;
4761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0))
4762 return NULL;
4763 if (_argo0) {
4764 if (_argo0 == Py_None) { _arg0 = NULL; }
4765 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4766 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p.");
4767 return NULL;
4768 }
4769 }
4770{
0e2ff151 4771 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4772 _result = (bool )wxWindow_TransferDataFromWindow(_arg0);
4773
0e2ff151 4774 wxPyEndAllowThreads(__tstate);
e6056257
RD
4775 if (PyErr_Occurred()) return NULL;
4776} _resultobj = Py_BuildValue("i",_result);
4777 return _resultobj;
4778}
4779
4780#define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow())
4781static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4782 PyObject * _resultobj;
4783 bool _result;
4784 wxWindow * _arg0;
4785 PyObject * _argo0 = 0;
4786 char *_kwnames[] = { "self", NULL };
4787
4788 self = self;
4789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0))
4790 return NULL;
4791 if (_argo0) {
4792 if (_argo0 == Py_None) { _arg0 = NULL; }
4793 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4794 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p.");
4795 return NULL;
4796 }
4797 }
4798{
0e2ff151 4799 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4800 _result = (bool )wxWindow_TransferDataToWindow(_arg0);
4801
0e2ff151 4802 wxPyEndAllowThreads(__tstate);
e6056257
RD
4803 if (PyErr_Occurred()) return NULL;
4804} _resultobj = Py_BuildValue("i",_result);
4805 return _resultobj;
4806}
4807
a341e32e
RD
4808#define wxWindow_UpdateWindowUI(_swigobj) (_swigobj->UpdateWindowUI())
4809static PyObject *_wrap_wxWindow_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) {
4810 PyObject * _resultobj;
4811 wxWindow * _arg0;
4812 PyObject * _argo0 = 0;
4813 char *_kwnames[] = { "self", NULL };
4814
4815 self = self;
4816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_UpdateWindowUI",_kwnames,&_argo0))
4817 return NULL;
4818 if (_argo0) {
4819 if (_argo0 == Py_None) { _arg0 = NULL; }
4820 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4821 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UpdateWindowUI. Expected _wxWindow_p.");
4822 return NULL;
4823 }
4824 }
4825{
4826 PyThreadState* __tstate = wxPyBeginAllowThreads();
4827 wxWindow_UpdateWindowUI(_arg0);
4828
4829 wxPyEndAllowThreads(__tstate);
4830 if (PyErr_Occurred()) return NULL;
4831} Py_INCREF(Py_None);
4832 _resultobj = Py_None;
4833 return _resultobj;
4834}
4835
e6056257
RD
4836#define wxWindow_Validate(_swigobj) (_swigobj->Validate())
4837static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
4838 PyObject * _resultobj;
4839 bool _result;
4840 wxWindow * _arg0;
4841 PyObject * _argo0 = 0;
4842 char *_kwnames[] = { "self", NULL };
4843
4844 self = self;
4845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0))
4846 return NULL;
4847 if (_argo0) {
4848 if (_argo0 == Py_None) { _arg0 = NULL; }
4849 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4850 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p.");
4851 return NULL;
4852 }
4853 }
4854{
0e2ff151 4855 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4856 _result = (bool )wxWindow_Validate(_arg0);
4857
0e2ff151 4858 wxPyEndAllowThreads(__tstate);
e6056257
RD
4859 if (PyErr_Occurred()) return NULL;
4860} _resultobj = Py_BuildValue("i",_result);
4861 return _resultobj;
4862}
4863
4864#define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1))
4865static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) {
4866 PyObject * _resultobj;
4867 wxWindow * _arg0;
4868 int _arg1;
4869 int _arg2;
4870 PyObject * _argo0 = 0;
4871 char *_kwnames[] = { "self","x","y", NULL };
4872
4873 self = self;
4874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2))
4875 return NULL;
4876 if (_argo0) {
4877 if (_argo0 == Py_None) { _arg0 = NULL; }
4878 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4879 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p.");
4880 return NULL;
4881 }
4882 }
4883{
0e2ff151 4884 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4885 wxWindow_WarpPointer(_arg0,_arg1,_arg2);
4886
0e2ff151 4887 wxPyEndAllowThreads(__tstate);
e6056257
RD
4888 if (PyErr_Occurred()) return NULL;
4889} Py_INCREF(Py_None);
4890 _resultobj = Py_None;
4891 return _resultobj;
4892}
4893
4894#define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4895static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
4896 PyObject * _resultobj;
4897 wxPoint * _result;
4898 wxWindow * _arg0;
4899 wxPoint * _arg1;
4900 PyObject * _argo0 = 0;
4901 wxPoint temp;
4902 PyObject * _obj1 = 0;
4903 char *_kwnames[] = { "self","pt", NULL };
4904 char _ptemp[128];
4905
4906 self = self;
4907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1))
4908 return NULL;
4909 if (_argo0) {
4910 if (_argo0 == Py_None) { _arg0 = NULL; }
4911 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4912 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p.");
4913 return NULL;
4914 }
4915 }
4916{
4917 _arg1 = &temp;
4918 if (! wxPoint_helper(_obj1, &_arg1))
4919 return NULL;
4920}
4921{
0e2ff151 4922 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4923 _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1));
4924
0e2ff151 4925 wxPyEndAllowThreads(__tstate);
e6056257
RD
4926 if (PyErr_Occurred()) return NULL;
4927} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
4928 _resultobj = Py_BuildValue("s",_ptemp);
4929 return _resultobj;
4930}
4931
4932#define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4933static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
4934 PyObject * _resultobj;
4935 wxSize * _result;
4936 wxWindow * _arg0;
4937 wxSize * _arg1;
4938 PyObject * _argo0 = 0;
4939 wxSize temp;
4940 PyObject * _obj1 = 0;
4941 char *_kwnames[] = { "self","sz", NULL };
4942 char _ptemp[128];
4943
4944 self = self;
4945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1))
4946 return NULL;
4947 if (_argo0) {
4948 if (_argo0 == Py_None) { _arg0 = NULL; }
4949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p.");
4951 return NULL;
4952 }
4953 }
4954{
4955 _arg1 = &temp;
4956 if (! wxSize_helper(_obj1, &_arg1))
4957 return NULL;
4958}
4959{
0e2ff151 4960 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4961 _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1));
4962
0e2ff151 4963 wxPyEndAllowThreads(__tstate);
e6056257
RD
4964 if (PyErr_Occurred()) return NULL;
4965} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
4966 _resultobj = Py_BuildValue("s",_ptemp);
4967 return _resultobj;
4968}
4969
4970#define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4971static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
4972 PyObject * _resultobj;
4973 wxPoint * _result;
4974 wxWindow * _arg0;
4975 wxPoint * _arg1;
4976 PyObject * _argo0 = 0;
4977 wxPoint temp;
4978 PyObject * _obj1 = 0;
4979 char *_kwnames[] = { "self","pt", NULL };
4980 char _ptemp[128];
4981
4982 self = self;
4983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1))
4984 return NULL;
4985 if (_argo0) {
4986 if (_argo0 == Py_None) { _arg0 = NULL; }
4987 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4988 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p.");
4989 return NULL;
4990 }
4991 }
4992{
4993 _arg1 = &temp;
4994 if (! wxPoint_helper(_obj1, &_arg1))
4995 return NULL;
4996}
4997{
0e2ff151 4998 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4999 _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1));
5000
0e2ff151 5001 wxPyEndAllowThreads(__tstate);
e6056257
RD
5002 if (PyErr_Occurred()) return NULL;
5003} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
5004 _resultobj = Py_BuildValue("s",_ptemp);
5005 return _resultobj;
5006}
5007
5008#define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
5009static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
5010 PyObject * _resultobj;
5011 wxSize * _result;
5012 wxWindow * _arg0;
5013 wxSize * _arg1;
5014 PyObject * _argo0 = 0;
5015 wxSize temp;
5016 PyObject * _obj1 = 0;
5017 char *_kwnames[] = { "self","sz", NULL };
5018 char _ptemp[128];
5019
5020 self = self;
5021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1))
5022 return NULL;
5023 if (_argo0) {
5024 if (_argo0 == Py_None) { _arg0 = NULL; }
5025 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5026 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p.");
5027 return NULL;
5028 }
5029 }
5030{
5031 _arg1 = &temp;
5032 if (! wxSize_helper(_obj1, &_arg1))
5033 return NULL;
5034}
5035{
0e2ff151 5036 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5037 _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1));
5038
0e2ff151 5039 wxPyEndAllowThreads(__tstate);
e6056257
RD
5040 if (PyErr_Occurred()) return NULL;
5041} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
5042 _resultobj = Py_BuildValue("s",_ptemp);
5043 return _resultobj;
5044}
5045
5046#define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
5047static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) {
5048 PyObject * _resultobj;
5049 wxWindow * _arg0;
5050 wxString * _arg1;
5051 PyObject * _argo0 = 0;
5052 PyObject * _obj1 = 0;
5053 char *_kwnames[] = { "self","tip", NULL };
5054
5055 self = self;
5056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1))
5057 return NULL;
5058 if (_argo0) {
5059 if (_argo0 == Py_None) { _arg0 = NULL; }
5060 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5061 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p.");
5062 return NULL;
5063 }
5064 }
5065{
5066#if PYTHON_API_VERSION >= 1009
5067 char* tmpPtr; int tmpSize;
5068 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5069 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5070 return NULL;
5071 }
5072 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5073 return NULL;
5074 _arg1 = new wxString(tmpPtr, tmpSize);
5075#else
5076 if (!PyString_Check(_obj1)) {
5077 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5078 return NULL;
5079 }
5080 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5081#endif
5082}
5083{
0e2ff151 5084 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5085 wxWindow_SetToolTipString(_arg0,*_arg1);
5086
0e2ff151 5087 wxPyEndAllowThreads(__tstate);
e6056257
RD
5088 if (PyErr_Occurred()) return NULL;
5089} Py_INCREF(Py_None);
5090 _resultobj = Py_None;
5091{
5092 if (_obj1)
5093 delete _arg1;
5094}
5095 return _resultobj;
5096}
5097
5098#define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
5099static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5100 PyObject * _resultobj;
5101 wxWindow * _arg0;
5102 wxToolTip * _arg1;
5103 PyObject * _argo0 = 0;
5104 PyObject * _argo1 = 0;
5105 char *_kwnames[] = { "self","tooltip", NULL };
5106
5107 self = self;
5108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1))
5109 return NULL;
5110 if (_argo0) {
5111 if (_argo0 == Py_None) { _arg0 = NULL; }
5112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p.");
5114 return NULL;
5115 }
5116 }
5117 if (_argo1) {
5118 if (_argo1 == Py_None) { _arg1 = NULL; }
5119 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) {
5120 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p.");
5121 return NULL;
5122 }
5123 }
5124{
0e2ff151 5125 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5126 wxWindow_SetToolTip(_arg0,_arg1);
5127
0e2ff151 5128 wxPyEndAllowThreads(__tstate);
e6056257
RD
5129 if (PyErr_Occurred()) return NULL;
5130} Py_INCREF(Py_None);
5131 _resultobj = Py_None;
5132 return _resultobj;
5133}
5134
5135#define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip())
5136static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5137 PyObject * _resultobj;
5138 wxToolTip * _result;
5139 wxWindow * _arg0;
5140 PyObject * _argo0 = 0;
5141 char *_kwnames[] = { "self", NULL };
5142
5143 self = self;
5144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0))
5145 return NULL;
5146 if (_argo0) {
5147 if (_argo0 == Py_None) { _arg0 = NULL; }
5148 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5149 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p.");
5150 return NULL;
5151 }
5152 }
5153{
0e2ff151 5154 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5155 _result = (wxToolTip *)wxWindow_GetToolTip(_arg0);
5156
0e2ff151 5157 wxPyEndAllowThreads(__tstate);
e6056257
RD
5158 if (PyErr_Occurred()) return NULL;
5159}{ _resultobj = wxPyMake_wxObject(_result); }
5160 return _resultobj;
5161}
5162
5163#define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0))
5164static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
5165 PyObject * _resultobj;
5166 wxWindow * _arg0;
5167 wxSizer * _arg1;
5168 PyObject * _argo0 = 0;
5169 PyObject * _argo1 = 0;
5170 char *_kwnames[] = { "self","sizer", NULL };
5171
5172 self = self;
5173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1))
5174 return NULL;
5175 if (_argo0) {
5176 if (_argo0 == Py_None) { _arg0 = NULL; }
5177 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p.");
5179 return NULL;
5180 }
5181 }
5182 if (_argo1) {
5183 if (_argo1 == Py_None) { _arg1 = NULL; }
5184 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) {
5185 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p.");
5186 return NULL;
5187 }
5188 }
5189{
0e2ff151 5190 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5191 wxWindow_SetSizer(_arg0,_arg1);
5192
0e2ff151 5193 wxPyEndAllowThreads(__tstate);
e6056257
RD
5194 if (PyErr_Occurred()) return NULL;
5195} Py_INCREF(Py_None);
5196 _resultobj = Py_None;
5197 return _resultobj;
5198}
5199
5200#define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer())
5201static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
5202 PyObject * _resultobj;
5203 wxSizer * _result;
5204 wxWindow * _arg0;
5205 PyObject * _argo0 = 0;
5206 char *_kwnames[] = { "self", NULL };
5207
5208 self = self;
5209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0))
5210 return NULL;
5211 if (_argo0) {
5212 if (_argo0 == Py_None) { _arg0 = NULL; }
5213 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p.");
5215 return NULL;
5216 }
5217 }
5218{
0e2ff151 5219 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5220 _result = (wxSizer *)wxWindow_GetSizer(_arg0);
5221
0e2ff151 5222 wxPyEndAllowThreads(__tstate);
e6056257 5223 if (PyErr_Occurred()) return NULL;
00360d46 5224}{ _resultobj = wxPyMake_wxSizer(_result); }
e6056257
RD
5225 return _resultobj;
5226}
5227
a341e32e
RD
5228#define wxWindow_SetContainingSizer(_swigobj,_swigarg0) (_swigobj->SetContainingSizer(_swigarg0))
5229static PyObject *_wrap_wxWindow_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
5230 PyObject * _resultobj;
5231 wxWindow * _arg0;
5232 wxSizer * _arg1;
5233 PyObject * _argo0 = 0;
5234 PyObject * _argo1 = 0;
5235 char *_kwnames[] = { "self","sizer", NULL };
5236
5237 self = self;
5238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetContainingSizer",_kwnames,&_argo0,&_argo1))
5239 return NULL;
5240 if (_argo0) {
5241 if (_argo0 == Py_None) { _arg0 = NULL; }
5242 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5243 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetContainingSizer. Expected _wxWindow_p.");
5244 return NULL;
5245 }
5246 }
5247 if (_argo1) {
5248 if (_argo1 == Py_None) { _arg1 = NULL; }
5249 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) {
5250 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetContainingSizer. Expected _wxSizer_p.");
5251 return NULL;
5252 }
5253 }
5254{
5255 PyThreadState* __tstate = wxPyBeginAllowThreads();
5256 wxWindow_SetContainingSizer(_arg0,_arg1);
5257
5258 wxPyEndAllowThreads(__tstate);
5259 if (PyErr_Occurred()) return NULL;
5260} Py_INCREF(Py_None);
5261 _resultobj = Py_None;
5262 return _resultobj;
5263}
5264
5265#define wxWindow_GetContainingSizer(_swigobj) (_swigobj->GetContainingSizer())
5266static PyObject *_wrap_wxWindow_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
5267 PyObject * _resultobj;
5268 wxSizer * _result;
5269 wxWindow * _arg0;
5270 PyObject * _argo0 = 0;
5271 char *_kwnames[] = { "self", NULL };
5272
5273 self = self;
5274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetContainingSizer",_kwnames,&_argo0))
5275 return NULL;
5276 if (_argo0) {
5277 if (_argo0 == Py_None) { _arg0 = NULL; }
5278 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5279 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetContainingSizer. Expected _wxWindow_p.");
5280 return NULL;
5281 }
5282 }
5283{
5284 PyThreadState* __tstate = wxPyBeginAllowThreads();
5285 _result = (wxSizer *)wxWindow_GetContainingSizer(_arg0);
5286
5287 wxPyEndAllowThreads(__tstate);
5288 if (PyErr_Occurred()) return NULL;
5289}{ _resultobj = wxPyMake_wxSizer(_result); }
5290 return _resultobj;
5291}
5292
e6056257
RD
5293#define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
5294static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
5295 PyObject * _resultobj;
5296 wxValidator * _result;
5297 wxWindow * _arg0;
5298 PyObject * _argo0 = 0;
5299 char *_kwnames[] = { "self", NULL };
5300
5301 self = self;
5302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0))
5303 return NULL;
5304 if (_argo0) {
5305 if (_argo0 == Py_None) { _arg0 = NULL; }
5306 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5307 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p.");
5308 return NULL;
5309 }
5310 }
5311{
0e2ff151 5312 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5313 _result = (wxValidator *)wxWindow_GetValidator(_arg0);
5314
0e2ff151 5315 wxPyEndAllowThreads(__tstate);
e6056257
RD
5316 if (PyErr_Occurred()) return NULL;
5317}{ _resultobj = wxPyMake_wxObject(_result); }
5318 return _resultobj;
5319}
5320
5321#define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0))
5322static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
5323 PyObject * _resultobj;
5324 wxWindow * _arg0;
5325 wxValidator * _arg1;
5326 PyObject * _argo0 = 0;
5327 PyObject * _argo1 = 0;
5328 char *_kwnames[] = { "self","validator", NULL };
5329
5330 self = self;
5331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1))
5332 return NULL;
5333 if (_argo0) {
5334 if (_argo0 == Py_None) { _arg0 = NULL; }
5335 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5336 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p.");
5337 return NULL;
5338 }
5339 }
5340 if (_argo1) {
5341 if (_argo1 == Py_None) { _arg1 = NULL; }
5342 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) {
5343 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p.");
5344 return NULL;
5345 }
5346 }
5347{
0e2ff151 5348 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5349 wxWindow_SetValidator(_arg0,*_arg1);
5350
0e2ff151 5351 wxPyEndAllowThreads(__tstate);
e6056257
RD
5352 if (PyErr_Occurred()) return NULL;
5353} Py_INCREF(Py_None);
5354 _resultobj = Py_None;
5355 return _resultobj;
5356}
5357
5358#define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize())
5359static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5360 PyObject * _resultobj;
5361 wxSize * _result;
5362 wxWindow * _arg0;
5363 PyObject * _argo0 = 0;
5364 char *_kwnames[] = { "self", NULL };
5365 char _ptemp[128];
5366
5367 self = self;
5368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0))
5369 return NULL;
5370 if (_argo0) {
5371 if (_argo0 == Py_None) { _arg0 = NULL; }
5372 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5373 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p.");
5374 return NULL;
5375 }
5376 }
5377{
0e2ff151 5378 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5379 _result = new wxSize (wxWindow_GetBestSize(_arg0));
5380
0e2ff151 5381 wxPyEndAllowThreads(__tstate);
e6056257
RD
5382 if (PyErr_Occurred()) return NULL;
5383} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
5384 _resultobj = Py_BuildValue("s",_ptemp);
5385 return _resultobj;
5386}
5387
5388#define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0))
5389static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
5390 PyObject * _resultobj;
5391 wxWindow * _arg0;
5392 wxCaret * _arg1;
5393 PyObject * _argo0 = 0;
5394 PyObject * _argo1 = 0;
5395 char *_kwnames[] = { "self","caret", NULL };
5396
5397 self = self;
5398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1))
5399 return NULL;
5400 if (_argo0) {
5401 if (_argo0 == Py_None) { _arg0 = NULL; }
5402 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5403 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p.");
5404 return NULL;
5405 }
5406 }
5407 if (_argo1) {
5408 if (_argo1 == Py_None) { _arg1 = NULL; }
5409 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) {
5410 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p.");
5411 return NULL;
5412 }
5413 }
5414{
0e2ff151 5415 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5416 wxWindow_SetCaret(_arg0,_arg1);
5417
0e2ff151 5418 wxPyEndAllowThreads(__tstate);
e6056257
RD
5419 if (PyErr_Occurred()) return NULL;
5420} Py_INCREF(Py_None);
5421 _resultobj = Py_None;
5422 return _resultobj;
5423}
5424
5425#define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret())
5426static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
5427 PyObject * _resultobj;
5428 wxCaret * _result;
5429 wxWindow * _arg0;
5430 PyObject * _argo0 = 0;
5431 char *_kwnames[] = { "self", NULL };
5432 char _ptemp[128];
5433
5434 self = self;
5435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0))
5436 return NULL;
5437 if (_argo0) {
5438 if (_argo0 == Py_None) { _arg0 = NULL; }
5439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p.");
5441 return NULL;
5442 }
5443 }
5444{
0e2ff151 5445 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5446 _result = (wxCaret *)wxWindow_GetCaret(_arg0);
5447
0e2ff151 5448 wxPyEndAllowThreads(__tstate);
e6056257
RD
5449 if (PyErr_Occurred()) return NULL;
5450} if (_result) {
5451 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p");
5452 _resultobj = Py_BuildValue("s",_ptemp);
5453 } else {
5454 Py_INCREF(Py_None);
5455 _resultobj = Py_None;
5456 }
5457 return _resultobj;
5458}
5459
5460#define wxWindow_Freeze(_swigobj) (_swigobj->Freeze())
5461static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) {
5462 PyObject * _resultobj;
5463 wxWindow * _arg0;
5464 PyObject * _argo0 = 0;
5465 char *_kwnames[] = { "self", NULL };
5466
5467 self = self;
5468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0))
5469 return NULL;
5470 if (_argo0) {
5471 if (_argo0 == Py_None) { _arg0 = NULL; }
5472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p.");
5474 return NULL;
5475 }
5476 }
5477{
0e2ff151 5478 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5479 wxWindow_Freeze(_arg0);
5480
0e2ff151 5481 wxPyEndAllowThreads(__tstate);
e6056257
RD
5482 if (PyErr_Occurred()) return NULL;
5483} Py_INCREF(Py_None);
5484 _resultobj = Py_None;
5485 return _resultobj;
5486}
5487
5488#define wxWindow_Thaw(_swigobj) (_swigobj->Thaw())
5489static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) {
5490 PyObject * _resultobj;
5491 wxWindow * _arg0;
5492 PyObject * _argo0 = 0;
5493 char *_kwnames[] = { "self", NULL };
5494
5495 self = self;
5496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0))
5497 return NULL;
5498 if (_argo0) {
5499 if (_argo0 == Py_None) { _arg0 = NULL; }
5500 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5501 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p.");
5502 return NULL;
5503 }
5504 }
5505{
0e2ff151 5506 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5507 wxWindow_Thaw(_arg0);
5508
0e2ff151 5509 wxPyEndAllowThreads(__tstate);
e6056257
RD
5510 if (PyErr_Occurred()) return NULL;
5511} Py_INCREF(Py_None);
5512 _resultobj = Py_None;
5513 return _resultobj;
5514}
5515
5516#define wxWindow_Update(_swigobj) (_swigobj->Update())
5517static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) {
5518 PyObject * _resultobj;
5519 wxWindow * _arg0;
5520 PyObject * _argo0 = 0;
5521 char *_kwnames[] = { "self", NULL };
5522
5523 self = self;
5524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0))
5525 return NULL;
5526 if (_argo0) {
5527 if (_argo0 == Py_None) { _arg0 = NULL; }
5528 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5529 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p.");
5530 return NULL;
5531 }
5532 }
5533{
0e2ff151 5534 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5535 wxWindow_Update(_arg0);
5536
0e2ff151 5537 wxPyEndAllowThreads(__tstate);
e6056257
RD
5538 if (PyErr_Occurred()) return NULL;
5539} Py_INCREF(Py_None);
5540 _resultobj = Py_None;
5541 return _resultobj;
5542}
5543
5544#define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText())
5545static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
5546 PyObject * _resultobj;
5547 wxString * _result;
5548 wxWindow * _arg0;
5549 PyObject * _argo0 = 0;
5550 char *_kwnames[] = { "self", NULL };
5551
5552 self = self;
5553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0))
5554 return NULL;
5555 if (_argo0) {
5556 if (_argo0 == Py_None) { _arg0 = NULL; }
5557 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5558 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p.");
5559 return NULL;
5560 }
5561 }
5562{
0e2ff151 5563 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5564 _result = new wxString (wxWindow_GetHelpText(_arg0));
5565
0e2ff151 5566 wxPyEndAllowThreads(__tstate);
e6056257
RD
5567 if (PyErr_Occurred()) return NULL;
5568}{
5569 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5570}
5571{
5572 delete _result;
5573}
5574 return _resultobj;
5575}
5576
5577#define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0))
5578static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
5579 PyObject * _resultobj;
5580 wxWindow * _arg0;
5581 wxString * _arg1;
5582 PyObject * _argo0 = 0;
5583 PyObject * _obj1 = 0;
5584 char *_kwnames[] = { "self","helpText", NULL };
5585
5586 self = self;
5587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1))
5588 return NULL;
5589 if (_argo0) {
5590 if (_argo0 == Py_None) { _arg0 = NULL; }
5591 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5592 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p.");
5593 return NULL;
5594 }
5595 }
5596{
5597#if PYTHON_API_VERSION >= 1009
5598 char* tmpPtr; int tmpSize;
5599 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5600 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5601 return NULL;
5602 }
5603 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5604 return NULL;
5605 _arg1 = new wxString(tmpPtr, tmpSize);
5606#else
5607 if (!PyString_Check(_obj1)) {
5608 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5609 return NULL;
5610 }
5611 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5612#endif
5613}
5614{
0e2ff151 5615 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5616 wxWindow_SetHelpText(_arg0,*_arg1);
5617
0e2ff151 5618 wxPyEndAllowThreads(__tstate);
e6056257
RD
5619 if (PyErr_Occurred()) return NULL;
5620} Py_INCREF(Py_None);
5621 _resultobj = Py_None;
5622{
5623 if (_obj1)
5624 delete _arg1;
5625}
5626 return _resultobj;
5627}
5628
a341e32e
RD
5629#define wxWindow_SetHelpTextForId(_swigobj,_swigarg0) (_swigobj->SetHelpTextForId(_swigarg0))
5630static PyObject *_wrap_wxWindow_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) {
5631 PyObject * _resultobj;
5632 wxWindow * _arg0;
5633 wxString * _arg1;
5634 PyObject * _argo0 = 0;
5635 PyObject * _obj1 = 0;
5636 char *_kwnames[] = { "self","text", NULL };
5637
5638 self = self;
5639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpTextForId",_kwnames,&_argo0,&_obj1))
5640 return NULL;
5641 if (_argo0) {
5642 if (_argo0 == Py_None) { _arg0 = NULL; }
5643 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5644 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpTextForId. Expected _wxWindow_p.");
5645 return NULL;
5646 }
5647 }
5648{
5649#if PYTHON_API_VERSION >= 1009
5650 char* tmpPtr; int tmpSize;
5651 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5652 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5653 return NULL;
5654 }
5655 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5656 return NULL;
5657 _arg1 = new wxString(tmpPtr, tmpSize);
5658#else
5659 if (!PyString_Check(_obj1)) {
5660 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5661 return NULL;
5662 }
5663 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5664#endif
5665}
5666{
5667 PyThreadState* __tstate = wxPyBeginAllowThreads();
5668 wxWindow_SetHelpTextForId(_arg0,*_arg1);
5669
5670 wxPyEndAllowThreads(__tstate);
5671 if (PyErr_Occurred()) return NULL;
5672} Py_INCREF(Py_None);
5673 _resultobj = Py_None;
5674{
5675 if (_obj1)
5676 delete _arg1;
5677}
5678 return _resultobj;
5679}
5680
e6056257
RD
5681#define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0))
5682static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) {
5683 PyObject * _resultobj;
5684 bool _result;
5685 wxWindow * _arg0;
5686 int _arg1;
5687 PyObject * _argo0 = 0;
5688 char *_kwnames[] = { "self","lines", NULL };
5689
5690 self = self;
5691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1))
5692 return NULL;
5693 if (_argo0) {
5694 if (_argo0 == Py_None) { _arg0 = NULL; }
5695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p.");
5697 return NULL;
5698 }
5699 }
5700{
0e2ff151 5701 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5702 _result = (bool )wxWindow_ScrollLines(_arg0,_arg1);
5703
0e2ff151 5704 wxPyEndAllowThreads(__tstate);
e6056257
RD
5705 if (PyErr_Occurred()) return NULL;
5706} _resultobj = Py_BuildValue("i",_result);
5707 return _resultobj;
5708}
5709
5710#define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0))
5711static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) {
5712 PyObject * _resultobj;
5713 bool _result;
5714 wxWindow * _arg0;
5715 int _arg1;
5716 PyObject * _argo0 = 0;
5717 char *_kwnames[] = { "self","pages", NULL };
5718
5719 self = self;
5720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1))
5721 return NULL;
5722 if (_argo0) {
5723 if (_argo0 == Py_None) { _arg0 = NULL; }
5724 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5725 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p.");
5726 return NULL;
5727 }
5728 }
5729{
0e2ff151 5730 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5731 _result = (bool )wxWindow_ScrollPages(_arg0,_arg1);
5732
0e2ff151 5733 wxPyEndAllowThreads(__tstate);
e6056257
RD
5734 if (PyErr_Occurred()) return NULL;
5735} _resultobj = Py_BuildValue("i",_result);
5736 return _resultobj;
5737}
5738
5739#define wxWindow_LineUp(_swigobj) (_swigobj->LineUp())
5740static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) {
5741 PyObject * _resultobj;
5742 bool _result;
5743 wxWindow * _arg0;
5744 PyObject * _argo0 = 0;
5745 char *_kwnames[] = { "self", NULL };
5746
5747 self = self;
5748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0))
5749 return NULL;
5750 if (_argo0) {
5751 if (_argo0 == Py_None) { _arg0 = NULL; }
5752 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5753 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p.");
5754 return NULL;
5755 }
5756 }
5757{
0e2ff151 5758 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5759 _result = (bool )wxWindow_LineUp(_arg0);
5760
0e2ff151 5761 wxPyEndAllowThreads(__tstate);
e6056257
RD
5762 if (PyErr_Occurred()) return NULL;
5763} _resultobj = Py_BuildValue("i",_result);
5764 return _resultobj;
5765}
5766
5767#define wxWindow_LineDown(_swigobj) (_swigobj->LineDown())
5768static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) {
5769 PyObject * _resultobj;
5770 bool _result;
5771 wxWindow * _arg0;
5772 PyObject * _argo0 = 0;
5773 char *_kwnames[] = { "self", NULL };
5774
5775 self = self;
5776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0))
5777 return NULL;
5778 if (_argo0) {
5779 if (_argo0 == Py_None) { _arg0 = NULL; }
5780 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5781 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p.");
5782 return NULL;
5783 }
5784 }
5785{
0e2ff151 5786 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5787 _result = (bool )wxWindow_LineDown(_arg0);
5788
0e2ff151 5789 wxPyEndAllowThreads(__tstate);
e6056257
RD
5790 if (PyErr_Occurred()) return NULL;
5791} _resultobj = Py_BuildValue("i",_result);
5792 return _resultobj;
5793}
5794
5795#define wxWindow_PageUp(_swigobj) (_swigobj->PageUp())
5796static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) {
5797 PyObject * _resultobj;
5798 bool _result;
5799 wxWindow * _arg0;
5800 PyObject * _argo0 = 0;
5801 char *_kwnames[] = { "self", NULL };
5802
5803 self = self;
5804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0))
5805 return NULL;
5806 if (_argo0) {
5807 if (_argo0 == Py_None) { _arg0 = NULL; }
5808 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5809 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p.");
5810 return NULL;
5811 }
5812 }
5813{
0e2ff151 5814 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5815 _result = (bool )wxWindow_PageUp(_arg0);
5816
0e2ff151 5817 wxPyEndAllowThreads(__tstate);
e6056257
RD
5818 if (PyErr_Occurred()) return NULL;
5819} _resultobj = Py_BuildValue("i",_result);
5820 return _resultobj;
5821}
5822
5823#define wxWindow_PageDown(_swigobj) (_swigobj->PageDown())
5824static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) {
5825 PyObject * _resultobj;
5826 bool _result;
5827 wxWindow * _arg0;
5828 PyObject * _argo0 = 0;
5829 char *_kwnames[] = { "self", NULL };
5830
5831 self = self;
5832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0))
5833 return NULL;
5834 if (_argo0) {
5835 if (_argo0 == Py_None) { _arg0 = NULL; }
5836 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5837 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p.");
5838 return NULL;
5839 }
5840 }
5841{
0e2ff151 5842 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5843 _result = (bool )wxWindow_PageDown(_arg0);
5844
0e2ff151 5845 wxPyEndAllowThreads(__tstate);
e6056257
RD
5846 if (PyErr_Occurred()) return NULL;
5847} _resultobj = Py_BuildValue("i",_result);
5848 return _resultobj;
5849}
5850
5851static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
5852 PyObject * _resultobj;
5853 wxWindow * _result;
5854 char *_kwnames[] = { NULL };
5855
5856 self = self;
5857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames))
5858 return NULL;
5859{
0e2ff151 5860 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5861 _result = (wxWindow *)wxWindow::FindFocus();
5862
0e2ff151 5863 wxPyEndAllowThreads(__tstate);
e6056257
RD
5864 if (PyErr_Occurred()) return NULL;
5865}{ _resultobj = wxPyMake_wxObject(_result); }
5866 return _resultobj;
5867}
5868
5869static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
5870 PyObject * _resultobj;
5871 int _result;
5872 char *_kwnames[] = { NULL };
5873
5874 self = self;
5875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames))
5876 return NULL;
5877{
0e2ff151 5878 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5879 _result = (int )wxWindow::NewControlId();
5880
0e2ff151 5881 wxPyEndAllowThreads(__tstate);
e6056257
RD
5882 if (PyErr_Occurred()) return NULL;
5883} _resultobj = Py_BuildValue("i",_result);
5884 return _resultobj;
5885}
5886
5887static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
5888 PyObject * _resultobj;
5889 int _result;
5890 int _arg0;
5891 char *_kwnames[] = { "id", NULL };
5892
5893 self = self;
5894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0))
5895 return NULL;
5896{
0e2ff151 5897 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5898 _result = (int )wxWindow::NextControlId(_arg0);
5899
0e2ff151 5900 wxPyEndAllowThreads(__tstate);
e6056257
RD
5901 if (PyErr_Occurred()) return NULL;
5902} _resultobj = Py_BuildValue("i",_result);
5903 return _resultobj;
5904}
5905
5906static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
5907 PyObject * _resultobj;
5908 int _result;
5909 int _arg0;
5910 char *_kwnames[] = { "id", NULL };
5911
5912 self = self;
5913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0))
5914 return NULL;
5915{
0e2ff151 5916 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5917 _result = (int )wxWindow::PrevControlId(_arg0);
5918
0e2ff151 5919 wxPyEndAllowThreads(__tstate);
e6056257
RD
5920 if (PyErr_Occurred()) return NULL;
5921} _resultobj = Py_BuildValue("i",_result);
5922 return _resultobj;
5923}
5924
5925#define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
5926static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
5927 PyObject * _resultobj;
5928 wxWindow * _arg0;
5929 wxAcceleratorTable * _arg1;
5930 PyObject * _argo0 = 0;
5931 PyObject * _argo1 = 0;
5932 char *_kwnames[] = { "self","accel", NULL };
5933
5934 self = self;
5935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1))
5936 return NULL;
5937 if (_argo0) {
5938 if (_argo0 == Py_None) { _arg0 = NULL; }
5939 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5940 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p.");
5941 return NULL;
5942 }
5943 }
5944 if (_argo1) {
5945 if (_argo1 == Py_None) { _arg1 = NULL; }
5946 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) {
5947 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
5948 return NULL;
5949 }
5950 }
5951{
0e2ff151 5952 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5953 wxWindow_SetAcceleratorTable(_arg0,*_arg1);
5954
0e2ff151 5955 wxPyEndAllowThreads(__tstate);
e6056257
RD
5956 if (PyErr_Occurred()) return NULL;
5957} Py_INCREF(Py_None);
5958 _resultobj = Py_None;
5959 return _resultobj;
5960}
5961
5962#define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable())
5963static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
5964 PyObject * _resultobj;
5965 wxAcceleratorTable * _result;
5966 wxWindow * _arg0;
5967 PyObject * _argo0 = 0;
5968 char *_kwnames[] = { "self", NULL };
5969 char _ptemp[128];
5970
5971 self = self;
5972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0))
5973 return NULL;
5974 if (_argo0) {
5975 if (_argo0 == Py_None) { _arg0 = NULL; }
5976 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5977 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p.");
5978 return NULL;
5979 }
5980 }
5981{
0e2ff151 5982 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5983 _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0);
5984
0e2ff151 5985 wxPyEndAllowThreads(__tstate);
e6056257
RD
5986 if (PyErr_Occurred()) return NULL;
5987} if (_result) {
5988 SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p");
5989 _resultobj = Py_BuildValue("s",_ptemp);
5990 } else {
5991 Py_INCREF(Py_None);
5992 _resultobj = Py_None;
5993 }
5994 return _resultobj;
5995}
5996
6abe8375
RD
5997#define wxWindow_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
5998static PyObject *_wrap_wxWindow_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5999 PyObject * _resultobj;
6000 wxButton * _result;
6001 wxWindow * _arg0;
6002 PyObject * _argo0 = 0;
6003 char *_kwnames[] = { "self", NULL };
6004
6005 self = self;
6006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDefaultItem",_kwnames,&_argo0))
6007 return NULL;
6008 if (_argo0) {
6009 if (_argo0 == Py_None) { _arg0 = NULL; }
6010 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6011 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDefaultItem. Expected _wxWindow_p.");
6012 return NULL;
6013 }
6014 }
6015{
6016 PyThreadState* __tstate = wxPyBeginAllowThreads();
6017 _result = (wxButton *)wxWindow_GetDefaultItem(_arg0);
6018
6019 wxPyEndAllowThreads(__tstate);
6020 if (PyErr_Occurred()) return NULL;
6021}{ _resultobj = wxPyMake_wxObject(_result); }
6022 return _resultobj;
6023}
6024
6025#define wxWindow_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
6026static PyObject *_wrap_wxWindow_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6027 PyObject * _resultobj;
6028 wxWindow * _arg0;
6029 wxButton * _arg1;
6030 PyObject * _argo0 = 0;
6031 PyObject * _argo1 = 0;
6032 char *_kwnames[] = { "self","btn", NULL };
6033
6034 self = self;
6035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDefaultItem",_kwnames,&_argo0,&_argo1))
6036 return NULL;
6037 if (_argo0) {
6038 if (_argo0 == Py_None) { _arg0 = NULL; }
6039 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6040 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDefaultItem. Expected _wxWindow_p.");
6041 return NULL;
6042 }
6043 }
6044 if (_argo1) {
6045 if (_argo1 == Py_None) { _arg1 = NULL; }
6046 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) {
6047 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDefaultItem. Expected _wxButton_p.");
6048 return NULL;
6049 }
6050 }
6051{
6052 PyThreadState* __tstate = wxPyBeginAllowThreads();
6053 wxWindow_SetDefaultItem(_arg0,_arg1);
6054
6055 wxPyEndAllowThreads(__tstate);
6056 if (PyErr_Occurred()) return NULL;
6057} Py_INCREF(Py_None);
6058 _resultobj = Py_None;
6059 return _resultobj;
6060}
6061
e6056257
RD
6062static void *SwigwxPanelTowxWindow(void *ptr) {
6063 wxPanel *src;
6064 wxWindow *dest;
6065 src = (wxPanel *) ptr;
6066 dest = (wxWindow *) src;
6067 return (void *) dest;
6068}
6069
6070static void *SwigwxPanelTowxEvtHandler(void *ptr) {
6071 wxPanel *src;
6072 wxEvtHandler *dest;
6073 src = (wxPanel *) ptr;
6074 dest = (wxEvtHandler *) src;
6075 return (void *) dest;
6076}
6077
6078static void *SwigwxPanelTowxObject(void *ptr) {
6079 wxPanel *src;
6080 wxObject *dest;
6081 src = (wxPanel *) ptr;
6082 dest = (wxObject *) src;
6083 return (void *) dest;
6084}
6085
6086#define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6087static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) {
6088 PyObject * _resultobj;
6089 wxPanel * _result;
6090 wxWindow * _arg0;
6091 wxWindowID _arg1;
6092 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
6093 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
6094 long _arg4 = (long ) wxTAB_TRAVERSAL;
6095 char * _arg5 = (char *) "panel";
6096 PyObject * _argo0 = 0;
6097 wxPoint temp;
6098 PyObject * _obj2 = 0;
6099 wxSize temp0;
6100 PyObject * _obj3 = 0;
6101 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
6102 char _ptemp[128];
6103
6104 self = self;
6105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
6106 return NULL;
6107 if (_argo0) {
6108 if (_argo0 == Py_None) { _arg0 = NULL; }
6109 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6110 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
6111 return NULL;
6112 }
6113 }
6114 if (_obj2)
6115{
6116 _arg2 = &temp;
6117 if (! wxPoint_helper(_obj2, &_arg2))
6118 return NULL;
6119}
6120 if (_obj3)
6121{
6122 _arg3 = &temp0;
6123 if (! wxSize_helper(_obj3, &_arg3))
6124 return NULL;
6125}
6126{
0e2ff151 6127 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6128 _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
6129
0e2ff151 6130 wxPyEndAllowThreads(__tstate);
e6056257
RD
6131 if (PyErr_Occurred()) return NULL;
6132} if (_result) {
6133 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p");
6134 _resultobj = Py_BuildValue("s",_ptemp);
6135 } else {
6136 Py_INCREF(Py_None);
6137 _resultobj = Py_None;
6138 }
6139 return _resultobj;
6140}
6141
6142#define new_wxPrePanel() (new wxPanel())
6143static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) {
6144 PyObject * _resultobj;
6145 wxPanel * _result;
6146 char *_kwnames[] = { NULL };
6147 char _ptemp[128];
6148
6149 self = self;
6150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames))
6151 return NULL;
6152{
0e2ff151 6153 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6154 _result = (wxPanel *)new_wxPrePanel();
6155
0e2ff151 6156 wxPyEndAllowThreads(__tstate);
e6056257
RD
6157 if (PyErr_Occurred()) return NULL;
6158} if (_result) {
6159 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p");
6160 _resultobj = Py_BuildValue("s",_ptemp);
6161 } else {
6162 Py_INCREF(Py_None);
6163 _resultobj = Py_None;
6164 }
6165 return _resultobj;
6166}
6167
6168#define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6169static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6170 PyObject * _resultobj;
6171 bool _result;
6172 wxPanel * _arg0;
6173 wxWindow * _arg1;
6174 wxWindowID _arg2;
6175 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
6176 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
6177 long _arg5 = (long ) wxTAB_TRAVERSAL;
6178 char * _arg6 = (char *) "panel";
6179 PyObject * _argo0 = 0;
6180 PyObject * _argo1 = 0;
6181 wxPoint temp;
6182 PyObject * _obj3 = 0;
6183 wxSize temp0;
6184 PyObject * _obj4 = 0;
6185 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
6186
6187 self = self;
6188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
6189 return NULL;
6190 if (_argo0) {
6191 if (_argo0 == Py_None) { _arg0 = NULL; }
6192 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
6193 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p.");
6194 return NULL;
6195 }
6196 }
6197 if (_argo1) {
6198 if (_argo1 == Py_None) { _arg1 = NULL; }
6199 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6200 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p.");
6201 return NULL;
6202 }
6203 }
6204 if (_obj3)
6205{
6206 _arg3 = &temp;
6207 if (! wxPoint_helper(_obj3, &_arg3))
6208 return NULL;
6209}
6210 if (_obj4)
6211{
6212 _arg4 = &temp0;
6213 if (! wxSize_helper(_obj4, &_arg4))
6214 return NULL;
6215}
6216{
0e2ff151 6217 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6218 _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
6219
0e2ff151 6220 wxPyEndAllowThreads(__tstate);
e6056257
RD
6221 if (PyErr_Occurred()) return NULL;
6222} _resultobj = Py_BuildValue("i",_result);
6223 return _resultobj;
6224}
6225
6226#define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
6227static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
6228 PyObject * _resultobj;
6229 wxPanel * _arg0;
6230 PyObject * _argo0 = 0;
6231 char *_kwnames[] = { "self", NULL };
6232
6233 self = self;
6234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0))
6235 return NULL;
6236 if (_argo0) {
6237 if (_argo0 == Py_None) { _arg0 = NULL; }
6238 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
6239 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
6240 return NULL;
6241 }
6242 }
6243{
0e2ff151 6244 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6245 wxPanel_InitDialog(_arg0);
6246
0e2ff151 6247 wxPyEndAllowThreads(__tstate);
e6056257
RD
6248 if (PyErr_Occurred()) return NULL;
6249} Py_INCREF(Py_None);
6250 _resultobj = Py_None;
6251 return _resultobj;
6252}
6253
e6056257
RD
6254static void *SwigwxScrolledWindowTowxPanel(void *ptr) {
6255 wxScrolledWindow *src;
6256 wxPanel *dest;
6257 src = (wxScrolledWindow *) ptr;
6258 dest = (wxPanel *) src;
6259 return (void *) dest;
6260}
6261
6262static void *SwigwxScrolledWindowTowxWindow(void *ptr) {
6263 wxScrolledWindow *src;
6264 wxWindow *dest;
6265 src = (wxScrolledWindow *) ptr;
6266 dest = (wxWindow *) src;
6267 return (void *) dest;
6268}
6269
6270static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) {
6271 wxScrolledWindow *src;
6272 wxEvtHandler *dest;
6273 src = (wxScrolledWindow *) ptr;
6274 dest = (wxEvtHandler *) src;
6275 return (void *) dest;
6276}
6277
6278static void *SwigwxScrolledWindowTowxObject(void *ptr) {
6279 wxScrolledWindow *src;
6280 wxObject *dest;
6281 src = (wxScrolledWindow *) ptr;
6282 dest = (wxObject *) src;
6283 return (void *) dest;
6284}
6285
6286#define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6287static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
6288 PyObject * _resultobj;
6289 wxScrolledWindow * _result;
6290 wxWindow * _arg0;
6291 wxWindowID _arg1 = (wxWindowID ) -1;
6292 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
6293 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
6294 long _arg4 = (long ) wxHSCROLL|wxVSCROLL;
6295 char * _arg5 = (char *) "scrolledWindow";
6296 PyObject * _argo0 = 0;
6297 wxPoint temp;
6298 PyObject * _obj2 = 0;
6299 wxSize temp0;
6300 PyObject * _obj3 = 0;
6301 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
6302 char _ptemp[128];
6303
6304 self = self;
6305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
6306 return NULL;
6307 if (_argo0) {
6308 if (_argo0 == Py_None) { _arg0 = NULL; }
6309 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6310 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
6311 return NULL;
6312 }
6313 }
6314 if (_obj2)
6315{
6316 _arg2 = &temp;
6317 if (! wxPoint_helper(_obj2, &_arg2))
6318 return NULL;
6319}
6320 if (_obj3)
6321{
6322 _arg3 = &temp0;
6323 if (! wxSize_helper(_obj3, &_arg3))
6324 return NULL;
6325}
6326{
0e2ff151 6327 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6328 _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
6329
0e2ff151 6330 wxPyEndAllowThreads(__tstate);
e6056257
RD
6331 if (PyErr_Occurred()) return NULL;
6332} if (_result) {
6333 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p");
6334 _resultobj = Py_BuildValue("s",_ptemp);
6335 } else {
6336 Py_INCREF(Py_None);
6337 _resultobj = Py_None;
6338 }
6339 return _resultobj;
6340}
6341
6342#define new_wxPreScrolledWindow() (new wxScrolledWindow())
6343static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
6344 PyObject * _resultobj;
6345 wxScrolledWindow * _result;
6346 char *_kwnames[] = { NULL };
6347 char _ptemp[128];
6348
6349 self = self;
6350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames))
6351 return NULL;
6352{
0e2ff151 6353 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6354 _result = (wxScrolledWindow *)new_wxPreScrolledWindow();
6355
0e2ff151 6356 wxPyEndAllowThreads(__tstate);
e6056257
RD
6357 if (PyErr_Occurred()) return NULL;
6358} if (_result) {
6359 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p");
6360 _resultobj = Py_BuildValue("s",_ptemp);
6361 } else {
6362 Py_INCREF(Py_None);
6363 _resultobj = Py_None;
6364 }
6365 return _resultobj;
6366}
6367
6368#define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6369static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6370 PyObject * _resultobj;
6371 bool _result;
6372 wxScrolledWindow * _arg0;
6373 wxWindow * _arg1;
6374 wxWindowID _arg2 = (wxWindowID ) -1;
6375 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
6376 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
6377 long _arg5 = (long ) wxHSCROLL|wxVSCROLL;
6378 char * _arg6 = (char *) "scrolledWindow";
6379 PyObject * _argo0 = 0;
6380 PyObject * _argo1 = 0;
6381 wxPoint temp;
6382 PyObject * _obj3 = 0;
6383 wxSize temp0;
6384 PyObject * _obj4 = 0;
6385 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
6386
6387 self = self;
6388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
6389 return NULL;
6390 if (_argo0) {
6391 if (_argo0 == Py_None) { _arg0 = NULL; }
6392 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6393 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p.");
6394 return NULL;
6395 }
6396 }
6397 if (_argo1) {
6398 if (_argo1 == Py_None) { _arg1 = NULL; }
6399 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6400 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p.");
6401 return NULL;
6402 }
6403 }
6404 if (_obj3)
6405{
6406 _arg3 = &temp;
6407 if (! wxPoint_helper(_obj3, &_arg3))
6408 return NULL;
6409}
6410 if (_obj4)
6411{
6412 _arg4 = &temp0;
6413 if (! wxSize_helper(_obj4, &_arg4))
6414 return NULL;
6415}
6416{
0e2ff151 6417 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6418 _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
6419
0e2ff151 6420 wxPyEndAllowThreads(__tstate);
e6056257
RD
6421 if (PyErr_Occurred()) return NULL;
6422} _resultobj = Py_BuildValue("i",_result);
6423 return _resultobj;
6424}
6425
6426#define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
6427static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) {
6428 PyObject * _resultobj;
6429 wxScrolledWindow * _arg0;
6430 bool _arg1;
6431 bool _arg2;
6432 PyObject * _argo0 = 0;
6433 int tempbool1;
6434 int tempbool2;
6435 char *_kwnames[] = { "self","xScrolling","yScrolling", NULL };
6436
6437 self = self;
6438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2))
6439 return NULL;
6440 if (_argo0) {
6441 if (_argo0 == Py_None) { _arg0 = NULL; }
6442 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6443 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
6444 return NULL;
6445 }
6446 }
6447 _arg1 = (bool ) tempbool1;
6448 _arg2 = (bool ) tempbool2;
6449{
0e2ff151 6450 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6451 wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2);
6452
0e2ff151 6453 wxPyEndAllowThreads(__tstate);
e6056257
RD
6454 if (PyErr_Occurred()) return NULL;
6455} Py_INCREF(Py_None);
6456 _resultobj = Py_None;
6457 return _resultobj;
6458}
6459
6460#define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0))
6461static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6462 PyObject * _resultobj;
6463 int _result;
6464 wxScrolledWindow * _arg0;
6465 int _arg1;
6466 PyObject * _argo0 = 0;
6467 char *_kwnames[] = { "self","orient", NULL };
6468
6469 self = self;
6470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1))
6471 return NULL;
6472 if (_argo0) {
6473 if (_argo0 == Py_None) { _arg0 = NULL; }
6474 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6475 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p.");
6476 return NULL;
6477 }
6478 }
6479{
0e2ff151 6480 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6481 _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1);
6482
0e2ff151 6483 wxPyEndAllowThreads(__tstate);
e6056257
RD
6484 if (PyErr_Occurred()) return NULL;
6485} _resultobj = Py_BuildValue("i",_result);
6486 return _resultobj;
6487}
6488
6489#define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
6490static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) {
6491 PyObject * _resultobj;
6492 wxScrolledWindow * _arg0;
6493 int * _arg1;
6494 int temp;
6495 int * _arg2;
6496 int temp0;
6497 PyObject * _argo0 = 0;
6498 char *_kwnames[] = { "self", NULL };
6499
6500 self = self;
6501{
6502 _arg1 = &temp;
6503}
6504{
6505 _arg2 = &temp0;
6506}
6507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0))
6508 return NULL;
6509 if (_argo0) {
6510 if (_argo0 == Py_None) { _arg0 = NULL; }
6511 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6512 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
6513 return NULL;
6514 }
6515 }
6516{
0e2ff151 6517 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6518 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2);
6519
0e2ff151 6520 wxPyEndAllowThreads(__tstate);
e6056257
RD
6521 if (PyErr_Occurred()) return NULL;
6522} Py_INCREF(Py_None);
6523 _resultobj = Py_None;
6524{
6525 PyObject *o;
6526 o = PyInt_FromLong((long) (*_arg1));
6527 _resultobj = t_output_helper(_resultobj, o);
6528}
6529{
6530 PyObject *o;
6531 o = PyInt_FromLong((long) (*_arg2));
6532 _resultobj = t_output_helper(_resultobj, o);
6533}
6534 return _resultobj;
6535}
6536
6537#define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow())
6538static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
6539 PyObject * _resultobj;
6540 wxWindow * _result;
6541 wxScrolledWindow * _arg0;
6542 PyObject * _argo0 = 0;
6543 char *_kwnames[] = { "self", NULL };
6544
6545 self = self;
6546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0))
6547 return NULL;
6548 if (_argo0) {
6549 if (_argo0 == Py_None) { _arg0 = NULL; }
6550 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6551 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p.");
6552 return NULL;
6553 }
6554 }
6555{
0e2ff151 6556 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6557 _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0);
6558
0e2ff151 6559 wxPyEndAllowThreads(__tstate);
e6056257
RD
6560 if (PyErr_Occurred()) return NULL;
6561}{ _resultobj = wxPyMake_wxObject(_result); }
6562 return _resultobj;
6563}
6564
6565#define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
6566static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6567 PyObject * _resultobj;
6568 wxScrolledWindow * _arg0;
6569 int * _arg1;
6570 int temp;
6571 int * _arg2;
6572 int temp0;
6573 PyObject * _argo0 = 0;
6574 char *_kwnames[] = { "self", NULL };
6575
6576 self = self;
6577{
6578 _arg1 = &temp;
6579}
6580{
6581 _arg2 = &temp0;
6582}
6583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0))
6584 return NULL;
6585 if (_argo0) {
6586 if (_argo0 == Py_None) { _arg0 = NULL; }
6587 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6588 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
6589 return NULL;
6590 }
6591 }
6592{
0e2ff151 6593 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6594 wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2);
6595
0e2ff151 6596 wxPyEndAllowThreads(__tstate);
e6056257
RD
6597 if (PyErr_Occurred()) return NULL;
6598} Py_INCREF(Py_None);
6599 _resultobj = Py_None;
6600{
6601 PyObject *o;
6602 o = PyInt_FromLong((long) (*_arg1));
6603 _resultobj = t_output_helper(_resultobj, o);
6604}
6605{
6606 PyObject *o;
6607 o = PyInt_FromLong((long) (*_arg2));
6608 _resultobj = t_output_helper(_resultobj, o);
6609}
6610 return _resultobj;
6611}
6612
6613#define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
6614static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
6615 PyObject * _resultobj;
6616 bool _result;
6617 wxScrolledWindow * _arg0;
6618 PyObject * _argo0 = 0;
6619 char *_kwnames[] = { "self", NULL };
6620
6621 self = self;
6622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0))
6623 return NULL;
6624 if (_argo0) {
6625 if (_argo0 == Py_None) { _arg0 = NULL; }
6626 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6627 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
6628 return NULL;
6629 }
6630 }
6631{
0e2ff151 6632 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6633 _result = (bool )wxScrolledWindow_IsRetained(_arg0);
6634
0e2ff151 6635 wxPyEndAllowThreads(__tstate);
e6056257
RD
6636 if (PyErr_Occurred()) return NULL;
6637} _resultobj = Py_BuildValue("i",_result);
6638 return _resultobj;
6639}
6640
6641#define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
6642static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) {
6643 PyObject * _resultobj;
6644 wxScrolledWindow * _arg0;
6645 wxDC * _arg1;
6646 PyObject * _argo0 = 0;
6647 PyObject * _argo1 = 0;
6648 char *_kwnames[] = { "self","dc", NULL };
6649
6650 self = self;
6651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1))
6652 return NULL;
6653 if (_argo0) {
6654 if (_argo0 == Py_None) { _arg0 = NULL; }
6655 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6656 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
6657 return NULL;
6658 }
6659 }
6660 if (_argo1) {
6661 if (_argo1 == Py_None) { _arg1 = NULL; }
6662 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
6663 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
6664 return NULL;
6665 }
6666 }
6667{
0e2ff151 6668 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6669 wxScrolledWindow_PrepareDC(_arg0,*_arg1);
6670
0e2ff151 6671 wxPyEndAllowThreads(__tstate);
e6056257
RD
6672 if (PyErr_Occurred()) return NULL;
6673} Py_INCREF(Py_None);
6674 _resultobj = Py_None;
6675 return _resultobj;
6676}
6677
6678#define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
6679static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) {
6680 PyObject * _resultobj;
6681 wxScrolledWindow * _arg0;
6682 int _arg1;
6683 int _arg2;
6684 PyObject * _argo0 = 0;
6685 char *_kwnames[] = { "self","x","y", NULL };
6686
6687 self = self;
6688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2))
6689 return NULL;
6690 if (_argo0) {
6691 if (_argo0 == Py_None) { _arg0 = NULL; }
6692 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6693 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
6694 return NULL;
6695 }
6696 }
6697{
0e2ff151 6698 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6699 wxScrolledWindow_Scroll(_arg0,_arg1,_arg2);
6700
0e2ff151 6701 wxPyEndAllowThreads(__tstate);
e6056257
RD
6702 if (PyErr_Occurred()) return NULL;
6703} Py_INCREF(Py_None);
6704 _resultobj = Py_None;
6705 return _resultobj;
6706}
6707
6708#define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6709static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) {
6710 PyObject * _resultobj;
6711 wxScrolledWindow * _arg0;
6712 int _arg1;
6713 int _arg2;
6714 int _arg3;
6715 int _arg4;
6716 int _arg5 = (int ) 0;
6717 int _arg6 = (int ) 0;
6718 int _arg7 = (int ) FALSE;
6719 PyObject * _argo0 = 0;
6720 char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL };
6721
6722 self = self;
6723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7))
6724 return NULL;
6725 if (_argo0) {
6726 if (_argo0 == Py_None) { _arg0 = NULL; }
6727 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6728 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
6729 return NULL;
6730 }
6731 }
6732{
0e2ff151 6733 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6734 wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
6735
0e2ff151 6736 wxPyEndAllowThreads(__tstate);
e6056257
RD
6737 if (PyErr_Occurred()) return NULL;
6738} Py_INCREF(Py_None);
6739 _resultobj = Py_None;
6740 return _resultobj;
6741}
6742
6743#define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1))
6744static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6745 PyObject * _resultobj;
6746 wxScrolledWindow * _arg0;
6747 int _arg1;
6748 int _arg2;
6749 PyObject * _argo0 = 0;
6750 char *_kwnames[] = { "self","orient","pageSize", NULL };
6751
6752 self = self;
6753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2))
6754 return NULL;
6755 if (_argo0) {
6756 if (_argo0 == Py_None) { _arg0 = NULL; }
6757 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6758 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p.");
6759 return NULL;
6760 }
6761 }
6762{
0e2ff151 6763 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6764 wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2);
6765
0e2ff151 6766 wxPyEndAllowThreads(__tstate);
e6056257
RD
6767 if (PyErr_Occurred()) return NULL;
6768} Py_INCREF(Py_None);
6769 _resultobj = Py_None;
6770 return _resultobj;
6771}
6772
6773#define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0))
6774static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
6775 PyObject * _resultobj;
6776 wxScrolledWindow * _arg0;
6777 wxWindow * _arg1;
6778 PyObject * _argo0 = 0;
6779 PyObject * _argo1 = 0;
6780 char *_kwnames[] = { "self","window", NULL };
6781
6782 self = self;
6783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1))
6784 return NULL;
6785 if (_argo0) {
6786 if (_argo0 == Py_None) { _arg0 = NULL; }
6787 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6788 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p.");
6789 return NULL;
6790 }
6791 }
6792 if (_argo1) {
6793 if (_argo1 == Py_None) { _arg1 = NULL; }
6794 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6795 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p.");
6796 return NULL;
6797 }
6798 }
6799{
0e2ff151 6800 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6801 wxScrolledWindow_SetTargetWindow(_arg0,_arg1);
6802
0e2ff151 6803 wxPyEndAllowThreads(__tstate);
e6056257
RD
6804 if (PyErr_Occurred()) return NULL;
6805} Py_INCREF(Py_None);
6806 _resultobj = Py_None;
6807 return _resultobj;
6808}
6809
6810#define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1))
6811static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) {
6812 PyObject * _resultobj;
6813 wxScrolledWindow * _arg0;
6814 int * _arg1;
6815 int temp;
6816 int * _arg2;
6817 int temp0;
6818 PyObject * _argo0 = 0;
6819 char *_kwnames[] = { "self", NULL };
6820
6821 self = self;
6822{
6823 _arg1 = &temp;
6824}
6825{
6826 _arg2 = &temp0;
6827}
6828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0))
6829 return NULL;
6830 if (_argo0) {
6831 if (_argo0 == Py_None) { _arg0 = NULL; }
6832 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6833 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p.");
6834 return NULL;
6835 }
6836 }
6837{
0e2ff151 6838 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6839 wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2);
6840
0e2ff151 6841 wxPyEndAllowThreads(__tstate);
e6056257
RD
6842 if (PyErr_Occurred()) return NULL;
6843} Py_INCREF(Py_None);
6844 _resultobj = Py_None;
6845{
6846 PyObject *o;
6847 o = PyInt_FromLong((long) (*_arg1));
6848 _resultobj = t_output_helper(_resultobj, o);
6849}
6850{
6851 PyObject *o;
6852 o = PyInt_FromLong((long) (*_arg2));
6853 _resultobj = t_output_helper(_resultobj, o);
6854}
6855 return _resultobj;
6856}
6857
6858#define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6859static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6860 PyObject * _resultobj;
6861 wxScrolledWindow * _arg0;
6862 int _arg1;
6863 int _arg2;
6864 int * _arg3;
6865 int temp;
6866 int * _arg4;
6867 int temp0;
6868 PyObject * _argo0 = 0;
6869 char *_kwnames[] = { "self","x","y", NULL };
6870
6871 self = self;
6872{
6873 _arg3 = &temp;
6874}
6875{
6876 _arg4 = &temp0;
6877}
6878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2))
6879 return NULL;
6880 if (_argo0) {
6881 if (_argo0 == Py_None) { _arg0 = NULL; }
6882 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6883 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p.");
6884 return NULL;
6885 }
6886 }
6887{
0e2ff151 6888 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6889 wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4);
6890
0e2ff151 6891 wxPyEndAllowThreads(__tstate);
e6056257
RD
6892 if (PyErr_Occurred()) return NULL;
6893} Py_INCREF(Py_None);
6894 _resultobj = Py_None;
6895{
6896 PyObject *o;
6897 o = PyInt_FromLong((long) (*_arg3));
6898 _resultobj = t_output_helper(_resultobj, o);
6899}
6900{
6901 PyObject *o;
6902 o = PyInt_FromLong((long) (*_arg4));
6903 _resultobj = t_output_helper(_resultobj, o);
6904}
6905 return _resultobj;
6906}
6907
6908#define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6909static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6910 PyObject * _resultobj;
6911 wxScrolledWindow * _arg0;
6912 int _arg1;
6913 int _arg2;
6914 int * _arg3;
6915 int temp;
6916 int * _arg4;
6917 int temp0;
6918 PyObject * _argo0 = 0;
6919 char *_kwnames[] = { "self","x","y", NULL };
6920
6921 self = self;
6922{
6923 _arg3 = &temp;
6924}
6925{
6926 _arg4 = &temp0;
6927}
6928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2))
6929 return NULL;
6930 if (_argo0) {
6931 if (_argo0 == Py_None) { _arg0 = NULL; }
6932 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6933 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p.");
6934 return NULL;
6935 }
6936 }
6937{
0e2ff151 6938 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6939 wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4);
6940
0e2ff151 6941 wxPyEndAllowThreads(__tstate);
e6056257
RD
6942 if (PyErr_Occurred()) return NULL;
6943} Py_INCREF(Py_None);
6944 _resultobj = Py_None;
6945{
6946 PyObject *o;
6947 o = PyInt_FromLong((long) (*_arg3));
6948 _resultobj = t_output_helper(_resultobj, o);
6949}
6950{
6951 PyObject *o;
6952 o = PyInt_FromLong((long) (*_arg4));
6953 _resultobj = t_output_helper(_resultobj, o);
6954}
6955 return _resultobj;
6956}
6957
6958#define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1))
6959static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) {
6960 PyObject * _resultobj;
6961 wxScrolledWindow * _arg0;
6962 double _arg1;
6963 double _arg2;
6964 PyObject * _argo0 = 0;
6965 char *_kwnames[] = { "self","xs","ys", NULL };
6966
6967 self = self;
6968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2))
6969 return NULL;
6970 if (_argo0) {
6971 if (_argo0 == Py_None) { _arg0 = NULL; }
6972 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6973 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p.");
6974 return NULL;
6975 }
6976 }
6977{
0e2ff151 6978 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6979 wxScrolledWindow_SetScale(_arg0,_arg1,_arg2);
6980
0e2ff151 6981 wxPyEndAllowThreads(__tstate);
e6056257
RD
6982 if (PyErr_Occurred()) return NULL;
6983} Py_INCREF(Py_None);
6984 _resultobj = Py_None;
6985 return _resultobj;
6986}
6987
6988#define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX())
6989static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) {
6990 PyObject * _resultobj;
6991 double _result;
6992 wxScrolledWindow * _arg0;
6993 PyObject * _argo0 = 0;
6994 char *_kwnames[] = { "self", NULL };
6995
6996 self = self;
6997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0))
6998 return NULL;
6999 if (_argo0) {
7000 if (_argo0 == Py_None) { _arg0 = NULL; }
7001 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7002 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p.");
7003 return NULL;
7004 }
7005 }
7006{
0e2ff151 7007 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7008 _result = (double )wxScrolledWindow_GetScaleX(_arg0);
7009
0e2ff151 7010 wxPyEndAllowThreads(__tstate);
e6056257
RD
7011 if (PyErr_Occurred()) return NULL;
7012} _resultobj = Py_BuildValue("d",_result);
7013 return _resultobj;
7014}
7015
7016#define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY())
7017static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) {
7018 PyObject * _resultobj;
7019 double _result;
7020 wxScrolledWindow * _arg0;
7021 PyObject * _argo0 = 0;
7022 char *_kwnames[] = { "self", NULL };
7023
7024 self = self;
7025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0))
7026 return NULL;
7027 if (_argo0) {
7028 if (_argo0 == Py_None) { _arg0 = NULL; }
7029 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7030 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p.");
7031 return NULL;
7032 }
7033 }
7034{
0e2ff151 7035 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7036 _result = (double )wxScrolledWindow_GetScaleY(_arg0);
7037
0e2ff151 7038 wxPyEndAllowThreads(__tstate);
e6056257
RD
7039 if (PyErr_Occurred()) return NULL;
7040} _resultobj = Py_BuildValue("d",_result);
7041 return _resultobj;
7042}
7043
7044#define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars())
7045static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) {
7046 PyObject * _resultobj;
7047 wxScrolledWindow * _arg0;
7048 PyObject * _argo0 = 0;
7049 char *_kwnames[] = { "self", NULL };
7050
7051 self = self;
7052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0))
7053 return NULL;
7054 if (_argo0) {
7055 if (_argo0 == Py_None) { _arg0 = NULL; }
7056 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7057 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p.");
7058 return NULL;
7059 }
7060 }
7061{
0e2ff151 7062 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7063 wxScrolledWindow_AdjustScrollbars(_arg0);
7064
0e2ff151 7065 wxPyEndAllowThreads(__tstate);
e6056257
RD
7066 if (PyErr_Occurred()) return NULL;
7067} Py_INCREF(Py_None);
7068 _resultobj = Py_None;
7069 return _resultobj;
7070}
7071
7072static void *SwigwxMenuTowxEvtHandler(void *ptr) {
7073 wxMenu *src;
7074 wxEvtHandler *dest;
7075 src = (wxMenu *) ptr;
7076 dest = (wxEvtHandler *) src;
7077 return (void *) dest;
7078}
7079
7080static void *SwigwxMenuTowxObject(void *ptr) {
7081 wxMenu *src;
7082 wxObject *dest;
7083 src = (wxMenu *) ptr;
7084 dest = (wxObject *) src;
7085 return (void *) dest;
7086}
7087
7088#define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
7089static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
7090 PyObject * _resultobj;
7091 wxMenu * _result;
a341e32e 7092 wxString * _arg0 = (wxString *) &wxEmptyString;
e6056257
RD
7093 long _arg1 = (long ) 0;
7094 PyObject * _obj0 = 0;
7095 char *_kwnames[] = { "title","style", NULL };
7096 char _ptemp[128];
7097
7098 self = self;
7099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1))
7100 return NULL;
7101 if (_obj0)
7102{
7103#if PYTHON_API_VERSION >= 1009
7104 char* tmpPtr; int tmpSize;
7105 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
7106 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7107 return NULL;
7108 }
7109 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
7110 return NULL;
7111 _arg0 = new wxString(tmpPtr, tmpSize);
7112#else
7113 if (!PyString_Check(_obj0)) {
7114 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7115 return NULL;
7116 }
7117 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
7118#endif
7119}
7120{
0e2ff151 7121 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7122 _result = (wxMenu *)new_wxMenu(*_arg0,_arg1);
7123
0e2ff151 7124 wxPyEndAllowThreads(__tstate);
e6056257
RD
7125 if (PyErr_Occurred()) return NULL;
7126} if (_result) {
7127 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
7128 _resultobj = Py_BuildValue("s",_ptemp);
7129 } else {
7130 Py_INCREF(Py_None);
7131 _resultobj = Py_None;
7132 }
7133{
7134 if (_obj0)
7135 delete _arg0;
7136}
7137 return _resultobj;
7138}
7139
7140#define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7141static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
7142 PyObject * _resultobj;
7143 wxMenu * _arg0;
7144 int _arg1;
7145 wxString * _arg2;
a341e32e 7146 wxString * _arg3 = (wxString *) &wxEmptyString;
e6056257
RD
7147 int _arg4 = (int ) FALSE;
7148 PyObject * _argo0 = 0;
7149 PyObject * _obj2 = 0;
7150 PyObject * _obj3 = 0;
7151 char *_kwnames[] = { "self","id","item","helpString","checkable", NULL };
7152
7153 self = self;
7154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
7155 return NULL;
7156 if (_argo0) {
7157 if (_argo0 == Py_None) { _arg0 = NULL; }
7158 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7159 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
7160 return NULL;
7161 }
7162 }
7163{
7164#if PYTHON_API_VERSION >= 1009
7165 char* tmpPtr; int tmpSize;
7166 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7167 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7168 return NULL;
7169 }
7170 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
7171 return NULL;
7172 _arg2 = new wxString(tmpPtr, tmpSize);
7173#else
7174 if (!PyString_Check(_obj2)) {
7175 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7176 return NULL;
7177 }
7178 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
7179#endif
7180}
7181 if (_obj3)
7182{
7183#if PYTHON_API_VERSION >= 1009
7184 char* tmpPtr; int tmpSize;
7185 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
7186 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7187 return NULL;
7188 }
7189 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
7190 return NULL;
7191 _arg3 = new wxString(tmpPtr, tmpSize);
7192#else
7193 if (!PyString_Check(_obj3)) {
7194 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7195 return NULL;
7196 }
7197 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
7198#endif
7199}
7200{
0e2ff151 7201 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7202 wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4);
7203
0e2ff151 7204 wxPyEndAllowThreads(__tstate);
e6056257
RD
7205 if (PyErr_Occurred()) return NULL;
7206} Py_INCREF(Py_None);
7207 _resultobj = Py_None;
7208{
7209 if (_obj2)
7210 delete _arg2;
7211}
7212{
7213 if (_obj3)
7214 delete _arg3;
7215}
7216 return _resultobj;
7217}
7218
7219#define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7220static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
7221 PyObject * _resultobj;
7222 wxMenu * _arg0;
7223 int _arg1;
7224 wxString * _arg2;
7225 wxMenu * _arg3;
a341e32e 7226 wxString * _arg4 = (wxString *) &wxEmptyString;
e6056257
RD
7227 PyObject * _argo0 = 0;
7228 PyObject * _obj2 = 0;
7229 PyObject * _argo3 = 0;
7230 PyObject * _obj4 = 0;
7231 char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL };
7232
7233 self = self;
7234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4))
7235 return NULL;
7236 if (_argo0) {
7237 if (_argo0 == Py_None) { _arg0 = NULL; }
7238 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7239 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
7240 return NULL;
7241 }
7242 }
7243{
7244#if PYTHON_API_VERSION >= 1009
7245 char* tmpPtr; int tmpSize;
7246 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7247 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7248 return NULL;
7249 }
7250 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
7251 return NULL;
7252 _arg2 = new wxString(tmpPtr, tmpSize);
7253#else
7254 if (!PyString_Check(_obj2)) {
7255 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7256 return NULL;
7257 }
7258 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
7259#endif
7260}
7261 if (_argo3) {
7262 if (_argo3 == Py_None) { _arg3 = NULL; }
7263 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) {
7264 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
7265 return NULL;
7266 }
7267 }
7268 if (_obj4)
7269{
7270#if PYTHON_API_VERSION >= 1009
7271 char* tmpPtr; int tmpSize;
7272 if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) {
7273 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7274 return NULL;
7275 }
7276 if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1)
7277 return NULL;
7278 _arg4 = new wxString(tmpPtr, tmpSize);
7279#else
7280 if (!PyString_Check(_obj4)) {
7281 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7282 return NULL;
7283 }
7284 _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4));
7285#endif
7286}
7287{
0e2ff151 7288 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7289 wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4);
7290
0e2ff151 7291 wxPyEndAllowThreads(__tstate);
e6056257
RD
7292 if (PyErr_Occurred()) return NULL;
7293} Py_INCREF(Py_None);
7294 _resultobj = Py_None;
7295{
7296 if (_obj2)
7297 delete _arg2;
7298}
7299{
7300 if (_obj4)
7301 delete _arg4;
7302}
7303 return _resultobj;
7304}
7305
7306#define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
7307static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7308 PyObject * _resultobj;
7309 wxMenu * _arg0;
7310 wxMenuItem * _arg1;
7311 PyObject * _argo0 = 0;
7312 PyObject * _argo1 = 0;
7313 char *_kwnames[] = { "self","item", NULL };
7314
7315 self = self;
7316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1))
7317 return NULL;
7318 if (_argo0) {
7319 if (_argo0 == Py_None) { _arg0 = NULL; }
7320 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7321 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
7322 return NULL;
7323 }
7324 }
7325 if (_argo1) {
7326 if (_argo1 == Py_None) { _arg1 = NULL; }
7327 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
7328 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
7329 return NULL;
7330 }
7331 }
7332{
0e2ff151 7333 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7334 wxMenu_AppendItem(_arg0,_arg1);
7335
0e2ff151 7336 wxPyEndAllowThreads(__tstate);
e6056257
RD
7337 if (PyErr_Occurred()) return NULL;
7338} Py_INCREF(Py_None);
7339 _resultobj = Py_None;
7340 return _resultobj;
7341}
7342
7343#define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
7344static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
7345 PyObject * _resultobj;
7346 wxMenu * _arg0;
7347 PyObject * _argo0 = 0;
7348 char *_kwnames[] = { "self", NULL };
7349
7350 self = self;
7351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0))
7352 return NULL;
7353 if (_argo0) {
7354 if (_argo0 == Py_None) { _arg0 = NULL; }
7355 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7356 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
7357 return NULL;
7358 }
7359 }
7360{
0e2ff151 7361 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7362 wxMenu_AppendSeparator(_arg0);
7363
0e2ff151 7364 wxPyEndAllowThreads(__tstate);
e6056257
RD
7365 if (PyErr_Occurred()) return NULL;
7366} Py_INCREF(Py_None);
7367 _resultobj = Py_None;
7368 return _resultobj;
7369}
7370
7371#define wxMenu_Break(_swigobj) (_swigobj->Break())
7372static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) {
7373 PyObject * _resultobj;
7374 wxMenu * _arg0;
7375 PyObject * _argo0 = 0;
7376 char *_kwnames[] = { "self", NULL };
7377
7378 self = self;
7379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0))
7380 return NULL;
7381 if (_argo0) {
7382 if (_argo0 == Py_None) { _arg0 = NULL; }
7383 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7384 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
7385 return NULL;
7386 }
7387 }
7388{
0e2ff151 7389 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7390 wxMenu_Break(_arg0);
7391
0e2ff151 7392 wxPyEndAllowThreads(__tstate);
e6056257
RD
7393 if (PyErr_Occurred()) return NULL;
7394} Py_INCREF(Py_None);
7395 _resultobj = Py_None;
7396 return _resultobj;
7397}
7398
7399#define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
7400static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
7401 PyObject * _resultobj;
7402 wxMenu * _arg0;
7403 int _arg1;
7404 bool _arg2;
7405 PyObject * _argo0 = 0;
7406 int tempbool2;
7407 char *_kwnames[] = { "self","id","flag", NULL };
7408
7409 self = self;
7410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2))
7411 return NULL;
7412 if (_argo0) {
7413 if (_argo0 == Py_None) { _arg0 = NULL; }
7414 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7415 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
7416 return NULL;
7417 }
7418 }
7419 _arg2 = (bool ) tempbool2;
7420{
0e2ff151 7421 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7422 wxMenu_Check(_arg0,_arg1,_arg2);
7423
0e2ff151 7424 wxPyEndAllowThreads(__tstate);
e6056257
RD
7425 if (PyErr_Occurred()) return NULL;
7426} Py_INCREF(Py_None);
7427 _resultobj = Py_None;
7428 return _resultobj;
7429}
7430
7431#define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
7432static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
7433 PyObject * _resultobj;
7434 bool _result;
7435 wxMenu * _arg0;
7436 int _arg1;
7437 PyObject * _argo0 = 0;
7438 char *_kwnames[] = { "self","id", NULL };
7439
7440 self = self;
7441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1))
7442 return NULL;
7443 if (_argo0) {
7444 if (_argo0 == Py_None) { _arg0 = NULL; }
7445 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7446 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
7447 return NULL;
7448 }
7449 }
7450{
0e2ff151 7451 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7452 _result = (bool )wxMenu_IsChecked(_arg0,_arg1);
7453
0e2ff151 7454 wxPyEndAllowThreads(__tstate);
e6056257
RD
7455 if (PyErr_Occurred()) return NULL;
7456} _resultobj = Py_BuildValue("i",_result);
7457 return _resultobj;
7458}
7459
7460#define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
7461static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
7462 PyObject * _resultobj;
7463 wxMenu * _arg0;
7464 int _arg1;
7465 bool _arg2;
7466 PyObject * _argo0 = 0;
7467 int tempbool2;
7468 char *_kwnames[] = { "self","id","enable", NULL };
7469
7470 self = self;
7471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2))
7472 return NULL;
7473 if (_argo0) {
7474 if (_argo0 == Py_None) { _arg0 = NULL; }
7475 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7476 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
7477 return NULL;
7478 }
7479 }
7480 _arg2 = (bool ) tempbool2;
7481{
0e2ff151 7482 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7483 wxMenu_Enable(_arg0,_arg1,_arg2);
7484
0e2ff151 7485 wxPyEndAllowThreads(__tstate);
e6056257
RD
7486 if (PyErr_Occurred()) return NULL;
7487} Py_INCREF(Py_None);
7488 _resultobj = Py_None;
7489 return _resultobj;
7490}
7491
7492#define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
7493static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
7494 PyObject * _resultobj;
7495 bool _result;
7496 wxMenu * _arg0;
7497 int _arg1;
7498 PyObject * _argo0 = 0;
7499 char *_kwnames[] = { "self","id", NULL };
7500
7501 self = self;
7502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1))
7503 return NULL;
7504 if (_argo0) {
7505 if (_argo0 == Py_None) { _arg0 = NULL; }
7506 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7507 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
7508 return NULL;
7509 }
7510 }
7511{
0e2ff151 7512 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7513 _result = (bool )wxMenu_IsEnabled(_arg0,_arg1);
7514
0e2ff151 7515 wxPyEndAllowThreads(__tstate);
e6056257
RD
7516 if (PyErr_Occurred()) return NULL;
7517} _resultobj = Py_BuildValue("i",_result);
7518 return _resultobj;
7519}
7520
7521#define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7522static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7523 PyObject * _resultobj;
7524 int _result;
7525 wxMenu * _arg0;
7526 wxString * _arg1;
7527 PyObject * _argo0 = 0;
7528 PyObject * _obj1 = 0;
7529 char *_kwnames[] = { "self","itemString", NULL };
7530
7531 self = self;
7532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1))
7533 return NULL;
7534 if (_argo0) {
7535 if (_argo0 == Py_None) { _arg0 = NULL; }
7536 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7537 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
7538 return NULL;
7539 }
7540 }
7541{
7542#if PYTHON_API_VERSION >= 1009
7543 char* tmpPtr; int tmpSize;
7544 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7545 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7546 return NULL;
7547 }
7548 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7549 return NULL;
7550 _arg1 = new wxString(tmpPtr, tmpSize);
7551#else
7552 if (!PyString_Check(_obj1)) {
7553 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7554 return NULL;
7555 }
7556 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7557#endif
7558}
7559{
0e2ff151 7560 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7561 _result = (int )wxMenu_FindItem(_arg0,*_arg1);
7562
0e2ff151 7563 wxPyEndAllowThreads(__tstate);
e6056257
RD
7564 if (PyErr_Occurred()) return NULL;
7565} _resultobj = Py_BuildValue("i",_result);
7566{
7567 if (_obj1)
7568 delete _arg1;
7569}
7570 return _resultobj;
7571}
7572
7573#define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7574static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
7575 PyObject * _resultobj;
7576 wxMenuItem * _result;
7577 wxMenu * _arg0;
7578 int _arg1;
7579 PyObject * _argo0 = 0;
7580 char *_kwnames[] = { "self","id", NULL };
7581
7582 self = self;
7583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1))
7584 return NULL;
7585 if (_argo0) {
7586 if (_argo0 == Py_None) { _arg0 = NULL; }
7587 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7588 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p.");
7589 return NULL;
7590 }
7591 }
7592{
0e2ff151 7593 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7594 _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1);
7595
0e2ff151 7596 wxPyEndAllowThreads(__tstate);
e6056257
RD
7597 if (PyErr_Occurred()) return NULL;
7598}{ _resultobj = wxPyMake_wxObject(_result); }
7599 return _resultobj;
7600}
7601
7602#define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
7603static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7604 PyObject * _resultobj;
7605 wxString * _result;
7606 wxMenu * _arg0;
7607 PyObject * _argo0 = 0;
7608 char *_kwnames[] = { "self", NULL };
7609
7610 self = self;
7611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0))
7612 return NULL;
7613 if (_argo0) {
7614 if (_argo0 == Py_None) { _arg0 = NULL; }
7615 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7616 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
7617 return NULL;
7618 }
7619 }
7620{
0e2ff151 7621 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7622 _result = new wxString (wxMenu_GetTitle(_arg0));
7623
0e2ff151 7624 wxPyEndAllowThreads(__tstate);
e6056257
RD
7625 if (PyErr_Occurred()) return NULL;
7626}{
7627 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7628}
7629{
7630 delete _result;
7631}
7632 return _resultobj;
7633}
7634
7635#define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
7636static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7637 PyObject * _resultobj;
7638 wxMenu * _arg0;
7639 wxString * _arg1;
7640 PyObject * _argo0 = 0;
7641 PyObject * _obj1 = 0;
7642 char *_kwnames[] = { "self","title", NULL };
7643
7644 self = self;
7645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1))
7646 return NULL;
7647 if (_argo0) {
7648 if (_argo0 == Py_None) { _arg0 = NULL; }
7649 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7650 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
7651 return NULL;
7652 }
7653 }
7654{
7655#if PYTHON_API_VERSION >= 1009
7656 char* tmpPtr; int tmpSize;
7657 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7658 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7659 return NULL;
7660 }
7661 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7662 return NULL;
7663 _arg1 = new wxString(tmpPtr, tmpSize);
7664#else
7665 if (!PyString_Check(_obj1)) {
7666 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7667 return NULL;
7668 }
7669 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7670#endif
7671}
7672{
0e2ff151 7673 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7674 wxMenu_SetTitle(_arg0,*_arg1);
7675
0e2ff151 7676 wxPyEndAllowThreads(__tstate);
e6056257
RD
7677 if (PyErr_Occurred()) return NULL;
7678} Py_INCREF(Py_None);
7679 _resultobj = Py_None;
7680{
7681 if (_obj1)
7682 delete _arg1;
7683}
7684 return _resultobj;
7685}
7686
7687#define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
7688static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
7689 PyObject * _resultobj;
7690 wxString * _result;
7691 wxMenu * _arg0;
7692 int _arg1;
7693 PyObject * _argo0 = 0;
7694 char *_kwnames[] = { "self","id", NULL };
7695
7696 self = self;
7697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1))
7698 return NULL;
7699 if (_argo0) {
7700 if (_argo0 == Py_None) { _arg0 = NULL; }
7701 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7702 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
7703 return NULL;
7704 }
7705 }
7706{
0e2ff151 7707 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7708 _result = new wxString (wxMenu_GetLabel(_arg0,_arg1));
7709
0e2ff151 7710 wxPyEndAllowThreads(__tstate);
e6056257
RD
7711 if (PyErr_Occurred()) return NULL;
7712}{
7713 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7714}
7715{
7716 delete _result;
7717}
7718 return _resultobj;
7719}
7720
7721#define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
7722static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
7723 PyObject * _resultobj;
7724 wxMenu * _arg0;
7725 int _arg1;
7726 wxString * _arg2;
7727 PyObject * _argo0 = 0;
7728 PyObject * _obj2 = 0;
7729 char *_kwnames[] = { "self","id","label", NULL };
7730
7731 self = self;
7732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2))
7733 return NULL;
7734 if (_argo0) {
7735 if (_argo0 == Py_None) { _arg0 = NULL; }
7736 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7737 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
7738 return NULL;
7739 }
7740 }
7741{
7742#if PYTHON_API_VERSION >= 1009
7743 char* tmpPtr; int tmpSize;
7744 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7745 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7746 return NULL;
7747 }
7748 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
7749 return NULL;
7750 _arg2 = new wxString(tmpPtr, tmpSize);
7751#else
7752 if (!PyString_Check(_obj2)) {
7753 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7754 return NULL;
7755 }
7756 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
7757#endif
7758}
7759{
0e2ff151 7760 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7761 wxMenu_SetLabel(_arg0,_arg1,*_arg2);
7762
0e2ff151 7763 wxPyEndAllowThreads(__tstate);
e6056257
RD
7764 if (PyErr_Occurred()) return NULL;
7765} Py_INCREF(Py_None);
7766 _resultobj = Py_None;
7767{
7768 if (_obj2)
7769 delete _arg2;
7770}
7771 return _resultobj;
7772}
7773
7774#define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
7775static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
7776 PyObject * _resultobj;
7777 wxString * _result;
7778 wxMenu * _arg0;
7779 int _arg1;
7780 PyObject * _argo0 = 0;
7781 char *_kwnames[] = { "self","id", NULL };
7782
7783 self = self;
7784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1))
7785 return NULL;
7786 if (_argo0) {
7787 if (_argo0 == Py_None) { _arg0 = NULL; }
7788 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7789 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
7790 return NULL;
7791 }
7792 }
7793{
0e2ff151 7794 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7795 _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1));
7796
0e2ff151 7797 wxPyEndAllowThreads(__tstate);
e6056257
RD
7798 if (PyErr_Occurred()) return NULL;
7799}{
7800 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7801}
7802{
7803 delete _result;
7804}
7805 return _resultobj;
7806}
7807
7808#define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
7809static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
7810 PyObject * _resultobj;
7811 wxMenu * _arg0;
7812 int _arg1;
7813 wxString * _arg2;
7814 PyObject * _argo0 = 0;
7815 PyObject * _obj2 = 0;
7816 char *_kwnames[] = { "self","id","helpString", NULL };
7817
7818 self = self;
7819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2))
7820 return NULL;
7821 if (_argo0) {
7822 if (_argo0 == Py_None) { _arg0 = NULL; }
7823 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7824 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
7825 return NULL;
7826 }
7827 }
7828{
7829#if PYTHON_API_VERSION >= 1009
7830 char* tmpPtr; int tmpSize;
7831 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7832 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7833 return NULL;
7834 }
7835 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
7836 return NULL;
7837 _arg2 = new wxString(tmpPtr, tmpSize);
7838#else
7839 if (!PyString_Check(_obj2)) {
7840 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7841 return NULL;
7842 }
7843 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
7844#endif
7845}
7846{
0e2ff151 7847 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7848 wxMenu_SetHelpString(_arg0,_arg1,*_arg2);
7849
0e2ff151 7850 wxPyEndAllowThreads(__tstate);
e6056257
RD
7851 if (PyErr_Occurred()) return NULL;
7852} Py_INCREF(Py_None);
7853 _resultobj = Py_None;
7854{
7855 if (_obj2)
7856 delete _arg2;
7857}
7858 return _resultobj;
7859}
7860
7861#define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
7862static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) {
7863 PyObject * _resultobj;
7864 wxMenu * _arg0;
7865 wxEvtHandler * _arg1 = (wxEvtHandler *) NULL;
7866 PyObject * _argo0 = 0;
7867 PyObject * _argo1 = 0;
7868 char *_kwnames[] = { "self","source", NULL };
7869
7870 self = self;
7871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1))
7872 return NULL;
7873 if (_argo0) {
7874 if (_argo0 == Py_None) { _arg0 = NULL; }
7875 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7876 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
7877 return NULL;
7878 }
7879 }
7880 if (_argo1) {
7881 if (_argo1 == Py_None) { _arg1 = NULL; }
7882 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
7883 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
7884 return NULL;
7885 }
7886 }
7887{
0e2ff151 7888 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7889 wxMenu_UpdateUI(_arg0,_arg1);
7890
0e2ff151 7891 wxPyEndAllowThreads(__tstate);
e6056257
RD
7892 if (PyErr_Occurred()) return NULL;
7893} Py_INCREF(Py_None);
7894 _resultobj = Py_None;
7895 return _resultobj;
7896}
7897
7898#define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7899static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
7900 PyObject * _resultobj;
7901 bool _result;
7902 wxMenu * _arg0;
7903 int _arg1;
7904 PyObject * _argo0 = 0;
7905 char *_kwnames[] = { "self","id", NULL };
7906
7907 self = self;
7908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1))
7909 return NULL;
7910 if (_argo0) {
7911 if (_argo0 == Py_None) { _arg0 = NULL; }
7912 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7913 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p.");
7914 return NULL;
7915 }
7916 }
7917{
0e2ff151 7918 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7919 _result = (bool )wxMenu_Delete(_arg0,_arg1);
7920
0e2ff151 7921 wxPyEndAllowThreads(__tstate);
e6056257
RD
7922 if (PyErr_Occurred()) return NULL;
7923} _resultobj = Py_BuildValue("i",_result);
7924 return _resultobj;
7925}
7926
7927#define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7928static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7929 PyObject * _resultobj;
7930 bool _result;
7931 wxMenu * _arg0;
7932 wxMenuItem * _arg1;
7933 PyObject * _argo0 = 0;
7934 PyObject * _argo1 = 0;
7935 char *_kwnames[] = { "self","item", NULL };
7936
7937 self = self;
7938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1))
7939 return NULL;
7940 if (_argo0) {
7941 if (_argo0 == Py_None) { _arg0 = NULL; }
7942 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7943 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p.");
7944 return NULL;
7945 }
7946 }
7947 if (_argo1) {
7948 if (_argo1 == Py_None) { _arg1 = NULL; }
7949 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
7950 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p.");
7951 return NULL;
7952 }
7953 }
7954{
0e2ff151 7955 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7956 _result = (bool )wxMenu_DeleteItem(_arg0,_arg1);
7957
0e2ff151 7958 wxPyEndAllowThreads(__tstate);
e6056257
RD
7959 if (PyErr_Occurred()) return NULL;
7960} _resultobj = Py_BuildValue("i",_result);
7961 return _resultobj;
7962}
7963
7964#define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1))
7965static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
7966 PyObject * _resultobj;
7967 bool _result;
7968 wxMenu * _arg0;
7969 size_t _arg1;
7970 wxMenuItem * _arg2;
7971 PyObject * _argo0 = 0;
7972 PyObject * _argo2 = 0;
7973 char *_kwnames[] = { "self","pos","item", NULL };
7974
7975 self = self;
7976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2))
7977 return NULL;
7978 if (_argo0) {
7979 if (_argo0 == Py_None) { _arg0 = NULL; }
7980 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7981 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p.");
7982 return NULL;
7983 }
7984 }
7985 if (_argo2) {
7986 if (_argo2 == Py_None) { _arg2 = NULL; }
7987 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) {
7988 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p.");
7989 return NULL;
7990 }
7991 }
7992{
0e2ff151 7993 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7994 _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2);
7995
0e2ff151 7996 wxPyEndAllowThreads(__tstate);
e6056257
RD
7997 if (PyErr_Occurred()) return NULL;
7998} _resultobj = Py_BuildValue("i",_result);
7999 return _resultobj;
8000}
8001
8002#define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8003static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
8004 PyObject * _resultobj;
8005 wxMenuItem * _result;
8006 wxMenu * _arg0;
8007 int _arg1;
8008 PyObject * _argo0 = 0;
8009 char *_kwnames[] = { "self","id", NULL };
8010
8011 self = self;
8012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1))
8013 return NULL;
8014 if (_argo0) {
8015 if (_argo0 == Py_None) { _arg0 = NULL; }
8016 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8017 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p.");
8018 return NULL;
8019 }
8020 }
8021{
0e2ff151 8022 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8023 _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1);
8024
0e2ff151 8025 wxPyEndAllowThreads(__tstate);
e6056257
RD
8026 if (PyErr_Occurred()) return NULL;
8027}{ _resultobj = wxPyMake_wxObject(_result); }
8028 return _resultobj;
8029}
8030
8031#define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8032static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8033 PyObject * _resultobj;
8034 wxMenuItem * _result;
8035 wxMenu * _arg0;
8036 wxMenuItem * _arg1;
8037 PyObject * _argo0 = 0;
8038 PyObject * _argo1 = 0;
8039 char *_kwnames[] = { "self","item", NULL };
8040
8041 self = self;
8042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1))
8043 return NULL;
8044 if (_argo0) {
8045 if (_argo0 == Py_None) { _arg0 = NULL; }
8046 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8047 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p.");
8048 return NULL;
8049 }
8050 }
8051 if (_argo1) {
8052 if (_argo1 == Py_None) { _arg1 = NULL; }
8053 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
8054 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p.");
8055 return NULL;
8056 }
8057 }
8058{
0e2ff151 8059 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8060 _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1);
8061
0e2ff151 8062 wxPyEndAllowThreads(__tstate);
e6056257
RD
8063 if (PyErr_Occurred()) return NULL;
8064}{ _resultobj = wxPyMake_wxObject(_result); }
8065 return _resultobj;
8066}
8067
8068static void wxMenu_Destroy(wxMenu *self) { delete self; }
8069static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
8070 PyObject * _resultobj;
8071 wxMenu * _arg0;
8072 PyObject * _argo0 = 0;
8073 char *_kwnames[] = { "self", NULL };
8074
8075 self = self;
8076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0))
8077 return NULL;
8078 if (_argo0) {
8079 if (_argo0 == Py_None) { _arg0 = NULL; }
8080 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8081 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
8082 return NULL;
8083 }
8084 }
8085{
0e2ff151 8086 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8087 wxMenu_Destroy(_arg0);
8088
0e2ff151 8089 wxPyEndAllowThreads(__tstate);
e6056257
RD
8090 if (PyErr_Occurred()) return NULL;
8091} Py_INCREF(Py_None);
8092 _resultobj = Py_None;
8093 return _resultobj;
8094}
8095
8096#define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
8097static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) {
8098 PyObject * _resultobj;
8099 bool _result;
8100 wxMenu * _arg0;
8101 int _arg1;
8102 PyObject * _argo0 = 0;
8103 char *_kwnames[] = { "self","id", NULL };
8104
8105 self = self;
8106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1))
8107 return NULL;
8108 if (_argo0) {
8109 if (_argo0 == Py_None) { _arg0 = NULL; }
8110 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8111 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p.");
8112 return NULL;
8113 }
8114 }
8115{
0e2ff151 8116 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8117 _result = (bool )wxMenu_DestroyId(_arg0,_arg1);
8118
0e2ff151 8119 wxPyEndAllowThreads(__tstate);
e6056257
RD
8120 if (PyErr_Occurred()) return NULL;
8121} _resultobj = Py_BuildValue("i",_result);
8122 return _resultobj;
8123}
8124
8125#define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
8126static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8127 PyObject * _resultobj;
8128 bool _result;
8129 wxMenu * _arg0;
8130 wxMenuItem * _arg1;
8131 PyObject * _argo0 = 0;
8132 PyObject * _argo1 = 0;
8133 char *_kwnames[] = { "self","item", NULL };
8134
8135 self = self;
8136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1))
8137 return NULL;
8138 if (_argo0) {
8139 if (_argo0 == Py_None) { _arg0 = NULL; }
8140 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8141 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p.");
8142 return NULL;
8143 }
8144 }
8145 if (_argo1) {
8146 if (_argo1 == Py_None) { _arg1 = NULL; }
8147 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
8148 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p.");
8149 return NULL;
8150 }
8151 }
8152{
0e2ff151 8153 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8154 _result = (bool )wxMenu_DestroyItem(_arg0,_arg1);
8155
0e2ff151 8156 wxPyEndAllowThreads(__tstate);
e6056257
RD
8157 if (PyErr_Occurred()) return NULL;
8158} _resultobj = Py_BuildValue("i",_result);
8159 return _resultobj;
8160}
8161
8162#define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount())
8163static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8164 PyObject * _resultobj;
8165 size_t _result;
8166 wxMenu * _arg0;
8167 PyObject * _argo0 = 0;
8168 char *_kwnames[] = { "self", NULL };
8169
8170 self = self;
8171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0))
8172 return NULL;
8173 if (_argo0) {
8174 if (_argo0 == Py_None) { _arg0 = NULL; }
8175 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8176 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p.");
8177 return NULL;
8178 }
8179 }
8180{
0e2ff151 8181 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8182 _result = (size_t )wxMenu_GetMenuItemCount(_arg0);
8183
0e2ff151 8184 wxPyEndAllowThreads(__tstate);
e6056257
RD
8185 if (PyErr_Occurred()) return NULL;
8186} _resultobj = Py_BuildValue("i",_result);
8187 return _resultobj;
8188}
8189
8190static PyObject * wxMenu_GetMenuItems(wxMenu *self) {
8191 wxMenuItemList& list = self->GetMenuItems();
8192 return wxPy_ConvertList(&list, "wxMenuItem");
8193 }
8194static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) {
8195 PyObject * _resultobj;
8196 PyObject * _result;
8197 wxMenu * _arg0;
8198 PyObject * _argo0 = 0;
8199 char *_kwnames[] = { "self", NULL };
8200
8201 self = self;
8202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0))
8203 return NULL;
8204 if (_argo0) {
8205 if (_argo0 == Py_None) { _arg0 = NULL; }
8206 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8207 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p.");
8208 return NULL;
8209 }
8210 }
8211{
0e2ff151 8212 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8213 _result = (PyObject *)wxMenu_GetMenuItems(_arg0);
8214
0e2ff151 8215 wxPyEndAllowThreads(__tstate);
e6056257
RD
8216 if (PyErr_Occurred()) return NULL;
8217}{
8218 _resultobj = _result;
8219}
8220 return _resultobj;
8221}
8222
8223#define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
8224static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
8225 PyObject * _resultobj;
8226 wxMenu * _arg0;
8227 wxEvtHandler * _arg1;
8228 PyObject * _argo0 = 0;
8229 PyObject * _argo1 = 0;
8230 char *_kwnames[] = { "self","handler", NULL };
8231
8232 self = self;
8233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1))
8234 return NULL;
8235 if (_argo0) {
8236 if (_argo0 == Py_None) { _arg0 = NULL; }
8237 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8238 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p.");
8239 return NULL;
8240 }
8241 }
8242 if (_argo1) {
8243 if (_argo1 == Py_None) { _arg1 = NULL; }
8244 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
8245 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p.");
8246 return NULL;
8247 }
8248 }
8249{
0e2ff151 8250 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8251 wxMenu_SetEventHandler(_arg0,_arg1);
8252
0e2ff151 8253 wxPyEndAllowThreads(__tstate);
e6056257
RD
8254 if (PyErr_Occurred()) return NULL;
8255} Py_INCREF(Py_None);
8256 _resultobj = Py_None;
8257 return _resultobj;
8258}
8259
8260#define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
8261static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
8262 PyObject * _resultobj;
8263 wxEvtHandler * _result;
8264 wxMenu * _arg0;
8265 PyObject * _argo0 = 0;
8266 char *_kwnames[] = { "self", NULL };
8267
8268 self = self;
8269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0))
8270 return NULL;
8271 if (_argo0) {
8272 if (_argo0 == Py_None) { _arg0 = NULL; }
8273 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8274 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p.");
8275 return NULL;
8276 }
8277 }
8278{
0e2ff151 8279 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8280 _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0);
8281
0e2ff151 8282 wxPyEndAllowThreads(__tstate);
e6056257
RD
8283 if (PyErr_Occurred()) return NULL;
8284}{ _resultobj = wxPyMake_wxObject(_result); }
8285 return _resultobj;
8286}
8287
8288#define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0))
8289static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
8290 PyObject * _resultobj;
8291 wxMenu * _arg0;
8292 wxWindow * _arg1;
8293 PyObject * _argo0 = 0;
8294 PyObject * _argo1 = 0;
8295 char *_kwnames[] = { "self","win", NULL };
8296
8297 self = self;
8298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1))
8299 return NULL;
8300 if (_argo0) {
8301 if (_argo0 == Py_None) { _arg0 = NULL; }
8302 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8303 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p.");
8304 return NULL;
8305 }
8306 }
8307 if (_argo1) {
8308 if (_argo1 == Py_None) { _arg1 = NULL; }
8309 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
8310 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p.");
8311 return NULL;
8312 }
8313 }
8314{
0e2ff151 8315 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8316 wxMenu_SetInvokingWindow(_arg0,_arg1);
8317
0e2ff151 8318 wxPyEndAllowThreads(__tstate);
e6056257
RD
8319 if (PyErr_Occurred()) return NULL;
8320} Py_INCREF(Py_None);
8321 _resultobj = Py_None;
8322 return _resultobj;
8323}
8324
8325#define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow())
8326static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
8327 PyObject * _resultobj;
8328 wxWindow * _result;
8329 wxMenu * _arg0;
8330 PyObject * _argo0 = 0;
8331 char *_kwnames[] = { "self", NULL };
8332
8333 self = self;
8334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0))
8335 return NULL;
8336 if (_argo0) {
8337 if (_argo0 == Py_None) { _arg0 = NULL; }
8338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p.");
8340 return NULL;
8341 }
8342 }
8343{
0e2ff151 8344 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8345 _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0);
8346
0e2ff151 8347 wxPyEndAllowThreads(__tstate);
e6056257
RD
8348 if (PyErr_Occurred()) return NULL;
8349}{ _resultobj = wxPyMake_wxObject(_result); }
8350 return _resultobj;
8351}
8352
8353#define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle())
8354static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8355 PyObject * _resultobj;
8356 long _result;
8357 wxMenu * _arg0;
8358 PyObject * _argo0 = 0;
8359 char *_kwnames[] = { "self", NULL };
8360
8361 self = self;
8362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0))
8363 return NULL;
8364 if (_argo0) {
8365 if (_argo0 == Py_None) { _arg0 = NULL; }
8366 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8367 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p.");
8368 return NULL;
8369 }
8370 }
8371{
0e2ff151 8372 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8373 _result = (long )wxMenu_GetStyle(_arg0);
8374
0e2ff151 8375 wxPyEndAllowThreads(__tstate);
e6056257
RD
8376 if (PyErr_Occurred()) return NULL;
8377} _resultobj = Py_BuildValue("l",_result);
8378 return _resultobj;
8379}
8380
8381#define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached())
8382static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) {
8383 PyObject * _resultobj;
8384 bool _result;
8385 wxMenu * _arg0;
8386 PyObject * _argo0 = 0;
8387 char *_kwnames[] = { "self", NULL };
8388
8389 self = self;
8390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0))
8391 return NULL;
8392 if (_argo0) {
8393 if (_argo0 == Py_None) { _arg0 = NULL; }
8394 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8395 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p.");
8396 return NULL;
8397 }
8398 }
8399{
0e2ff151 8400 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8401 _result = (bool )wxMenu_IsAttached(_arg0);
8402
0e2ff151 8403 wxPyEndAllowThreads(__tstate);
e6056257
RD
8404 if (PyErr_Occurred()) return NULL;
8405} _resultobj = Py_BuildValue("i",_result);
8406 return _resultobj;
8407}
8408
8409#define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
8410static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
8411 PyObject * _resultobj;
8412 wxMenu * _arg0;
8413 wxMenu * _arg1;
8414 PyObject * _argo0 = 0;
8415 PyObject * _argo1 = 0;
8416 char *_kwnames[] = { "self","parent", NULL };
8417
8418 self = self;
8419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1))
8420 return NULL;
8421 if (_argo0) {
8422 if (_argo0 == Py_None) { _arg0 = NULL; }
8423 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8424 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p.");
8425 return NULL;
8426 }
8427 }
8428 if (_argo1) {
8429 if (_argo1 == Py_None) { _arg1 = NULL; }
8430 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
8431 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p.");
8432 return NULL;
8433 }
8434 }
8435{
0e2ff151 8436 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8437 wxMenu_SetParent(_arg0,_arg1);
8438
0e2ff151 8439 wxPyEndAllowThreads(__tstate);
e6056257
RD
8440 if (PyErr_Occurred()) return NULL;
8441} Py_INCREF(Py_None);
8442 _resultobj = Py_None;
8443 return _resultobj;
8444}
8445
8446#define wxMenu_GetParent(_swigobj) (_swigobj->GetParent())
8447static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
8448 PyObject * _resultobj;
8449 wxMenu * _result;
8450 wxMenu * _arg0;
8451 PyObject * _argo0 = 0;
8452 char *_kwnames[] = { "self", NULL };
8453
8454 self = self;
8455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0))
8456 return NULL;
8457 if (_argo0) {
8458 if (_argo0 == Py_None) { _arg0 = NULL; }
8459 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8460 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p.");
8461 return NULL;
8462 }
8463 }
8464{
0e2ff151 8465 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8466 _result = (wxMenu *)wxMenu_GetParent(_arg0);
8467
0e2ff151 8468 wxPyEndAllowThreads(__tstate);
e6056257
RD
8469 if (PyErr_Occurred()) return NULL;
8470}{ _resultobj = wxPyMake_wxObject(_result); }
8471 return _resultobj;
8472}
8473
8474static void *SwigwxMenuBarTowxWindow(void *ptr) {
8475 wxMenuBar *src;
8476 wxWindow *dest;
8477 src = (wxMenuBar *) ptr;
8478 dest = (wxWindow *) src;
8479 return (void *) dest;
8480}
8481
8482static void *SwigwxMenuBarTowxEvtHandler(void *ptr) {
8483 wxMenuBar *src;
8484 wxEvtHandler *dest;
8485 src = (wxMenuBar *) ptr;
8486 dest = (wxEvtHandler *) src;
8487 return (void *) dest;
8488}
8489
8490static void *SwigwxMenuBarTowxObject(void *ptr) {
8491 wxMenuBar *src;
8492 wxObject *dest;
8493 src = (wxMenuBar *) ptr;
8494 dest = (wxObject *) src;
8495 return (void *) dest;
8496}
8497
8498#define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0))
8499static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
8500 PyObject * _resultobj;
8501 wxMenuBar * _result;
8502 long _arg0 = (long ) 0;
8503 char *_kwnames[] = { "style", NULL };
8504 char _ptemp[128];
8505
8506 self = self;
8507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0))
8508 return NULL;
8509{
0e2ff151 8510 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8511 _result = (wxMenuBar *)new_wxMenuBar(_arg0);
8512
0e2ff151 8513 wxPyEndAllowThreads(__tstate);
e6056257
RD
8514 if (PyErr_Occurred()) return NULL;
8515} if (_result) {
8516 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p");
8517 _resultobj = Py_BuildValue("s",_ptemp);
8518 } else {
8519 Py_INCREF(Py_None);
8520 _resultobj = Py_None;
8521 }
8522 return _resultobj;
8523}
8524
8525#define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
8526static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
8527 PyObject * _resultobj;
8528 bool _result;
8529 wxMenuBar * _arg0;
8530 wxMenu * _arg1;
8531 wxString * _arg2;
8532 PyObject * _argo0 = 0;
8533 PyObject * _argo1 = 0;
8534 PyObject * _obj2 = 0;
8535 char *_kwnames[] = { "self","menu","title", NULL };
8536
8537 self = self;
8538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2))
8539 return NULL;
8540 if (_argo0) {
8541 if (_argo0 == Py_None) { _arg0 = NULL; }
8542 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8543 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
8544 return NULL;
8545 }
8546 }
8547 if (_argo1) {
8548 if (_argo1 == Py_None) { _arg1 = NULL; }
8549 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
8550 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
8551 return NULL;
8552 }
8553 }
8554{
8555#if PYTHON_API_VERSION >= 1009
8556 char* tmpPtr; int tmpSize;
8557 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8558 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8559 return NULL;
8560 }
8561 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8562 return NULL;
8563 _arg2 = new wxString(tmpPtr, tmpSize);
8564#else
8565 if (!PyString_Check(_obj2)) {
8566 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8567 return NULL;
8568 }
8569 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8570#endif
8571}
8572{
0e2ff151 8573 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8574 _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2);
8575
0e2ff151 8576 wxPyEndAllowThreads(__tstate);
e6056257
RD
8577 if (PyErr_Occurred()) return NULL;
8578} _resultobj = Py_BuildValue("i",_result);
8579{
8580 if (_obj2)
8581 delete _arg2;
8582}
8583 return _resultobj;
8584}
8585
8586#define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2))
8587static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
8588 PyObject * _resultobj;
8589 bool _result;
8590 wxMenuBar * _arg0;
8591 size_t _arg1;
8592 wxMenu * _arg2;
8593 wxString * _arg3;
8594 PyObject * _argo0 = 0;
8595 PyObject * _argo2 = 0;
8596 PyObject * _obj3 = 0;
8597 char *_kwnames[] = { "self","pos","menu","title", NULL };
8598
8599 self = self;
8600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3))
8601 return NULL;
8602 if (_argo0) {
8603 if (_argo0 == Py_None) { _arg0 = NULL; }
8604 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8605 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p.");
8606 return NULL;
8607 }
8608 }
8609 if (_argo2) {
8610 if (_argo2 == Py_None) { _arg2 = NULL; }
8611 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) {
8612 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p.");
8613 return NULL;
8614 }
8615 }
8616{
8617#if PYTHON_API_VERSION >= 1009
8618 char* tmpPtr; int tmpSize;
8619 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
8620 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8621 return NULL;
8622 }
8623 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
8624 return NULL;
8625 _arg3 = new wxString(tmpPtr, tmpSize);
8626#else
8627 if (!PyString_Check(_obj3)) {
8628 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8629 return NULL;
8630 }
8631 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
8632#endif
8633}
8634{
0e2ff151 8635 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8636 _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3);
8637
0e2ff151 8638 wxPyEndAllowThreads(__tstate);
e6056257
RD
8639 if (PyErr_Occurred()) return NULL;
8640} _resultobj = Py_BuildValue("i",_result);
8641{
8642 if (_obj3)
8643 delete _arg3;
8644}
8645 return _resultobj;
8646}
8647
8648#define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
8649static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8650 PyObject * _resultobj;
8651 size_t _result;
8652 wxMenuBar * _arg0;
8653 PyObject * _argo0 = 0;
8654 char *_kwnames[] = { "self", NULL };
8655
8656 self = self;
8657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0))
8658 return NULL;
8659 if (_argo0) {
8660 if (_argo0 == Py_None) { _arg0 = NULL; }
8661 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8662 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
8663 return NULL;
8664 }
8665 }
8666{
0e2ff151 8667 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8668 _result = (size_t )wxMenuBar_GetMenuCount(_arg0);
8669
0e2ff151 8670 wxPyEndAllowThreads(__tstate);
e6056257
RD
8671 if (PyErr_Occurred()) return NULL;
8672} _resultobj = Py_BuildValue("i",_result);
8673 return _resultobj;
8674}
8675
8676#define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
8677static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
8678 PyObject * _resultobj;
8679 wxMenu * _result;
8680 wxMenuBar * _arg0;
8681 size_t _arg1;
8682 PyObject * _argo0 = 0;
8683 char *_kwnames[] = { "self","pos", NULL };
8684
8685 self = self;
8686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1))
8687 return NULL;
8688 if (_argo0) {
8689 if (_argo0 == Py_None) { _arg0 = NULL; }
8690 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
8692 return NULL;
8693 }
8694 }
8695{
0e2ff151 8696 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8697 _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1);
8698
0e2ff151 8699 wxPyEndAllowThreads(__tstate);
e6056257
RD
8700 if (PyErr_Occurred()) return NULL;
8701}{ _resultobj = wxPyMake_wxObject(_result); }
8702 return _resultobj;
8703}
8704
8705#define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
8706static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
8707 PyObject * _resultobj;
8708 wxMenu * _result;
8709 wxMenuBar * _arg0;
8710 size_t _arg1;
8711 wxMenu * _arg2;
8712 wxString * _arg3;
8713 PyObject * _argo0 = 0;
8714 PyObject * _argo2 = 0;
8715 PyObject * _obj3 = 0;
8716 char *_kwnames[] = { "self","pos","menu","title", NULL };
8717
8718 self = self;
8719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3))
8720 return NULL;
8721 if (_argo0) {
8722 if (_argo0 == Py_None) { _arg0 = NULL; }
8723 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8724 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
8725 return NULL;
8726 }
8727 }
8728 if (_argo2) {
8729 if (_argo2 == Py_None) { _arg2 = NULL; }
8730 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) {
8731 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
8732 return NULL;
8733 }
8734 }
8735{
8736#if PYTHON_API_VERSION >= 1009
8737 char* tmpPtr; int tmpSize;
8738 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
8739 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8740 return NULL;
8741 }
8742 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
8743 return NULL;
8744 _arg3 = new wxString(tmpPtr, tmpSize);
8745#else
8746 if (!PyString_Check(_obj3)) {
8747 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8748 return NULL;
8749 }
8750 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
8751#endif
8752}
8753{
0e2ff151 8754 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8755 _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3);
8756
0e2ff151 8757 wxPyEndAllowThreads(__tstate);
e6056257
RD
8758 if (PyErr_Occurred()) return NULL;
8759}{ _resultobj = wxPyMake_wxObject(_result); }
8760{
8761 if (_obj3)
8762 delete _arg3;
8763}
8764 return _resultobj;
8765}
8766
8767#define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8768static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
8769 PyObject * _resultobj;
8770 wxMenu * _result;
8771 wxMenuBar * _arg0;
8772 size_t _arg1;
8773 PyObject * _argo0 = 0;
8774 char *_kwnames[] = { "self","pos", NULL };
8775
8776 self = self;
8777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1))
8778 return NULL;
8779 if (_argo0) {
8780 if (_argo0 == Py_None) { _arg0 = NULL; }
8781 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8782 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p.");
8783 return NULL;
8784 }
8785 }
8786{
0e2ff151 8787 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8788 _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1);
8789
0e2ff151 8790 wxPyEndAllowThreads(__tstate);
e6056257
RD
8791 if (PyErr_Occurred()) return NULL;
8792}{ _resultobj = wxPyMake_wxObject(_result); }
8793 return _resultobj;
8794}
8795
8796#define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
8797static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) {
8798 PyObject * _resultobj;
8799 wxMenuBar * _arg0;
8800 size_t _arg1;
8801 bool _arg2;
8802 PyObject * _argo0 = 0;
8803 int tempbool2;
8804 char *_kwnames[] = { "self","pos","enable", NULL };
8805
8806 self = self;
8807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2))
8808 return NULL;
8809 if (_argo0) {
8810 if (_argo0 == Py_None) { _arg0 = NULL; }
8811 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8812 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
8813 return NULL;
8814 }
8815 }
8816 _arg2 = (bool ) tempbool2;
8817{
0e2ff151 8818 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8819 wxMenuBar_EnableTop(_arg0,_arg1,_arg2);
8820
0e2ff151 8821 wxPyEndAllowThreads(__tstate);
e6056257
RD
8822 if (PyErr_Occurred()) return NULL;
8823} Py_INCREF(Py_None);
8824 _resultobj = Py_None;
8825 return _resultobj;
8826}
8827
8828#define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
8829static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
8830 PyObject * _resultobj;
8831 wxMenuBar * _arg0;
8832 size_t _arg1;
8833 wxString * _arg2;
8834 PyObject * _argo0 = 0;
8835 PyObject * _obj2 = 0;
8836 char *_kwnames[] = { "self","pos","label", NULL };
8837
8838 self = self;
8839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2))
8840 return NULL;
8841 if (_argo0) {
8842 if (_argo0 == Py_None) { _arg0 = NULL; }
8843 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8844 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
8845 return NULL;
8846 }
8847 }
8848{
8849#if PYTHON_API_VERSION >= 1009
8850 char* tmpPtr; int tmpSize;
8851 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8852 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8853 return NULL;
8854 }
8855 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8856 return NULL;
8857 _arg2 = new wxString(tmpPtr, tmpSize);
8858#else
8859 if (!PyString_Check(_obj2)) {
8860 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8861 return NULL;
8862 }
8863 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8864#endif
8865}
8866{
0e2ff151 8867 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8868 wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2);
8869
0e2ff151 8870 wxPyEndAllowThreads(__tstate);
e6056257
RD
8871 if (PyErr_Occurred()) return NULL;
8872} Py_INCREF(Py_None);
8873 _resultobj = Py_None;
8874{
8875 if (_obj2)
8876 delete _arg2;
8877}
8878 return _resultobj;
8879}
8880
8881#define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
8882static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
8883 PyObject * _resultobj;
8884 wxString * _result;
8885 wxMenuBar * _arg0;
8886 size_t _arg1;
8887 PyObject * _argo0 = 0;
8888 char *_kwnames[] = { "self","pos", NULL };
8889
8890 self = self;
8891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1))
8892 return NULL;
8893 if (_argo0) {
8894 if (_argo0 == Py_None) { _arg0 = NULL; }
8895 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8896 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
8897 return NULL;
8898 }
8899 }
8900{
0e2ff151 8901 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8902 _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1));
8903
0e2ff151 8904 wxPyEndAllowThreads(__tstate);
e6056257
RD
8905 if (PyErr_Occurred()) return NULL;
8906}{
8907 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8908}
8909{
8910 delete _result;
8911}
8912 return _resultobj;
8913}
8914
8915#define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0))
8916static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
8917 PyObject * _resultobj;
8918 int _result;
8919 wxMenuBar * _arg0;
8920 wxString * _arg1;
8921 PyObject * _argo0 = 0;
8922 PyObject * _obj1 = 0;
8923 char *_kwnames[] = { "self","title", NULL };
8924
8925 self = self;
8926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1))
8927 return NULL;
8928 if (_argo0) {
8929 if (_argo0 == Py_None) { _arg0 = NULL; }
8930 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8931 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p.");
8932 return NULL;
8933 }
8934 }
8935{
8936#if PYTHON_API_VERSION >= 1009
8937 char* tmpPtr; int tmpSize;
8938 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8939 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8940 return NULL;
8941 }
8942 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8943 return NULL;
8944 _arg1 = new wxString(tmpPtr, tmpSize);
8945#else
8946 if (!PyString_Check(_obj1)) {
8947 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8948 return NULL;
8949 }
8950 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8951#endif
8952}
8953{
0e2ff151 8954 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
8955 _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1);
8956
0e2ff151 8957 wxPyEndAllowThreads(__tstate);
e6056257
RD
8958 if (PyErr_Occurred()) return NULL;
8959} _resultobj = Py_BuildValue("i",_result);
8960{
8961 if (_obj1)
8962 delete _arg1;
8963}
8964 return _resultobj;
8965}
8966
8967#define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
8968static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8969 PyObject * _resultobj;
8970 int _result;
8971 wxMenuBar * _arg0;
8972 wxString * _arg1;
8973 wxString * _arg2;
8974 PyObject * _argo0 = 0;
8975 PyObject * _obj1 = 0;
8976 PyObject * _obj2 = 0;
8977 char *_kwnames[] = { "self","menuString","itemString", NULL };
8978
8979 self = self;
8980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2))
8981 return NULL;
8982 if (_argo0) {
8983 if (_argo0 == Py_None) { _arg0 = NULL; }
8984 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8985 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
8986 return NULL;
8987 }
8988 }
8989{
8990#if PYTHON_API_VERSION >= 1009
8991 char* tmpPtr; int tmpSize;
8992 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8993 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8994 return NULL;
8995 }
8996 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8997 return NULL;
8998 _arg1 = new wxString(tmpPtr, tmpSize);
8999#else
9000 if (!PyString_Check(_obj1)) {
9001 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9002 return NULL;
9003 }
9004 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9005#endif
9006}
9007{
9008#if PYTHON_API_VERSION >= 1009
9009 char* tmpPtr; int tmpSize;
9010 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
9011 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9012 return NULL;
9013 }
9014 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
9015 return NULL;
9016 _arg2 = new wxString(tmpPtr, tmpSize);
9017#else
9018 if (!PyString_Check(_obj2)) {
9019 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9020 return NULL;
9021 }
9022 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
9023#endif
9024}
9025{
0e2ff151 9026 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9027 _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2);
9028
0e2ff151 9029 wxPyEndAllowThreads(__tstate);
e6056257
RD
9030 if (PyErr_Occurred()) return NULL;
9031} _resultobj = Py_BuildValue("i",_result);
9032{
9033 if (_obj1)
9034 delete _arg1;
9035}
9036{
9037 if (_obj2)
9038 delete _arg2;
9039}
9040 return _resultobj;
9041}
9042
9043#define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
9044static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
9045 PyObject * _resultobj;
9046 wxMenuItem * _result;
9047 wxMenuBar * _arg0;
9048 int _arg1;
9049 PyObject * _argo0 = 0;
9050 char *_kwnames[] = { "self","id", NULL };
9051
9052 self = self;
9053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1))
9054 return NULL;
9055 if (_argo0) {
9056 if (_argo0 == Py_None) { _arg0 = NULL; }
9057 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9058 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p.");
9059 return NULL;
9060 }
9061 }
9062{
0e2ff151 9063 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9064 _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1);
9065
0e2ff151 9066 wxPyEndAllowThreads(__tstate);
e6056257
RD
9067 if (PyErr_Occurred()) return NULL;
9068}{ _resultobj = wxPyMake_wxObject(_result); }
9069 return _resultobj;
9070}
9071
9072#define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
9073static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
9074 PyObject * _resultobj;
9075 wxMenuBar * _arg0;
9076 int _arg1;
9077 bool _arg2;
9078 PyObject * _argo0 = 0;
9079 int tempbool2;
9080 char *_kwnames[] = { "self","id","enable", NULL };
9081
9082 self = self;
9083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2))
9084 return NULL;
9085 if (_argo0) {
9086 if (_argo0 == Py_None) { _arg0 = NULL; }
9087 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9088 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
9089 return NULL;
9090 }
9091 }
9092 _arg2 = (bool ) tempbool2;
9093{
0e2ff151 9094 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9095 wxMenuBar_Enable(_arg0,_arg1,_arg2);
9096
0e2ff151 9097 wxPyEndAllowThreads(__tstate);
e6056257
RD
9098 if (PyErr_Occurred()) return NULL;
9099} Py_INCREF(Py_None);
9100 _resultobj = Py_None;
9101 return _resultobj;
9102}
9103
9104#define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
9105static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
9106 PyObject * _resultobj;
9107 wxMenuBar * _arg0;
9108 int _arg1;
9109 bool _arg2;
9110 PyObject * _argo0 = 0;
9111 int tempbool2;
9112 char *_kwnames[] = { "self","id","check", NULL };
9113
9114 self = self;
9115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2))
9116 return NULL;
9117 if (_argo0) {
9118 if (_argo0 == Py_None) { _arg0 = NULL; }
9119 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9120 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
9121 return NULL;
9122 }
9123 }
9124 _arg2 = (bool ) tempbool2;
9125{
0e2ff151 9126 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9127 wxMenuBar_Check(_arg0,_arg1,_arg2);
9128
0e2ff151 9129 wxPyEndAllowThreads(__tstate);
e6056257
RD
9130 if (PyErr_Occurred()) return NULL;
9131} Py_INCREF(Py_None);
9132 _resultobj = Py_None;
9133 return _resultobj;
9134}
9135
9136#define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
9137static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
9138 PyObject * _resultobj;
9139 bool _result;
9140 wxMenuBar * _arg0;
9141 int _arg1;
9142 PyObject * _argo0 = 0;
9143 char *_kwnames[] = { "self","id", NULL };
9144
9145 self = self;
9146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1))
9147 return NULL;
9148 if (_argo0) {
9149 if (_argo0 == Py_None) { _arg0 = NULL; }
9150 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9151 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
9152 return NULL;
9153 }
9154 }
9155{
0e2ff151 9156 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9157 _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1);
9158
0e2ff151 9159 wxPyEndAllowThreads(__tstate);
e6056257
RD
9160 if (PyErr_Occurred()) return NULL;
9161} _resultobj = Py_BuildValue("i",_result);
9162 return _resultobj;
9163}
9164
9165#define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
9166static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
9167 PyObject * _resultobj;
9168 bool _result;
9169 wxMenuBar * _arg0;
9170 int _arg1;
9171 PyObject * _argo0 = 0;
9172 char *_kwnames[] = { "self","id", NULL };
9173
9174 self = self;
9175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1))
9176 return NULL;
9177 if (_argo0) {
9178 if (_argo0 == Py_None) { _arg0 = NULL; }
9179 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9180 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
9181 return NULL;
9182 }
9183 }
9184{
0e2ff151 9185 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9186 _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1);
9187
0e2ff151 9188 wxPyEndAllowThreads(__tstate);
e6056257
RD
9189 if (PyErr_Occurred()) return NULL;
9190} _resultobj = Py_BuildValue("i",_result);
9191 return _resultobj;
9192}
9193
9194#define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
9195static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
9196 PyObject * _resultobj;
9197 wxMenuBar * _arg0;
9198 int _arg1;
9199 wxString * _arg2;
9200 PyObject * _argo0 = 0;
9201 PyObject * _obj2 = 0;
9202 char *_kwnames[] = { "self","id","label", NULL };
9203
9204 self = self;
9205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2))
9206 return NULL;
9207 if (_argo0) {
9208 if (_argo0 == Py_None) { _arg0 = NULL; }
9209 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9210 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
9211 return NULL;
9212 }
9213 }
9214{
9215#if PYTHON_API_VERSION >= 1009
9216 char* tmpPtr; int tmpSize;
9217 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
9218 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9219 return NULL;
9220 }
9221 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
9222 return NULL;
9223 _arg2 = new wxString(tmpPtr, tmpSize);
9224#else
9225 if (!PyString_Check(_obj2)) {
9226 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9227 return NULL;
9228 }
9229 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
9230#endif
9231}
9232{
0e2ff151 9233 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9234 wxMenuBar_SetLabel(_arg0,_arg1,*_arg2);
9235
0e2ff151 9236 wxPyEndAllowThreads(__tstate);
e6056257
RD
9237 if (PyErr_Occurred()) return NULL;
9238} Py_INCREF(Py_None);
9239 _resultobj = Py_None;
9240{
9241 if (_obj2)
9242 delete _arg2;
9243}
9244 return _resultobj;
9245}
9246
9247#define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
9248static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
9249 PyObject * _resultobj;
9250 wxString * _result;
9251 wxMenuBar * _arg0;
9252 int _arg1;
9253 PyObject * _argo0 = 0;
9254 char *_kwnames[] = { "self","id", NULL };
9255
9256 self = self;
9257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1))
9258 return NULL;
9259 if (_argo0) {
9260 if (_argo0 == Py_None) { _arg0 = NULL; }
9261 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9262 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
9263 return NULL;
9264 }
9265 }
9266{
0e2ff151 9267 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9268 _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1));
9269
0e2ff151 9270 wxPyEndAllowThreads(__tstate);
e6056257
RD
9271 if (PyErr_Occurred()) return NULL;
9272}{
9273 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9274}
9275{
9276 delete _result;
9277}
9278 return _resultobj;
9279}
9280
9281#define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
9282static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
9283 PyObject * _resultobj;
9284 wxMenuBar * _arg0;
9285 int _arg1;
9286 wxString * _arg2;
9287 PyObject * _argo0 = 0;
9288 PyObject * _obj2 = 0;
9289 char *_kwnames[] = { "self","id","helpString", NULL };
9290
9291 self = self;
9292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2))
9293 return NULL;
9294 if (_argo0) {
9295 if (_argo0 == Py_None) { _arg0 = NULL; }
9296 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9297 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
9298 return NULL;
9299 }
9300 }
9301{
9302#if PYTHON_API_VERSION >= 1009
9303 char* tmpPtr; int tmpSize;
9304 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
9305 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9306 return NULL;
9307 }
9308 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
9309 return NULL;
9310 _arg2 = new wxString(tmpPtr, tmpSize);
9311#else
9312 if (!PyString_Check(_obj2)) {
9313 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9314 return NULL;
9315 }
9316 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
9317#endif
9318}
9319{
0e2ff151 9320 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9321 wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2);
9322
0e2ff151 9323 wxPyEndAllowThreads(__tstate);
e6056257
RD
9324 if (PyErr_Occurred()) return NULL;
9325} Py_INCREF(Py_None);
9326 _resultobj = Py_None;
9327{
9328 if (_obj2)
9329 delete _arg2;
9330}
9331 return _resultobj;
9332}
9333
9334#define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
9335static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
9336 PyObject * _resultobj;
9337 wxString * _result;
9338 wxMenuBar * _arg0;
9339 int _arg1;
9340 PyObject * _argo0 = 0;
9341 char *_kwnames[] = { "self","id", NULL };
9342
9343 self = self;
9344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1))
9345 return NULL;
9346 if (_argo0) {
9347 if (_argo0 == Py_None) { _arg0 = NULL; }
9348 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9349 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
9350 return NULL;
9351 }
9352 }
9353{
0e2ff151 9354 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9355 _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1));
9356
0e2ff151 9357 wxPyEndAllowThreads(__tstate);
e6056257
RD
9358 if (PyErr_Occurred()) return NULL;
9359}{
9360 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9361}
9362{
9363 delete _result;
9364}
9365 return _resultobj;
9366}
9367
9368static void *SwigwxMenuItemTowxObject(void *ptr) {
9369 wxMenuItem *src;
9370 wxObject *dest;
9371 src = (wxMenuItem *) ptr;
9372 dest = (wxObject *) src;
9373 return (void *) dest;
9374}
9375
9376#define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9377static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
9378 PyObject * _resultobj;
9379 wxMenuItem * _result;
9380 wxMenu * _arg0 = (wxMenu *) NULL;
9381 int _arg1 = (int ) wxID_SEPARATOR;
a341e32e
RD
9382 wxString * _arg2 = (wxString *) &wxEmptyString;
9383 wxString * _arg3 = (wxString *) &wxEmptyString;
e6056257
RD
9384 bool _arg4 = (bool ) FALSE;
9385 wxMenu * _arg5 = (wxMenu *) NULL;
9386 PyObject * _argo0 = 0;
9387 PyObject * _obj2 = 0;
9388 PyObject * _obj3 = 0;
9389 int tempbool4 = (int) FALSE;
9390 PyObject * _argo5 = 0;
9391 char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL };
9392 char _ptemp[128];
9393
9394 self = self;
9395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5))
9396 return NULL;
9397 if (_argo0) {
9398 if (_argo0 == Py_None) { _arg0 = NULL; }
9399 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9400 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
9401 return NULL;
9402 }
9403 }
9404 if (_obj2)
9405{
9406#if PYTHON_API_VERSION >= 1009
9407 char* tmpPtr; int tmpSize;
9408 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
9409 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9410 return NULL;
9411 }
9412 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
9413 return NULL;
9414 _arg2 = new wxString(tmpPtr, tmpSize);
9415#else
9416 if (!PyString_Check(_obj2)) {
9417 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9418 return NULL;
9419 }
9420 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
9421#endif
9422}
9423 if (_obj3)
9424{
9425#if PYTHON_API_VERSION >= 1009
9426 char* tmpPtr; int tmpSize;
9427 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
9428 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9429 return NULL;
9430 }
9431 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
9432 return NULL;
9433 _arg3 = new wxString(tmpPtr, tmpSize);
9434#else
9435 if (!PyString_Check(_obj3)) {
9436 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9437 return NULL;
9438 }
9439 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
9440#endif
9441}
9442 _arg4 = (bool ) tempbool4;
9443 if (_argo5) {
9444 if (_argo5 == Py_None) { _arg5 = NULL; }
9445 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) {
9446 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
9447 return NULL;
9448 }
9449 }
9450{
0e2ff151 9451 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9452 _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
9453
0e2ff151 9454 wxPyEndAllowThreads(__tstate);
e6056257
RD
9455 if (PyErr_Occurred()) return NULL;
9456} if (_result) {
9457 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
9458 _resultobj = Py_BuildValue("s",_ptemp);
9459 } else {
9460 Py_INCREF(Py_None);
9461 _resultobj = Py_None;
9462 }
9463{
9464 if (_obj2)
9465 delete _arg2;
9466}
9467{
9468 if (_obj3)
9469 delete _arg3;
9470}
9471 return _resultobj;
9472}
9473
9474#define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu())
9475static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9476 PyObject * _resultobj;
9477 wxMenu * _result;
9478 wxMenuItem * _arg0;
9479 PyObject * _argo0 = 0;
9480 char *_kwnames[] = { "self", NULL };
9481
9482 self = self;
9483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0))
9484 return NULL;
9485 if (_argo0) {
9486 if (_argo0 == Py_None) { _arg0 = NULL; }
9487 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9488 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p.");
9489 return NULL;
9490 }
9491 }
9492{
0e2ff151 9493 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9494 _result = (wxMenu *)wxMenuItem_GetMenu(_arg0);
9495
0e2ff151 9496 wxPyEndAllowThreads(__tstate);
e6056257
RD
9497 if (PyErr_Occurred()) return NULL;
9498}{ _resultobj = wxPyMake_wxObject(_result); }
9499 return _resultobj;
9500}
9501
9502#define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
9503static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
9504 PyObject * _resultobj;
9505 wxMenuItem * _arg0;
9506 int _arg1;
9507 PyObject * _argo0 = 0;
9508 char *_kwnames[] = { "self","id", NULL };
9509
9510 self = self;
9511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1))
9512 return NULL;
9513 if (_argo0) {
9514 if (_argo0 == Py_None) { _arg0 = NULL; }
9515 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9516 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p.");
9517 return NULL;
9518 }
9519 }
9520{
0e2ff151 9521 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9522 wxMenuItem_SetId(_arg0,_arg1);
9523
0e2ff151 9524 wxPyEndAllowThreads(__tstate);
e6056257
RD
9525 if (PyErr_Occurred()) return NULL;
9526} Py_INCREF(Py_None);
9527 _resultobj = Py_None;
9528 return _resultobj;
9529}
9530
9531#define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
9532static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
9533 PyObject * _resultobj;
9534 int _result;
9535 wxMenuItem * _arg0;
9536 PyObject * _argo0 = 0;
9537 char *_kwnames[] = { "self", NULL };
9538
9539 self = self;
9540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0))
9541 return NULL;
9542 if (_argo0) {
9543 if (_argo0 == Py_None) { _arg0 = NULL; }
9544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
9546 return NULL;
9547 }
9548 }
9549{
0e2ff151 9550 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9551 _result = (int )wxMenuItem_GetId(_arg0);
9552
0e2ff151 9553 wxPyEndAllowThreads(__tstate);
e6056257
RD
9554 if (PyErr_Occurred()) return NULL;
9555} _resultobj = Py_BuildValue("i",_result);
9556 return _resultobj;
9557}
9558
9559#define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
9560static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
9561 PyObject * _resultobj;
9562 bool _result;
9563 wxMenuItem * _arg0;
9564 PyObject * _argo0 = 0;
9565 char *_kwnames[] = { "self", NULL };
9566
9567 self = self;
9568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0))
9569 return NULL;
9570 if (_argo0) {
9571 if (_argo0 == Py_None) { _arg0 = NULL; }
9572 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9573 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
9574 return NULL;
9575 }
9576 }
9577{
0e2ff151 9578 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9579 _result = (bool )wxMenuItem_IsSeparator(_arg0);
9580
0e2ff151 9581 wxPyEndAllowThreads(__tstate);
e6056257
RD
9582 if (PyErr_Occurred()) return NULL;
9583} _resultobj = Py_BuildValue("i",_result);
9584 return _resultobj;
9585}
9586
9587#define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
9588static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
9589 PyObject * _resultobj;
9590 wxMenuItem * _arg0;
9591 wxString * _arg1;
9592 PyObject * _argo0 = 0;
9593 PyObject * _obj1 = 0;
9594 char *_kwnames[] = { "self","str", NULL };
9595
9596 self = self;
9597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1))
9598 return NULL;
9599 if (_argo0) {
9600 if (_argo0 == Py_None) { _arg0 = NULL; }
9601 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9602 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
9603 return NULL;
9604 }
9605 }
9606{
9607#if PYTHON_API_VERSION >= 1009
9608 char* tmpPtr; int tmpSize;
9609 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9610 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9611 return NULL;
9612 }
9613 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9614 return NULL;
9615 _arg1 = new wxString(tmpPtr, tmpSize);
9616#else
9617 if (!PyString_Check(_obj1)) {
9618 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9619 return NULL;
9620 }
9621 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9622#endif
9623}
9624{
0e2ff151 9625 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9626 wxMenuItem_SetText(_arg0,*_arg1);
9627
0e2ff151 9628 wxPyEndAllowThreads(__tstate);
e6056257
RD
9629 if (PyErr_Occurred()) return NULL;
9630} Py_INCREF(Py_None);
9631 _resultobj = Py_None;
9632{
9633 if (_obj1)
9634 delete _arg1;
9635}
9636 return _resultobj;
9637}
9638
9639#define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel())
9640static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
9641 PyObject * _resultobj;
9642 wxString * _result;
9643 wxMenuItem * _arg0;
9644 PyObject * _argo0 = 0;
9645 char *_kwnames[] = { "self", NULL };
9646
9647 self = self;
9648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0))
9649 return NULL;
9650 if (_argo0) {
9651 if (_argo0 == Py_None) { _arg0 = NULL; }
9652 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9653 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p.");
9654 return NULL;
9655 }
9656 }
9657{
0e2ff151 9658 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9659 _result = new wxString (wxMenuItem_GetLabel(_arg0));
9660
0e2ff151 9661 wxPyEndAllowThreads(__tstate);
e6056257
RD
9662 if (PyErr_Occurred()) return NULL;
9663}{
9664 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9665}
9666{
9667 delete _result;
9668}
9669 return _resultobj;
9670}
9671
9672#define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
9673static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
9674 PyObject * _resultobj;
9675 wxString * _result;
9676 wxMenuItem * _arg0;
9677 PyObject * _argo0 = 0;
9678 char *_kwnames[] = { "self", NULL };
9679
9680 self = self;
9681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0))
9682 return NULL;
9683 if (_argo0) {
9684 if (_argo0 == Py_None) { _arg0 = NULL; }
9685 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9686 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p.");
9687 return NULL;
9688 }
9689 }
9690{
0e2ff151 9691 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9692 const wxString & _result_ref = wxMenuItem_GetText(_arg0);
9693 _result = (wxString *) &_result_ref;
9694
0e2ff151 9695 wxPyEndAllowThreads(__tstate);
e6056257
RD
9696 if (PyErr_Occurred()) return NULL;
9697}{
9698 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9699}
9700 return _resultobj;
9701}
9702
9703#define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
9704static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
9705 PyObject * _resultobj;
9706 wxMenuItem * _arg0;
9707 bool _arg1;
9708 PyObject * _argo0 = 0;
9709 int tempbool1;
9710 char *_kwnames[] = { "self","checkable", NULL };
9711
9712 self = self;
9713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1))
9714 return NULL;
9715 if (_argo0) {
9716 if (_argo0 == Py_None) { _arg0 = NULL; }
9717 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9718 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p.");
9719 return NULL;
9720 }
9721 }
9722 _arg1 = (bool ) tempbool1;
9723{
0e2ff151 9724 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9725 wxMenuItem_SetCheckable(_arg0,_arg1);
9726
0e2ff151 9727 wxPyEndAllowThreads(__tstate);
e6056257
RD
9728 if (PyErr_Occurred()) return NULL;
9729} Py_INCREF(Py_None);
9730 _resultobj = Py_None;
9731 return _resultobj;
9732}
9733
9734#define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
9735static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
9736 PyObject * _resultobj;
9737 bool _result;
9738 wxMenuItem * _arg0;
9739 PyObject * _argo0 = 0;
9740 char *_kwnames[] = { "self", NULL };
9741
9742 self = self;
9743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0))
9744 return NULL;
9745 if (_argo0) {
9746 if (_argo0 == Py_None) { _arg0 = NULL; }
9747 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9748 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
9749 return NULL;
9750 }
9751 }
9752{
0e2ff151 9753 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9754 _result = (bool )wxMenuItem_IsCheckable(_arg0);
9755
0e2ff151 9756 wxPyEndAllowThreads(__tstate);
e6056257
RD
9757 if (PyErr_Occurred()) return NULL;
9758} _resultobj = Py_BuildValue("i",_result);
9759 return _resultobj;
9760}
9761
9762#define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
9763static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9764 PyObject * _resultobj;
9765 bool _result;
9766 wxMenuItem * _arg0;
9767 PyObject * _argo0 = 0;
9768 char *_kwnames[] = { "self", NULL };
9769
9770 self = self;
9771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0))
9772 return NULL;
9773 if (_argo0) {
9774 if (_argo0 == Py_None) { _arg0 = NULL; }
9775 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9776 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p.");
9777 return NULL;
9778 }
9779 }
9780{
0e2ff151 9781 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9782 _result = (bool )wxMenuItem_IsSubMenu(_arg0);
9783
0e2ff151 9784 wxPyEndAllowThreads(__tstate);
e6056257
RD
9785 if (PyErr_Occurred()) return NULL;
9786} _resultobj = Py_BuildValue("i",_result);
9787 return _resultobj;
9788}
9789
9790#define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
9791static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9792 PyObject * _resultobj;
9793 wxMenuItem * _arg0;
9794 wxMenu * _arg1;
9795 PyObject * _argo0 = 0;
9796 PyObject * _argo1 = 0;
9797 char *_kwnames[] = { "self","menu", NULL };
9798
9799 self = self;
9800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1))
9801 return NULL;
9802 if (_argo0) {
9803 if (_argo0 == Py_None) { _arg0 = NULL; }
9804 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9805 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p.");
9806 return NULL;
9807 }
9808 }
9809 if (_argo1) {
9810 if (_argo1 == Py_None) { _arg1 = NULL; }
9811 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
9812 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
9813 return NULL;
9814 }
9815 }
9816{
0e2ff151 9817 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9818 wxMenuItem_SetSubMenu(_arg0,_arg1);
9819
0e2ff151 9820 wxPyEndAllowThreads(__tstate);
e6056257
RD
9821 if (PyErr_Occurred()) return NULL;
9822} Py_INCREF(Py_None);
9823 _resultobj = Py_None;
9824 return _resultobj;
9825}
9826
9827#define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
9828static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9829 PyObject * _resultobj;
9830 wxMenu * _result;
9831 wxMenuItem * _arg0;
9832 PyObject * _argo0 = 0;
9833 char *_kwnames[] = { "self", NULL };
9834
9835 self = self;
9836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0))
9837 return NULL;
9838 if (_argo0) {
9839 if (_argo0 == Py_None) { _arg0 = NULL; }
9840 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9841 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
9842 return NULL;
9843 }
9844 }
9845{
0e2ff151 9846 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9847 _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0);
9848
0e2ff151 9849 wxPyEndAllowThreads(__tstate);
e6056257
RD
9850 if (PyErr_Occurred()) return NULL;
9851}{ _resultobj = wxPyMake_wxObject(_result); }
9852 return _resultobj;
9853}
9854
9855#define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
9856static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
9857 PyObject * _resultobj;
9858 wxMenuItem * _arg0;
9859 bool _arg1 = (bool ) TRUE;
9860 PyObject * _argo0 = 0;
9861 int tempbool1 = (int) TRUE;
9862 char *_kwnames[] = { "self","enable", NULL };
9863
9864 self = self;
9865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1))
9866 return NULL;
9867 if (_argo0) {
9868 if (_argo0 == Py_None) { _arg0 = NULL; }
9869 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9870 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
9871 return NULL;
9872 }
9873 }
9874 _arg1 = (bool ) tempbool1;
9875{
0e2ff151 9876 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9877 wxMenuItem_Enable(_arg0,_arg1);
9878
0e2ff151 9879 wxPyEndAllowThreads(__tstate);
e6056257
RD
9880 if (PyErr_Occurred()) return NULL;
9881} Py_INCREF(Py_None);
9882 _resultobj = Py_None;
9883 return _resultobj;
9884}
9885
9886#define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
9887static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
9888 PyObject * _resultobj;
9889 bool _result;
9890 wxMenuItem * _arg0;
9891 PyObject * _argo0 = 0;
9892 char *_kwnames[] = { "self", NULL };
9893
9894 self = self;
9895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0))
9896 return NULL;
9897 if (_argo0) {
9898 if (_argo0 == Py_None) { _arg0 = NULL; }
9899 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9900 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
9901 return NULL;
9902 }
9903 }
9904{
0e2ff151 9905 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9906 _result = (bool )wxMenuItem_IsEnabled(_arg0);
9907
0e2ff151 9908 wxPyEndAllowThreads(__tstate);
e6056257
RD
9909 if (PyErr_Occurred()) return NULL;
9910} _resultobj = Py_BuildValue("i",_result);
9911 return _resultobj;
9912}
9913
9914#define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
9915static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
9916 PyObject * _resultobj;
9917 wxMenuItem * _arg0;
9918 bool _arg1 = (bool ) TRUE;
9919 PyObject * _argo0 = 0;
9920 int tempbool1 = (int) TRUE;
9921 char *_kwnames[] = { "self","check", NULL };
9922
9923 self = self;
9924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1))
9925 return NULL;
9926 if (_argo0) {
9927 if (_argo0 == Py_None) { _arg0 = NULL; }
9928 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9929 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
9930 return NULL;
9931 }
9932 }
9933 _arg1 = (bool ) tempbool1;
9934{
0e2ff151 9935 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9936 wxMenuItem_Check(_arg0,_arg1);
9937
0e2ff151 9938 wxPyEndAllowThreads(__tstate);
e6056257
RD
9939 if (PyErr_Occurred()) return NULL;
9940} Py_INCREF(Py_None);
9941 _resultobj = Py_None;
9942 return _resultobj;
9943}
9944
9945#define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
9946static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
9947 PyObject * _resultobj;
9948 bool _result;
9949 wxMenuItem * _arg0;
9950 PyObject * _argo0 = 0;
9951 char *_kwnames[] = { "self", NULL };
9952
9953 self = self;
9954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0))
9955 return NULL;
9956 if (_argo0) {
9957 if (_argo0 == Py_None) { _arg0 = NULL; }
9958 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9959 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
9960 return NULL;
9961 }
9962 }
9963{
0e2ff151 9964 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9965 _result = (bool )wxMenuItem_IsChecked(_arg0);
9966
0e2ff151 9967 wxPyEndAllowThreads(__tstate);
e6056257
RD
9968 if (PyErr_Occurred()) return NULL;
9969} _resultobj = Py_BuildValue("i",_result);
9970 return _resultobj;
9971}
9972
9973#define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle())
9974static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
9975 PyObject * _resultobj;
9976 wxMenuItem * _arg0;
9977 PyObject * _argo0 = 0;
9978 char *_kwnames[] = { "self", NULL };
9979
9980 self = self;
9981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0))
9982 return NULL;
9983 if (_argo0) {
9984 if (_argo0 == Py_None) { _arg0 = NULL; }
9985 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9986 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p.");
9987 return NULL;
9988 }
9989 }
9990{
0e2ff151 9991 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
9992 wxMenuItem_Toggle(_arg0);
9993
0e2ff151 9994 wxPyEndAllowThreads(__tstate);
e6056257
RD
9995 if (PyErr_Occurred()) return NULL;
9996} Py_INCREF(Py_None);
9997 _resultobj = Py_None;
9998 return _resultobj;
9999}
10000
10001#define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
10002static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
10003 PyObject * _resultobj;
10004 wxMenuItem * _arg0;
10005 wxString * _arg1;
10006 PyObject * _argo0 = 0;
10007 PyObject * _obj1 = 0;
10008 char *_kwnames[] = { "self","str", NULL };
10009
10010 self = self;
10011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1))
10012 return NULL;
10013 if (_argo0) {
10014 if (_argo0 == Py_None) { _arg0 = NULL; }
10015 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10016 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
10017 return NULL;
10018 }
10019 }
10020{
10021#if PYTHON_API_VERSION >= 1009
10022 char* tmpPtr; int tmpSize;
10023 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
10024 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10025 return NULL;
10026 }
10027 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
10028 return NULL;
10029 _arg1 = new wxString(tmpPtr, tmpSize);
10030#else
10031 if (!PyString_Check(_obj1)) {
10032 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10033 return NULL;
10034 }
10035 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
10036#endif
10037}
10038{
0e2ff151 10039 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
10040 wxMenuItem_SetHelp(_arg0,*_arg1);
10041
0e2ff151 10042 wxPyEndAllowThreads(__tstate);
e6056257
RD
10043 if (PyErr_Occurred()) return NULL;
10044} Py_INCREF(Py_None);
10045 _resultobj = Py_None;
10046{
10047 if (_obj1)
10048 delete _arg1;
10049}
10050 return _resultobj;
10051}
10052
10053#define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
10054static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
10055 PyObject * _resultobj;
10056 wxString * _result;
10057 wxMenuItem * _arg0;
10058 PyObject * _argo0 = 0;
10059 char *_kwnames[] = { "self", NULL };
10060
10061 self = self;
10062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0))
10063 return NULL;
10064 if (_argo0) {
10065 if (_argo0 == Py_None) { _arg0 = NULL; }
10066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
10068 return NULL;
10069 }
10070 }
10071{
0e2ff151 10072 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
10073 const wxString & _result_ref = wxMenuItem_GetHelp(_arg0);
10074 _result = (wxString *) &_result_ref;
10075
0e2ff151 10076 wxPyEndAllowThreads(__tstate);
e6056257
RD
10077 if (PyErr_Occurred()) return NULL;
10078}{
10079 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10080}
10081 return _resultobj;
10082}
10083
10084#define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel())
10085static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
10086 PyObject * _resultobj;
10087 wxAcceleratorEntry * _result;
10088 wxMenuItem * _arg0;
10089 PyObject * _argo0 = 0;
10090 char *_kwnames[] = { "self", NULL };
10091 char _ptemp[128];
10092
10093 self = self;
10094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0))
10095 return NULL;
10096 if (_argo0) {
10097 if (_argo0 == Py_None) { _arg0 = NULL; }
10098 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10099 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p.");
10100 return NULL;
10101 }
10102 }
10103{
0e2ff151 10104 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
10105 _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0);
10106
0e2ff151 10107 wxPyEndAllowThreads(__tstate);
e6056257
RD
10108 if (PyErr_Occurred()) return NULL;
10109} if (_result) {
10110 SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p");
10111 _resultobj = Py_BuildValue("s",_ptemp);
10112 } else {
10113 Py_INCREF(Py_None);
10114 _resultobj = Py_None;
10115 }
10116 return _resultobj;
10117}
10118
10119#define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0))
10120static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
10121 PyObject * _resultobj;
10122 wxMenuItem * _arg0;
10123 wxAcceleratorEntry * _arg1;
10124 PyObject * _argo0 = 0;
10125 PyObject * _argo1 = 0;
10126 char *_kwnames[] = { "self","accel", NULL };
10127
10128 self = self;
10129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1))
10130 return NULL;
10131 if (_argo0) {
10132 if (_argo0 == Py_None) { _arg0 = NULL; }
10133 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10134 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p.");
10135 return NULL;
10136 }
10137 }
10138 if (_argo1) {
10139 if (_argo1 == Py_None) { _arg1 = NULL; }
10140 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) {
10141 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p.");
10142 return NULL;
10143 }
10144 }
10145{
0e2ff151 10146 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
10147 wxMenuItem_SetAccel(_arg0,_arg1);
10148
0e2ff151 10149 wxPyEndAllowThreads(__tstate);
e6056257
RD
10150 if (PyErr_Occurred()) return NULL;
10151} Py_INCREF(Py_None);
10152 _resultobj = Py_None;
10153 return _resultobj;
10154}
10155
10156static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) {
10157 PyObject * _resultobj;
10158 wxString * _result;
10159 wxString * _arg0;
10160 PyObject * _obj0 = 0;
10161 char *_kwnames[] = { "text", NULL };
10162
10163 self = self;
10164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0))
10165 return NULL;
10166{
10167#if PYTHON_API_VERSION >= 1009
10168 char* tmpPtr; int tmpSize;
10169 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
10170 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10171 return NULL;
10172 }
10173 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
10174 return NULL;
10175 _arg0 = new wxString(tmpPtr, tmpSize);
10176#else
10177 if (!PyString_Check(_obj0)) {
10178 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10179 return NULL;
10180 }
10181 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
10182#endif
10183}
10184{
0e2ff151 10185 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
10186 _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0));
10187
0e2ff151 10188 wxPyEndAllowThreads(__tstate);
e6056257
RD
10189 if (PyErr_Occurred()) return NULL;
10190}{
10191 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10192}
10193{
10194 if (_obj0)
10195 delete _arg0;
10196}
10197{
10198 delete _result;
10199}
10200 return _resultobj;
10201}
10202
10203static PyMethodDef windowscMethods[] = {
10204 { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS },
10205 { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS },
10206 { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS },
10207 { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS },
10208 { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS },
10209 { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS },
10210 { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS },
10211 { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS },
10212 { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS },
10213 { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS },
10214 { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS },
10215 { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS },
10216 { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS },
10217 { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS },
10218 { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS },
10219 { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS },
10220 { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS },
10221 { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS },
10222 { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS },
10223 { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS },
10224 { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS },
10225 { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS },
10226 { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS },
10227 { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS },
10228 { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS },
10229 { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS },
10230 { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS },
10231 { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS },
10232 { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS },
10233 { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS },
10234 { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS },
10235 { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS },
10236 { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS },
10237 { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS },
10238 { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS },
10239 { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS },
10240 { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS },
10241 { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS },
10242 { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS },
10243 { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS },
10244 { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS },
10245 { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS },
10246 { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS },
10247 { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS },
10248 { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS },
10249 { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS },
10250 { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS },
10251 { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS },
10252 { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
10253 { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
10254 { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
10255 { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
10256 { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS },
10257 { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS },
10258 { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS },
10259 { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS },
10260 { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS },
10261 { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS },
10262 { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS },
10263 { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS },
10264 { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS },
10265 { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS },
10266 { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS },
10267 { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS },
10268 { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS },
10269 { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS },
10270 { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS },
10271 { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS },
10272 { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS },
10273 { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS },
10274 { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS },
10275 { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS },
10276 { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS },
10277 { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS },
10278 { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS },
10279 { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS },
10280 { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS },
10281 { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS },
10282 { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS },
10283 { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS },
10284 { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS },
10285 { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS },
10286 { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS },
10287 { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS },
10288 { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS },
10289 { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS },
10290 { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS },
10291 { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS },
10292 { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS },
10293 { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS },
10294 { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS },
10295 { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS },
10296 { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS },
10297 { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS },
10298 { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS },
10299 { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS },
10300 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS },
10301 { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS },
10302 { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS },
10303 { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS },
10304 { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS },
10305 { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10306 { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS },
10307 { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS },
10308 { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS },
10309 { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS },
6abe8375
RD
10310 { "wxWindow_SetDefaultItem", (PyCFunction) _wrap_wxWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS },
10311 { "wxWindow_GetDefaultItem", (PyCFunction) _wrap_wxWindow_GetDefaultItem, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10312 { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
10313 { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
10314 { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS },
10315 { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS },
10316 { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS },
10317 { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS },
10318 { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS },
10319 { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS },
10320 { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS },
10321 { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS },
10322 { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS },
10323 { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS },
a341e32e 10324 { "wxWindow_SetHelpTextForId", (PyCFunction) _wrap_wxWindow_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10325 { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS },
10326 { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS },
10327 { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS },
10328 { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS },
10329 { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS },
10330 { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS },
10331 { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS },
10332 { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS },
10333 { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS },
10334 { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS },
a341e32e
RD
10335 { "wxWindow_GetContainingSizer", (PyCFunction) _wrap_wxWindow_GetContainingSizer, METH_VARARGS | METH_KEYWORDS },
10336 { "wxWindow_SetContainingSizer", (PyCFunction) _wrap_wxWindow_SetContainingSizer, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10337 { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS },
10338 { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS },
10339 { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS },
10340 { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS },
10341 { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS },
10342 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS },
10343 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS },
10344 { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
10345 { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
10346 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
10347 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
10348 { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS },
10349 { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS },
a341e32e 10350 { "wxWindow_UpdateWindowUI", (PyCFunction) _wrap_wxWindow_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10351 { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
10352 { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
10353 { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS },
10354 { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS },
10355 { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS },
10356 { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
10357 { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS },
10358 { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS },
10359 { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS },
10360 { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
10361 { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS },
10362 { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS },
10363 { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS },
10364 { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS },
10365 { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS },
10366 { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
10367 { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS },
10368 { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS },
10369 { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
10370 { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS },
10371 { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
10372 { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS },
10373 { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS },
10374 { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS },
10375 { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
10376 { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS },
10377 { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS },
10378 { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS },
10379 { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS },
10380 { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS },
10381 { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS },
10382 { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS },
10383 { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS },
10384 { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS },
10385 { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS },
10386 { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS },
10387 { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS },
10388 { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS },
ca31b3da 10389 { "wxWindow_RemoveEventHandler", (PyCFunction) _wrap_wxWindow_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10390 { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS },
10391 { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS },
10392 { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS },
10393 { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS },
10394 { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS },
10395 { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS },
10396 { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS },
10397 { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS },
10398 { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS },
10399 { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS },
10400 { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS },
10401 { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS },
10402 { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS },
10403 { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS },
10404 { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS },
10405 { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS },
a341e32e 10406 { "wxWindow_HitTest", (PyCFunction) _wrap_wxWindow_HitTest, METH_VARARGS | METH_KEYWORDS },
e6056257 10407 { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS },
a341e32e 10408 { "wxWindow_HasScrollbar", (PyCFunction) _wrap_wxWindow_HasScrollbar, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10409 { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS },
10410 { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
10411 { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
10412 { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS },
10413 { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS },
10414 { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
10415 { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
10416 { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS },
10417 { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
10418 { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS },
10419 { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS },
10420 { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS },
10421 { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS },
10422 { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS },
10423 { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
10424 { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS },
10425 { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS },
10426 { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS },
10427 { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS },
10428 { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS },
10429 { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS },
10430 { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS },
10431 { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS },
10432 { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS },
10433 { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
10434 { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS },
a341e32e
RD
10435 { "wxWindow_GetClientRect", (PyCFunction) _wrap_wxWindow_GetClientRect, METH_VARARGS | METH_KEYWORDS },
10436 { "wxWindow_GetClientAreaOrigin", (PyCFunction) _wrap_wxWindow_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10437 { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS },
10438 { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS },
10439 { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
10440 { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
10441 { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS },
a341e32e 10442 { "wxWindow_GetBorder", (PyCFunction) _wrap_wxWindow_GetBorder, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10443 { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
10444 { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS },
10445 { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
10446 { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS },
10447 { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS },
10448 { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS },
10449 { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS },
10450 { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS },
10451 { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS },
10452 { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS },
10453 { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS },
10454 { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS },
10455 { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS },
10456 { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS },
10457 { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS },
10458 { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS },
10459 { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS },
10460 { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS },
10461 { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS },
10462 { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS },
10463 { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS },
10464 { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS },
10465 { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
10466 { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS },
10467 { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS },
10468 { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS },
10469 { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS },
10470 { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS },
10471 { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS },
10472 { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS },
10473 { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS },
10474 { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS },
10475 { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS },
10476 { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
10477 { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS },
10478 { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
10479 { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS },
10480 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
10481 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
10482 { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS },
10483 { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
10484 { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS },
10485 { NULL, NULL }
10486};
10487#ifdef __cplusplus
10488}
10489#endif
10490/*
10491 * This table is used by the pointer type-checker
10492 */
10493static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
10494 { "_signed_long","_long",0},
10495 { "_wxPrintQuality","_wxCoord",0},
10496 { "_wxPrintQuality","_int",0},
10497 { "_wxPrintQuality","_signed_int",0},
10498 { "_wxPrintQuality","_unsigned_int",0},
10499 { "_wxPrintQuality","_wxWindowID",0},
10500 { "_wxPrintQuality","_uint",0},
10501 { "_wxPrintQuality","_EBool",0},
10502 { "_wxPrintQuality","_size_t",0},
10503 { "_wxPrintQuality","_time_t",0},
10504 { "_byte","_unsigned_char",0},
10505 { "_long","_unsigned_long",0},
10506 { "_long","_signed_long",0},
10507 { "_size_t","_wxCoord",0},
10508 { "_size_t","_wxPrintQuality",0},
10509 { "_size_t","_time_t",0},
10510 { "_size_t","_unsigned_int",0},
10511 { "_size_t","_int",0},
10512 { "_size_t","_wxWindowID",0},
10513 { "_size_t","_uint",0},
10514 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
10515 { "_uint","_wxCoord",0},
10516 { "_uint","_wxPrintQuality",0},
10517 { "_uint","_time_t",0},
10518 { "_uint","_size_t",0},
10519 { "_uint","_unsigned_int",0},
10520 { "_uint","_int",0},
10521 { "_uint","_wxWindowID",0},
10522 { "_wxChar","_char",0},
10523 { "_char","_wxChar",0},
10524 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
10525 { "_EBool","_wxCoord",0},
10526 { "_EBool","_wxPrintQuality",0},
10527 { "_EBool","_signed_int",0},
10528 { "_EBool","_int",0},
10529 { "_EBool","_wxWindowID",0},
10530 { "_unsigned_long","_long",0},
10531 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
10532 { "_signed_int","_wxCoord",0},
10533 { "_signed_int","_wxPrintQuality",0},
10534 { "_signed_int","_EBool",0},
10535 { "_signed_int","_wxWindowID",0},
10536 { "_signed_int","_int",0},
10537 { "_WXTYPE","_short",0},
10538 { "_WXTYPE","_signed_short",0},
10539 { "_WXTYPE","_unsigned_short",0},
10540 { "_unsigned_short","_WXTYPE",0},
10541 { "_unsigned_short","_short",0},
10542 { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject},
10543 { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject},
10544 { "_wxObject","_wxMenu",SwigwxMenuTowxObject},
10545 { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject},
10546 { "_wxObject","_wxPanel",SwigwxPanelTowxObject},
10547 { "_wxObject","_wxWindow",SwigwxWindowTowxObject},
10548 { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject},
10549 { "_wxObject","_wxValidator",SwigwxValidatorTowxObject},
10550 { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject},
10551 { "_signed_short","_WXTYPE",0},
10552 { "_signed_short","_short",0},
10553 { "_unsigned_char","_byte",0},
10554 { "_unsigned_int","_wxCoord",0},
10555 { "_unsigned_int","_wxPrintQuality",0},
10556 { "_unsigned_int","_time_t",0},
10557 { "_unsigned_int","_size_t",0},
10558 { "_unsigned_int","_uint",0},
10559 { "_unsigned_int","_wxWindowID",0},
10560 { "_unsigned_int","_int",0},
10561 { "_short","_WXTYPE",0},
10562 { "_short","_unsigned_short",0},
10563 { "_short","_signed_short",0},
10564 { "_wxWindowID","_wxCoord",0},
10565 { "_wxWindowID","_wxPrintQuality",0},
10566 { "_wxWindowID","_time_t",0},
10567 { "_wxWindowID","_size_t",0},
10568 { "_wxWindowID","_EBool",0},
10569 { "_wxWindowID","_uint",0},
10570 { "_wxWindowID","_int",0},
10571 { "_wxWindowID","_signed_int",0},
10572 { "_wxWindowID","_unsigned_int",0},
10573 { "_int","_wxCoord",0},
10574 { "_int","_wxPrintQuality",0},
10575 { "_int","_time_t",0},
10576 { "_int","_size_t",0},
10577 { "_int","_EBool",0},
10578 { "_int","_uint",0},
10579 { "_int","_wxWindowID",0},
10580 { "_int","_unsigned_int",0},
10581 { "_int","_signed_int",0},
10582 { "_time_t","_wxCoord",0},
10583 { "_time_t","_wxPrintQuality",0},
10584 { "_time_t","_unsigned_int",0},
10585 { "_time_t","_int",0},
10586 { "_time_t","_wxWindowID",0},
10587 { "_time_t","_uint",0},
10588 { "_time_t","_size_t",0},
10589 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator},
10590 { "_wxCoord","_int",0},
10591 { "_wxCoord","_signed_int",0},
10592 { "_wxCoord","_unsigned_int",0},
10593 { "_wxCoord","_wxWindowID",0},
10594 { "_wxCoord","_uint",0},
10595 { "_wxCoord","_EBool",0},
10596 { "_wxCoord","_size_t",0},
10597 { "_wxCoord","_time_t",0},
10598 { "_wxCoord","_wxPrintQuality",0},
10599 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
10600 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler},
10601 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
10602 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler},
10603 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler},
10604 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler},
10605 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler},
10606 { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow},
10607 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
10608 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow},
10609{0,0,0}};
10610
10611static PyObject *SWIG_globals;
10612#ifdef __cplusplus
10613extern "C"
10614#endif
10615SWIGEXPORT(void) initwindowsc() {
10616 PyObject *m, *d;
10617 SWIG_globals = SWIG_newvarlink();
10618 m = Py_InitModule("windowsc", windowscMethods);
10619 d = PyModule_GetDict(m);
10620{
10621 int i;
10622 for (i = 0; _swig_mapping[i].n1; i++)
10623 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
10624}
10625}