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