]>
Commit | Line | Data |
---|---|---|
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 | |
b67a9327 RD |
22 | #include "Python.h" |
23 | ||
8ab979d7 RD |
24 | #include <string.h> |
25 | #include <stdlib.h> | |
26 | /* Definitions for Windows/Unix exporting */ | |
27 | #if defined(__WIN32__) | |
28 | # if defined(_MSC_VER) | |
1d99702e | 29 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
30 | # else |
31 | # if defined(__BORLANDC__) | |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 33 | # else |
3bcd5e1c | 34 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
35 | # endif |
36 | # endif | |
37 | #else | |
3bcd5e1c | 38 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
39 | #endif |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
8ab979d7 RD |
44 | extern void SWIG_MakePtr(char *, void *, char *); |
45 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
46 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 47 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
48 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
49 | extern PyObject *SWIG_newvarlink(void); | |
50 | #ifdef __cplusplus | |
51 | } | |
52 | #endif | |
8ab979d7 RD |
53 | #define SWIG_init initwindowsc |
54 | ||
55 | #define SWIG_name "windowsc" | |
56 | ||
57 | #include "helpers.h" | |
8ab979d7 | 58 | #include <wx/menuitem.h> |
9df61a29 | 59 | #include <wx/tooltip.h> |
8ab979d7 | 60 | |
8ab979d7 RD |
61 | |
62 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
63 | PyObject* o2; | |
64 | PyObject* o3; | |
65 | ||
3bcd5e1c | 66 | if (!target) { |
8ab979d7 | 67 | target = o; |
3bcd5e1c | 68 | } else if (target == Py_None) { |
8ab979d7 RD |
69 | Py_DECREF(Py_None); |
70 | target = o; | |
3bcd5e1c | 71 | } else { |
8ab979d7 RD |
72 | if (!PyTuple_Check(target)) { |
73 | o2 = target; | |
74 | target = PyTuple_New(1); | |
75 | PyTuple_SetItem(target, 0, o2); | |
76 | } | |
3bcd5e1c RD |
77 | o3 = PyTuple_New(1); |
78 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
79 | |
80 | o2 = target; | |
3bcd5e1c RD |
81 | target = PySequence_Concat(o2, o3); |
82 | Py_DECREF(o2); | |
8ab979d7 RD |
83 | Py_DECREF(o3); |
84 | } | |
85 | return target; | |
86 | } | |
87 | ||
9a74fcaf RD |
88 | // Put some wx default wxChar* values into wxStrings. |
89 | DECLARE_DEF_STRING(PanelNameStr); | |
90 | static const wxString wxPyEmptyString(wxT("")); | |
91 | ||
2f90df85 RD |
92 | class wxPyValidator : public wxValidator { |
93 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
94 | public: | |
95 | wxPyValidator() { | |
96 | } | |
2f90df85 RD |
97 | |
98 | ~wxPyValidator() { | |
99 | } | |
100 | ||
059a841c | 101 | wxObject* Clone() const { |
694759cf RD |
102 | wxPyValidator* ptr = NULL; |
103 | wxPyValidator* self = (wxPyValidator*)this; | |
2f90df85 | 104 | |
474c48f9 | 105 | wxPyBeginBlockThreads(); |
694759cf RD |
106 | if (self->m_myInst.findCallback("Clone")) { |
107 | PyObject* ro; | |
108 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
f6bcfd97 BP |
109 | if (ro) { |
110 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
111 | Py_DECREF(ro); | |
112 | } | |
694759cf | 113 | } |
474c48f9 | 114 | wxPyEndBlockThreads(); |
059a841c | 115 | |
694759cf RD |
116 | // This is very dangerous!!! But is the only way I could find |
117 | // to squash a memory leak. Currently it is okay, but if the | |
118 | // validator architecture in wxWindows ever changes, problems | |
119 | // could arise. | |
120 | delete self; | |
694759cf RD |
121 | return ptr; |
122 | } | |
2f90df85 | 123 | |
9df61a29 | 124 | |
2f90df85 RD |
125 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); |
126 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
127 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
128 | ||
129 | PYPRIVATE; | |
2f90df85 RD |
130 | }; |
131 | ||
132 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
133 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
134 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
135 | ||
136 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
8ab979d7 | 137 | |
298ae144 RD |
138 | |
139 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
140 | return wxWindow::FindWindowById(id, parent); | |
141 | } | |
142 | ||
143 | wxWindow* wxFindWindowByName( const wxString& name, | |
144 | const wxWindow *parent = NULL ) { | |
145 | return wxWindow::FindWindowByName(name, parent); | |
146 | } | |
147 | ||
148 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
149 | const wxWindow *parent = NULL ) { | |
150 | return wxWindow::FindWindowByLabel(label, parent); | |
151 | } | |
2f90df85 RD |
152 | #ifdef __cplusplus |
153 | extern "C" { | |
154 | #endif | |
298ae144 RD |
155 | static PyObject *_wrap_wxFindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
156 | PyObject * _resultobj; | |
157 | wxWindow * _result; | |
158 | long _arg0; | |
159 | wxWindow * _arg1 = (wxWindow *) NULL; | |
160 | PyObject * _argo1 = 0; | |
161 | char *_kwnames[] = { "id","parent", NULL }; | |
162 | ||
163 | self = self; | |
164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l|O:wxFindWindowById",_kwnames,&_arg0,&_argo1)) | |
165 | return NULL; | |
166 | if (_argo1) { | |
167 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
168 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowById. Expected _wxWindow_p."); | |
170 | return NULL; | |
171 | } | |
172 | } | |
173 | { | |
174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
175 | _result = (wxWindow *)wxFindWindowById(_arg0,_arg1); | |
176 | ||
177 | wxPyEndAllowThreads(__tstate); | |
178 | if (PyErr_Occurred()) return NULL; | |
179 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
180 | return _resultobj; | |
181 | } | |
182 | ||
183 | static PyObject *_wrap_wxFindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
184 | PyObject * _resultobj; | |
185 | wxWindow * _result; | |
186 | wxString * _arg0; | |
187 | wxWindow * _arg1 = (wxWindow *) NULL; | |
188 | PyObject * _obj0 = 0; | |
189 | PyObject * _argo1 = 0; | |
190 | char *_kwnames[] = { "name","parent", NULL }; | |
191 | ||
192 | self = self; | |
193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByName",_kwnames,&_obj0,&_argo1)) | |
194 | return NULL; | |
195 | { | |
196 | _arg0 = wxString_in_helper(_obj0); | |
197 | if (_arg0 == NULL) | |
198 | return NULL; | |
199 | } | |
200 | if (_argo1) { | |
201 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
202 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p."); | |
204 | return NULL; | |
205 | } | |
206 | } | |
207 | { | |
208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
209 | _result = (wxWindow *)wxFindWindowByName(*_arg0,_arg1); | |
210 | ||
211 | wxPyEndAllowThreads(__tstate); | |
212 | if (PyErr_Occurred()) return NULL; | |
213 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
214 | { | |
215 | if (_obj0) | |
216 | delete _arg0; | |
217 | } | |
218 | return _resultobj; | |
219 | } | |
220 | ||
221 | static PyObject *_wrap_wxFindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
222 | PyObject * _resultobj; | |
223 | wxWindow * _result; | |
224 | wxString * _arg0; | |
225 | wxWindow * _arg1 = (wxWindow *) NULL; | |
226 | PyObject * _obj0 = 0; | |
227 | PyObject * _argo1 = 0; | |
228 | char *_kwnames[] = { "label","parent", NULL }; | |
229 | ||
230 | self = self; | |
231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByLabel",_kwnames,&_obj0,&_argo1)) | |
232 | return NULL; | |
233 | { | |
234 | _arg0 = wxString_in_helper(_obj0); | |
235 | if (_arg0 == NULL) | |
236 | return NULL; | |
237 | } | |
238 | if (_argo1) { | |
239 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
240 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p."); | |
242 | return NULL; | |
243 | } | |
244 | } | |
245 | { | |
246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
247 | _result = (wxWindow *)wxFindWindowByLabel(*_arg0,_arg1); | |
248 | ||
249 | wxPyEndAllowThreads(__tstate); | |
250 | if (PyErr_Occurred()) return NULL; | |
251 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
252 | { | |
253 | if (_obj0) | |
254 | delete _arg0; | |
255 | } | |
256 | return _resultobj; | |
257 | } | |
258 | ||
9df61a29 RD |
259 | static void *SwigwxEvtHandlerTowxObject(void *ptr) { |
260 | wxEvtHandler *src; | |
261 | wxObject *dest; | |
262 | src = (wxEvtHandler *) ptr; | |
263 | dest = (wxObject *) src; | |
264 | return (void *) dest; | |
265 | } | |
266 | ||
c368d904 RD |
267 | #define new_wxEvtHandler() (new wxEvtHandler()) |
268 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
269 | PyObject * _resultobj; | |
270 | wxEvtHandler * _result; | |
271 | char *_kwnames[] = { NULL }; | |
272 | char _ptemp[128]; | |
273 | ||
274 | self = self; | |
275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
276 | return NULL; | |
277 | { | |
474c48f9 | 278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 279 | _result = (wxEvtHandler *)new_wxEvtHandler(); |
c368d904 | 280 | |
474c48f9 | 281 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 282 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
283 | } if (_result) { |
284 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
285 | _resultobj = Py_BuildValue("s",_ptemp); | |
286 | } else { | |
287 | Py_INCREF(Py_None); | |
288 | _resultobj = Py_None; | |
289 | } | |
290 | return _resultobj; | |
291 | } | |
292 | ||
2f90df85 RD |
293 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
294 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
295 | PyObject * _resultobj; | |
296 | bool _result; | |
297 | wxEvtHandler * _arg0; | |
298 | wxEvent * _arg1; | |
299 | PyObject * _argo0 = 0; | |
300 | PyObject * _argo1 = 0; | |
301 | char *_kwnames[] = { "self","event", NULL }; | |
302 | ||
303 | self = self; | |
304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
305 | return NULL; | |
306 | if (_argo0) { | |
307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
310 | return NULL; | |
311 | } | |
312 | } | |
313 | if (_argo1) { | |
b67a9327 | 314 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { |
2f90df85 RD |
315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); |
316 | return NULL; | |
317 | } | |
318 | } | |
319 | { | |
474c48f9 | 320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 321 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); |
2f90df85 | 322 | |
474c48f9 | 323 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 324 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
325 | } _resultobj = Py_BuildValue("i",_result); |
326 | return _resultobj; | |
327 | } | |
328 | ||
f6bcfd97 BP |
329 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
330 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
331 | PyObject * _resultobj; | |
332 | wxEvtHandler * _arg0; | |
333 | wxEvent * _arg1; | |
334 | PyObject * _argo0 = 0; | |
335 | PyObject * _argo1 = 0; | |
336 | char *_kwnames[] = { "self","event", NULL }; | |
337 | ||
338 | self = self; | |
339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
340 | return NULL; | |
341 | if (_argo0) { | |
342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
345 | return NULL; | |
346 | } | |
347 | } | |
348 | if (_argo1) { | |
b67a9327 | 349 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { |
f6bcfd97 BP |
350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); |
351 | return NULL; | |
352 | } | |
353 | } | |
354 | { | |
474c48f9 | 355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 356 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); |
f6bcfd97 | 357 | |
474c48f9 | 358 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 359 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
360 | } Py_INCREF(Py_None); |
361 | _resultobj = Py_None; | |
362 | return _resultobj; | |
363 | } | |
364 | ||
2f90df85 RD |
365 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
366 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
367 | PyObject * _resultobj; | |
368 | bool _result; | |
369 | wxEvtHandler * _arg0; | |
370 | PyObject * _argo0 = 0; | |
371 | char *_kwnames[] = { "self", NULL }; | |
372 | ||
373 | self = self; | |
374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
375 | return NULL; | |
376 | if (_argo0) { | |
377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
380 | return NULL; | |
381 | } | |
382 | } | |
383 | { | |
474c48f9 | 384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 385 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); |
2f90df85 | 386 | |
474c48f9 | 387 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 388 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
389 | } _resultobj = Py_BuildValue("i",_result); |
390 | return _resultobj; | |
391 | } | |
392 | ||
393 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
394 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
395 | PyObject * _resultobj; | |
396 | wxEvtHandler * _arg0; | |
397 | bool _arg1; | |
398 | PyObject * _argo0 = 0; | |
399 | int tempbool1; | |
400 | char *_kwnames[] = { "self","enabled", NULL }; | |
401 | ||
402 | self = self; | |
403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
404 | return NULL; | |
405 | if (_argo0) { | |
406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
409 | return NULL; | |
410 | } | |
411 | } | |
412 | _arg1 = (bool ) tempbool1; | |
413 | { | |
474c48f9 | 414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 415 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); |
2f90df85 | 416 | |
474c48f9 | 417 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 418 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
419 | } Py_INCREF(Py_None); |
420 | _resultobj = Py_None; | |
421 | return _resultobj; | |
422 | } | |
423 | ||
424 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
425 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
426 | PyObject * _resultobj; | |
427 | wxEvtHandler * _result; | |
428 | wxEvtHandler * _arg0; | |
429 | PyObject * _argo0 = 0; | |
430 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
431 | |
432 | self = self; | |
433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
434 | return NULL; | |
435 | if (_argo0) { | |
436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
439 | return NULL; | |
440 | } | |
441 | } | |
442 | { | |
474c48f9 | 443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 444 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); |
2f90df85 | 445 | |
474c48f9 | 446 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 447 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 448 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
449 | return _resultobj; |
450 | } | |
451 | ||
452 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
453 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
454 | PyObject * _resultobj; | |
455 | wxEvtHandler * _result; | |
456 | wxEvtHandler * _arg0; | |
457 | PyObject * _argo0 = 0; | |
458 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
459 | |
460 | self = self; | |
461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
462 | return NULL; | |
463 | if (_argo0) { | |
464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
467 | return NULL; | |
468 | } | |
469 | } | |
470 | { | |
474c48f9 | 471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 472 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); |
2f90df85 | 473 | |
474c48f9 | 474 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 475 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 476 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
477 | return _resultobj; |
478 | } | |
479 | ||
480 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
481 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
482 | PyObject * _resultobj; | |
483 | wxEvtHandler * _arg0; | |
484 | wxEvtHandler * _arg1; | |
485 | PyObject * _argo0 = 0; | |
486 | PyObject * _argo1 = 0; | |
487 | char *_kwnames[] = { "self","handler", NULL }; | |
488 | ||
489 | self = self; | |
490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
491 | return NULL; | |
492 | if (_argo0) { | |
493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
496 | return NULL; | |
497 | } | |
498 | } | |
499 | if (_argo1) { | |
500 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
501 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
503 | return NULL; | |
504 | } | |
505 | } | |
506 | { | |
474c48f9 | 507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 508 | wxEvtHandler_SetNextHandler(_arg0,_arg1); |
2f90df85 | 509 | |
474c48f9 | 510 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 511 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
512 | } Py_INCREF(Py_None); |
513 | _resultobj = Py_None; | |
514 | return _resultobj; | |
515 | } | |
516 | ||
517 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
518 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
519 | PyObject * _resultobj; | |
520 | wxEvtHandler * _arg0; | |
521 | wxEvtHandler * _arg1; | |
522 | PyObject * _argo0 = 0; | |
523 | PyObject * _argo1 = 0; | |
524 | char *_kwnames[] = { "self","handler", NULL }; | |
525 | ||
526 | self = self; | |
527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
528 | return NULL; | |
529 | if (_argo0) { | |
530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
533 | return NULL; | |
534 | } | |
535 | } | |
536 | if (_argo1) { | |
537 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
538 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
539 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
540 | return NULL; | |
541 | } | |
542 | } | |
543 | { | |
474c48f9 | 544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 545 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); |
2f90df85 | 546 | |
474c48f9 | 547 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 548 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
549 | } Py_INCREF(Py_None); |
550 | _resultobj = Py_None; | |
551 | return _resultobj; | |
552 | } | |
553 | ||
554 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
555 | if (PyCallable_Check(func)) { | |
556 | self->Connect(id, lastId, eventType, | |
557 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
558 | new wxPyCallback(func)); | |
559 | } | |
a57d56d6 RD |
560 | else if (func == Py_None) { |
561 | self->Disconnect(id, lastId, eventType, | |
562 | (wxObjectEventFunction) | |
563 | &wxPyCallback::EventThunker); | |
564 | } | |
565 | else { | |
566 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
567 | } | |
2f90df85 RD |
568 | } |
569 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
570 | PyObject * _resultobj; | |
571 | wxEvtHandler * _arg0; | |
572 | int _arg1; | |
573 | int _arg2; | |
574 | int _arg3; | |
575 | PyObject * _arg4; | |
576 | PyObject * _argo0 = 0; | |
577 | PyObject * _obj4 = 0; | |
578 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
579 | ||
580 | self = self; | |
581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
582 | return NULL; | |
583 | if (_argo0) { | |
584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
587 | return NULL; | |
588 | } | |
589 | } | |
590 | { | |
591 | _arg4 = _obj4; | |
592 | } | |
593 | { | |
474c48f9 | 594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 595 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); |
2f90df85 | 596 | |
474c48f9 | 597 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 598 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
599 | } Py_INCREF(Py_None); |
600 | _resultobj = Py_None; | |
601 | return _resultobj; | |
602 | } | |
603 | ||
6999b0d8 RD |
604 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
605 | return self->Disconnect(id, lastId, eventType, | |
606 | (wxObjectEventFunction) | |
607 | &wxPyCallback::EventThunker); | |
608 | } | |
609 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
610 | PyObject * _resultobj; | |
611 | bool _result; | |
612 | wxEvtHandler * _arg0; | |
613 | int _arg1; | |
614 | int _arg2 = (int ) -1; | |
615 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
616 | PyObject * _argo0 = 0; | |
617 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
618 | ||
619 | self = self; | |
620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
621 | return NULL; | |
622 | if (_argo0) { | |
623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
626 | return NULL; | |
627 | } | |
628 | } | |
629 | { | |
474c48f9 | 630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 631 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); |
6999b0d8 | 632 | |
474c48f9 | 633 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 634 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
635 | } _resultobj = Py_BuildValue("i",_result); |
636 | return _resultobj; | |
637 | } | |
638 | ||
0220cbc1 | 639 | static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject * _self) { |
301dfd67 | 640 | self->SetClientObject(new wxPyOORClientData(_self)); |
0220cbc1 RD |
641 | } |
642 | static PyObject *_wrap_wxEvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
643 | PyObject * _resultobj; | |
644 | wxEvtHandler * _arg0; | |
645 | PyObject * _arg1; | |
646 | PyObject * _argo0 = 0; | |
647 | PyObject * _obj1 = 0; | |
648 | char *_kwnames[] = { "self","_self", NULL }; | |
649 | ||
650 | self = self; | |
651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler__setOORInfo",_kwnames,&_argo0,&_obj1)) | |
652 | return NULL; | |
653 | if (_argo0) { | |
654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p."); | |
657 | return NULL; | |
658 | } | |
659 | } | |
660 | { | |
661 | _arg1 = _obj1; | |
662 | } | |
663 | { | |
474c48f9 | 664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 665 | wxEvtHandler__setOORInfo(_arg0,_arg1); |
0220cbc1 | 666 | |
474c48f9 | 667 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
668 | if (PyErr_Occurred()) return NULL; |
669 | } Py_INCREF(Py_None); | |
670 | _resultobj = Py_None; | |
671 | return _resultobj; | |
672 | } | |
673 | ||
2f90df85 RD |
674 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
675 | wxValidator *src; | |
676 | wxEvtHandler *dest; | |
677 | src = (wxValidator *) ptr; | |
678 | dest = (wxEvtHandler *) src; | |
679 | return (void *) dest; | |
680 | } | |
681 | ||
9df61a29 RD |
682 | static void *SwigwxValidatorTowxObject(void *ptr) { |
683 | wxValidator *src; | |
684 | wxObject *dest; | |
685 | src = (wxValidator *) ptr; | |
686 | dest = (wxObject *) src; | |
687 | return (void *) dest; | |
688 | } | |
689 | ||
2f90df85 RD |
690 | #define new_wxValidator() (new wxValidator()) |
691 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
692 | PyObject * _resultobj; | |
693 | wxValidator * _result; | |
694 | char *_kwnames[] = { NULL }; | |
695 | char _ptemp[128]; | |
696 | ||
697 | self = self; | |
698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
699 | return NULL; | |
700 | { | |
474c48f9 | 701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 702 | _result = (wxValidator *)new_wxValidator(); |
2f90df85 | 703 | |
474c48f9 | 704 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 705 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
706 | } if (_result) { |
707 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
708 | _resultobj = Py_BuildValue("s",_ptemp); | |
709 | } else { | |
710 | Py_INCREF(Py_None); | |
711 | _resultobj = Py_None; | |
712 | } | |
713 | return _resultobj; | |
af309447 | 714 | } |
2f90df85 RD |
715 | |
716 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
717 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 718 | PyObject * _resultobj; |
2f90df85 RD |
719 | wxValidator * _result; |
720 | wxValidator * _arg0; | |
721 | PyObject * _argo0 = 0; | |
722 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
723 | |
724 | self = self; | |
2f90df85 RD |
725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
726 | return NULL; | |
727 | if (_argo0) { | |
728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 731 | return NULL; |
2f90df85 RD |
732 | } |
733 | } | |
cf694132 | 734 | { |
474c48f9 | 735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 736 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 | 737 | |
474c48f9 | 738 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 739 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 740 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
741 | return _resultobj; |
742 | } | |
743 | ||
2f90df85 RD |
744 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
745 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
746 | PyObject * _resultobj; |
747 | wxWindow * _result; | |
2f90df85 RD |
748 | wxValidator * _arg0; |
749 | PyObject * _argo0 = 0; | |
750 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
751 | |
752 | self = self; | |
2f90df85 RD |
753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
754 | return NULL; | |
755 | if (_argo0) { | |
756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 759 | return NULL; |
2f90df85 RD |
760 | } |
761 | } | |
cf694132 | 762 | { |
474c48f9 | 763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 764 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 | 765 | |
474c48f9 | 766 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 767 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 768 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
769 | return _resultobj; |
770 | } | |
771 | ||
2f90df85 RD |
772 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
773 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 774 | PyObject * _resultobj; |
2f90df85 RD |
775 | wxValidator * _arg0; |
776 | wxWindow * _arg1; | |
1d99702e RD |
777 | PyObject * _argo0 = 0; |
778 | PyObject * _argo1 = 0; | |
2f90df85 | 779 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
780 | |
781 | self = self; | |
2f90df85 | 782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 783 | return NULL; |
1d99702e RD |
784 | if (_argo0) { |
785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
788 | return NULL; |
789 | } | |
790 | } | |
1d99702e RD |
791 | if (_argo1) { |
792 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
793 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
795 | return NULL; |
796 | } | |
797 | } | |
798 | { | |
474c48f9 | 799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 800 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 | 801 | |
474c48f9 | 802 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 803 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
804 | } Py_INCREF(Py_None); |
805 | _resultobj = Py_None; | |
cf694132 RD |
806 | return _resultobj; |
807 | } | |
808 | ||
9df61a29 RD |
809 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { |
810 | PyObject * _resultobj; | |
811 | bool _result; | |
812 | char *_kwnames[] = { NULL }; | |
813 | ||
814 | self = self; | |
815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
816 | return NULL; | |
817 | { | |
474c48f9 | 818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 819 | _result = (bool )wxValidator::IsSilent(); |
9df61a29 | 820 | |
474c48f9 | 821 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 822 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
823 | } _resultobj = Py_BuildValue("i",_result); |
824 | return _resultobj; | |
825 | } | |
826 | ||
827 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
828 | PyObject * _resultobj; | |
829 | int _arg0 = (int ) TRUE; | |
830 | char *_kwnames[] = { "doIt", NULL }; | |
831 | ||
832 | self = self; | |
833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
834 | return NULL; | |
835 | { | |
474c48f9 | 836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 837 | wxValidator::SetBellOnError(_arg0); |
9df61a29 | 838 | |
474c48f9 | 839 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 840 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
841 | } Py_INCREF(Py_None); |
842 | _resultobj = Py_None; | |
843 | return _resultobj; | |
844 | } | |
845 | ||
2f90df85 RD |
846 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
847 | wxPyValidator *src; | |
848 | wxValidator *dest; | |
849 | src = (wxPyValidator *) ptr; | |
850 | dest = (wxValidator *) src; | |
851 | return (void *) dest; | |
852 | } | |
853 | ||
854 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
855 | wxPyValidator *src; | |
856 | wxEvtHandler *dest; | |
857 | src = (wxPyValidator *) ptr; | |
858 | dest = (wxEvtHandler *) src; | |
859 | return (void *) dest; | |
860 | } | |
861 | ||
9df61a29 RD |
862 | static void *SwigwxPyValidatorTowxObject(void *ptr) { |
863 | wxPyValidator *src; | |
864 | wxObject *dest; | |
865 | src = (wxPyValidator *) ptr; | |
866 | dest = (wxObject *) src; | |
867 | return (void *) dest; | |
868 | } | |
869 | ||
2f90df85 RD |
870 | #define new_wxPyValidator() (new wxPyValidator()) |
871 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
872 | PyObject * _resultobj; | |
873 | wxPyValidator * _result; | |
874 | char *_kwnames[] = { NULL }; | |
875 | char _ptemp[128]; | |
876 | ||
877 | self = self; | |
878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
879 | return NULL; | |
880 | { | |
474c48f9 | 881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 882 | _result = (wxPyValidator *)new_wxPyValidator(); |
2f90df85 | 883 | |
474c48f9 | 884 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 885 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
886 | } if (_result) { |
887 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
888 | _resultobj = Py_BuildValue("s",_ptemp); | |
889 | } else { | |
890 | Py_INCREF(Py_None); | |
891 | _resultobj = Py_None; | |
892 | } | |
893 | return _resultobj; | |
894 | } | |
895 | ||
0220cbc1 RD |
896 | #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2)) |
897 | static PyObject *_wrap_wxPyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 898 | PyObject * _resultobj; |
2f90df85 RD |
899 | wxPyValidator * _arg0; |
900 | PyObject * _arg1; | |
f6bcfd97 BP |
901 | PyObject * _arg2; |
902 | int _arg3 = (int ) TRUE; | |
1d99702e | 903 | PyObject * _argo0 = 0; |
2f90df85 | 904 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
905 | PyObject * _obj2 = 0; |
906 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
907 | |
908 | self = self; | |
0220cbc1 | 909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 910 | return NULL; |
1d99702e RD |
911 | if (_argo0) { |
912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 | 913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
0220cbc1 | 914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p."); |
8ab979d7 RD |
915 | return NULL; |
916 | } | |
917 | } | |
918 | { | |
2f90df85 | 919 | _arg1 = _obj1; |
8ab979d7 | 920 | } |
f6bcfd97 BP |
921 | { |
922 | _arg2 = _obj2; | |
923 | } | |
cf694132 | 924 | { |
474c48f9 | 925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 926 | wxPyValidator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 927 | |
474c48f9 | 928 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 929 | if (PyErr_Occurred()) return NULL; |
cf694132 | 930 | } Py_INCREF(Py_None); |
8ab979d7 RD |
931 | _resultobj = Py_None; |
932 | return _resultobj; | |
933 | } | |
934 | ||
935 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
936 | wxWindow *src; | |
937 | wxEvtHandler *dest; | |
938 | src = (wxWindow *) ptr; | |
939 | dest = (wxEvtHandler *) src; | |
940 | return (void *) dest; | |
941 | } | |
942 | ||
9df61a29 RD |
943 | static void *SwigwxWindowTowxObject(void *ptr) { |
944 | wxWindow *src; | |
945 | wxObject *dest; | |
946 | src = (wxWindow *) ptr; | |
947 | dest = (wxObject *) src; | |
948 | return (void *) dest; | |
949 | } | |
950 | ||
8ab979d7 | 951 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 952 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
953 | PyObject * _resultobj; |
954 | wxWindow * _result; | |
955 | wxWindow * _arg0; | |
956 | wxWindowID _arg1; | |
b68dc582 RD |
957 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
958 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 959 | long _arg4 = (long ) 0; |
9a74fcaf | 960 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 961 | PyObject * _argo0 = 0; |
2f90df85 RD |
962 | wxPoint temp; |
963 | PyObject * _obj2 = 0; | |
964 | wxSize temp0; | |
965 | PyObject * _obj3 = 0; | |
9a74fcaf | 966 | PyObject * _obj5 = 0; |
efc5f224 | 967 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
968 | char _ptemp[128]; |
969 | ||
970 | self = self; | |
9a74fcaf | 971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 972 | return NULL; |
1d99702e RD |
973 | if (_argo0) { |
974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
977 | return NULL; | |
978 | } | |
979 | } | |
2f90df85 RD |
980 | if (_obj2) |
981 | { | |
982 | _arg2 = &temp; | |
983 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 984 | return NULL; |
2f90df85 RD |
985 | } |
986 | if (_obj3) | |
987 | { | |
988 | _arg3 = &temp0; | |
989 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 990 | return NULL; |
9a74fcaf RD |
991 | } |
992 | if (_obj5) | |
993 | { | |
994 | _arg5 = wxString_in_helper(_obj5); | |
995 | if (_arg5 == NULL) | |
996 | return NULL; | |
2f90df85 | 997 | } |
cf694132 | 998 | { |
474c48f9 | 999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 1000 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 1001 | |
474c48f9 | 1002 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1003 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1004 | } if (_result) { |
1005 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1006 | _resultobj = Py_BuildValue("s",_ptemp); | |
1007 | } else { | |
1008 | Py_INCREF(Py_None); | |
1009 | _resultobj = Py_None; | |
1010 | } | |
9a74fcaf RD |
1011 | { |
1012 | if (_obj5) | |
1013 | delete _arg5; | |
1014 | } | |
8ab979d7 RD |
1015 | return _resultobj; |
1016 | } | |
1017 | ||
aa2a5b86 RD |
1018 | #define new_wxPreWindow() (new wxWindow()) |
1019 | static PyObject *_wrap_new_wxPreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1020 | PyObject * _resultobj; | |
1021 | wxWindow * _result; | |
1022 | char *_kwnames[] = { NULL }; | |
1023 | char _ptemp[128]; | |
1024 | ||
1025 | self = self; | |
1026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreWindow",_kwnames)) | |
1027 | return NULL; | |
1028 | { | |
474c48f9 | 1029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1030 | _result = (wxWindow *)new_wxPreWindow(); |
aa2a5b86 | 1031 | |
474c48f9 | 1032 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1033 | if (PyErr_Occurred()) return NULL; |
1034 | } if (_result) { | |
1035 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1036 | _resultobj = Py_BuildValue("s",_ptemp); | |
1037 | } else { | |
1038 | Py_INCREF(Py_None); | |
1039 | _resultobj = Py_None; | |
1040 | } | |
1041 | return _resultobj; | |
1042 | } | |
1043 | ||
1044 | #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1045 | static PyObject *_wrap_wxWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1046 | PyObject * _resultobj; | |
1047 | bool _result; | |
1048 | wxWindow * _arg0; | |
1049 | wxWindow * _arg1; | |
1050 | wxWindowID _arg2; | |
1051 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1052 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1053 | long _arg5 = (long ) 0; | |
9a74fcaf | 1054 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
aa2a5b86 RD |
1055 | PyObject * _argo0 = 0; |
1056 | PyObject * _argo1 = 0; | |
1057 | wxPoint temp; | |
1058 | PyObject * _obj3 = 0; | |
1059 | wxSize temp0; | |
1060 | PyObject * _obj4 = 0; | |
9a74fcaf | 1061 | PyObject * _obj6 = 0; |
aa2a5b86 RD |
1062 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
1063 | ||
1064 | self = self; | |
9a74fcaf | 1065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
aa2a5b86 RD |
1066 | return NULL; |
1067 | if (_argo0) { | |
1068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p."); | |
1071 | return NULL; | |
1072 | } | |
1073 | } | |
1074 | if (_argo1) { | |
1075 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1076 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p."); | |
1078 | return NULL; | |
1079 | } | |
1080 | } | |
1081 | if (_obj3) | |
1082 | { | |
1083 | _arg3 = &temp; | |
1084 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1085 | return NULL; | |
1086 | } | |
1087 | if (_obj4) | |
1088 | { | |
1089 | _arg4 = &temp0; | |
1090 | if (! wxSize_helper(_obj4, &_arg4)) | |
1091 | return NULL; | |
9a74fcaf RD |
1092 | } |
1093 | if (_obj6) | |
1094 | { | |
1095 | _arg6 = wxString_in_helper(_obj6); | |
1096 | if (_arg6 == NULL) | |
1097 | return NULL; | |
aa2a5b86 RD |
1098 | } |
1099 | { | |
474c48f9 | 1100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 1101 | _result = (bool )wxWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
aa2a5b86 | 1102 | |
474c48f9 | 1103 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1104 | if (PyErr_Occurred()) return NULL; |
1105 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
1106 | { |
1107 | if (_obj6) | |
1108 | delete _arg6; | |
1109 | } | |
aa2a5b86 RD |
1110 | return _resultobj; |
1111 | } | |
1112 | ||
8ab979d7 | 1113 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) |
efc5f224 | 1114 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1115 | PyObject * _resultobj; |
1116 | wxWindow * _arg0; | |
1d99702e RD |
1117 | int _arg1 = (int ) wxBOTH; |
1118 | PyObject * _argo0 = 0; | |
efc5f224 | 1119 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1120 | |
1121 | self = self; | |
efc5f224 | 1122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1123 | return NULL; |
1d99702e RD |
1124 | if (_argo0) { |
1125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
1128 | return NULL; | |
1129 | } | |
1130 | } | |
cf694132 | 1131 | { |
474c48f9 | 1132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1133 | wxWindow_Center(_arg0,_arg1); |
cf694132 | 1134 | |
474c48f9 | 1135 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1136 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1137 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1138 | _resultobj = Py_None; |
1139 | return _resultobj; | |
1140 | } | |
1141 | ||
1142 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 1143 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1144 | PyObject * _resultobj; |
1145 | wxWindow * _arg0; | |
1d99702e RD |
1146 | int _arg1 = (int ) wxBOTH; |
1147 | PyObject * _argo0 = 0; | |
efc5f224 | 1148 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1149 | |
1150 | self = self; | |
efc5f224 | 1151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1152 | return NULL; |
1d99702e RD |
1153 | if (_argo0) { |
1154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
1157 | return NULL; | |
1158 | } | |
1159 | } | |
cf694132 | 1160 | { |
474c48f9 | 1161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1162 | wxWindow_Centre(_arg0,_arg1); |
cf694132 | 1163 | |
474c48f9 | 1164 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1165 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1166 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1167 | _resultobj = Py_None; |
1168 | return _resultobj; | |
1169 | } | |
1170 | ||
bb0054cd | 1171 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 1172 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1173 | PyObject * _resultobj; |
1174 | wxWindow * _arg0; | |
1d99702e RD |
1175 | int _arg1 = (int ) wxBOTH; |
1176 | PyObject * _argo0 = 0; | |
efc5f224 | 1177 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1178 | |
1179 | self = self; | |
efc5f224 | 1180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1181 | return NULL; |
1d99702e RD |
1182 | if (_argo0) { |
1183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
1186 | return NULL; | |
1187 | } | |
1188 | } | |
1189 | { | |
474c48f9 | 1190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1191 | wxWindow_CentreOnParent(_arg0,_arg1); |
bb0054cd | 1192 | |
474c48f9 | 1193 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1194 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1195 | } Py_INCREF(Py_None); |
1196 | _resultobj = Py_None; | |
1197 | return _resultobj; | |
1198 | } | |
1199 | ||
1200 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 1201 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1202 | PyObject * _resultobj; |
1203 | wxWindow * _arg0; | |
1d99702e RD |
1204 | int _arg1 = (int ) wxBOTH; |
1205 | PyObject * _argo0 = 0; | |
efc5f224 | 1206 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1207 | |
1208 | self = self; | |
efc5f224 | 1209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1210 | return NULL; |
1d99702e RD |
1211 | if (_argo0) { |
1212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
1215 | return NULL; | |
1216 | } | |
1217 | } | |
1218 | { | |
474c48f9 | 1219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1220 | wxWindow_CenterOnParent(_arg0,_arg1); |
bb0054cd | 1221 | |
474c48f9 | 1222 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1223 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1224 | } Py_INCREF(Py_None); |
1225 | _resultobj = Py_None; | |
1226 | return _resultobj; | |
1227 | } | |
1228 | ||
3ca6a5f0 BP |
1229 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
1230 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1231 | PyObject * _resultobj; | |
1232 | wxWindow * _arg0; | |
1233 | int _arg1 = (int ) wxBOTH; | |
1234 | PyObject * _argo0 = 0; | |
1235 | char *_kwnames[] = { "self","direction", NULL }; | |
1236 | ||
1237 | self = self; | |
1238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1239 | return NULL; | |
1240 | if (_argo0) { | |
1241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1244 | return NULL; | |
1245 | } | |
1246 | } | |
1247 | { | |
474c48f9 | 1248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1249 | wxWindow_CentreOnScreen(_arg0,_arg1); |
3ca6a5f0 | 1250 | |
474c48f9 | 1251 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1252 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1253 | } Py_INCREF(Py_None); |
1254 | _resultobj = Py_None; | |
1255 | return _resultobj; | |
1256 | } | |
1257 | ||
1258 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1259 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1260 | PyObject * _resultobj; | |
1261 | wxWindow * _arg0; | |
1262 | int _arg1 = (int ) wxBOTH; | |
1263 | PyObject * _argo0 = 0; | |
1264 | char *_kwnames[] = { "self","direction", NULL }; | |
1265 | ||
1266 | self = self; | |
1267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1268 | return NULL; | |
1269 | if (_argo0) { | |
1270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1273 | return NULL; | |
1274 | } | |
1275 | } | |
1276 | { | |
474c48f9 | 1277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1278 | wxWindow_CenterOnScreen(_arg0,_arg1); |
3ca6a5f0 | 1279 | |
474c48f9 | 1280 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1281 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1282 | } Py_INCREF(Py_None); |
1283 | _resultobj = Py_None; | |
1284 | return _resultobj; | |
1285 | } | |
1286 | ||
9d6da64a RD |
1287 | #define wxWindow_Clear(_swigobj) (_swigobj->Clear()) |
1288 | static PyObject *_wrap_wxWindow_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1289 | PyObject * _resultobj; | |
1290 | wxWindow * _arg0; | |
1291 | PyObject * _argo0 = 0; | |
1292 | char *_kwnames[] = { "self", NULL }; | |
1293 | ||
1294 | self = self; | |
1295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Clear",_kwnames,&_argo0)) | |
1296 | return NULL; | |
1297 | if (_argo0) { | |
1298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p."); | |
1301 | return NULL; | |
1302 | } | |
1303 | } | |
1304 | { | |
474c48f9 | 1305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1306 | wxWindow_Clear(_arg0); |
9d6da64a | 1307 | |
474c48f9 | 1308 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
1309 | if (PyErr_Occurred()) return NULL; |
1310 | } Py_INCREF(Py_None); | |
1311 | _resultobj = Py_None; | |
1312 | return _resultobj; | |
1313 | } | |
1314 | ||
af309447 | 1315 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1316 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1317 | PyObject * _resultobj; |
1318 | wxWindow * _arg0; | |
1319 | int * _arg1; | |
1320 | int * _arg2; | |
1d99702e | 1321 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1322 | int temp; |
1323 | PyObject * _obj1 = 0; | |
1324 | int temp0; | |
1325 | PyObject * _obj2 = 0; | |
efc5f224 | 1326 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1327 | |
1328 | self = self; | |
efc5f224 | 1329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1330 | return NULL; |
1d99702e RD |
1331 | if (_argo0) { |
1332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1335 | return NULL; |
1336 | } | |
1337 | } | |
1338 | { | |
1339 | temp = (int) PyInt_AsLong(_obj1); | |
1340 | _arg1 = &temp; | |
1341 | } | |
1342 | { | |
1343 | temp0 = (int) PyInt_AsLong(_obj2); | |
1344 | _arg2 = &temp0; | |
1345 | } | |
cf694132 | 1346 | { |
474c48f9 | 1347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1348 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); |
cf694132 | 1349 | |
474c48f9 | 1350 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1351 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1352 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1353 | _resultobj = Py_None; |
1354 | { | |
1355 | PyObject *o; | |
1356 | o = PyInt_FromLong((long) (*_arg1)); | |
1357 | _resultobj = t_output_helper(_resultobj, o); | |
1358 | } | |
1359 | { | |
1360 | PyObject *o; | |
1361 | o = PyInt_FromLong((long) (*_arg2)); | |
1362 | _resultobj = t_output_helper(_resultobj, o); | |
1363 | } | |
1364 | return _resultobj; | |
1365 | } | |
1366 | ||
af309447 | 1367 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1368 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1369 | PyObject * _resultobj; |
1370 | wxPoint * _result; | |
1371 | wxWindow * _arg0; | |
1372 | wxPoint * _arg1; | |
1d99702e | 1373 | PyObject * _argo0 = 0; |
2f90df85 RD |
1374 | wxPoint temp; |
1375 | PyObject * _obj1 = 0; | |
efc5f224 | 1376 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1377 | char _ptemp[128]; |
1378 | ||
1379 | self = self; | |
2f90df85 | 1380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1381 | return NULL; |
1d99702e RD |
1382 | if (_argo0) { |
1383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1386 | return NULL; | |
1387 | } | |
1388 | } | |
2f90df85 RD |
1389 | { |
1390 | _arg1 = &temp; | |
1391 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1392 | return NULL; |
2f90df85 | 1393 | } |
cf694132 | 1394 | { |
474c48f9 | 1395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1396 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); |
cf694132 | 1397 | |
474c48f9 | 1398 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1399 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1400 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
1401 | _resultobj = Py_BuildValue("s",_ptemp); |
1402 | return _resultobj; | |
1403 | } | |
1404 | ||
8ab979d7 | 1405 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1406 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1407 | PyObject * _resultobj; |
1408 | bool _result; | |
1409 | wxWindow * _arg0; | |
1d99702e RD |
1410 | int _arg1 = (int ) FALSE; |
1411 | PyObject * _argo0 = 0; | |
efc5f224 | 1412 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1413 | |
1414 | self = self; | |
efc5f224 | 1415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1416 | return NULL; |
1d99702e RD |
1417 | if (_argo0) { |
1418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1421 | return NULL; | |
1422 | } | |
1423 | } | |
cf694132 | 1424 | { |
474c48f9 | 1425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1426 | _result = (bool )wxWindow_Close(_arg0,_arg1); |
cf694132 | 1427 | |
474c48f9 | 1428 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1429 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1430 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1431 | return _resultobj; |
1432 | } | |
1433 | ||
1434 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1435 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1436 | PyObject * _resultobj; |
1437 | bool _result; | |
1438 | wxWindow * _arg0; | |
1d99702e | 1439 | PyObject * _argo0 = 0; |
efc5f224 | 1440 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1441 | |
1442 | self = self; | |
efc5f224 | 1443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1444 | return NULL; |
1d99702e RD |
1445 | if (_argo0) { |
1446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1449 | return NULL; | |
1450 | } | |
1451 | } | |
cf694132 | 1452 | { |
474c48f9 | 1453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1454 | _result = (bool )wxWindow_Destroy(_arg0); |
cf694132 | 1455 | |
474c48f9 | 1456 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1457 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1458 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1459 | return _resultobj; |
1460 | } | |
1461 | ||
1462 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1463 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1464 | PyObject * _resultobj; |
1465 | wxWindow * _arg0; | |
1d99702e | 1466 | PyObject * _argo0 = 0; |
efc5f224 | 1467 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1468 | |
1469 | self = self; | |
efc5f224 | 1470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1471 | return NULL; |
1d99702e RD |
1472 | if (_argo0) { |
1473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1476 | return NULL; | |
1477 | } | |
1478 | } | |
cf694132 | 1479 | { |
474c48f9 | 1480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1481 | wxWindow_DestroyChildren(_arg0); |
cf694132 | 1482 | |
474c48f9 | 1483 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1484 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1485 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1486 | _resultobj = Py_None; |
1487 | return _resultobj; | |
1488 | } | |
1489 | ||
4dfaa61e RD |
1490 | #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted()) |
1491 | static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1492 | PyObject * _resultobj; | |
1493 | bool _result; | |
1494 | wxWindow * _arg0; | |
1495 | PyObject * _argo0 = 0; | |
1496 | char *_kwnames[] = { "self", NULL }; | |
1497 | ||
1498 | self = self; | |
1499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0)) | |
1500 | return NULL; | |
1501 | if (_argo0) { | |
1502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p."); | |
1505 | return NULL; | |
1506 | } | |
1507 | } | |
1508 | { | |
474c48f9 | 1509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1510 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); |
4dfaa61e | 1511 | |
474c48f9 | 1512 | wxPyEndAllowThreads(__tstate); |
4dfaa61e RD |
1513 | if (PyErr_Occurred()) return NULL; |
1514 | } _resultobj = Py_BuildValue("i",_result); | |
1515 | return _resultobj; | |
1516 | } | |
1517 | ||
8ab979d7 | 1518 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) |
efc5f224 | 1519 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1520 | PyObject * _resultobj; |
1521 | wxWindow * _arg0; | |
1522 | bool _arg1; | |
1d99702e | 1523 | PyObject * _argo0 = 0; |
8ab979d7 | 1524 | int tempbool1; |
efc5f224 | 1525 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1526 | |
1527 | self = self; | |
efc5f224 | 1528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1529 | return NULL; |
1d99702e RD |
1530 | if (_argo0) { |
1531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1534 | return NULL; | |
1535 | } | |
1536 | } | |
1537 | _arg1 = (bool ) tempbool1; | |
cf694132 | 1538 | { |
474c48f9 | 1539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1540 | wxWindow_Enable(_arg0,_arg1); |
cf694132 | 1541 | |
474c48f9 | 1542 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1543 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1544 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1545 | _resultobj = Py_None; |
1546 | return _resultobj; | |
1547 | } | |
1548 | ||
b67a9327 RD |
1549 | #define wxWindow_Disable(_swigobj) (_swigobj->Disable()) |
1550 | static PyObject *_wrap_wxWindow_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1551 | PyObject * _resultobj; | |
1552 | wxWindow * _arg0; | |
1553 | PyObject * _argo0 = 0; | |
1554 | char *_kwnames[] = { "self", NULL }; | |
1555 | ||
1556 | self = self; | |
1557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Disable",_kwnames,&_argo0)) | |
1558 | return NULL; | |
1559 | if (_argo0) { | |
1560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Disable. Expected _wxWindow_p."); | |
1563 | return NULL; | |
1564 | } | |
1565 | } | |
1566 | { | |
1567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1568 | wxWindow_Disable(_arg0); | |
1569 | ||
1570 | wxPyEndAllowThreads(__tstate); | |
1571 | if (PyErr_Occurred()) return NULL; | |
1572 | } Py_INCREF(Py_None); | |
1573 | _resultobj = Py_None; | |
1574 | return _resultobj; | |
1575 | } | |
1576 | ||
af309447 | 1577 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1578 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1579 | PyObject * _resultobj; |
1580 | wxWindow * _result; | |
1581 | wxWindow * _arg0; | |
1582 | long _arg1; | |
1d99702e | 1583 | PyObject * _argo0 = 0; |
efc5f224 | 1584 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1585 | |
1586 | self = self; | |
efc5f224 | 1587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1588 | return NULL; |
1d99702e RD |
1589 | if (_argo0) { |
1590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1593 | return NULL; |
1594 | } | |
1595 | } | |
cf694132 | 1596 | { |
474c48f9 | 1597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1598 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); |
cf694132 | 1599 | |
474c48f9 | 1600 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1601 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1602 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1603 | return _resultobj; |
1604 | } | |
1605 | ||
1606 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1607 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1608 | PyObject * _resultobj; |
1609 | wxWindow * _result; | |
1610 | wxWindow * _arg0; | |
1611 | wxString * _arg1; | |
1d99702e | 1612 | PyObject * _argo0 = 0; |
8ab979d7 | 1613 | PyObject * _obj1 = 0; |
efc5f224 | 1614 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1615 | |
1616 | self = self; | |
efc5f224 | 1617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1618 | return NULL; |
1d99702e RD |
1619 | if (_argo0) { |
1620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1623 | return NULL; | |
1624 | } | |
1625 | } | |
1626 | { | |
c8bc7bb8 RD |
1627 | _arg1 = wxString_in_helper(_obj1); |
1628 | if (_arg1 == NULL) | |
8ab979d7 | 1629 | return NULL; |
8ab979d7 | 1630 | } |
cf694132 | 1631 | { |
474c48f9 | 1632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1633 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); |
cf694132 | 1634 | |
474c48f9 | 1635 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1636 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1637 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1638 | { |
1639 | if (_obj1) | |
1640 | delete _arg1; | |
1641 | } | |
1642 | return _resultobj; | |
1643 | } | |
1644 | ||
1645 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1646 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1647 | PyObject * _resultobj; |
1648 | wxWindow * _arg0; | |
1d99702e | 1649 | PyObject * _argo0 = 0; |
efc5f224 | 1650 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1651 | |
1652 | self = self; | |
efc5f224 | 1653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1654 | return NULL; |
1d99702e RD |
1655 | if (_argo0) { |
1656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1659 | return NULL; | |
1660 | } | |
1661 | } | |
cf694132 | 1662 | { |
474c48f9 | 1663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1664 | wxWindow_Fit(_arg0); |
cf694132 | 1665 | |
474c48f9 | 1666 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1667 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1668 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1669 | _resultobj = Py_None; |
1670 | return _resultobj; | |
1671 | } | |
1672 | ||
b67a9327 RD |
1673 | #define wxWindow_FitInside(_swigobj) (_swigobj->FitInside()) |
1674 | static PyObject *_wrap_wxWindow_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1675 | PyObject * _resultobj; | |
1676 | wxWindow * _arg0; | |
1677 | PyObject * _argo0 = 0; | |
1678 | char *_kwnames[] = { "self", NULL }; | |
1679 | ||
1680 | self = self; | |
1681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_FitInside",_kwnames,&_argo0)) | |
1682 | return NULL; | |
1683 | if (_argo0) { | |
1684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FitInside. Expected _wxWindow_p."); | |
1687 | return NULL; | |
1688 | } | |
1689 | } | |
1690 | { | |
1691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1692 | wxWindow_FitInside(_arg0); | |
1693 | ||
1694 | wxPyEndAllowThreads(__tstate); | |
1695 | if (PyErr_Occurred()) return NULL; | |
1696 | } Py_INCREF(Py_None); | |
1697 | _resultobj = Py_None; | |
1698 | return _resultobj; | |
1699 | } | |
1700 | ||
8ab979d7 | 1701 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
efc5f224 | 1702 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1703 | PyObject * _resultobj; |
1704 | wxColour * _result; | |
1705 | wxWindow * _arg0; | |
1d99702e | 1706 | PyObject * _argo0 = 0; |
efc5f224 | 1707 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1708 | char _ptemp[128]; |
1709 | ||
1710 | self = self; | |
efc5f224 | 1711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1712 | return NULL; |
1d99702e RD |
1713 | if (_argo0) { |
1714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1717 | return NULL; | |
1718 | } | |
1719 | } | |
cf694132 | 1720 | { |
474c48f9 | 1721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1722 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); |
cf694132 | 1723 | |
474c48f9 | 1724 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1725 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1726 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1727 | _resultobj = Py_BuildValue("s",_ptemp); |
1728 | return _resultobj; | |
1729 | } | |
1730 | ||
8cb49012 RD |
1731 | #define wxWindow_GetBorder(_swigobj) (_swigobj->GetBorder()) |
1732 | static PyObject *_wrap_wxWindow_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1733 | PyObject * _resultobj; | |
1734 | wxBorder _result; | |
1735 | wxWindow * _arg0; | |
1736 | PyObject * _argo0 = 0; | |
1737 | char *_kwnames[] = { "self", NULL }; | |
1738 | ||
1739 | self = self; | |
1740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBorder",_kwnames,&_argo0)) | |
1741 | return NULL; | |
1742 | if (_argo0) { | |
1743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBorder. Expected _wxWindow_p."); | |
1746 | return NULL; | |
1747 | } | |
1748 | } | |
1749 | { | |
1750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1751 | _result = (wxBorder )wxWindow_GetBorder(_arg0); |
8cb49012 RD |
1752 | |
1753 | wxPyEndAllowThreads(__tstate); | |
1754 | if (PyErr_Occurred()) return NULL; | |
1755 | } _resultobj = Py_BuildValue("i",_result); | |
1756 | return _resultobj; | |
1757 | } | |
1758 | ||
d426c97e RD |
1759 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1760 | wxWindowList& list = self->GetChildren(); | |
1761 | return wxPy_ConvertList(&list, "wxWindow"); | |
1762 | } | |
1763 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1764 | PyObject * _resultobj; | |
1765 | PyObject * _result; | |
1766 | wxWindow * _arg0; | |
1767 | PyObject * _argo0 = 0; | |
1768 | char *_kwnames[] = { "self", NULL }; | |
1769 | ||
1770 | self = self; | |
1771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1772 | return NULL; | |
1773 | if (_argo0) { | |
1774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1777 | return NULL; | |
1778 | } | |
1779 | } | |
1780 | { | |
474c48f9 | 1781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1782 | _result = (PyObject *)wxWindow_GetChildren(_arg0); |
d426c97e | 1783 | |
474c48f9 | 1784 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1785 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
1786 | }{ |
1787 | _resultobj = _result; | |
1788 | } | |
1789 | return _resultobj; | |
1790 | } | |
1791 | ||
8ab979d7 | 1792 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1793 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1794 | PyObject * _resultobj; |
1795 | int _result; | |
1796 | wxWindow * _arg0; | |
1d99702e | 1797 | PyObject * _argo0 = 0; |
efc5f224 | 1798 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1799 | |
1800 | self = self; | |
efc5f224 | 1801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1802 | return NULL; |
1d99702e RD |
1803 | if (_argo0) { |
1804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1807 | return NULL; | |
1808 | } | |
1809 | } | |
cf694132 | 1810 | { |
474c48f9 | 1811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1812 | _result = (int )wxWindow_GetCharHeight(_arg0); |
cf694132 | 1813 | |
474c48f9 | 1814 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1815 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1816 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1817 | return _resultobj; |
1818 | } | |
1819 | ||
1820 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1821 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1822 | PyObject * _resultobj; |
1823 | int _result; | |
1824 | wxWindow * _arg0; | |
1d99702e | 1825 | PyObject * _argo0 = 0; |
efc5f224 | 1826 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1827 | |
1828 | self = self; | |
efc5f224 | 1829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1830 | return NULL; |
1d99702e RD |
1831 | if (_argo0) { |
1832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1833 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1835 | return NULL; | |
1836 | } | |
1837 | } | |
cf694132 | 1838 | { |
474c48f9 | 1839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1840 | _result = (int )wxWindow_GetCharWidth(_arg0); |
cf694132 | 1841 | |
474c48f9 | 1842 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1843 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1844 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1845 | return _resultobj; |
1846 | } | |
1847 | ||
b8b8dda7 | 1848 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1849 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1850 | PyObject * _resultobj; |
1851 | wxWindow * _arg0; | |
1852 | int * _arg1; | |
1853 | int temp; | |
1854 | int * _arg2; | |
1855 | int temp0; | |
1d99702e | 1856 | PyObject * _argo0 = 0; |
efc5f224 | 1857 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1858 | |
1859 | self = self; | |
1860 | { | |
1861 | _arg1 = &temp; | |
1862 | } | |
1863 | { | |
1864 | _arg2 = &temp0; | |
1865 | } | |
efc5f224 | 1866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1867 | return NULL; |
1d99702e RD |
1868 | if (_argo0) { |
1869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1872 | return NULL; |
1873 | } | |
1874 | } | |
cf694132 | 1875 | { |
474c48f9 | 1876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1877 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 1878 | |
474c48f9 | 1879 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1880 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1881 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1882 | _resultobj = Py_None; |
1883 | { | |
1884 | PyObject *o; | |
1885 | o = PyInt_FromLong((long) (*_arg1)); | |
1886 | _resultobj = t_output_helper(_resultobj, o); | |
1887 | } | |
1888 | { | |
1889 | PyObject *o; | |
1890 | o = PyInt_FromLong((long) (*_arg2)); | |
1891 | _resultobj = t_output_helper(_resultobj, o); | |
1892 | } | |
1893 | return _resultobj; | |
1894 | } | |
1895 | ||
b8b8dda7 | 1896 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1897 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1898 | PyObject * _resultobj; |
1899 | wxSize * _result; | |
1900 | wxWindow * _arg0; | |
1d99702e | 1901 | PyObject * _argo0 = 0; |
efc5f224 | 1902 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1903 | char _ptemp[128]; |
1904 | ||
1905 | self = self; | |
efc5f224 | 1906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1907 | return NULL; |
1d99702e RD |
1908 | if (_argo0) { |
1909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1912 | return NULL; | |
1913 | } | |
1914 | } | |
cf694132 | 1915 | { |
474c48f9 | 1916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1917 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); |
cf694132 | 1918 | |
474c48f9 | 1919 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1920 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1921 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
1922 | _resultobj = Py_BuildValue("s",_ptemp); |
1923 | return _resultobj; | |
1924 | } | |
1925 | ||
8cb49012 RD |
1926 | #define wxWindow_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin()) |
1927 | static PyObject *_wrap_wxWindow_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1928 | PyObject * _resultobj; | |
1929 | wxPoint * _result; | |
1930 | wxWindow * _arg0; | |
1931 | PyObject * _argo0 = 0; | |
1932 | char *_kwnames[] = { "self", NULL }; | |
1933 | char _ptemp[128]; | |
1934 | ||
1935 | self = self; | |
1936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientAreaOrigin",_kwnames,&_argo0)) | |
1937 | return NULL; | |
1938 | if (_argo0) { | |
1939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientAreaOrigin. Expected _wxWindow_p."); | |
1942 | return NULL; | |
1943 | } | |
1944 | } | |
1945 | { | |
1946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1947 | _result = new wxPoint (wxWindow_GetClientAreaOrigin(_arg0)); |
8cb49012 RD |
1948 | |
1949 | wxPyEndAllowThreads(__tstate); | |
1950 | if (PyErr_Occurred()) return NULL; | |
1951 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1952 | _resultobj = Py_BuildValue("s",_ptemp); | |
1953 | return _resultobj; | |
1954 | } | |
1955 | ||
1956 | #define wxWindow_GetClientRect(_swigobj) (_swigobj->GetClientRect()) | |
1957 | static PyObject *_wrap_wxWindow_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1958 | PyObject * _resultobj; | |
1959 | wxRect * _result; | |
1960 | wxWindow * _arg0; | |
1961 | PyObject * _argo0 = 0; | |
1962 | char *_kwnames[] = { "self", NULL }; | |
1963 | char _ptemp[128]; | |
1964 | ||
1965 | self = self; | |
1966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientRect",_kwnames,&_argo0)) | |
1967 | return NULL; | |
1968 | if (_argo0) { | |
1969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientRect. Expected _wxWindow_p."); | |
1972 | return NULL; | |
1973 | } | |
1974 | } | |
1975 | { | |
1976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1977 | _result = new wxRect (wxWindow_GetClientRect(_arg0)); |
8cb49012 RD |
1978 | |
1979 | wxPyEndAllowThreads(__tstate); | |
1980 | if (PyErr_Occurred()) return NULL; | |
1981 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
1982 | _resultobj = Py_BuildValue("s",_ptemp); | |
1983 | return _resultobj; | |
1984 | } | |
1985 | ||
8ab979d7 | 1986 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1987 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1988 | PyObject * _resultobj; |
1989 | wxLayoutConstraints * _result; | |
1990 | wxWindow * _arg0; | |
1d99702e | 1991 | PyObject * _argo0 = 0; |
efc5f224 | 1992 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1993 | char _ptemp[128]; |
1994 | ||
1995 | self = self; | |
efc5f224 | 1996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1997 | return NULL; |
1d99702e RD |
1998 | if (_argo0) { |
1999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
2002 | return NULL; | |
2003 | } | |
2004 | } | |
cf694132 | 2005 | { |
474c48f9 | 2006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2007 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); |
cf694132 | 2008 | |
474c48f9 | 2009 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2010 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
2011 | } if (_result) { |
2012 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
2013 | _resultobj = Py_BuildValue("s",_ptemp); | |
2014 | } else { | |
2015 | Py_INCREF(Py_None); | |
2016 | _resultobj = Py_None; | |
2017 | } | |
8ab979d7 RD |
2018 | return _resultobj; |
2019 | } | |
2020 | ||
1afc06c2 RD |
2021 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
2022 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2023 | PyObject * _resultobj; | |
2024 | wxEvtHandler * _result; | |
2025 | wxWindow * _arg0; | |
2026 | PyObject * _argo0 = 0; | |
2027 | char *_kwnames[] = { "self", NULL }; | |
1afc06c2 RD |
2028 | |
2029 | self = self; | |
2030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
2031 | return NULL; | |
2032 | if (_argo0) { | |
2033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
2036 | return NULL; | |
2037 | } | |
2038 | } | |
2039 | { | |
474c48f9 | 2040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2041 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); |
1afc06c2 | 2042 | |
474c48f9 | 2043 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2044 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2045 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
2046 | return _resultobj; |
2047 | } | |
2048 | ||
8ab979d7 | 2049 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 2050 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2051 | PyObject * _resultobj; |
2052 | wxFont * _result; | |
2053 | wxWindow * _arg0; | |
1d99702e | 2054 | PyObject * _argo0 = 0; |
efc5f224 | 2055 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2056 | char _ptemp[128]; |
2057 | ||
2058 | self = self; | |
efc5f224 | 2059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 2060 | return NULL; |
1d99702e RD |
2061 | if (_argo0) { |
2062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
2065 | return NULL; | |
2066 | } | |
2067 | } | |
cf694132 | 2068 | { |
474c48f9 | 2069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2070 | _result = new wxFont (wxWindow_GetFont(_arg0)); |
cf694132 | 2071 | |
474c48f9 | 2072 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2073 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
2074 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
2075 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2076 | return _resultobj; |
2077 | } | |
2078 | ||
2079 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 2080 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2081 | PyObject * _resultobj; |
2082 | wxColour * _result; | |
2083 | wxWindow * _arg0; | |
1d99702e | 2084 | PyObject * _argo0 = 0; |
efc5f224 | 2085 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2086 | char _ptemp[128]; |
2087 | ||
2088 | self = self; | |
efc5f224 | 2089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 2090 | return NULL; |
1d99702e RD |
2091 | if (_argo0) { |
2092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
2095 | return NULL; | |
2096 | } | |
2097 | } | |
cf694132 | 2098 | { |
474c48f9 | 2099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2100 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); |
cf694132 | 2101 | |
474c48f9 | 2102 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2103 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2104 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
2105 | _resultobj = Py_BuildValue("s",_ptemp); |
2106 | return _resultobj; | |
2107 | } | |
2108 | ||
2109 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 2110 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2111 | PyObject * _resultobj; |
2112 | wxWindow * _result; | |
2113 | wxWindow * _arg0; | |
1d99702e | 2114 | PyObject * _argo0 = 0; |
efc5f224 | 2115 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2116 | |
2117 | self = self; | |
efc5f224 | 2118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 2119 | return NULL; |
1d99702e RD |
2120 | if (_argo0) { |
2121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
2124 | return NULL; | |
2125 | } | |
2126 | } | |
cf694132 | 2127 | { |
474c48f9 | 2128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2129 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); |
cf694132 | 2130 | |
474c48f9 | 2131 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2132 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2133 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2134 | return _resultobj; |
2135 | } | |
2136 | ||
2abc0a0f | 2137 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 2138 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
2139 | } |
2140 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2141 | PyObject * _resultobj; | |
2142 | long _result; | |
2143 | wxWindow * _arg0; | |
2144 | PyObject * _argo0 = 0; | |
2145 | char *_kwnames[] = { "self", NULL }; | |
2146 | ||
2147 | self = self; | |
2148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
2149 | return NULL; | |
2150 | if (_argo0) { | |
2151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
2154 | return NULL; | |
2155 | } | |
2156 | } | |
2157 | { | |
474c48f9 | 2158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2159 | _result = (long )wxWindow_GetHandle(_arg0); |
2abc0a0f | 2160 | |
474c48f9 | 2161 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2162 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
2163 | } _resultobj = Py_BuildValue("l",_result); |
2164 | return _resultobj; | |
2165 | } | |
2166 | ||
8ab979d7 | 2167 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 2168 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2169 | PyObject * _resultobj; |
2170 | int _result; | |
2171 | wxWindow * _arg0; | |
1d99702e | 2172 | PyObject * _argo0 = 0; |
efc5f224 | 2173 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2174 | |
2175 | self = self; | |
efc5f224 | 2176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 2177 | return NULL; |
1d99702e RD |
2178 | if (_argo0) { |
2179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
2182 | return NULL; | |
2183 | } | |
2184 | } | |
cf694132 | 2185 | { |
474c48f9 | 2186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2187 | _result = (int )wxWindow_GetId(_arg0); |
cf694132 | 2188 | |
474c48f9 | 2189 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2190 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2191 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2192 | return _resultobj; |
2193 | } | |
2194 | ||
8ab979d7 | 2195 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 2196 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2197 | PyObject * _resultobj; |
2198 | wxString * _result; | |
2199 | wxWindow * _arg0; | |
1d99702e | 2200 | PyObject * _argo0 = 0; |
efc5f224 | 2201 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2202 | |
2203 | self = self; | |
efc5f224 | 2204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 2205 | return NULL; |
1d99702e RD |
2206 | if (_argo0) { |
2207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
2210 | return NULL; | |
2211 | } | |
2212 | } | |
8ab979d7 | 2213 | { |
474c48f9 | 2214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2215 | _result = new wxString (wxWindow_GetLabel(_arg0)); |
cf694132 | 2216 | |
474c48f9 | 2217 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2218 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2219 | }{ |
c8bc7bb8 | 2220 | #if wxUSE_UNICODE |
b67a9327 | 2221 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2222 | #else |
eec92d76 | 2223 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2224 | #endif |
8ab979d7 RD |
2225 | } |
2226 | { | |
2227 | delete _result; | |
2228 | } | |
2229 | return _resultobj; | |
2230 | } | |
2231 | ||
bb0054cd | 2232 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 2233 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2234 | PyObject * _resultobj; |
2235 | wxWindow * _arg0; | |
2236 | wxString * _arg1; | |
1d99702e | 2237 | PyObject * _argo0 = 0; |
bb0054cd | 2238 | PyObject * _obj1 = 0; |
efc5f224 | 2239 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
2240 | |
2241 | self = self; | |
efc5f224 | 2242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 2243 | return NULL; |
1d99702e RD |
2244 | if (_argo0) { |
2245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
2248 | return NULL; | |
2249 | } | |
2250 | } | |
2251 | { | |
c8bc7bb8 RD |
2252 | _arg1 = wxString_in_helper(_obj1); |
2253 | if (_arg1 == NULL) | |
bb0054cd | 2254 | return NULL; |
bb0054cd RD |
2255 | } |
2256 | { | |
474c48f9 | 2257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2258 | wxWindow_SetLabel(_arg0,*_arg1); |
bb0054cd | 2259 | |
474c48f9 | 2260 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2261 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2262 | } Py_INCREF(Py_None); |
2263 | _resultobj = Py_None; | |
2264 | { | |
2265 | if (_obj1) | |
2266 | delete _arg1; | |
2267 | } | |
2268 | return _resultobj; | |
2269 | } | |
2270 | ||
8ab979d7 | 2271 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2272 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2273 | PyObject * _resultobj; |
2274 | wxString * _result; | |
2275 | wxWindow * _arg0; | |
1d99702e | 2276 | PyObject * _argo0 = 0; |
efc5f224 | 2277 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2278 | |
2279 | self = self; | |
efc5f224 | 2280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2281 | return NULL; |
1d99702e RD |
2282 | if (_argo0) { |
2283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2286 | return NULL; | |
2287 | } | |
2288 | } | |
8ab979d7 | 2289 | { |
474c48f9 | 2290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2291 | _result = new wxString (wxWindow_GetName(_arg0)); |
cf694132 | 2292 | |
474c48f9 | 2293 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2294 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2295 | }{ |
c8bc7bb8 | 2296 | #if wxUSE_UNICODE |
b67a9327 | 2297 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2298 | #else |
eec92d76 | 2299 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2300 | #endif |
8ab979d7 RD |
2301 | } |
2302 | { | |
2303 | delete _result; | |
2304 | } | |
2305 | return _resultobj; | |
2306 | } | |
2307 | ||
2308 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2309 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2310 | PyObject * _resultobj; |
2311 | wxWindow * _result; | |
2312 | wxWindow * _arg0; | |
1d99702e | 2313 | PyObject * _argo0 = 0; |
efc5f224 | 2314 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2315 | |
2316 | self = self; | |
efc5f224 | 2317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2318 | return NULL; |
1d99702e RD |
2319 | if (_argo0) { |
2320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2323 | return NULL; | |
2324 | } | |
2325 | } | |
cf694132 | 2326 | { |
474c48f9 | 2327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2328 | _result = (wxWindow *)wxWindow_GetParent(_arg0); |
cf694132 | 2329 | |
474c48f9 | 2330 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2331 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2332 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2333 | return _resultobj; |
2334 | } | |
2335 | ||
b8b8dda7 | 2336 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2337 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2338 | PyObject * _resultobj; |
2339 | wxWindow * _arg0; | |
2340 | int * _arg1; | |
2341 | int temp; | |
2342 | int * _arg2; | |
2343 | int temp0; | |
1d99702e | 2344 | PyObject * _argo0 = 0; |
efc5f224 | 2345 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2346 | |
2347 | self = self; | |
2348 | { | |
2349 | _arg1 = &temp; | |
2350 | } | |
2351 | { | |
2352 | _arg2 = &temp0; | |
2353 | } | |
efc5f224 | 2354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2355 | return NULL; |
1d99702e RD |
2356 | if (_argo0) { |
2357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2360 | return NULL; | |
2361 | } | |
2362 | } | |
cf694132 | 2363 | { |
474c48f9 | 2364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2365 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); |
cf694132 | 2366 | |
474c48f9 | 2367 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2368 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2369 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
2370 | _resultobj = Py_None; |
2371 | { | |
2372 | PyObject *o; | |
2373 | o = PyInt_FromLong((long) (*_arg1)); | |
2374 | _resultobj = t_output_helper(_resultobj, o); | |
2375 | } | |
2376 | { | |
2377 | PyObject *o; | |
2378 | o = PyInt_FromLong((long) (*_arg2)); | |
2379 | _resultobj = t_output_helper(_resultobj, o); | |
2380 | } | |
2381 | return _resultobj; | |
2382 | } | |
2383 | ||
2384 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2385 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2386 | PyObject * _resultobj; |
2387 | wxPoint * _result; | |
2388 | wxWindow * _arg0; | |
1d99702e | 2389 | PyObject * _argo0 = 0; |
efc5f224 | 2390 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2391 | char _ptemp[128]; |
2392 | ||
2393 | self = self; | |
efc5f224 | 2394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2395 | return NULL; |
1d99702e RD |
2396 | if (_argo0) { |
2397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2400 | return NULL; | |
2401 | } | |
2402 | } | |
cf694132 | 2403 | { |
474c48f9 | 2404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2405 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); |
cf694132 | 2406 | |
474c48f9 | 2407 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2408 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2409 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
2410 | _resultobj = Py_BuildValue("s",_ptemp); |
2411 | return _resultobj; | |
2412 | } | |
2413 | ||
2414 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2415 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2416 | PyObject * _resultobj; |
2417 | wxRect * _result; | |
2418 | wxWindow * _arg0; | |
1d99702e | 2419 | PyObject * _argo0 = 0; |
efc5f224 | 2420 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2421 | char _ptemp[128]; |
2422 | ||
2423 | self = self; | |
efc5f224 | 2424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2425 | return NULL; |
1d99702e RD |
2426 | if (_argo0) { |
2427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2430 | return NULL; | |
2431 | } | |
2432 | } | |
cf694132 | 2433 | { |
474c48f9 | 2434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2435 | _result = new wxRect (wxWindow_GetRect(_arg0)); |
cf694132 | 2436 | |
474c48f9 | 2437 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2438 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2439 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
b8b8dda7 RD |
2440 | _resultobj = Py_BuildValue("s",_ptemp); |
2441 | return _resultobj; | |
2442 | } | |
2443 | ||
8ab979d7 | 2444 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2445 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2446 | PyObject * _resultobj; |
2447 | int _result; | |
2448 | wxWindow * _arg0; | |
2449 | int _arg1; | |
1d99702e | 2450 | PyObject * _argo0 = 0; |
efc5f224 | 2451 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2452 | |
2453 | self = self; | |
efc5f224 | 2454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2455 | return NULL; |
1d99702e RD |
2456 | if (_argo0) { |
2457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2460 | return NULL; | |
2461 | } | |
2462 | } | |
cf694132 | 2463 | { |
474c48f9 | 2464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2465 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); |
cf694132 | 2466 | |
474c48f9 | 2467 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2468 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2469 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2470 | return _resultobj; |
2471 | } | |
2472 | ||
2473 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2474 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2475 | PyObject * _resultobj; |
2476 | int _result; | |
2477 | wxWindow * _arg0; | |
2478 | int _arg1; | |
1d99702e | 2479 | PyObject * _argo0 = 0; |
efc5f224 | 2480 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2481 | |
2482 | self = self; | |
efc5f224 | 2483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2484 | return NULL; |
1d99702e RD |
2485 | if (_argo0) { |
2486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2489 | return NULL; | |
2490 | } | |
2491 | } | |
cf694132 | 2492 | { |
474c48f9 | 2493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2494 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); |
cf694132 | 2495 | |
474c48f9 | 2496 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2497 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2498 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2499 | return _resultobj; |
2500 | } | |
2501 | ||
2502 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2503 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2504 | PyObject * _resultobj; |
2505 | int _result; | |
2506 | wxWindow * _arg0; | |
2507 | int _arg1; | |
1d99702e | 2508 | PyObject * _argo0 = 0; |
efc5f224 | 2509 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2510 | |
2511 | self = self; | |
efc5f224 | 2512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2513 | return NULL; |
1d99702e RD |
2514 | if (_argo0) { |
2515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2518 | return NULL; | |
2519 | } | |
2520 | } | |
cf694132 | 2521 | { |
474c48f9 | 2522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2523 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); |
cf694132 | 2524 | |
474c48f9 | 2525 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2526 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2527 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2528 | return _resultobj; |
2529 | } | |
2530 | ||
b8b8dda7 | 2531 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2532 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2533 | PyObject * _resultobj; |
2534 | wxWindow * _arg0; | |
2535 | int * _arg1; | |
2536 | int temp; | |
2537 | int * _arg2; | |
2538 | int temp0; | |
1d99702e | 2539 | PyObject * _argo0 = 0; |
efc5f224 | 2540 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2541 | |
2542 | self = self; | |
2543 | { | |
2544 | _arg1 = &temp; | |
2545 | } | |
2546 | { | |
2547 | _arg2 = &temp0; | |
2548 | } | |
efc5f224 | 2549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2550 | return NULL; |
1d99702e RD |
2551 | if (_argo0) { |
2552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2555 | return NULL; |
2556 | } | |
2557 | } | |
cf694132 | 2558 | { |
474c48f9 | 2559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2560 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 2561 | |
474c48f9 | 2562 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2563 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2564 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2565 | _resultobj = Py_None; |
2566 | { | |
2567 | PyObject *o; | |
2568 | o = PyInt_FromLong((long) (*_arg1)); | |
2569 | _resultobj = t_output_helper(_resultobj, o); | |
2570 | } | |
2571 | { | |
2572 | PyObject *o; | |
2573 | o = PyInt_FromLong((long) (*_arg2)); | |
2574 | _resultobj = t_output_helper(_resultobj, o); | |
2575 | } | |
2576 | return _resultobj; | |
2577 | } | |
2578 | ||
b8b8dda7 | 2579 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2580 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2581 | PyObject * _resultobj; |
2582 | wxSize * _result; | |
2583 | wxWindow * _arg0; | |
1d99702e | 2584 | PyObject * _argo0 = 0; |
efc5f224 | 2585 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2586 | char _ptemp[128]; |
2587 | ||
2588 | self = self; | |
efc5f224 | 2589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2590 | return NULL; |
1d99702e RD |
2591 | if (_argo0) { |
2592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2595 | return NULL; | |
2596 | } | |
2597 | } | |
cf694132 | 2598 | { |
474c48f9 | 2599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2600 | _result = new wxSize (wxWindow_GetSize(_arg0)); |
cf694132 | 2601 | |
474c48f9 | 2602 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2603 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2604 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
2605 | _resultobj = Py_BuildValue("s",_ptemp); |
2606 | return _resultobj; | |
2607 | } | |
2608 | ||
8ab979d7 | 2609 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2610 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2611 | PyObject * _resultobj; |
2612 | wxWindow * _arg0; | |
2613 | wxString * _arg1; | |
2614 | int * _arg2; | |
2615 | int temp; | |
2616 | int * _arg3; | |
2617 | int temp0; | |
1d99702e | 2618 | PyObject * _argo0 = 0; |
8ab979d7 | 2619 | PyObject * _obj1 = 0; |
efc5f224 | 2620 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2621 | |
2622 | self = self; | |
2623 | { | |
2624 | _arg2 = &temp; | |
2625 | } | |
2626 | { | |
2627 | _arg3 = &temp0; | |
2628 | } | |
efc5f224 | 2629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2630 | return NULL; |
1d99702e RD |
2631 | if (_argo0) { |
2632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2635 | return NULL; | |
2636 | } | |
2637 | } | |
2638 | { | |
c8bc7bb8 RD |
2639 | _arg1 = wxString_in_helper(_obj1); |
2640 | if (_arg1 == NULL) | |
8ab979d7 | 2641 | return NULL; |
8ab979d7 | 2642 | } |
cf694132 | 2643 | { |
474c48f9 | 2644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2645 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 2646 | |
474c48f9 | 2647 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2648 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2649 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2650 | _resultobj = Py_None; |
2651 | { | |
2652 | PyObject *o; | |
2653 | o = PyInt_FromLong((long) (*_arg2)); | |
2654 | _resultobj = t_output_helper(_resultobj, o); | |
2655 | } | |
2656 | { | |
2657 | PyObject *o; | |
2658 | o = PyInt_FromLong((long) (*_arg3)); | |
2659 | _resultobj = t_output_helper(_resultobj, o); | |
2660 | } | |
2661 | { | |
2662 | if (_obj1) | |
2663 | delete _arg1; | |
2664 | } | |
2665 | return _resultobj; | |
2666 | } | |
2667 | ||
af309447 | 2668 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2669 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2670 | PyObject * _resultobj; |
2671 | wxWindow * _arg0; | |
2672 | wxString * _arg1; | |
2673 | int * _arg2; | |
2674 | int temp; | |
2675 | int * _arg3; | |
2676 | int temp0; | |
2677 | int * _arg4; | |
2678 | int temp1; | |
2679 | int * _arg5; | |
2680 | int temp2; | |
1d99702e RD |
2681 | wxFont * _arg6 = (wxFont *) NULL; |
2682 | PyObject * _argo0 = 0; | |
af309447 | 2683 | PyObject * _obj1 = 0; |
1d99702e | 2684 | PyObject * _argo6 = 0; |
efc5f224 | 2685 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2686 | |
2687 | self = self; | |
2688 | { | |
2689 | _arg2 = &temp; | |
2690 | } | |
2691 | { | |
2692 | _arg3 = &temp0; | |
2693 | } | |
2694 | { | |
2695 | _arg4 = &temp1; | |
2696 | } | |
2697 | { | |
2698 | _arg5 = &temp2; | |
2699 | } | |
efc5f224 | 2700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2701 | return NULL; |
1d99702e RD |
2702 | if (_argo0) { |
2703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2706 | return NULL; | |
2707 | } | |
2708 | } | |
2709 | { | |
c8bc7bb8 RD |
2710 | _arg1 = wxString_in_helper(_obj1); |
2711 | if (_arg1 == NULL) | |
af309447 | 2712 | return NULL; |
af309447 | 2713 | } |
1d99702e RD |
2714 | if (_argo6) { |
2715 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2716 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2718 | return NULL; | |
2719 | } | |
2720 | } | |
cf694132 | 2721 | { |
474c48f9 | 2722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2723 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 2724 | |
474c48f9 | 2725 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2726 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2727 | } Py_INCREF(Py_None); |
af309447 RD |
2728 | _resultobj = Py_None; |
2729 | { | |
2730 | PyObject *o; | |
2731 | o = PyInt_FromLong((long) (*_arg2)); | |
2732 | _resultobj = t_output_helper(_resultobj, o); | |
2733 | } | |
2734 | { | |
2735 | PyObject *o; | |
2736 | o = PyInt_FromLong((long) (*_arg3)); | |
2737 | _resultobj = t_output_helper(_resultobj, o); | |
2738 | } | |
2739 | { | |
2740 | PyObject *o; | |
2741 | o = PyInt_FromLong((long) (*_arg4)); | |
2742 | _resultobj = t_output_helper(_resultobj, o); | |
2743 | } | |
2744 | { | |
2745 | PyObject *o; | |
2746 | o = PyInt_FromLong((long) (*_arg5)); | |
2747 | _resultobj = t_output_helper(_resultobj, o); | |
2748 | } | |
2749 | { | |
2750 | if (_obj1) | |
2751 | delete _arg1; | |
2752 | } | |
2753 | return _resultobj; | |
2754 | } | |
2755 | ||
8ab979d7 | 2756 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2757 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2758 | PyObject * _resultobj; |
2759 | wxString * _result; | |
2760 | wxWindow * _arg0; | |
1d99702e | 2761 | PyObject * _argo0 = 0; |
efc5f224 | 2762 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2763 | |
2764 | self = self; | |
efc5f224 | 2765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2766 | return NULL; |
1d99702e RD |
2767 | if (_argo0) { |
2768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2771 | return NULL; | |
2772 | } | |
2773 | } | |
8ab979d7 | 2774 | { |
474c48f9 | 2775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2776 | _result = new wxString (wxWindow_GetTitle(_arg0)); |
cf694132 | 2777 | |
474c48f9 | 2778 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2779 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2780 | }{ |
c8bc7bb8 | 2781 | #if wxUSE_UNICODE |
b67a9327 | 2782 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2783 | #else |
eec92d76 | 2784 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2785 | #endif |
8ab979d7 RD |
2786 | } |
2787 | { | |
2788 | delete _result; | |
2789 | } | |
2790 | return _resultobj; | |
2791 | } | |
2792 | ||
8bf5d46e | 2793 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2794 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2795 | PyObject * _resultobj; |
2796 | wxRegion * _result; | |
2797 | wxWindow * _arg0; | |
1d99702e | 2798 | PyObject * _argo0 = 0; |
efc5f224 | 2799 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2800 | char _ptemp[128]; |
2801 | ||
2802 | self = self; | |
efc5f224 | 2803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2804 | return NULL; |
1d99702e RD |
2805 | if (_argo0) { |
2806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2809 | return NULL; | |
2810 | } | |
2811 | } | |
2812 | { | |
474c48f9 | 2813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2814 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); |
8bf5d46e | 2815 | |
474c48f9 | 2816 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2817 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
2818 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); |
2819 | _resultobj = Py_BuildValue("s",_ptemp); | |
2820 | return _resultobj; | |
2821 | } | |
2822 | ||
8ab979d7 | 2823 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2824 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2825 | PyObject * _resultobj; |
2826 | long _result; | |
2827 | wxWindow * _arg0; | |
1d99702e | 2828 | PyObject * _argo0 = 0; |
efc5f224 | 2829 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2830 | |
2831 | self = self; | |
efc5f224 | 2832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2833 | return NULL; |
1d99702e RD |
2834 | if (_argo0) { |
2835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2838 | return NULL; | |
2839 | } | |
2840 | } | |
cf694132 | 2841 | { |
474c48f9 | 2842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2843 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); |
cf694132 | 2844 | |
474c48f9 | 2845 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2846 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2847 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2848 | return _resultobj; |
2849 | } | |
2850 | ||
f6bcfd97 BP |
2851 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2852 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2853 | PyObject * _resultobj; | |
2854 | wxWindow * _arg0; | |
2855 | long _arg1; | |
2856 | PyObject * _argo0 = 0; | |
2857 | char *_kwnames[] = { "self","style", NULL }; | |
2858 | ||
2859 | self = self; | |
2860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2861 | return NULL; | |
2862 | if (_argo0) { | |
2863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2866 | return NULL; | |
2867 | } | |
2868 | } | |
2869 | { | |
474c48f9 | 2870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2871 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); |
f6bcfd97 | 2872 | |
474c48f9 | 2873 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2874 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2875 | } Py_INCREF(Py_None); |
2876 | _resultobj = Py_None; | |
2877 | return _resultobj; | |
2878 | } | |
2879 | ||
2880 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2881 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2882 | PyObject * _resultobj; | |
2883 | wxWindow * _arg0; | |
2884 | long _arg1; | |
2885 | PyObject * _argo0 = 0; | |
2886 | char *_kwnames[] = { "self","style", NULL }; | |
2887 | ||
2888 | self = self; | |
2889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2890 | return NULL; | |
2891 | if (_argo0) { | |
2892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2895 | return NULL; | |
2896 | } | |
2897 | } | |
2898 | { | |
474c48f9 | 2899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2900 | wxWindow_SetWindowStyle(_arg0,_arg1); |
f6bcfd97 | 2901 | |
474c48f9 | 2902 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2903 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2904 | } Py_INCREF(Py_None); |
2905 | _resultobj = Py_None; | |
2906 | return _resultobj; | |
2907 | } | |
2908 | ||
8cb49012 RD |
2909 | #define wxWindow_HasScrollbar(_swigobj,_swigarg0) (_swigobj->HasScrollbar(_swigarg0)) |
2910 | static PyObject *_wrap_wxWindow_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2911 | PyObject * _resultobj; | |
2912 | bool _result; | |
2913 | wxWindow * _arg0; | |
2914 | int _arg1; | |
2915 | PyObject * _argo0 = 0; | |
2916 | char *_kwnames[] = { "self","orient", NULL }; | |
2917 | ||
2918 | self = self; | |
2919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_HasScrollbar",_kwnames,&_argo0,&_arg1)) | |
2920 | return NULL; | |
2921 | if (_argo0) { | |
2922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasScrollbar. Expected _wxWindow_p."); | |
2925 | return NULL; | |
2926 | } | |
2927 | } | |
2928 | { | |
2929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2930 | _result = (bool )wxWindow_HasScrollbar(_arg0,_arg1); |
8cb49012 RD |
2931 | |
2932 | wxPyEndAllowThreads(__tstate); | |
2933 | if (PyErr_Occurred()) return NULL; | |
2934 | } _resultobj = Py_BuildValue("i",_result); | |
2935 | return _resultobj; | |
2936 | } | |
2937 | ||
bb0054cd | 2938 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2939 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2940 | PyObject * _resultobj; |
2941 | bool _result; | |
2942 | wxWindow * _arg0; | |
1d99702e | 2943 | PyObject * _argo0 = 0; |
efc5f224 | 2944 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2945 | |
2946 | self = self; | |
efc5f224 | 2947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2948 | return NULL; |
1d99702e RD |
2949 | if (_argo0) { |
2950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2953 | return NULL; | |
2954 | } | |
2955 | } | |
2956 | { | |
474c48f9 | 2957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2958 | _result = (bool )wxWindow_Hide(_arg0); |
bb0054cd | 2959 | |
474c48f9 | 2960 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2961 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2962 | } _resultobj = Py_BuildValue("i",_result); |
2963 | return _resultobj; | |
2964 | } | |
2965 | ||
8cb49012 RD |
2966 | #define wxWindow_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0)) |
2967 | static PyObject *_wrap_wxWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2968 | PyObject * _resultobj; | |
2969 | wxHitTest _result; | |
2970 | wxWindow * _arg0; | |
2971 | wxPoint * _arg1; | |
2972 | PyObject * _argo0 = 0; | |
2973 | wxPoint temp; | |
2974 | PyObject * _obj1 = 0; | |
2975 | char *_kwnames[] = { "self","pt", NULL }; | |
2976 | ||
2977 | self = self; | |
2978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_HitTest",_kwnames,&_argo0,&_obj1)) | |
2979 | return NULL; | |
2980 | if (_argo0) { | |
2981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HitTest. Expected _wxWindow_p."); | |
2984 | return NULL; | |
2985 | } | |
2986 | } | |
2987 | { | |
2988 | _arg1 = &temp; | |
2989 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2990 | return NULL; | |
2991 | } | |
2992 | { | |
2993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2994 | _result = (wxHitTest )wxWindow_HitTest(_arg0,*_arg1); |
8cb49012 RD |
2995 | |
2996 | wxPyEndAllowThreads(__tstate); | |
2997 | if (PyErr_Occurred()) return NULL; | |
2998 | } _resultobj = Py_BuildValue("i",_result); | |
2999 | return _resultobj; | |
3000 | } | |
3001 | ||
8ab979d7 | 3002 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 3003 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3004 | PyObject * _resultobj; |
3005 | wxWindow * _arg0; | |
1d99702e | 3006 | PyObject * _argo0 = 0; |
efc5f224 | 3007 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3008 | |
3009 | self = self; | |
efc5f224 | 3010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 3011 | return NULL; |
1d99702e RD |
3012 | if (_argo0) { |
3013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
3016 | return NULL; | |
3017 | } | |
3018 | } | |
cf694132 | 3019 | { |
474c48f9 | 3020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3021 | wxWindow_InitDialog(_arg0); |
cf694132 | 3022 | |
474c48f9 | 3023 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3024 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3025 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3026 | _resultobj = Py_None; |
3027 | return _resultobj; | |
3028 | } | |
3029 | ||
3030 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 3031 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3032 | PyObject * _resultobj; |
3033 | bool _result; | |
3034 | wxWindow * _arg0; | |
1d99702e | 3035 | PyObject * _argo0 = 0; |
efc5f224 | 3036 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3037 | |
3038 | self = self; | |
efc5f224 | 3039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 3040 | return NULL; |
1d99702e RD |
3041 | if (_argo0) { |
3042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
3045 | return NULL; | |
3046 | } | |
3047 | } | |
cf694132 | 3048 | { |
474c48f9 | 3049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3050 | _result = (bool )wxWindow_IsEnabled(_arg0); |
cf694132 | 3051 | |
474c48f9 | 3052 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3053 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3054 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3055 | return _resultobj; |
3056 | } | |
3057 | ||
1b55cabf RD |
3058 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3059 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3060 | PyObject * _resultobj; | |
3061 | bool _result; | |
3062 | wxWindow * _arg0; | |
3063 | int _arg1; | |
3064 | int _arg2; | |
3065 | int _arg3 = (int ) 0; | |
3066 | int _arg4 = (int ) 0; | |
3067 | PyObject * _argo0 = 0; | |
3068 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
3069 | ||
3070 | self = self; | |
3071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
3072 | return NULL; | |
3073 | if (_argo0) { | |
3074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
3077 | return NULL; | |
3078 | } | |
3079 | } | |
3080 | { | |
474c48f9 | 3081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3082 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); |
1b55cabf | 3083 | |
474c48f9 | 3084 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3085 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3086 | } _resultobj = Py_BuildValue("i",_result); |
3087 | return _resultobj; | |
3088 | } | |
3089 | ||
3090 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
3091 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3092 | PyObject * _resultobj; | |
3093 | bool _result; | |
3094 | wxWindow * _arg0; | |
3095 | wxPoint * _arg1; | |
3096 | PyObject * _argo0 = 0; | |
3097 | wxPoint temp; | |
3098 | PyObject * _obj1 = 0; | |
3099 | char *_kwnames[] = { "self","pt", NULL }; | |
3100 | ||
3101 | self = self; | |
3102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
3103 | return NULL; | |
3104 | if (_argo0) { | |
3105 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3106 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
3108 | return NULL; | |
3109 | } | |
3110 | } | |
3111 | { | |
3112 | _arg1 = &temp; | |
3113 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3114 | return NULL; | |
3115 | } | |
3116 | { | |
474c48f9 | 3117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3118 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); |
1b55cabf | 3119 | |
474c48f9 | 3120 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3121 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3122 | } _resultobj = Py_BuildValue("i",_result); |
3123 | return _resultobj; | |
3124 | } | |
3125 | ||
3126 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
3127 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3128 | PyObject * _resultobj; | |
3129 | bool _result; | |
3130 | wxWindow * _arg0; | |
3131 | wxRect * _arg1; | |
3132 | PyObject * _argo0 = 0; | |
3133 | wxRect temp; | |
3134 | PyObject * _obj1 = 0; | |
3135 | char *_kwnames[] = { "self","rect", NULL }; | |
3136 | ||
3137 | self = self; | |
3138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
3139 | return NULL; | |
3140 | if (_argo0) { | |
3141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
3144 | return NULL; | |
3145 | } | |
3146 | } | |
3147 | { | |
3148 | _arg1 = &temp; | |
3149 | if (! wxRect_helper(_obj1, &_arg1)) | |
3150 | return NULL; | |
3151 | } | |
3152 | { | |
474c48f9 | 3153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3154 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); |
1b55cabf | 3155 | |
474c48f9 | 3156 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3157 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3158 | } _resultobj = Py_BuildValue("i",_result); |
3159 | return _resultobj; | |
3160 | } | |
3161 | ||
8ab979d7 | 3162 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 3163 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3164 | PyObject * _resultobj; |
3165 | bool _result; | |
3166 | wxWindow * _arg0; | |
1d99702e | 3167 | PyObject * _argo0 = 0; |
efc5f224 | 3168 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3169 | |
3170 | self = self; | |
efc5f224 | 3171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 3172 | return NULL; |
1d99702e RD |
3173 | if (_argo0) { |
3174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
3177 | return NULL; | |
3178 | } | |
3179 | } | |
cf694132 | 3180 | { |
474c48f9 | 3181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3182 | _result = (bool )wxWindow_IsRetained(_arg0); |
cf694132 | 3183 | |
474c48f9 | 3184 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3185 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3186 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3187 | return _resultobj; |
3188 | } | |
3189 | ||
3190 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 3191 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3192 | PyObject * _resultobj; |
3193 | bool _result; | |
3194 | wxWindow * _arg0; | |
1d99702e | 3195 | PyObject * _argo0 = 0; |
efc5f224 | 3196 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3197 | |
3198 | self = self; | |
efc5f224 | 3199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 3200 | return NULL; |
1d99702e RD |
3201 | if (_argo0) { |
3202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
3205 | return NULL; | |
3206 | } | |
3207 | } | |
cf694132 | 3208 | { |
474c48f9 | 3209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3210 | _result = (bool )wxWindow_IsShown(_arg0); |
cf694132 | 3211 | |
474c48f9 | 3212 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3213 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3214 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3215 | return _resultobj; |
3216 | } | |
3217 | ||
bb0054cd | 3218 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 3219 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3220 | PyObject * _resultobj; |
3221 | bool _result; | |
3222 | wxWindow * _arg0; | |
1d99702e | 3223 | PyObject * _argo0 = 0; |
efc5f224 | 3224 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
3225 | |
3226 | self = self; | |
efc5f224 | 3227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 3228 | return NULL; |
1d99702e RD |
3229 | if (_argo0) { |
3230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
3233 | return NULL; | |
3234 | } | |
3235 | } | |
3236 | { | |
474c48f9 | 3237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3238 | _result = (bool )wxWindow_IsTopLevel(_arg0); |
bb0054cd | 3239 | |
474c48f9 | 3240 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3241 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3242 | } _resultobj = Py_BuildValue("i",_result); |
3243 | return _resultobj; | |
3244 | } | |
3245 | ||
8ab979d7 | 3246 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 3247 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3248 | PyObject * _resultobj; |
3249 | wxWindow * _arg0; | |
1d99702e | 3250 | PyObject * _argo0 = 0; |
efc5f224 | 3251 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3252 | |
3253 | self = self; | |
efc5f224 | 3254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 3255 | return NULL; |
1d99702e RD |
3256 | if (_argo0) { |
3257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
3260 | return NULL; | |
3261 | } | |
3262 | } | |
cf694132 | 3263 | { |
474c48f9 | 3264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3265 | wxWindow_Layout(_arg0); |
cf694132 | 3266 | |
474c48f9 | 3267 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3268 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3269 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3270 | _resultobj = Py_None; |
3271 | return _resultobj; | |
3272 | } | |
3273 | ||
8ab979d7 | 3274 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) |
efc5f224 | 3275 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3276 | PyObject * _resultobj; |
3277 | wxWindow * _arg0; | |
1d99702e | 3278 | PyObject * _argo0 = 0; |
efc5f224 | 3279 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3280 | |
3281 | self = self; | |
efc5f224 | 3282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3283 | return NULL; |
1d99702e RD |
3284 | if (_argo0) { |
3285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3288 | return NULL; | |
3289 | } | |
3290 | } | |
cf694132 | 3291 | { |
474c48f9 | 3292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3293 | wxWindow_Lower(_arg0); |
cf694132 | 3294 | |
474c48f9 | 3295 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3296 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3297 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3298 | _resultobj = Py_None; |
3299 | return _resultobj; | |
3300 | } | |
3301 | ||
3302 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3303 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3304 | PyObject * _resultobj; |
3305 | wxWindow * _arg0; | |
65191ae8 | 3306 | bool _arg1 = (bool ) TRUE; |
1d99702e | 3307 | PyObject * _argo0 = 0; |
65191ae8 | 3308 | int tempbool1 = (int) TRUE; |
efc5f224 | 3309 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3310 | |
3311 | self = self; | |
65191ae8 | 3312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3313 | return NULL; |
1d99702e RD |
3314 | if (_argo0) { |
3315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3318 | return NULL; | |
3319 | } | |
3320 | } | |
3321 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3322 | { |
474c48f9 | 3323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3324 | wxWindow_MakeModal(_arg0,_arg1); |
cf694132 | 3325 | |
474c48f9 | 3326 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3327 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3328 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3329 | _resultobj = Py_None; |
3330 | return _resultobj; | |
3331 | } | |
3332 | ||
8cb49012 | 3333 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Move(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3334 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3335 | PyObject * _resultobj; |
3336 | wxWindow * _arg0; | |
3337 | int _arg1; | |
3338 | int _arg2; | |
8cb49012 | 3339 | int _arg3 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 3340 | PyObject * _argo0 = 0; |
8cb49012 | 3341 | char *_kwnames[] = { "self","x","y","flags", NULL }; |
8ab979d7 RD |
3342 | |
3343 | self = self; | |
8cb49012 | 3344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
af309447 | 3345 | return NULL; |
1d99702e RD |
3346 | if (_argo0) { |
3347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3350 | return NULL; | |
3351 | } | |
3352 | } | |
cf694132 | 3353 | { |
474c48f9 | 3354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3355 | wxWindow_MoveXY(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3356 | |
474c48f9 | 3357 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3358 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3359 | } Py_INCREF(Py_None); |
af309447 RD |
3360 | _resultobj = Py_None; |
3361 | return _resultobj; | |
3362 | } | |
3363 | ||
8cb49012 | 3364 | #define wxWindow_Move(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3365 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3366 | PyObject * _resultobj; |
3367 | wxWindow * _arg0; | |
3368 | wxPoint * _arg1; | |
8cb49012 | 3369 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 3370 | PyObject * _argo0 = 0; |
2f90df85 RD |
3371 | wxPoint temp; |
3372 | PyObject * _obj1 = 0; | |
8cb49012 | 3373 | char *_kwnames[] = { "self","point","flags", NULL }; |
af309447 RD |
3374 | |
3375 | self = self; | |
8cb49012 | 3376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_Move",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 3377 | return NULL; |
1d99702e RD |
3378 | if (_argo0) { |
3379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3382 | return NULL; | |
3383 | } | |
3384 | } | |
2f90df85 RD |
3385 | { |
3386 | _arg1 = &temp; | |
3387 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3388 | return NULL; |
2f90df85 | 3389 | } |
cf694132 | 3390 | { |
474c48f9 | 3391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3392 | wxWindow_Move(_arg0,*_arg1,_arg2); |
cf694132 | 3393 | |
474c48f9 | 3394 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3395 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3396 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3397 | _resultobj = Py_None; |
3398 | return _resultobj; | |
3399 | } | |
3400 | ||
1afc06c2 RD |
3401 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3402 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3403 | PyObject * _resultobj; | |
3404 | wxEvtHandler * _result; | |
3405 | wxWindow * _arg0; | |
3406 | bool _arg1 = (bool ) FALSE; | |
3407 | PyObject * _argo0 = 0; | |
3408 | int tempbool1 = (int) FALSE; | |
3409 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
1afc06c2 RD |
3410 | |
3411 | self = self; | |
3412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3413 | return NULL; | |
3414 | if (_argo0) { | |
3415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3418 | return NULL; | |
3419 | } | |
3420 | } | |
3421 | _arg1 = (bool ) tempbool1; | |
3422 | { | |
474c48f9 | 3423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3424 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); |
1afc06c2 | 3425 | |
474c48f9 | 3426 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3427 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 3428 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
3429 | return _resultobj; |
3430 | } | |
3431 | ||
3432 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3433 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3434 | PyObject * _resultobj; | |
3435 | wxWindow * _arg0; | |
3436 | wxEvtHandler * _arg1; | |
3437 | PyObject * _argo0 = 0; | |
3438 | PyObject * _argo1 = 0; | |
3439 | char *_kwnames[] = { "self","handler", NULL }; | |
3440 | ||
3441 | self = self; | |
3442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3443 | return NULL; | |
3444 | if (_argo0) { | |
3445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3448 | return NULL; | |
3449 | } | |
3450 | } | |
3451 | if (_argo1) { | |
3452 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3453 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3455 | return NULL; | |
3456 | } | |
3457 | } | |
3458 | { | |
474c48f9 | 3459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3460 | wxWindow_PushEventHandler(_arg0,_arg1); |
1afc06c2 | 3461 | |
474c48f9 | 3462 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3463 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
3464 | } Py_INCREF(Py_None); |
3465 | _resultobj = Py_None; | |
3466 | return _resultobj; | |
3467 | } | |
3468 | ||
5d413391 RD |
3469 | #define wxWindow_RemoveEventHandler(_swigobj,_swigarg0) (_swigobj->RemoveEventHandler(_swigarg0)) |
3470 | static PyObject *_wrap_wxWindow_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3471 | PyObject * _resultobj; | |
3472 | bool _result; | |
3473 | wxWindow * _arg0; | |
3474 | wxEvtHandler * _arg1; | |
3475 | PyObject * _argo0 = 0; | |
3476 | PyObject * _argo1 = 0; | |
3477 | char *_kwnames[] = { "self","handler", NULL }; | |
3478 | ||
3479 | self = self; | |
3480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveEventHandler",_kwnames,&_argo0,&_argo1)) | |
3481 | return NULL; | |
3482 | if (_argo0) { | |
3483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveEventHandler. Expected _wxWindow_p."); | |
3486 | return NULL; | |
3487 | } | |
3488 | } | |
3489 | if (_argo1) { | |
3490 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3491 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveEventHandler. Expected _wxEvtHandler_p."); | |
3493 | return NULL; | |
3494 | } | |
3495 | } | |
3496 | { | |
3497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3498 | _result = (bool )wxWindow_RemoveEventHandler(_arg0,_arg1); |
5d413391 RD |
3499 | |
3500 | wxPyEndAllowThreads(__tstate); | |
3501 | if (PyErr_Occurred()) return NULL; | |
3502 | } _resultobj = Py_BuildValue("i",_result); | |
3503 | return _resultobj; | |
3504 | } | |
3505 | ||
8bf5d46e | 3506 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3507 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3508 | PyObject * _resultobj; |
3509 | bool _result; | |
3510 | wxWindow * _arg0; | |
3511 | wxMenu * _arg1; | |
3512 | int _arg2; | |
3513 | int _arg3; | |
1d99702e RD |
3514 | PyObject * _argo0 = 0; |
3515 | PyObject * _argo1 = 0; | |
efc5f224 | 3516 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3517 | |
3518 | self = self; | |
efc5f224 | 3519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3520 | return NULL; |
1d99702e RD |
3521 | if (_argo0) { |
3522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3525 | return NULL; | |
3526 | } | |
3527 | } | |
1d99702e RD |
3528 | if (_argo1) { |
3529 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3530 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3532 | return NULL; | |
3533 | } | |
3534 | } | |
3535 | { | |
474c48f9 | 3536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3537 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); |
8bf5d46e | 3538 | |
474c48f9 | 3539 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3540 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
3541 | } _resultobj = Py_BuildValue("i",_result); |
3542 | return _resultobj; | |
3543 | } | |
3544 | ||
3545 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3546 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3547 | PyObject * _resultobj; |
3548 | bool _result; | |
3549 | wxWindow * _arg0; | |
3550 | wxMenu * _arg1; | |
3551 | wxPoint * _arg2; | |
1d99702e RD |
3552 | PyObject * _argo0 = 0; |
3553 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3554 | wxPoint temp; |
3555 | PyObject * _obj2 = 0; | |
efc5f224 | 3556 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3557 | |
3558 | self = self; | |
2f90df85 | 3559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3560 | return NULL; |
1d99702e RD |
3561 | if (_argo0) { |
3562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3565 | return NULL; | |
3566 | } | |
3567 | } | |
1d99702e RD |
3568 | if (_argo1) { |
3569 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3570 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3572 | return NULL; | |
3573 | } | |
3574 | } | |
2f90df85 RD |
3575 | { |
3576 | _arg2 = &temp; | |
3577 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3578 | return NULL; |
2f90df85 | 3579 | } |
cf694132 | 3580 | { |
474c48f9 | 3581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3582 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 | 3583 | |
474c48f9 | 3584 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3585 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3586 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3587 | return _resultobj; |
3588 | } | |
3589 | ||
3590 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3591 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3592 | PyObject * _resultobj; |
3593 | wxWindow * _arg0; | |
1d99702e | 3594 | PyObject * _argo0 = 0; |
efc5f224 | 3595 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3596 | |
3597 | self = self; | |
efc5f224 | 3598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3599 | return NULL; |
1d99702e RD |
3600 | if (_argo0) { |
3601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3604 | return NULL; | |
3605 | } | |
3606 | } | |
cf694132 | 3607 | { |
474c48f9 | 3608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3609 | wxWindow_Raise(_arg0); |
cf694132 | 3610 | |
474c48f9 | 3611 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3612 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3613 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3614 | _resultobj = Py_None; |
3615 | return _resultobj; | |
3616 | } | |
3617 | ||
3618 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3619 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3620 | PyObject * _resultobj; |
3621 | wxWindow * _arg0; | |
1d99702e RD |
3622 | bool _arg1 = (bool ) TRUE; |
3623 | wxRect * _arg2 = (wxRect *) NULL; | |
3624 | PyObject * _argo0 = 0; | |
3625 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3626 | wxRect temp; |
3627 | PyObject * _obj2 = 0; | |
efc5f224 | 3628 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3629 | |
3630 | self = self; | |
2f90df85 | 3631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3632 | return NULL; |
1d99702e RD |
3633 | if (_argo0) { |
3634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3637 | return NULL; | |
3638 | } | |
3639 | } | |
3640 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3641 | if (_obj2) |
3642 | { | |
3643 | _arg2 = &temp; | |
3644 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3645 | return NULL; |
2f90df85 | 3646 | } |
cf694132 | 3647 | { |
474c48f9 | 3648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3649 | wxWindow_Refresh(_arg0,_arg1,_arg2); |
cf694132 | 3650 | |
474c48f9 | 3651 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3652 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3653 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3654 | _resultobj = Py_None; |
3655 | return _resultobj; | |
3656 | } | |
3657 | ||
aa2a5b86 RD |
3658 | #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0)) |
3659 | static PyObject *_wrap_wxWindow_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3660 | PyObject * _resultobj; | |
3661 | wxWindow * _arg0; | |
3662 | wxRect * _arg1; | |
3663 | PyObject * _argo0 = 0; | |
3664 | wxRect temp; | |
3665 | PyObject * _obj1 = 0; | |
3666 | char *_kwnames[] = { "self","rect", NULL }; | |
3667 | ||
3668 | self = self; | |
3669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RefreshRect",_kwnames,&_argo0,&_obj1)) | |
3670 | return NULL; | |
3671 | if (_argo0) { | |
3672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p."); | |
3675 | return NULL; | |
3676 | } | |
3677 | } | |
3678 | { | |
3679 | _arg1 = &temp; | |
3680 | if (! wxRect_helper(_obj1, &_arg1)) | |
3681 | return NULL; | |
3682 | } | |
3683 | { | |
474c48f9 | 3684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3685 | wxWindow_RefreshRect(_arg0,*_arg1); |
aa2a5b86 | 3686 | |
474c48f9 | 3687 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
3688 | if (PyErr_Occurred()) return NULL; |
3689 | } Py_INCREF(Py_None); | |
3690 | _resultobj = Py_None; | |
3691 | return _resultobj; | |
3692 | } | |
3693 | ||
298ae144 RD |
3694 | #define wxWindow_AddChild(_swigobj,_swigarg0) (_swigobj->AddChild(_swigarg0)) |
3695 | static PyObject *_wrap_wxWindow_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3696 | PyObject * _resultobj; | |
3697 | wxWindow * _arg0; | |
3698 | wxWindow * _arg1; | |
3699 | PyObject * _argo0 = 0; | |
3700 | PyObject * _argo1 = 0; | |
3701 | char *_kwnames[] = { "self","child", NULL }; | |
3702 | ||
3703 | self = self; | |
3704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_AddChild",_kwnames,&_argo0,&_argo1)) | |
3705 | return NULL; | |
3706 | if (_argo0) { | |
3707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AddChild. Expected _wxWindow_p."); | |
3710 | return NULL; | |
3711 | } | |
3712 | } | |
3713 | if (_argo1) { | |
3714 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3715 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_AddChild. Expected _wxWindow_p."); | |
3717 | return NULL; | |
3718 | } | |
3719 | } | |
3720 | { | |
3721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3722 | wxWindow_AddChild(_arg0,_arg1); | |
3723 | ||
3724 | wxPyEndAllowThreads(__tstate); | |
3725 | if (PyErr_Occurred()) return NULL; | |
3726 | } Py_INCREF(Py_None); | |
3727 | _resultobj = Py_None; | |
3728 | return _resultobj; | |
3729 | } | |
3730 | ||
b7e72427 RD |
3731 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3732 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3733 | PyObject * _resultobj; | |
3734 | wxWindow * _arg0; | |
3735 | wxWindow * _arg1; | |
3736 | PyObject * _argo0 = 0; | |
3737 | PyObject * _argo1 = 0; | |
3738 | char *_kwnames[] = { "self","child", NULL }; | |
3739 | ||
3740 | self = self; | |
3741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3742 | return NULL; | |
3743 | if (_argo0) { | |
3744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3747 | return NULL; | |
3748 | } | |
3749 | } | |
3750 | if (_argo1) { | |
3751 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3752 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3754 | return NULL; | |
3755 | } | |
3756 | } | |
3757 | { | |
474c48f9 | 3758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3759 | wxWindow_RemoveChild(_arg0,_arg1); |
b7e72427 | 3760 | |
474c48f9 | 3761 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3762 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
3763 | } Py_INCREF(Py_None); |
3764 | _resultobj = Py_None; | |
3765 | return _resultobj; | |
3766 | } | |
3767 | ||
bb0054cd | 3768 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3769 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3770 | PyObject * _resultobj; |
3771 | bool _result; | |
3772 | wxWindow * _arg0; | |
3773 | wxWindow * _arg1; | |
1d99702e RD |
3774 | PyObject * _argo0 = 0; |
3775 | PyObject * _argo1 = 0; | |
efc5f224 | 3776 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3777 | |
3778 | self = self; | |
efc5f224 | 3779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3780 | return NULL; |
1d99702e RD |
3781 | if (_argo0) { |
3782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3785 | return NULL; | |
3786 | } | |
3787 | } | |
1d99702e RD |
3788 | if (_argo1) { |
3789 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3790 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3792 | return NULL; | |
3793 | } | |
3794 | } | |
3795 | { | |
474c48f9 | 3796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3797 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); |
bb0054cd | 3798 | |
474c48f9 | 3799 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3800 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3801 | } _resultobj = Py_BuildValue("i",_result); |
3802 | return _resultobj; | |
3803 | } | |
3804 | ||
af309447 | 3805 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3806 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3807 | PyObject * _resultobj; |
3808 | wxWindow * _arg0; | |
3809 | int * _arg1; | |
3810 | int * _arg2; | |
1d99702e | 3811 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3812 | int temp; |
3813 | PyObject * _obj1 = 0; | |
3814 | int temp0; | |
3815 | PyObject * _obj2 = 0; | |
efc5f224 | 3816 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3817 | |
3818 | self = self; | |
efc5f224 | 3819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3820 | return NULL; |
1d99702e RD |
3821 | if (_argo0) { |
3822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3825 | return NULL; |
3826 | } | |
3827 | } | |
3828 | { | |
3829 | temp = (int) PyInt_AsLong(_obj1); | |
3830 | _arg1 = &temp; | |
3831 | } | |
3832 | { | |
3833 | temp0 = (int) PyInt_AsLong(_obj2); | |
3834 | _arg2 = &temp0; | |
3835 | } | |
cf694132 | 3836 | { |
474c48f9 | 3837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3838 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); |
cf694132 | 3839 | |
474c48f9 | 3840 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3841 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3842 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3843 | _resultobj = Py_None; |
3844 | { | |
3845 | PyObject *o; | |
3846 | o = PyInt_FromLong((long) (*_arg1)); | |
3847 | _resultobj = t_output_helper(_resultobj, o); | |
3848 | } | |
3849 | { | |
3850 | PyObject *o; | |
3851 | o = PyInt_FromLong((long) (*_arg2)); | |
3852 | _resultobj = t_output_helper(_resultobj, o); | |
3853 | } | |
3854 | return _resultobj; | |
3855 | } | |
3856 | ||
af309447 | 3857 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3858 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3859 | PyObject * _resultobj; |
3860 | wxPoint * _result; | |
3861 | wxWindow * _arg0; | |
3862 | wxPoint * _arg1; | |
1d99702e | 3863 | PyObject * _argo0 = 0; |
2f90df85 RD |
3864 | wxPoint temp; |
3865 | PyObject * _obj1 = 0; | |
efc5f224 | 3866 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3867 | char _ptemp[128]; |
3868 | ||
3869 | self = self; | |
2f90df85 | 3870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3871 | return NULL; |
1d99702e RD |
3872 | if (_argo0) { |
3873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3876 | return NULL; | |
3877 | } | |
3878 | } | |
2f90df85 RD |
3879 | { |
3880 | _arg1 = &temp; | |
3881 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3882 | return NULL; |
2f90df85 | 3883 | } |
cf694132 | 3884 | { |
474c48f9 | 3885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3886 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); |
cf694132 | 3887 | |
474c48f9 | 3888 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3889 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3890 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
3891 | _resultobj = Py_BuildValue("s",_ptemp); |
3892 | return _resultobj; | |
3893 | } | |
3894 | ||
8ab979d7 | 3895 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3896 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3897 | PyObject * _resultobj; |
3898 | wxWindow * _arg0; | |
3899 | int _arg1; | |
3900 | int _arg2; | |
1d99702e RD |
3901 | wxRect * _arg3 = (wxRect *) NULL; |
3902 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3903 | wxRect temp; |
3904 | PyObject * _obj3 = 0; | |
efc5f224 | 3905 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3906 | |
3907 | self = self; | |
2f90df85 | 3908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3909 | return NULL; |
1d99702e RD |
3910 | if (_argo0) { |
3911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3914 | return NULL; | |
3915 | } | |
3916 | } | |
2f90df85 RD |
3917 | if (_obj3) |
3918 | { | |
3919 | _arg3 = &temp; | |
3920 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3921 | return NULL; |
2f90df85 | 3922 | } |
cf694132 | 3923 | { |
474c48f9 | 3924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3925 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3926 | |
474c48f9 | 3927 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3928 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3929 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3930 | _resultobj = Py_None; |
3931 | return _resultobj; | |
3932 | } | |
3933 | ||
3934 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) | |
efc5f224 | 3935 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3936 | PyObject * _resultobj; |
3937 | wxWindow * _arg0; | |
3938 | bool _arg1; | |
1d99702e | 3939 | PyObject * _argo0 = 0; |
8ab979d7 | 3940 | int tempbool1; |
efc5f224 | 3941 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3942 | |
3943 | self = self; | |
efc5f224 | 3944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3945 | return NULL; |
1d99702e RD |
3946 | if (_argo0) { |
3947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3950 | return NULL; | |
3951 | } | |
3952 | } | |
3953 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3954 | { |
474c48f9 | 3955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3956 | wxWindow_SetAutoLayout(_arg0,_arg1); |
cf694132 | 3957 | |
474c48f9 | 3958 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3959 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3960 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3961 | _resultobj = Py_None; |
3962 | return _resultobj; | |
3963 | } | |
3964 | ||
9d8bd15f RD |
3965 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3966 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3967 | PyObject * _resultobj; | |
3968 | bool _result; | |
3969 | wxWindow * _arg0; | |
3970 | PyObject * _argo0 = 0; | |
3971 | char *_kwnames[] = { "self", NULL }; | |
3972 | ||
3973 | self = self; | |
3974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3975 | return NULL; | |
3976 | if (_argo0) { | |
3977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3980 | return NULL; | |
3981 | } | |
3982 | } | |
3983 | { | |
474c48f9 | 3984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3985 | _result = (bool )wxWindow_GetAutoLayout(_arg0); |
9d8bd15f | 3986 | |
474c48f9 | 3987 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3988 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
3989 | } _resultobj = Py_BuildValue("i",_result); |
3990 | return _resultobj; | |
3991 | } | |
3992 | ||
8ab979d7 | 3993 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3994 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3995 | PyObject * _resultobj; |
3996 | wxWindow * _arg0; | |
3997 | wxColour * _arg1; | |
1d99702e | 3998 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3999 | wxColour temp; |
4000 | PyObject * _obj1 = 0; | |
efc5f224 | 4001 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
4002 | |
4003 | self = self; | |
f6bcfd97 | 4004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4005 | return NULL; |
1d99702e RD |
4006 | if (_argo0) { |
4007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
4010 | return NULL; | |
4011 | } | |
4012 | } | |
f6bcfd97 BP |
4013 | { |
4014 | _arg1 = &temp; | |
4015 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4016 | return NULL; |
f6bcfd97 | 4017 | } |
cf694132 | 4018 | { |
474c48f9 | 4019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4020 | wxWindow_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 4021 | |
474c48f9 | 4022 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4023 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4024 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4025 | _resultobj = Py_None; |
4026 | return _resultobj; | |
4027 | } | |
4028 | ||
4029 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 4030 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4031 | PyObject * _resultobj; |
4032 | wxWindow * _arg0; | |
4033 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
4034 | PyObject * _argo0 = 0; |
4035 | PyObject * _argo1 = 0; | |
efc5f224 | 4036 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
4037 | |
4038 | self = self; | |
efc5f224 | 4039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4040 | return NULL; |
1d99702e RD |
4041 | if (_argo0) { |
4042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
4045 | return NULL; | |
4046 | } | |
4047 | } | |
1d99702e RD |
4048 | if (_argo1) { |
4049 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4050 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
4051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
4052 | return NULL; | |
4053 | } | |
4054 | } | |
cf694132 | 4055 | { |
474c48f9 | 4056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4057 | wxWindow_SetConstraints(_arg0,_arg1); |
cf694132 | 4058 | |
474c48f9 | 4059 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4060 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4061 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4062 | _resultobj = Py_None; |
4063 | return _resultobj; | |
4064 | } | |
4065 | ||
2f90df85 RD |
4066 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
4067 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4068 | PyObject * _resultobj; | |
4069 | wxWindow * _arg0; | |
4070 | wxLayoutConstraints * _arg1; | |
4071 | PyObject * _argo0 = 0; | |
4072 | PyObject * _argo1 = 0; | |
4073 | char *_kwnames[] = { "self","constraints", NULL }; | |
4074 | ||
4075 | self = self; | |
4076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
4077 | return NULL; | |
4078 | if (_argo0) { | |
4079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
4082 | return NULL; | |
4083 | } | |
4084 | } | |
4085 | if (_argo1) { | |
4086 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4087 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
4088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
4089 | return NULL; | |
4090 | } | |
4091 | } | |
4092 | { | |
474c48f9 | 4093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4094 | wxWindow_UnsetConstraints(_arg0,_arg1); |
2f90df85 | 4095 | |
474c48f9 | 4096 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4097 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4098 | } Py_INCREF(Py_None); |
4099 | _resultobj = Py_None; | |
4100 | return _resultobj; | |
4101 | } | |
4102 | ||
8ab979d7 | 4103 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 4104 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4105 | PyObject * _resultobj; |
4106 | wxWindow * _arg0; | |
1d99702e | 4107 | PyObject * _argo0 = 0; |
efc5f224 | 4108 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4109 | |
4110 | self = self; | |
efc5f224 | 4111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 4112 | return NULL; |
1d99702e RD |
4113 | if (_argo0) { |
4114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
4117 | return NULL; | |
4118 | } | |
4119 | } | |
cf694132 | 4120 | { |
474c48f9 | 4121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4122 | wxWindow_SetFocus(_arg0); |
cf694132 | 4123 | |
474c48f9 | 4124 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4125 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4126 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4127 | _resultobj = Py_None; |
4128 | return _resultobj; | |
4129 | } | |
4130 | ||
8381e4cd RD |
4131 | #define wxWindow_SetFocusFromKbd(_swigobj) (_swigobj->SetFocusFromKbd()) |
4132 | static PyObject *_wrap_wxWindow_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4133 | PyObject * _resultobj; | |
4134 | wxWindow * _arg0; | |
4135 | PyObject * _argo0 = 0; | |
4136 | char *_kwnames[] = { "self", NULL }; | |
4137 | ||
4138 | self = self; | |
4139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocusFromKbd",_kwnames,&_argo0)) | |
4140 | return NULL; | |
4141 | if (_argo0) { | |
4142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocusFromKbd. Expected _wxWindow_p."); | |
4145 | return NULL; | |
4146 | } | |
4147 | } | |
4148 | { | |
4149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4150 | wxWindow_SetFocusFromKbd(_arg0); | |
4151 | ||
4152 | wxPyEndAllowThreads(__tstate); | |
4153 | if (PyErr_Occurred()) return NULL; | |
4154 | } Py_INCREF(Py_None); | |
4155 | _resultobj = Py_None; | |
4156 | return _resultobj; | |
4157 | } | |
4158 | ||
2f90df85 RD |
4159 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
4160 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4161 | PyObject * _resultobj; | |
4162 | bool _result; | |
4163 | wxWindow * _arg0; | |
4164 | PyObject * _argo0 = 0; | |
4165 | char *_kwnames[] = { "self", NULL }; | |
4166 | ||
4167 | self = self; | |
4168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
4169 | return NULL; | |
4170 | if (_argo0) { | |
4171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
4174 | return NULL; | |
4175 | } | |
4176 | } | |
4177 | { | |
474c48f9 | 4178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4179 | _result = (bool )wxWindow_AcceptsFocus(_arg0); |
2f90df85 | 4180 | |
474c48f9 | 4181 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4182 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4183 | } _resultobj = Py_BuildValue("i",_result); |
4184 | return _resultobj; | |
4185 | } | |
4186 | ||
8ab979d7 | 4187 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 4188 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4189 | PyObject * _resultobj; |
4190 | wxWindow * _arg0; | |
4191 | wxFont * _arg1; | |
1d99702e RD |
4192 | PyObject * _argo0 = 0; |
4193 | PyObject * _argo1 = 0; | |
efc5f224 | 4194 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
4195 | |
4196 | self = self; | |
efc5f224 | 4197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4198 | return NULL; |
1d99702e RD |
4199 | if (_argo0) { |
4200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
4203 | return NULL; | |
4204 | } | |
4205 | } | |
1d99702e | 4206 | if (_argo1) { |
b67a9327 | 4207 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
8ab979d7 RD |
4208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
4209 | return NULL; | |
4210 | } | |
4211 | } | |
cf694132 | 4212 | { |
474c48f9 | 4213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4214 | wxWindow_SetFont(_arg0,*_arg1); |
cf694132 | 4215 | |
474c48f9 | 4216 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4217 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4218 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4219 | _resultobj = Py_None; |
4220 | return _resultobj; | |
4221 | } | |
4222 | ||
4223 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 4224 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4225 | PyObject * _resultobj; |
4226 | wxWindow * _arg0; | |
4227 | wxColour * _arg1; | |
1d99702e | 4228 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4229 | wxColour temp; |
4230 | PyObject * _obj1 = 0; | |
efc5f224 | 4231 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
4232 | |
4233 | self = self; | |
f6bcfd97 | 4234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4235 | return NULL; |
1d99702e RD |
4236 | if (_argo0) { |
4237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
4240 | return NULL; | |
4241 | } | |
4242 | } | |
f6bcfd97 BP |
4243 | { |
4244 | _arg1 = &temp; | |
4245 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4246 | return NULL; |
f6bcfd97 | 4247 | } |
cf694132 | 4248 | { |
474c48f9 | 4249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4250 | wxWindow_SetForegroundColour(_arg0,*_arg1); |
cf694132 | 4251 | |
474c48f9 | 4252 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4253 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4254 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4255 | _resultobj = Py_None; |
4256 | return _resultobj; | |
4257 | } | |
4258 | ||
4259 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 4260 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4261 | PyObject * _resultobj; |
4262 | wxWindow * _arg0; | |
4263 | int _arg1; | |
1d99702e | 4264 | PyObject * _argo0 = 0; |
efc5f224 | 4265 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
4266 | |
4267 | self = self; | |
efc5f224 | 4268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4269 | return NULL; |
1d99702e RD |
4270 | if (_argo0) { |
4271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
4274 | return NULL; | |
4275 | } | |
4276 | } | |
cf694132 | 4277 | { |
474c48f9 | 4278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4279 | wxWindow_SetId(_arg0,_arg1); |
cf694132 | 4280 | |
474c48f9 | 4281 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4282 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4283 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4284 | _resultobj = Py_None; |
4285 | return _resultobj; | |
4286 | } | |
4287 | ||
4288 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 4289 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4290 | PyObject * _resultobj; |
4291 | wxWindow * _arg0; | |
4292 | wxString * _arg1; | |
1d99702e | 4293 | PyObject * _argo0 = 0; |
8ab979d7 | 4294 | PyObject * _obj1 = 0; |
efc5f224 | 4295 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
4296 | |
4297 | self = self; | |
efc5f224 | 4298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4299 | return NULL; |
1d99702e RD |
4300 | if (_argo0) { |
4301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
4304 | return NULL; | |
4305 | } | |
4306 | } | |
4307 | { | |
c8bc7bb8 RD |
4308 | _arg1 = wxString_in_helper(_obj1); |
4309 | if (_arg1 == NULL) | |
2cd2fac8 | 4310 | return NULL; |
8ab979d7 | 4311 | } |
cf694132 | 4312 | { |
474c48f9 | 4313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4314 | wxWindow_SetName(_arg0,*_arg1); |
cf694132 | 4315 | |
474c48f9 | 4316 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4317 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4318 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4319 | _resultobj = Py_None; |
4320 | { | |
4321 | if (_obj1) | |
4322 | delete _arg1; | |
4323 | } | |
4324 | return _resultobj; | |
4325 | } | |
4326 | ||
8ab979d7 | 4327 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4328 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4329 | PyObject * _resultobj; |
4330 | wxWindow * _arg0; | |
4331 | int _arg1; | |
4332 | int _arg2; | |
4333 | int _arg3; | |
4334 | int _arg4; | |
eb715945 | 4335 | int _arg5 = (int ) TRUE; |
1d99702e | 4336 | PyObject * _argo0 = 0; |
efc5f224 | 4337 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4338 | |
4339 | self = self; | |
eb715945 | 4340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4341 | return NULL; |
1d99702e RD |
4342 | if (_argo0) { |
4343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4346 | return NULL; | |
4347 | } | |
4348 | } | |
cf694132 | 4349 | { |
474c48f9 | 4350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4351 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 4352 | |
474c48f9 | 4353 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4354 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4355 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4356 | _resultobj = Py_None; |
4357 | return _resultobj; | |
4358 | } | |
4359 | ||
4360 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4361 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4362 | PyObject * _resultobj; |
4363 | wxWindow * _arg0; | |
4364 | int _arg1; | |
4365 | int _arg2; | |
1d99702e RD |
4366 | bool _arg3 = (bool ) TRUE; |
4367 | PyObject * _argo0 = 0; | |
4368 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4369 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4370 | |
4371 | self = self; | |
efc5f224 | 4372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4373 | return NULL; |
1d99702e RD |
4374 | if (_argo0) { |
4375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4378 | return NULL; | |
4379 | } | |
4380 | } | |
4381 | _arg3 = (bool ) tempbool3; | |
cf694132 | 4382 | { |
474c48f9 | 4383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4384 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 4385 | |
474c48f9 | 4386 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4387 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4388 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4389 | _resultobj = Py_None; |
4390 | return _resultobj; | |
4391 | } | |
4392 | ||
4393 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4394 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4395 | PyObject * _resultobj; |
4396 | wxWindow * _arg0; | |
4397 | int _arg1; | |
4398 | int _arg2; | |
4399 | int _arg3; | |
4400 | int _arg4; | |
1d99702e RD |
4401 | int _arg5 = (int ) wxSIZE_AUTO; |
4402 | PyObject * _argo0 = 0; | |
efc5f224 | 4403 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4404 | |
4405 | self = self; | |
efc5f224 | 4406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4407 | return NULL; |
1d99702e RD |
4408 | if (_argo0) { |
4409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4412 | return NULL; | |
4413 | } | |
4414 | } | |
cf694132 | 4415 | { |
474c48f9 | 4416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4417 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 4418 | |
474c48f9 | 4419 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4420 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4421 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4422 | _resultobj = Py_None; |
4423 | return _resultobj; | |
4424 | } | |
4425 | ||
4426 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4427 | self->SetSize(size); |
8ab979d7 | 4428 | } |
efc5f224 | 4429 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4430 | PyObject * _resultobj; |
4431 | wxWindow * _arg0; | |
4432 | wxSize * _arg1; | |
1d99702e | 4433 | PyObject * _argo0 = 0; |
2f90df85 RD |
4434 | wxSize temp; |
4435 | PyObject * _obj1 = 0; | |
efc5f224 | 4436 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4437 | |
4438 | self = self; | |
2f90df85 | 4439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4440 | return NULL; |
1d99702e RD |
4441 | if (_argo0) { |
4442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4445 | return NULL; | |
4446 | } | |
4447 | } | |
2f90df85 RD |
4448 | { |
4449 | _arg1 = &temp; | |
4450 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4451 | return NULL; |
2f90df85 | 4452 | } |
cf694132 | 4453 | { |
474c48f9 | 4454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4455 | wxWindow_SetSize(_arg0,*_arg1); |
cf694132 | 4456 | |
474c48f9 | 4457 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4458 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4459 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4460 | _resultobj = Py_None; |
4461 | return _resultobj; | |
4462 | } | |
4463 | ||
8cb49012 RD |
4464 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos,int flags) { |
4465 | self->Move(pos, flags); | |
8ab979d7 | 4466 | } |
efc5f224 | 4467 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4468 | PyObject * _resultobj; |
4469 | wxWindow * _arg0; | |
4470 | wxPoint * _arg1; | |
8cb49012 | 4471 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 4472 | PyObject * _argo0 = 0; |
2f90df85 RD |
4473 | wxPoint temp; |
4474 | PyObject * _obj1 = 0; | |
8cb49012 | 4475 | char *_kwnames[] = { "self","pos","flags", NULL }; |
8ab979d7 RD |
4476 | |
4477 | self = self; | |
8cb49012 | 4478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 4479 | return NULL; |
1d99702e RD |
4480 | if (_argo0) { |
4481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4484 | return NULL; | |
4485 | } | |
4486 | } | |
2f90df85 RD |
4487 | { |
4488 | _arg1 = &temp; | |
4489 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4490 | return NULL; |
2f90df85 | 4491 | } |
cf694132 | 4492 | { |
474c48f9 | 4493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4494 | wxWindow_SetPosition(_arg0,*_arg1,_arg2); |
cf694132 | 4495 | |
474c48f9 | 4496 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4497 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4498 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4499 | _resultobj = Py_None; |
4500 | return _resultobj; | |
4501 | } | |
4502 | ||
2cd2fac8 RD |
4503 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4504 | self->SetSize(rect, sizeFlags); | |
4505 | } | |
4506 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4507 | PyObject * _resultobj; | |
4508 | wxWindow * _arg0; | |
4509 | wxRect * _arg1; | |
4510 | int _arg2 = (int ) wxSIZE_AUTO; | |
4511 | PyObject * _argo0 = 0; | |
4512 | wxRect temp; | |
4513 | PyObject * _obj1 = 0; | |
4514 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4515 | ||
4516 | self = self; | |
4517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4518 | return NULL; | |
4519 | if (_argo0) { | |
4520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4523 | return NULL; | |
4524 | } | |
4525 | } | |
4526 | { | |
4527 | _arg1 = &temp; | |
4528 | if (! wxRect_helper(_obj1, &_arg1)) | |
4529 | return NULL; | |
4530 | } | |
4531 | { | |
474c48f9 | 4532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4533 | wxWindow_SetRect(_arg0,*_arg1,_arg2); |
2cd2fac8 | 4534 | |
474c48f9 | 4535 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4536 | if (PyErr_Occurred()) return NULL; |
2cd2fac8 RD |
4537 | } Py_INCREF(Py_None); |
4538 | _resultobj = Py_None; | |
4539 | return _resultobj; | |
4540 | } | |
4541 | ||
8ab979d7 | 4542 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4543 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4544 | PyObject * _resultobj; |
4545 | wxWindow * _arg0; | |
8381e4cd RD |
4546 | int _arg1; |
4547 | int _arg2; | |
1d99702e RD |
4548 | int _arg3 = (int ) -1; |
4549 | int _arg4 = (int ) -1; | |
4550 | int _arg5 = (int ) -1; | |
4551 | int _arg6 = (int ) -1; | |
4552 | PyObject * _argo0 = 0; | |
efc5f224 | 4553 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4554 | |
4555 | self = self; | |
8381e4cd | 4556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|iiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4557 | return NULL; |
1d99702e RD |
4558 | if (_argo0) { |
4559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4562 | return NULL; | |
4563 | } | |
4564 | } | |
cf694132 | 4565 | { |
474c48f9 | 4566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4567 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 4568 | |
474c48f9 | 4569 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4570 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4571 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4572 | _resultobj = Py_None; |
4573 | return _resultobj; | |
4574 | } | |
4575 | ||
8381e4cd RD |
4576 | #define wxWindow_SetVirtualSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetVirtualSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4577 | static PyObject *_wrap_wxWindow_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4578 | PyObject * _resultobj; | |
4579 | wxWindow * _arg0; | |
4580 | int _arg1; | |
4581 | int _arg2; | |
4582 | int _arg3 = (int ) -1; | |
4583 | int _arg4 = (int ) -1; | |
4584 | PyObject * _argo0 = 0; | |
4585 | char *_kwnames[] = { "self","minW","minH","maxW","maxH", NULL }; | |
4586 | ||
4587 | self = self; | |
4588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_SetVirtualSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
4589 | return NULL; | |
4590 | if (_argo0) { | |
4591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSizeHints. Expected _wxWindow_p."); | |
4594 | return NULL; | |
4595 | } | |
4596 | } | |
4597 | { | |
4598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4599 | wxWindow_SetVirtualSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4); | |
4600 | ||
4601 | wxPyEndAllowThreads(__tstate); | |
4602 | if (PyErr_Occurred()) return NULL; | |
4603 | } Py_INCREF(Py_None); | |
4604 | _resultobj = Py_None; | |
4605 | return _resultobj; | |
4606 | } | |
4607 | ||
4608 | #define wxWindow_SetVirtualSize(_swigobj,_swigarg0) (_swigobj->SetVirtualSize(_swigarg0)) | |
4609 | static PyObject *_wrap_wxWindow_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4610 | PyObject * _resultobj; | |
4611 | wxWindow * _arg0; | |
4612 | wxSize * _arg1; | |
4613 | PyObject * _argo0 = 0; | |
4614 | wxSize temp; | |
4615 | PyObject * _obj1 = 0; | |
4616 | char *_kwnames[] = { "self","size", NULL }; | |
4617 | ||
4618 | self = self; | |
4619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetVirtualSize",_kwnames,&_argo0,&_obj1)) | |
4620 | return NULL; | |
4621 | if (_argo0) { | |
4622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSize. Expected _wxWindow_p."); | |
4625 | return NULL; | |
4626 | } | |
4627 | } | |
4628 | { | |
4629 | _arg1 = &temp; | |
4630 | if (! wxSize_helper(_obj1, &_arg1)) | |
4631 | return NULL; | |
4632 | } | |
4633 | { | |
4634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4635 | wxWindow_SetVirtualSize(_arg0,*_arg1); | |
4636 | ||
4637 | wxPyEndAllowThreads(__tstate); | |
4638 | if (PyErr_Occurred()) return NULL; | |
4639 | } Py_INCREF(Py_None); | |
4640 | _resultobj = Py_None; | |
4641 | return _resultobj; | |
4642 | } | |
4643 | ||
4644 | #define wxWindow_SetVirtualSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetVirtualSize(_swigarg0,_swigarg1)) | |
4645 | static PyObject *_wrap_wxWindow_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4646 | PyObject * _resultobj; | |
4647 | wxWindow * _arg0; | |
4648 | int _arg1; | |
4649 | int _arg2; | |
4650 | PyObject * _argo0 = 0; | |
4651 | char *_kwnames[] = { "self","x","y", NULL }; | |
4652 | ||
4653 | self = self; | |
4654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetVirtualSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4655 | return NULL; | |
4656 | if (_argo0) { | |
4657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSizeWH. Expected _wxWindow_p."); | |
4660 | return NULL; | |
4661 | } | |
4662 | } | |
4663 | { | |
4664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4665 | wxWindow_SetVirtualSizeWH(_arg0,_arg1,_arg2); | |
4666 | ||
4667 | wxPyEndAllowThreads(__tstate); | |
4668 | if (PyErr_Occurred()) return NULL; | |
4669 | } Py_INCREF(Py_None); | |
4670 | _resultobj = Py_None; | |
4671 | return _resultobj; | |
4672 | } | |
4673 | ||
4674 | #define wxWindow_GetVirtualSize(_swigobj) (_swigobj->GetVirtualSize()) | |
4675 | static PyObject *_wrap_wxWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4676 | PyObject * _resultobj; | |
4677 | wxSize * _result; | |
4678 | wxWindow * _arg0; | |
4679 | PyObject * _argo0 = 0; | |
4680 | char *_kwnames[] = { "self", NULL }; | |
4681 | char _ptemp[128]; | |
4682 | ||
4683 | self = self; | |
4684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetVirtualSize",_kwnames,&_argo0)) | |
4685 | return NULL; | |
4686 | if (_argo0) { | |
4687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetVirtualSize. Expected _wxWindow_p."); | |
4690 | return NULL; | |
4691 | } | |
4692 | } | |
4693 | { | |
4694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4695 | _result = new wxSize (wxWindow_GetVirtualSize(_arg0)); | |
4696 | ||
4697 | wxPyEndAllowThreads(__tstate); | |
4698 | if (PyErr_Occurred()) return NULL; | |
4699 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4700 | _resultobj = Py_BuildValue("s",_ptemp); | |
4701 | return _resultobj; | |
4702 | } | |
4703 | ||
4704 | #define wxWindow_GetVirtualSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) | |
4705 | static PyObject *_wrap_wxWindow_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4706 | PyObject * _resultobj; | |
4707 | wxWindow * _arg0; | |
4708 | int * _arg1; | |
4709 | int temp; | |
4710 | int * _arg2; | |
4711 | int temp0; | |
4712 | PyObject * _argo0 = 0; | |
4713 | char *_kwnames[] = { "self", NULL }; | |
4714 | ||
4715 | self = self; | |
4716 | { | |
4717 | _arg1 = &temp; | |
4718 | } | |
4719 | { | |
4720 | _arg2 = &temp0; | |
4721 | } | |
4722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetVirtualSizeTuple",_kwnames,&_argo0)) | |
4723 | return NULL; | |
4724 | if (_argo0) { | |
4725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetVirtualSizeTuple. Expected _wxWindow_p."); | |
4728 | return NULL; | |
4729 | } | |
4730 | } | |
4731 | { | |
4732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4733 | wxWindow_GetVirtualSizeTuple(_arg0,_arg1,_arg2); | |
4734 | ||
4735 | wxPyEndAllowThreads(__tstate); | |
4736 | if (PyErr_Occurred()) return NULL; | |
4737 | } Py_INCREF(Py_None); | |
4738 | _resultobj = Py_None; | |
4739 | { | |
4740 | PyObject *o; | |
4741 | o = PyInt_FromLong((long) (*_arg1)); | |
4742 | _resultobj = t_output_helper(_resultobj, o); | |
4743 | } | |
4744 | { | |
4745 | PyObject *o; | |
4746 | o = PyInt_FromLong((long) (*_arg2)); | |
4747 | _resultobj = t_output_helper(_resultobj, o); | |
4748 | } | |
4749 | return _resultobj; | |
4750 | } | |
4751 | ||
b67a9327 RD |
4752 | #define wxWindow_GetBestVirtualSize(_swigobj) (_swigobj->GetBestVirtualSize()) |
4753 | static PyObject *_wrap_wxWindow_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4754 | PyObject * _resultobj; | |
4755 | wxSize * _result; | |
4756 | wxWindow * _arg0; | |
4757 | PyObject * _argo0 = 0; | |
4758 | char *_kwnames[] = { "self", NULL }; | |
4759 | char _ptemp[128]; | |
4760 | ||
4761 | self = self; | |
4762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestVirtualSize",_kwnames,&_argo0)) | |
4763 | return NULL; | |
4764 | if (_argo0) { | |
4765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestVirtualSize. Expected _wxWindow_p."); | |
4768 | return NULL; | |
4769 | } | |
4770 | } | |
4771 | { | |
4772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4773 | _result = new wxSize (wxWindow_GetBestVirtualSize(_arg0)); | |
4774 | ||
4775 | wxPyEndAllowThreads(__tstate); | |
4776 | if (PyErr_Occurred()) return NULL; | |
4777 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4778 | _resultobj = Py_BuildValue("s",_ptemp); | |
4779 | return _resultobj; | |
4780 | } | |
4781 | ||
af309447 | 4782 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4783 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4784 | PyObject * _resultobj; |
4785 | wxWindow * _arg0; | |
4786 | int _arg1; | |
4787 | int _arg2; | |
1d99702e | 4788 | PyObject * _argo0 = 0; |
efc5f224 | 4789 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4790 | |
4791 | self = self; | |
efc5f224 | 4792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4793 | return NULL; |
1d99702e RD |
4794 | if (_argo0) { |
4795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4798 | return NULL; | |
4799 | } | |
4800 | } | |
cf694132 | 4801 | { |
474c48f9 | 4802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4803 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); |
cf694132 | 4804 | |
474c48f9 | 4805 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4806 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4807 | } Py_INCREF(Py_None); |
af309447 RD |
4808 | _resultobj = Py_None; |
4809 | return _resultobj; | |
4810 | } | |
4811 | ||
4812 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4813 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4814 | PyObject * _resultobj; |
4815 | wxWindow * _arg0; | |
4816 | wxSize * _arg1; | |
1d99702e | 4817 | PyObject * _argo0 = 0; |
2f90df85 RD |
4818 | wxSize temp; |
4819 | PyObject * _obj1 = 0; | |
efc5f224 | 4820 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4821 | |
4822 | self = self; | |
2f90df85 | 4823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4824 | return NULL; |
1d99702e RD |
4825 | if (_argo0) { |
4826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4829 | return NULL; | |
4830 | } | |
4831 | } | |
2f90df85 RD |
4832 | { |
4833 | _arg1 = &temp; | |
4834 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4835 | return NULL; |
2f90df85 | 4836 | } |
cf694132 | 4837 | { |
474c48f9 | 4838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4839 | wxWindow_SetClientSize(_arg0,*_arg1); |
cf694132 | 4840 | |
474c48f9 | 4841 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4842 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4843 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4844 | _resultobj = Py_None; |
4845 | return _resultobj; | |
4846 | } | |
4847 | ||
4848 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4849 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4850 | PyObject * _resultobj; |
298ae144 | 4851 | bool _result; |
8ab979d7 RD |
4852 | wxWindow * _arg0; |
4853 | wxCursor * _arg1; | |
1d99702e RD |
4854 | PyObject * _argo0 = 0; |
4855 | PyObject * _argo1 = 0; | |
efc5f224 | 4856 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4857 | |
4858 | self = self; | |
efc5f224 | 4859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4860 | return NULL; |
1d99702e RD |
4861 | if (_argo0) { |
4862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4865 | return NULL; | |
4866 | } | |
4867 | } | |
1d99702e | 4868 | if (_argo1) { |
b67a9327 | 4869 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { |
8ab979d7 RD |
4870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4871 | return NULL; | |
4872 | } | |
4873 | } | |
cf694132 | 4874 | { |
474c48f9 | 4875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
298ae144 | 4876 | _result = (bool )wxWindow_SetCursor(_arg0,*_arg1); |
cf694132 | 4877 | |
474c48f9 | 4878 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4879 | if (PyErr_Occurred()) return NULL; |
298ae144 RD |
4880 | } _resultobj = Py_BuildValue("i",_result); |
4881 | return _resultobj; | |
4882 | } | |
4883 | ||
4884 | #define wxWindow_GetCursor(_swigobj) (_swigobj->GetCursor()) | |
4885 | static PyObject *_wrap_wxWindow_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4886 | PyObject * _resultobj; | |
4887 | wxCursor * _result; | |
4888 | wxWindow * _arg0; | |
4889 | PyObject * _argo0 = 0; | |
4890 | char *_kwnames[] = { "self", NULL }; | |
4891 | char _ptemp[128]; | |
4892 | ||
4893 | self = self; | |
4894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCursor",_kwnames,&_argo0)) | |
4895 | return NULL; | |
4896 | if (_argo0) { | |
4897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCursor. Expected _wxWindow_p."); | |
4900 | return NULL; | |
4901 | } | |
4902 | } | |
4903 | { | |
4904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4905 | wxCursor & _result_ref = wxWindow_GetCursor(_arg0); | |
4906 | _result = (wxCursor *) &_result_ref; | |
4907 | ||
4908 | wxPyEndAllowThreads(__tstate); | |
4909 | if (PyErr_Occurred()) return NULL; | |
4910 | } if (_result) { | |
4911 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
4912 | _resultobj = Py_BuildValue("s",_ptemp); | |
4913 | } else { | |
4914 | Py_INCREF(Py_None); | |
4915 | _resultobj = Py_None; | |
4916 | } | |
8ab979d7 RD |
4917 | return _resultobj; |
4918 | } | |
4919 | ||
1afc06c2 RD |
4920 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4921 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4922 | PyObject * _resultobj; | |
4923 | wxWindow * _arg0; | |
4924 | wxEvtHandler * _arg1; | |
4925 | PyObject * _argo0 = 0; | |
4926 | PyObject * _argo1 = 0; | |
4927 | char *_kwnames[] = { "self","handler", NULL }; | |
4928 | ||
4929 | self = self; | |
4930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4931 | return NULL; | |
4932 | if (_argo0) { | |
4933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4936 | return NULL; | |
4937 | } | |
4938 | } | |
4939 | if (_argo1) { | |
4940 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4941 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4943 | return NULL; | |
4944 | } | |
4945 | } | |
4946 | { | |
474c48f9 | 4947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4948 | wxWindow_SetEventHandler(_arg0,_arg1); |
1afc06c2 | 4949 | |
474c48f9 | 4950 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4951 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
4952 | } Py_INCREF(Py_None); |
4953 | _resultobj = Py_None; | |
4954 | return _resultobj; | |
4955 | } | |
4956 | ||
5e40f9dd RD |
4957 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
4958 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4959 | PyObject * _resultobj; | |
4960 | wxWindow * _arg0; | |
4961 | long _arg1; | |
4962 | PyObject * _argo0 = 0; | |
4963 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4964 | ||
4965 | self = self; | |
4966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4967 | return NULL; | |
4968 | if (_argo0) { | |
4969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4972 | return NULL; | |
4973 | } | |
4974 | } | |
4975 | { | |
474c48f9 | 4976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4977 | wxWindow_SetExtraStyle(_arg0,_arg1); |
5e40f9dd | 4978 | |
474c48f9 | 4979 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4980 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4981 | } Py_INCREF(Py_None); |
4982 | _resultobj = Py_None; | |
4983 | return _resultobj; | |
4984 | } | |
4985 | ||
8ab979d7 | 4986 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4987 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4988 | PyObject * _resultobj; |
4989 | wxWindow * _arg0; | |
4990 | wxString * _arg1; | |
1d99702e | 4991 | PyObject * _argo0 = 0; |
8ab979d7 | 4992 | PyObject * _obj1 = 0; |
efc5f224 | 4993 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4994 | |
4995 | self = self; | |
efc5f224 | 4996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4997 | return NULL; |
1d99702e RD |
4998 | if (_argo0) { |
4999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
5002 | return NULL; | |
5003 | } | |
5004 | } | |
5005 | { | |
c8bc7bb8 RD |
5006 | _arg1 = wxString_in_helper(_obj1); |
5007 | if (_arg1 == NULL) | |
2cd2fac8 | 5008 | return NULL; |
8ab979d7 | 5009 | } |
cf694132 | 5010 | { |
474c48f9 | 5011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5012 | wxWindow_SetTitle(_arg0,*_arg1); |
cf694132 | 5013 | |
474c48f9 | 5014 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5015 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5016 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5017 | _resultobj = Py_None; |
5018 | { | |
5019 | if (_obj1) | |
5020 | delete _arg1; | |
5021 | } | |
5022 | return _resultobj; | |
5023 | } | |
5024 | ||
5025 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 5026 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5027 | PyObject * _resultobj; |
5028 | bool _result; | |
5029 | wxWindow * _arg0; | |
3e212503 | 5030 | bool _arg1 = (bool ) TRUE; |
1d99702e | 5031 | PyObject * _argo0 = 0; |
3e212503 | 5032 | int tempbool1 = (int) TRUE; |
efc5f224 | 5033 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
5034 | |
5035 | self = self; | |
3e212503 | 5036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5037 | return NULL; |
1d99702e RD |
5038 | if (_argo0) { |
5039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
5042 | return NULL; | |
5043 | } | |
5044 | } | |
5045 | _arg1 = (bool ) tempbool1; | |
cf694132 | 5046 | { |
474c48f9 | 5047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5048 | _result = (bool )wxWindow_Show(_arg0,_arg1); |
cf694132 | 5049 | |
474c48f9 | 5050 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5051 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5052 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5053 | return _resultobj; |
5054 | } | |
5055 | ||
5056 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 5057 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5058 | PyObject * _resultobj; |
5059 | bool _result; | |
5060 | wxWindow * _arg0; | |
1d99702e | 5061 | PyObject * _argo0 = 0; |
efc5f224 | 5062 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5063 | |
5064 | self = self; | |
efc5f224 | 5065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 5066 | return NULL; |
1d99702e RD |
5067 | if (_argo0) { |
5068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
5071 | return NULL; | |
5072 | } | |
5073 | } | |
cf694132 | 5074 | { |
474c48f9 | 5075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5076 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); |
cf694132 | 5077 | |
474c48f9 | 5078 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5079 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5080 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5081 | return _resultobj; |
5082 | } | |
5083 | ||
5084 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 5085 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5086 | PyObject * _resultobj; |
5087 | bool _result; | |
5088 | wxWindow * _arg0; | |
1d99702e | 5089 | PyObject * _argo0 = 0; |
efc5f224 | 5090 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5091 | |
5092 | self = self; | |
efc5f224 | 5093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 5094 | return NULL; |
1d99702e RD |
5095 | if (_argo0) { |
5096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
5099 | return NULL; | |
5100 | } | |
5101 | } | |
cf694132 | 5102 | { |
474c48f9 | 5103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5104 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); |
cf694132 | 5105 | |
474c48f9 | 5106 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5107 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5108 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5109 | return _resultobj; |
5110 | } | |
5111 | ||
8cb49012 RD |
5112 | #define wxWindow_UpdateWindowUI(_swigobj) (_swigobj->UpdateWindowUI()) |
5113 | static PyObject *_wrap_wxWindow_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5114 | PyObject * _resultobj; | |
5115 | wxWindow * _arg0; | |
5116 | PyObject * _argo0 = 0; | |
5117 | char *_kwnames[] = { "self", NULL }; | |
5118 | ||
5119 | self = self; | |
5120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_UpdateWindowUI",_kwnames,&_argo0)) | |
5121 | return NULL; | |
5122 | if (_argo0) { | |
5123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UpdateWindowUI. Expected _wxWindow_p."); | |
5126 | return NULL; | |
5127 | } | |
5128 | } | |
5129 | { | |
5130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5131 | wxWindow_UpdateWindowUI(_arg0); |
8cb49012 RD |
5132 | |
5133 | wxPyEndAllowThreads(__tstate); | |
5134 | if (PyErr_Occurred()) return NULL; | |
5135 | } Py_INCREF(Py_None); | |
5136 | _resultobj = Py_None; | |
5137 | return _resultobj; | |
5138 | } | |
5139 | ||
8ab979d7 | 5140 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) |
efc5f224 | 5141 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5142 | PyObject * _resultobj; |
5143 | bool _result; | |
5144 | wxWindow * _arg0; | |
1d99702e | 5145 | PyObject * _argo0 = 0; |
efc5f224 | 5146 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5147 | |
5148 | self = self; | |
efc5f224 | 5149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 5150 | return NULL; |
1d99702e RD |
5151 | if (_argo0) { |
5152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
5155 | return NULL; | |
5156 | } | |
5157 | } | |
cf694132 | 5158 | { |
474c48f9 | 5159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5160 | _result = (bool )wxWindow_Validate(_arg0); |
cf694132 | 5161 | |
474c48f9 | 5162 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5163 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5164 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5165 | return _resultobj; |
5166 | } | |
5167 | ||
b8b8dda7 | 5168 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 5169 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5170 | PyObject * _resultobj; |
5171 | wxPoint * _result; | |
5172 | wxWindow * _arg0; | |
5173 | wxPoint * _arg1; | |
1d99702e | 5174 | PyObject * _argo0 = 0; |
2f90df85 RD |
5175 | wxPoint temp; |
5176 | PyObject * _obj1 = 0; | |
efc5f224 | 5177 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
5178 | char _ptemp[128]; |
5179 | ||
5180 | self = self; | |
2f90df85 | 5181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5182 | return NULL; |
1d99702e RD |
5183 | if (_argo0) { |
5184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
5187 | return NULL; | |
5188 | } | |
5189 | } | |
2f90df85 RD |
5190 | { |
5191 | _arg1 = &temp; | |
5192 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5193 | return NULL; |
2f90df85 | 5194 | } |
cf694132 | 5195 | { |
474c48f9 | 5196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5197 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); |
cf694132 | 5198 | |
474c48f9 | 5199 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5200 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5201 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
5202 | _resultobj = Py_BuildValue("s",_ptemp); |
5203 | return _resultobj; | |
5204 | } | |
5205 | ||
5206 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 5207 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5208 | PyObject * _resultobj; |
5209 | wxSize * _result; | |
5210 | wxWindow * _arg0; | |
5211 | wxSize * _arg1; | |
1d99702e | 5212 | PyObject * _argo0 = 0; |
2f90df85 RD |
5213 | wxSize temp; |
5214 | PyObject * _obj1 = 0; | |
efc5f224 | 5215 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
5216 | char _ptemp[128]; |
5217 | ||
5218 | self = self; | |
2f90df85 | 5219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5220 | return NULL; |
1d99702e RD |
5221 | if (_argo0) { |
5222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
5225 | return NULL; | |
5226 | } | |
5227 | } | |
2f90df85 RD |
5228 | { |
5229 | _arg1 = &temp; | |
5230 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5231 | return NULL; |
2f90df85 | 5232 | } |
cf694132 | 5233 | { |
474c48f9 | 5234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5235 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); |
cf694132 | 5236 | |
474c48f9 | 5237 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5238 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5239 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
5240 | _resultobj = Py_BuildValue("s",_ptemp); |
5241 | return _resultobj; | |
5242 | } | |
5243 | ||
5244 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 5245 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5246 | PyObject * _resultobj; |
5247 | wxPoint * _result; | |
5248 | wxWindow * _arg0; | |
5249 | wxPoint * _arg1; | |
1d99702e | 5250 | PyObject * _argo0 = 0; |
2f90df85 RD |
5251 | wxPoint temp; |
5252 | PyObject * _obj1 = 0; | |
efc5f224 | 5253 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
5254 | char _ptemp[128]; |
5255 | ||
5256 | self = self; | |
2f90df85 | 5257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5258 | return NULL; |
1d99702e RD |
5259 | if (_argo0) { |
5260 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5261 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
5263 | return NULL; | |
5264 | } | |
5265 | } | |
2f90df85 RD |
5266 | { |
5267 | _arg1 = &temp; | |
5268 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5269 | return NULL; |
2f90df85 | 5270 | } |
cf694132 | 5271 | { |
474c48f9 | 5272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5273 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); |
cf694132 | 5274 | |
474c48f9 | 5275 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5276 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5277 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
5278 | _resultobj = Py_BuildValue("s",_ptemp); |
5279 | return _resultobj; | |
5280 | } | |
5281 | ||
5282 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 5283 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5284 | PyObject * _resultobj; |
5285 | wxSize * _result; | |
5286 | wxWindow * _arg0; | |
5287 | wxSize * _arg1; | |
1d99702e | 5288 | PyObject * _argo0 = 0; |
2f90df85 RD |
5289 | wxSize temp; |
5290 | PyObject * _obj1 = 0; | |
efc5f224 | 5291 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
5292 | char _ptemp[128]; |
5293 | ||
5294 | self = self; | |
2f90df85 | 5295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5296 | return NULL; |
1d99702e RD |
5297 | if (_argo0) { |
5298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
5301 | return NULL; | |
5302 | } | |
5303 | } | |
2f90df85 RD |
5304 | { |
5305 | _arg1 = &temp; | |
5306 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5307 | return NULL; |
2f90df85 | 5308 | } |
cf694132 | 5309 | { |
474c48f9 | 5310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5311 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); |
cf694132 | 5312 | |
474c48f9 | 5313 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5314 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5315 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
5316 | _resultobj = Py_BuildValue("s",_ptemp); |
5317 | return _resultobj; | |
5318 | } | |
5319 | ||
af309447 | 5320 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 5321 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5322 | PyObject * _resultobj; |
5323 | wxWindow * _arg0; | |
5324 | wxString * _arg1; | |
1d99702e | 5325 | PyObject * _argo0 = 0; |
af309447 | 5326 | PyObject * _obj1 = 0; |
efc5f224 | 5327 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
5328 | |
5329 | self = self; | |
efc5f224 | 5330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 5331 | return NULL; |
1d99702e RD |
5332 | if (_argo0) { |
5333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
5336 | return NULL; | |
5337 | } | |
5338 | } | |
5339 | { | |
c8bc7bb8 RD |
5340 | _arg1 = wxString_in_helper(_obj1); |
5341 | if (_arg1 == NULL) | |
2cd2fac8 | 5342 | return NULL; |
af309447 | 5343 | } |
cf694132 | 5344 | { |
474c48f9 | 5345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5346 | wxWindow_SetToolTipString(_arg0,*_arg1); |
cf694132 | 5347 | |
474c48f9 | 5348 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5349 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5350 | } Py_INCREF(Py_None); |
af309447 RD |
5351 | _resultobj = Py_None; |
5352 | { | |
5353 | if (_obj1) | |
5354 | delete _arg1; | |
5355 | } | |
5356 | return _resultobj; | |
5357 | } | |
5358 | ||
5359 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 5360 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5361 | PyObject * _resultobj; |
5362 | wxWindow * _arg0; | |
5363 | wxToolTip * _arg1; | |
1d99702e RD |
5364 | PyObject * _argo0 = 0; |
5365 | PyObject * _argo1 = 0; | |
efc5f224 | 5366 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
5367 | |
5368 | self = self; | |
efc5f224 | 5369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 5370 | return NULL; |
1d99702e RD |
5371 | if (_argo0) { |
5372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
5375 | return NULL; | |
5376 | } | |
5377 | } | |
1d99702e RD |
5378 | if (_argo1) { |
5379 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5380 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
5381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
5382 | return NULL; | |
5383 | } | |
5384 | } | |
cf694132 | 5385 | { |
474c48f9 | 5386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5387 | wxWindow_SetToolTip(_arg0,_arg1); |
cf694132 | 5388 | |
474c48f9 | 5389 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5390 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5391 | } Py_INCREF(Py_None); |
af309447 RD |
5392 | _resultobj = Py_None; |
5393 | return _resultobj; | |
5394 | } | |
5395 | ||
5396 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 5397 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5398 | PyObject * _resultobj; |
5399 | wxToolTip * _result; | |
5400 | wxWindow * _arg0; | |
1d99702e | 5401 | PyObject * _argo0 = 0; |
efc5f224 | 5402 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
5403 | |
5404 | self = self; | |
efc5f224 | 5405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 5406 | return NULL; |
1d99702e RD |
5407 | if (_argo0) { |
5408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
5411 | return NULL; | |
5412 | } | |
5413 | } | |
cf694132 | 5414 | { |
474c48f9 | 5415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5416 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); |
cf694132 | 5417 | |
474c48f9 | 5418 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5419 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 5420 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
5421 | return _resultobj; |
5422 | } | |
5423 | ||
49df1f52 | 5424 | #define wxWindow_SetSizer(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizer(_swigarg0,_swigarg1)) |
2f90df85 RD |
5425 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { |
5426 | PyObject * _resultobj; | |
5427 | wxWindow * _arg0; | |
5428 | wxSizer * _arg1; | |
49df1f52 | 5429 | bool _arg2 = (bool ) TRUE; |
2f90df85 RD |
5430 | PyObject * _argo0 = 0; |
5431 | PyObject * _argo1 = 0; | |
49df1f52 RD |
5432 | int tempbool2 = (int) TRUE; |
5433 | char *_kwnames[] = { "self","sizer","deleteOld", NULL }; | |
2f90df85 RD |
5434 | |
5435 | self = self; | |
49df1f52 | 5436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1,&tempbool2)) |
2f90df85 RD |
5437 | return NULL; |
5438 | if (_argo0) { | |
5439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
5442 | return NULL; | |
5443 | } | |
5444 | } | |
5445 | if (_argo1) { | |
5446 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5447 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
5449 | return NULL; | |
5450 | } | |
5451 | } | |
49df1f52 | 5452 | _arg2 = (bool ) tempbool2; |
2f90df85 | 5453 | { |
474c48f9 | 5454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
49df1f52 | 5455 | wxWindow_SetSizer(_arg0,_arg1,_arg2); |
2f90df85 | 5456 | |
474c48f9 | 5457 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5458 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5459 | } Py_INCREF(Py_None); |
5460 | _resultobj = Py_None; | |
5461 | return _resultobj; | |
5462 | } | |
5463 | ||
8381e4cd RD |
5464 | #define wxWindow_SetSizerAndFit(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizerAndFit(_swigarg0,_swigarg1)) |
5465 | static PyObject *_wrap_wxWindow_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5466 | PyObject * _resultobj; | |
5467 | wxWindow * _arg0; | |
5468 | wxSizer * _arg1; | |
5469 | bool _arg2 = (bool ) TRUE; | |
5470 | PyObject * _argo0 = 0; | |
5471 | PyObject * _argo1 = 0; | |
5472 | int tempbool2 = (int) TRUE; | |
5473 | char *_kwnames[] = { "self","sizer","deleteOld", NULL }; | |
5474 | ||
5475 | self = self; | |
5476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizerAndFit",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
5477 | return NULL; | |
5478 | if (_argo0) { | |
5479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizerAndFit. Expected _wxWindow_p."); | |
5482 | return NULL; | |
5483 | } | |
5484 | } | |
5485 | if (_argo1) { | |
5486 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5487 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizerAndFit. Expected _wxSizer_p."); | |
5489 | return NULL; | |
5490 | } | |
5491 | } | |
5492 | _arg2 = (bool ) tempbool2; | |
5493 | { | |
5494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5495 | wxWindow_SetSizerAndFit(_arg0,_arg1,_arg2); | |
5496 | ||
5497 | wxPyEndAllowThreads(__tstate); | |
5498 | if (PyErr_Occurred()) return NULL; | |
5499 | } Py_INCREF(Py_None); | |
5500 | _resultobj = Py_None; | |
5501 | return _resultobj; | |
5502 | } | |
5503 | ||
f6bcfd97 BP |
5504 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
5505 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5506 | PyObject * _resultobj; | |
5507 | wxSizer * _result; | |
5508 | wxWindow * _arg0; | |
5509 | PyObject * _argo0 = 0; | |
5510 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
5511 | |
5512 | self = self; | |
5513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
5514 | return NULL; | |
5515 | if (_argo0) { | |
5516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
5519 | return NULL; | |
5520 | } | |
5521 | } | |
5522 | { | |
474c48f9 | 5523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5524 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); |
f6bcfd97 | 5525 | |
474c48f9 | 5526 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5527 | if (PyErr_Occurred()) return NULL; |
7a9b33db | 5528 | }{ _resultobj = wxPyMake_wxSizer(_result); } |
f6bcfd97 BP |
5529 | return _resultobj; |
5530 | } | |
5531 | ||
94082a71 RD |
5532 | #define wxWindow_SetContainingSizer(_swigobj,_swigarg0) (_swigobj->SetContainingSizer(_swigarg0)) |
5533 | static PyObject *_wrap_wxWindow_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5534 | PyObject * _resultobj; | |
5535 | wxWindow * _arg0; | |
5536 | wxSizer * _arg1; | |
5537 | PyObject * _argo0 = 0; | |
5538 | PyObject * _argo1 = 0; | |
5539 | char *_kwnames[] = { "self","sizer", NULL }; | |
5540 | ||
5541 | self = self; | |
5542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetContainingSizer",_kwnames,&_argo0,&_argo1)) | |
5543 | return NULL; | |
5544 | if (_argo0) { | |
5545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetContainingSizer. Expected _wxWindow_p."); | |
5548 | return NULL; | |
5549 | } | |
5550 | } | |
5551 | if (_argo1) { | |
5552 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5553 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetContainingSizer. Expected _wxSizer_p."); | |
5555 | return NULL; | |
5556 | } | |
5557 | } | |
5558 | { | |
5559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5560 | wxWindow_SetContainingSizer(_arg0,_arg1); |
94082a71 RD |
5561 | |
5562 | wxPyEndAllowThreads(__tstate); | |
5563 | if (PyErr_Occurred()) return NULL; | |
5564 | } Py_INCREF(Py_None); | |
5565 | _resultobj = Py_None; | |
5566 | return _resultobj; | |
5567 | } | |
5568 | ||
5569 | #define wxWindow_GetContainingSizer(_swigobj) (_swigobj->GetContainingSizer()) | |
5570 | static PyObject *_wrap_wxWindow_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5571 | PyObject * _resultobj; | |
5572 | wxSizer * _result; | |
5573 | wxWindow * _arg0; | |
5574 | PyObject * _argo0 = 0; | |
5575 | char *_kwnames[] = { "self", NULL }; | |
5576 | ||
5577 | self = self; | |
5578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetContainingSizer",_kwnames,&_argo0)) | |
5579 | return NULL; | |
5580 | if (_argo0) { | |
5581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetContainingSizer. Expected _wxWindow_p."); | |
5584 | return NULL; | |
5585 | } | |
5586 | } | |
5587 | { | |
5588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5589 | _result = (wxSizer *)wxWindow_GetContainingSizer(_arg0); |
94082a71 RD |
5590 | |
5591 | wxPyEndAllowThreads(__tstate); | |
5592 | if (PyErr_Occurred()) return NULL; | |
5593 | }{ _resultobj = wxPyMake_wxSizer(_result); } | |
5594 | return _resultobj; | |
5595 | } | |
5596 | ||
2f90df85 RD |
5597 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
5598 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5599 | PyObject * _resultobj; | |
5600 | wxValidator * _result; | |
5601 | wxWindow * _arg0; | |
5602 | PyObject * _argo0 = 0; | |
5603 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
5604 | |
5605 | self = self; | |
5606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
5607 | return NULL; | |
5608 | if (_argo0) { | |
5609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
5612 | return NULL; | |
5613 | } | |
5614 | } | |
5615 | { | |
474c48f9 | 5616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5617 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); |
2f90df85 | 5618 | |
474c48f9 | 5619 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5620 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 5621 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
5622 | return _resultobj; |
5623 | } | |
5624 | ||
5625 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5626 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5627 | PyObject * _resultobj; | |
5628 | wxWindow * _arg0; | |
5629 | wxValidator * _arg1; | |
5630 | PyObject * _argo0 = 0; | |
5631 | PyObject * _argo1 = 0; | |
5632 | char *_kwnames[] = { "self","validator", NULL }; | |
5633 | ||
5634 | self = self; | |
5635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
5636 | return NULL; | |
5637 | if (_argo0) { | |
5638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5641 | return NULL; | |
5642 | } | |
5643 | } | |
5644 | if (_argo1) { | |
b67a9327 | 5645 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { |
2f90df85 RD |
5646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); |
5647 | return NULL; | |
5648 | } | |
5649 | } | |
5650 | { | |
474c48f9 | 5651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5652 | wxWindow_SetValidator(_arg0,*_arg1); |
2f90df85 | 5653 | |
474c48f9 | 5654 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5655 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5656 | } Py_INCREF(Py_None); |
5657 | _resultobj = Py_None; | |
5658 | return _resultobj; | |
5659 | } | |
5660 | ||
b1462dfa RD |
5661 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5662 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5663 | PyObject * _resultobj; | |
5664 | wxWindow * _arg0; | |
5665 | wxDropTarget * _arg1; | |
5666 | PyObject * _argo0 = 0; | |
5667 | PyObject * _argo1 = 0; | |
5668 | char *_kwnames[] = { "self","target", NULL }; | |
5669 | ||
5670 | self = self; | |
5671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5672 | return NULL; | |
5673 | if (_argo0) { | |
5674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5677 | return NULL; | |
5678 | } | |
5679 | } | |
5680 | if (_argo1) { | |
5681 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5682 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5684 | return NULL; | |
5685 | } | |
5686 | } | |
5687 | { | |
474c48f9 | 5688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5689 | wxWindow_SetDropTarget(_arg0,_arg1); |
b1462dfa | 5690 | |
474c48f9 | 5691 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5692 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5693 | } Py_INCREF(Py_None); |
5694 | _resultobj = Py_None; | |
5695 | return _resultobj; | |
5696 | } | |
5697 | ||
5698 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5699 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5700 | PyObject * _resultobj; | |
5701 | wxDropTarget * _result; | |
5702 | wxWindow * _arg0; | |
5703 | PyObject * _argo0 = 0; | |
5704 | char *_kwnames[] = { "self", NULL }; | |
5705 | char _ptemp[128]; | |
5706 | ||
5707 | self = self; | |
5708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5709 | return NULL; | |
5710 | if (_argo0) { | |
5711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5714 | return NULL; | |
5715 | } | |
5716 | } | |
5717 | { | |
474c48f9 | 5718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5719 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); |
b1462dfa | 5720 | |
474c48f9 | 5721 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5722 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5723 | } if (_result) { |
5724 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5725 | _resultobj = Py_BuildValue("s",_ptemp); | |
5726 | } else { | |
5727 | Py_INCREF(Py_None); | |
5728 | _resultobj = Py_None; | |
5729 | } | |
5730 | return _resultobj; | |
5731 | } | |
5732 | ||
694759cf RD |
5733 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5734 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5735 | PyObject * _resultobj; | |
5736 | wxSize * _result; | |
5737 | wxWindow * _arg0; | |
5738 | PyObject * _argo0 = 0; | |
5739 | char *_kwnames[] = { "self", NULL }; | |
5740 | char _ptemp[128]; | |
5741 | ||
5742 | self = self; | |
5743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5744 | return NULL; | |
5745 | if (_argo0) { | |
5746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5749 | return NULL; | |
5750 | } | |
5751 | } | |
5752 | { | |
474c48f9 | 5753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5754 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); |
694759cf | 5755 | |
474c48f9 | 5756 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5757 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5758 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5759 | _resultobj = Py_BuildValue("s",_ptemp); | |
5760 | return _resultobj; | |
5761 | } | |
5762 | ||
49df1f52 RD |
5763 | #define wxWindow_GetMaxSize(_swigobj) (_swigobj->GetMaxSize()) |
5764 | static PyObject *_wrap_wxWindow_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5765 | PyObject * _resultobj; | |
5766 | wxSize * _result; | |
5767 | wxWindow * _arg0; | |
5768 | PyObject * _argo0 = 0; | |
5769 | char *_kwnames[] = { "self", NULL }; | |
5770 | char _ptemp[128]; | |
5771 | ||
5772 | self = self; | |
5773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetMaxSize",_kwnames,&_argo0)) | |
5774 | return NULL; | |
5775 | if (_argo0) { | |
5776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetMaxSize. Expected _wxWindow_p."); | |
5779 | return NULL; | |
5780 | } | |
5781 | } | |
5782 | { | |
5783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5784 | _result = new wxSize (wxWindow_GetMaxSize(_arg0)); | |
5785 | ||
5786 | wxPyEndAllowThreads(__tstate); | |
5787 | if (PyErr_Occurred()) return NULL; | |
5788 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5789 | _resultobj = Py_BuildValue("s",_ptemp); | |
5790 | return _resultobj; | |
5791 | } | |
5792 | ||
b67a9327 RD |
5793 | #define wxWindow_GetAdjustedBestSize(_swigobj) (_swigobj->GetAdjustedBestSize()) |
5794 | static PyObject *_wrap_wxWindow_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5795 | PyObject * _resultobj; | |
5796 | wxSize * _result; | |
5797 | wxWindow * _arg0; | |
5798 | PyObject * _argo0 = 0; | |
5799 | char *_kwnames[] = { "self", NULL }; | |
5800 | char _ptemp[128]; | |
5801 | ||
5802 | self = self; | |
5803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAdjustedBestSize",_kwnames,&_argo0)) | |
5804 | return NULL; | |
5805 | if (_argo0) { | |
5806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAdjustedBestSize. Expected _wxWindow_p."); | |
5809 | return NULL; | |
5810 | } | |
5811 | } | |
5812 | { | |
5813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5814 | _result = new wxSize (wxWindow_GetAdjustedBestSize(_arg0)); | |
5815 | ||
5816 | wxPyEndAllowThreads(__tstate); | |
5817 | if (PyErr_Occurred()) return NULL; | |
5818 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5819 | _resultobj = Py_BuildValue("s",_ptemp); | |
5820 | return _resultobj; | |
5821 | } | |
5822 | ||
a1df7a95 RD |
5823 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5824 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5825 | PyObject * _resultobj; | |
5826 | wxWindow * _arg0; | |
5827 | wxCaret * _arg1; | |
5828 | PyObject * _argo0 = 0; | |
5829 | PyObject * _argo1 = 0; | |
5830 | char *_kwnames[] = { "self","caret", NULL }; | |
5831 | ||
5832 | self = self; | |
5833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5834 | return NULL; | |
5835 | if (_argo0) { | |
5836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5839 | return NULL; | |
5840 | } | |
5841 | } | |
5842 | if (_argo1) { | |
5843 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5844 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5846 | return NULL; | |
5847 | } | |
5848 | } | |
5849 | { | |
474c48f9 | 5850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5851 | wxWindow_SetCaret(_arg0,_arg1); |
a1df7a95 | 5852 | |
474c48f9 | 5853 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5854 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5855 | } Py_INCREF(Py_None); |
5856 | _resultobj = Py_None; | |
5857 | return _resultobj; | |
5858 | } | |
5859 | ||
5860 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5861 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5862 | PyObject * _resultobj; | |
5863 | wxCaret * _result; | |
5864 | wxWindow * _arg0; | |
5865 | PyObject * _argo0 = 0; | |
5866 | char *_kwnames[] = { "self", NULL }; | |
5867 | char _ptemp[128]; | |
5868 | ||
5869 | self = self; | |
5870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5871 | return NULL; | |
5872 | if (_argo0) { | |
5873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5876 | return NULL; | |
5877 | } | |
5878 | } | |
5879 | { | |
474c48f9 | 5880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5881 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); |
a1df7a95 | 5882 | |
474c48f9 | 5883 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5884 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5885 | } if (_result) { |
5886 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5887 | _resultobj = Py_BuildValue("s",_ptemp); | |
5888 | } else { | |
5889 | Py_INCREF(Py_None); | |
5890 | _resultobj = Py_None; | |
5891 | } | |
5892 | return _resultobj; | |
5893 | } | |
5894 | ||
10be44ac RD |
5895 | #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze()) |
5896 | static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5897 | PyObject * _resultobj; | |
5898 | wxWindow * _arg0; | |
5899 | PyObject * _argo0 = 0; | |
5900 | char *_kwnames[] = { "self", NULL }; | |
5901 | ||
5902 | self = self; | |
5903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0)) | |
5904 | return NULL; | |
5905 | if (_argo0) { | |
5906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p."); | |
5909 | return NULL; | |
5910 | } | |
5911 | } | |
5912 | { | |
474c48f9 | 5913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5914 | wxWindow_Freeze(_arg0); |
10be44ac | 5915 | |
474c48f9 | 5916 | wxPyEndAllowThreads(__tstate); |
10be44ac RD |
5917 | if (PyErr_Occurred()) return NULL; |
5918 | } Py_INCREF(Py_None); | |
5919 | _resultobj = Py_None; | |
5920 | return _resultobj; | |
5921 | } | |
5922 | ||
5923 | #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw()) | |
5924 | static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5925 | PyObject * _resultobj; | |
5926 | wxWindow * _arg0; | |
5927 | PyObject * _argo0 = 0; | |
5928 | char *_kwnames[] = { "self", NULL }; | |
5929 | ||
5930 | self = self; | |
5931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0)) | |
5932 | return NULL; | |
5933 | if (_argo0) { | |
5934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p."); | |
5937 | return NULL; | |
5938 | } | |
5939 | } | |
5940 | { | |
474c48f9 | 5941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5942 | wxWindow_Thaw(_arg0); |
10be44ac | 5943 | |
474c48f9 | 5944 | wxPyEndAllowThreads(__tstate); |
10be44ac RD |
5945 | if (PyErr_Occurred()) return NULL; |
5946 | } Py_INCREF(Py_None); | |
5947 | _resultobj = Py_None; | |
5948 | return _resultobj; | |
5949 | } | |
5950 | ||
aa2a5b86 RD |
5951 | #define wxWindow_Update(_swigobj) (_swigobj->Update()) |
5952 | static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5953 | PyObject * _resultobj; | |
5954 | wxWindow * _arg0; | |
5955 | PyObject * _argo0 = 0; | |
5956 | char *_kwnames[] = { "self", NULL }; | |
5957 | ||
5958 | self = self; | |
5959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0)) | |
5960 | return NULL; | |
5961 | if (_argo0) { | |
5962 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5963 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p."); | |
5965 | return NULL; | |
5966 | } | |
5967 | } | |
5968 | { | |
474c48f9 | 5969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5970 | wxWindow_Update(_arg0); |
aa2a5b86 | 5971 | |
474c48f9 | 5972 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5973 | if (PyErr_Occurred()) return NULL; |
5974 | } Py_INCREF(Py_None); | |
5975 | _resultobj = Py_None; | |
5976 | return _resultobj; | |
5977 | } | |
5978 | ||
cd096152 RD |
5979 | #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText()) |
5980 | static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5981 | PyObject * _resultobj; | |
5982 | wxString * _result; | |
5983 | wxWindow * _arg0; | |
5984 | PyObject * _argo0 = 0; | |
5985 | char *_kwnames[] = { "self", NULL }; | |
5986 | ||
5987 | self = self; | |
5988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0)) | |
5989 | return NULL; | |
5990 | if (_argo0) { | |
5991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p."); | |
5994 | return NULL; | |
5995 | } | |
5996 | } | |
5997 | { | |
474c48f9 | 5998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5999 | _result = new wxString (wxWindow_GetHelpText(_arg0)); |
cd096152 | 6000 | |
474c48f9 | 6001 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6002 | if (PyErr_Occurred()) return NULL; |
6003 | }{ | |
c8bc7bb8 | 6004 | #if wxUSE_UNICODE |
b67a9327 | 6005 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6006 | #else |
cd096152 | 6007 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6008 | #endif |
cd096152 RD |
6009 | } |
6010 | { | |
6011 | delete _result; | |
6012 | } | |
6013 | return _resultobj; | |
6014 | } | |
6015 | ||
6016 | #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0)) | |
6017 | static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6018 | PyObject * _resultobj; | |
6019 | wxWindow * _arg0; | |
6020 | wxString * _arg1; | |
6021 | PyObject * _argo0 = 0; | |
6022 | PyObject * _obj1 = 0; | |
6023 | char *_kwnames[] = { "self","helpText", NULL }; | |
6024 | ||
6025 | self = self; | |
6026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1)) | |
6027 | return NULL; | |
6028 | if (_argo0) { | |
6029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p."); | |
6032 | return NULL; | |
6033 | } | |
6034 | } | |
6035 | { | |
c8bc7bb8 RD |
6036 | _arg1 = wxString_in_helper(_obj1); |
6037 | if (_arg1 == NULL) | |
cd096152 | 6038 | return NULL; |
cd096152 RD |
6039 | } |
6040 | { | |
474c48f9 | 6041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6042 | wxWindow_SetHelpText(_arg0,*_arg1); |
cd096152 | 6043 | |
474c48f9 | 6044 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6045 | if (PyErr_Occurred()) return NULL; |
6046 | } Py_INCREF(Py_None); | |
6047 | _resultobj = Py_None; | |
6048 | { | |
6049 | if (_obj1) | |
6050 | delete _arg1; | |
6051 | } | |
6052 | return _resultobj; | |
6053 | } | |
6054 | ||
8cb49012 RD |
6055 | #define wxWindow_SetHelpTextForId(_swigobj,_swigarg0) (_swigobj->SetHelpTextForId(_swigarg0)) |
6056 | static PyObject *_wrap_wxWindow_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6057 | PyObject * _resultobj; | |
6058 | wxWindow * _arg0; | |
6059 | wxString * _arg1; | |
6060 | PyObject * _argo0 = 0; | |
6061 | PyObject * _obj1 = 0; | |
6062 | char *_kwnames[] = { "self","text", NULL }; | |
6063 | ||
6064 | self = self; | |
6065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpTextForId",_kwnames,&_argo0,&_obj1)) | |
6066 | return NULL; | |
6067 | if (_argo0) { | |
6068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpTextForId. Expected _wxWindow_p."); | |
6071 | return NULL; | |
6072 | } | |
6073 | } | |
6074 | { | |
c8bc7bb8 RD |
6075 | _arg1 = wxString_in_helper(_obj1); |
6076 | if (_arg1 == NULL) | |
8cb49012 | 6077 | return NULL; |
8cb49012 RD |
6078 | } |
6079 | { | |
6080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 6081 | wxWindow_SetHelpTextForId(_arg0,*_arg1); |
8cb49012 RD |
6082 | |
6083 | wxPyEndAllowThreads(__tstate); | |
6084 | if (PyErr_Occurred()) return NULL; | |
6085 | } Py_INCREF(Py_None); | |
6086 | _resultobj = Py_None; | |
6087 | { | |
6088 | if (_obj1) | |
6089 | delete _arg1; | |
6090 | } | |
6091 | return _resultobj; | |
6092 | } | |
6093 | ||
cd096152 RD |
6094 | #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0)) |
6095 | static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6096 | PyObject * _resultobj; | |
6097 | bool _result; | |
6098 | wxWindow * _arg0; | |
6099 | int _arg1; | |
6100 | PyObject * _argo0 = 0; | |
6101 | char *_kwnames[] = { "self","lines", NULL }; | |
6102 | ||
6103 | self = self; | |
6104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1)) | |
6105 | return NULL; | |
6106 | if (_argo0) { | |
6107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p."); | |
6110 | return NULL; | |
6111 | } | |
6112 | } | |
6113 | { | |
474c48f9 | 6114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6115 | _result = (bool )wxWindow_ScrollLines(_arg0,_arg1); |
cd096152 | 6116 | |
474c48f9 | 6117 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6118 | if (PyErr_Occurred()) return NULL; |
6119 | } _resultobj = Py_BuildValue("i",_result); | |
6120 | return _resultobj; | |
6121 | } | |
6122 | ||
6123 | #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0)) | |
6124 | static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6125 | PyObject * _resultobj; | |
6126 | bool _result; | |
6127 | wxWindow * _arg0; | |
6128 | int _arg1; | |
6129 | PyObject * _argo0 = 0; | |
6130 | char *_kwnames[] = { "self","pages", NULL }; | |
6131 | ||
6132 | self = self; | |
6133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1)) | |
6134 | return NULL; | |
6135 | if (_argo0) { | |
6136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p."); | |
6139 | return NULL; | |
6140 | } | |
6141 | } | |
6142 | { | |
474c48f9 | 6143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6144 | _result = (bool )wxWindow_ScrollPages(_arg0,_arg1); |
cd096152 | 6145 | |
474c48f9 | 6146 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6147 | if (PyErr_Occurred()) return NULL; |
6148 | } _resultobj = Py_BuildValue("i",_result); | |
6149 | return _resultobj; | |
6150 | } | |
6151 | ||
6152 | #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp()) | |
6153 | static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6154 | PyObject * _resultobj; | |
6155 | bool _result; | |
6156 | wxWindow * _arg0; | |
6157 | PyObject * _argo0 = 0; | |
6158 | char *_kwnames[] = { "self", NULL }; | |
6159 | ||
6160 | self = self; | |
6161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0)) | |
6162 | return NULL; | |
6163 | if (_argo0) { | |
6164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p."); | |
6167 | return NULL; | |
6168 | } | |
6169 | } | |
6170 | { | |
474c48f9 | 6171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6172 | _result = (bool )wxWindow_LineUp(_arg0); |
cd096152 | 6173 | |
474c48f9 | 6174 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6175 | if (PyErr_Occurred()) return NULL; |
6176 | } _resultobj = Py_BuildValue("i",_result); | |
6177 | return _resultobj; | |
6178 | } | |
6179 | ||
6180 | #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown()) | |
6181 | static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6182 | PyObject * _resultobj; | |
6183 | bool _result; | |
6184 | wxWindow * _arg0; | |
6185 | PyObject * _argo0 = 0; | |
6186 | char *_kwnames[] = { "self", NULL }; | |
6187 | ||
6188 | self = self; | |
6189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0)) | |
6190 | return NULL; | |
6191 | if (_argo0) { | |
6192 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p."); | |
6195 | return NULL; | |
6196 | } | |
6197 | } | |
6198 | { | |
474c48f9 | 6199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6200 | _result = (bool )wxWindow_LineDown(_arg0); |
cd096152 | 6201 | |
474c48f9 | 6202 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6203 | if (PyErr_Occurred()) return NULL; |
6204 | } _resultobj = Py_BuildValue("i",_result); | |
6205 | return _resultobj; | |
6206 | } | |
6207 | ||
6208 | #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp()) | |
6209 | static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6210 | PyObject * _resultobj; | |
6211 | bool _result; | |
6212 | wxWindow * _arg0; | |
6213 | PyObject * _argo0 = 0; | |
6214 | char *_kwnames[] = { "self", NULL }; | |
6215 | ||
6216 | self = self; | |
6217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0)) | |
6218 | return NULL; | |
6219 | if (_argo0) { | |
6220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p."); | |
6223 | return NULL; | |
6224 | } | |
6225 | } | |
6226 | { | |
474c48f9 | 6227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6228 | _result = (bool )wxWindow_PageUp(_arg0); |
cd096152 | 6229 | |
474c48f9 | 6230 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6231 | if (PyErr_Occurred()) return NULL; |
6232 | } _resultobj = Py_BuildValue("i",_result); | |
6233 | return _resultobj; | |
6234 | } | |
6235 | ||
6236 | #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown()) | |
6237 | static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6238 | PyObject * _resultobj; | |
6239 | bool _result; | |
6240 | wxWindow * _arg0; | |
6241 | PyObject * _argo0 = 0; | |
6242 | char *_kwnames[] = { "self", NULL }; | |
6243 | ||
6244 | self = self; | |
6245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0)) | |
6246 | return NULL; | |
6247 | if (_argo0) { | |
6248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p."); | |
6251 | return NULL; | |
6252 | } | |
6253 | } | |
6254 | { | |
474c48f9 | 6255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6256 | _result = (bool )wxWindow_PageDown(_arg0); |
cd096152 | 6257 | |
474c48f9 | 6258 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6259 | if (PyErr_Occurred()) return NULL; |
6260 | } _resultobj = Py_BuildValue("i",_result); | |
6261 | return _resultobj; | |
6262 | } | |
6263 | ||
aa2a5b86 RD |
6264 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
6265 | PyObject * _resultobj; | |
6266 | wxWindow * _result; | |
6267 | char *_kwnames[] = { NULL }; | |
6268 | ||
6269 | self = self; | |
6270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
6271 | return NULL; | |
6272 | { | |
474c48f9 | 6273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6274 | _result = (wxWindow *)wxWindow::FindFocus(); |
aa2a5b86 | 6275 | |
474c48f9 | 6276 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6277 | if (PyErr_Occurred()) return NULL; |
6278 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6279 | return _resultobj; | |
6280 | } | |
6281 | ||
6282 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6283 | PyObject * _resultobj; | |
6284 | int _result; | |
6285 | char *_kwnames[] = { NULL }; | |
6286 | ||
6287 | self = self; | |
6288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
6289 | return NULL; | |
6290 | { | |
474c48f9 | 6291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6292 | _result = (int )wxWindow::NewControlId(); |
aa2a5b86 | 6293 | |
474c48f9 | 6294 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6295 | if (PyErr_Occurred()) return NULL; |
6296 | } _resultobj = Py_BuildValue("i",_result); | |
6297 | return _resultobj; | |
6298 | } | |
6299 | ||
6300 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6301 | PyObject * _resultobj; | |
6302 | int _result; | |
6303 | int _arg0; | |
6304 | char *_kwnames[] = { "id", NULL }; | |
6305 | ||
6306 | self = self; | |
6307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
6308 | return NULL; | |
6309 | { | |
474c48f9 | 6310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6311 | _result = (int )wxWindow::NextControlId(_arg0); |
aa2a5b86 | 6312 | |
474c48f9 | 6313 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6314 | if (PyErr_Occurred()) return NULL; |
6315 | } _resultobj = Py_BuildValue("i",_result); | |
6316 | return _resultobj; | |
6317 | } | |
6318 | ||
6319 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6320 | PyObject * _resultobj; | |
6321 | int _result; | |
6322 | int _arg0; | |
6323 | char *_kwnames[] = { "id", NULL }; | |
6324 | ||
6325 | self = self; | |
6326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
6327 | return NULL; | |
6328 | { | |
474c48f9 | 6329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6330 | _result = (int )wxWindow::PrevControlId(_arg0); |
aa2a5b86 | 6331 | |
474c48f9 | 6332 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6333 | if (PyErr_Occurred()) return NULL; |
6334 | } _resultobj = Py_BuildValue("i",_result); | |
6335 | return _resultobj; | |
6336 | } | |
6337 | ||
32c988a3 RD |
6338 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
6339 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6340 | PyObject * _resultobj; | |
6341 | wxWindow * _arg0; | |
6342 | wxAcceleratorTable * _arg1; | |
6343 | PyObject * _argo0 = 0; | |
6344 | PyObject * _argo1 = 0; | |
6345 | char *_kwnames[] = { "self","accel", NULL }; | |
6346 | ||
6347 | self = self; | |
6348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) | |
6349 | return NULL; | |
6350 | if (_argo0) { | |
6351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); | |
6354 | return NULL; | |
6355 | } | |
6356 | } | |
6357 | if (_argo1) { | |
b67a9327 | 6358 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { |
32c988a3 RD |
6359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); |
6360 | return NULL; | |
6361 | } | |
6362 | } | |
6363 | { | |
474c48f9 | 6364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6365 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); |
32c988a3 | 6366 | |
474c48f9 | 6367 | wxPyEndAllowThreads(__tstate); |
32c988a3 RD |
6368 | if (PyErr_Occurred()) return NULL; |
6369 | } Py_INCREF(Py_None); | |
6370 | _resultobj = Py_None; | |
6371 | return _resultobj; | |
6372 | } | |
6373 | ||
65191ae8 RD |
6374 | #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable()) |
6375 | static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6376 | PyObject * _resultobj; | |
6377 | wxAcceleratorTable * _result; | |
6378 | wxWindow * _arg0; | |
6379 | PyObject * _argo0 = 0; | |
6380 | char *_kwnames[] = { "self", NULL }; | |
6381 | char _ptemp[128]; | |
6382 | ||
6383 | self = self; | |
6384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0)) | |
6385 | return NULL; | |
6386 | if (_argo0) { | |
6387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p."); | |
6390 | return NULL; | |
6391 | } | |
6392 | } | |
6393 | { | |
474c48f9 | 6394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6395 | _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0); |
65191ae8 | 6396 | |
474c48f9 | 6397 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
6398 | if (PyErr_Occurred()) return NULL; |
6399 | } if (_result) { | |
6400 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p"); | |
6401 | _resultobj = Py_BuildValue("s",_ptemp); | |
6402 | } else { | |
6403 | Py_INCREF(Py_None); | |
6404 | _resultobj = Py_None; | |
6405 | } | |
6406 | return _resultobj; | |
6407 | } | |
6408 | ||
1893b029 RD |
6409 | #define wxWindow_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
6410 | static PyObject *_wrap_wxWindow_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6411 | PyObject * _resultobj; | |
49df1f52 | 6412 | wxWindow * _result; |
1893b029 RD |
6413 | wxWindow * _arg0; |
6414 | PyObject * _argo0 = 0; | |
6415 | char *_kwnames[] = { "self", NULL }; | |
6416 | ||
6417 | self = self; | |
6418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDefaultItem",_kwnames,&_argo0)) | |
6419 | return NULL; | |
6420 | if (_argo0) { | |
6421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDefaultItem. Expected _wxWindow_p."); | |
6424 | return NULL; | |
6425 | } | |
6426 | } | |
6427 | { | |
6428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
49df1f52 | 6429 | _result = (wxWindow *)wxWindow_GetDefaultItem(_arg0); |
1893b029 RD |
6430 | |
6431 | wxPyEndAllowThreads(__tstate); | |
6432 | if (PyErr_Occurred()) return NULL; | |
6433 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6434 | return _resultobj; | |
6435 | } | |
6436 | ||
6437 | #define wxWindow_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
6438 | static PyObject *_wrap_wxWindow_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6439 | PyObject * _resultobj; | |
49df1f52 | 6440 | wxWindow * _result; |
1893b029 | 6441 | wxWindow * _arg0; |
49df1f52 | 6442 | wxWindow * _arg1; |
1893b029 RD |
6443 | PyObject * _argo0 = 0; |
6444 | PyObject * _argo1 = 0; | |
6445 | char *_kwnames[] = { "self","btn", NULL }; | |
6446 | ||
6447 | self = self; | |
6448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDefaultItem",_kwnames,&_argo0,&_argo1)) | |
6449 | return NULL; | |
6450 | if (_argo0) { | |
6451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
6454 | return NULL; | |
6455 | } | |
6456 | } | |
6457 | if (_argo1) { | |
6458 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
49df1f52 RD |
6459 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
6460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
1893b029 RD |
6461 | return NULL; |
6462 | } | |
6463 | } | |
6464 | { | |
6465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
49df1f52 | 6466 | _result = (wxWindow *)wxWindow_SetDefaultItem(_arg0,_arg1); |
1893b029 RD |
6467 | |
6468 | wxPyEndAllowThreads(__tstate); | |
6469 | if (PyErr_Occurred()) return NULL; | |
49df1f52 | 6470 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1893b029 RD |
6471 | return _resultobj; |
6472 | } | |
6473 | ||
12d1116b RD |
6474 | #define wxWindow_SetTmpDefaultItem(_swigobj,_swigarg0) (_swigobj->SetTmpDefaultItem(_swigarg0)) |
6475 | static PyObject *_wrap_wxWindow_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6476 | PyObject * _resultobj; | |
6477 | wxWindow * _arg0; | |
6478 | wxWindow * _arg1; | |
6479 | PyObject * _argo0 = 0; | |
6480 | PyObject * _argo1 = 0; | |
6481 | char *_kwnames[] = { "self","win", NULL }; | |
6482 | ||
6483 | self = self; | |
6484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTmpDefaultItem",_kwnames,&_argo0,&_argo1)) | |
6485 | return NULL; | |
6486 | if (_argo0) { | |
6487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTmpDefaultItem. Expected _wxWindow_p."); | |
6490 | return NULL; | |
6491 | } | |
6492 | } | |
6493 | if (_argo1) { | |
6494 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6495 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetTmpDefaultItem. Expected _wxWindow_p."); | |
6497 | return NULL; | |
6498 | } | |
6499 | } | |
6500 | { | |
6501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6502 | wxWindow_SetTmpDefaultItem(_arg0,_arg1); | |
6503 | ||
6504 | wxPyEndAllowThreads(__tstate); | |
6505 | if (PyErr_Occurred()) return NULL; | |
6506 | } Py_INCREF(Py_None); | |
6507 | _resultobj = Py_None; | |
6508 | return _resultobj; | |
6509 | } | |
6510 | ||
94c16279 RD |
6511 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) |
6512 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6513 | PyObject * _resultobj; | |
6514 | wxWindow * _arg0; | |
6515 | int _arg1; | |
6516 | int _arg2; | |
6517 | PyObject * _argo0 = 0; | |
6518 | char *_kwnames[] = { "self","x","y", NULL }; | |
6519 | ||
6520 | self = self; | |
6521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6522 | return NULL; | |
6523 | if (_argo0) { | |
6524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); | |
6527 | return NULL; | |
6528 | } | |
6529 | } | |
6530 | { | |
6531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6532 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
6533 | ||
6534 | wxPyEndAllowThreads(__tstate); | |
6535 | if (PyErr_Occurred()) return NULL; | |
6536 | } Py_INCREF(Py_None); | |
6537 | _resultobj = Py_None; | |
6538 | return _resultobj; | |
6539 | } | |
6540 | ||
6541 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
6542 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6543 | PyObject * _resultobj; | |
6544 | wxWindow * _arg0; | |
6545 | PyObject * _argo0 = 0; | |
6546 | char *_kwnames[] = { "self", NULL }; | |
6547 | ||
6548 | self = self; | |
6549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) | |
6550 | return NULL; | |
6551 | if (_argo0) { | |
6552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); | |
6555 | return NULL; | |
6556 | } | |
6557 | } | |
6558 | { | |
6559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6560 | wxWindow_CaptureMouse(_arg0); | |
6561 | ||
6562 | wxPyEndAllowThreads(__tstate); | |
6563 | if (PyErr_Occurred()) return NULL; | |
6564 | } Py_INCREF(Py_None); | |
6565 | _resultobj = Py_None; | |
6566 | return _resultobj; | |
6567 | } | |
6568 | ||
6569 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
6570 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6571 | PyObject * _resultobj; | |
6572 | wxWindow * _arg0; | |
6573 | PyObject * _argo0 = 0; | |
6574 | char *_kwnames[] = { "self", NULL }; | |
6575 | ||
6576 | self = self; | |
6577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) | |
6578 | return NULL; | |
6579 | if (_argo0) { | |
6580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); | |
6583 | return NULL; | |
6584 | } | |
6585 | } | |
6586 | { | |
6587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6588 | wxWindow_ReleaseMouse(_arg0); | |
6589 | ||
6590 | wxPyEndAllowThreads(__tstate); | |
6591 | if (PyErr_Occurred()) return NULL; | |
6592 | } Py_INCREF(Py_None); | |
6593 | _resultobj = Py_None; | |
6594 | return _resultobj; | |
6595 | } | |
6596 | ||
6597 | static PyObject *_wrap_wxWindow_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6598 | PyObject * _resultobj; | |
6599 | wxWindow * _result; | |
6600 | char *_kwnames[] = { NULL }; | |
6601 | ||
6602 | self = self; | |
6603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_GetCapture",_kwnames)) | |
6604 | return NULL; | |
6605 | { | |
6606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6607 | _result = (wxWindow *)wxWindow::GetCapture(); | |
6608 | ||
6609 | wxPyEndAllowThreads(__tstate); | |
6610 | if (PyErr_Occurred()) return NULL; | |
6611 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6612 | return _resultobj; | |
6613 | } | |
6614 | ||
6615 | #define wxWindow_HasCapture(_swigobj) (_swigobj->HasCapture()) | |
6616 | static PyObject *_wrap_wxWindow_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6617 | PyObject * _resultobj; | |
6618 | bool _result; | |
6619 | wxWindow * _arg0; | |
6620 | PyObject * _argo0 = 0; | |
6621 | char *_kwnames[] = { "self", NULL }; | |
6622 | ||
6623 | self = self; | |
6624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_HasCapture",_kwnames,&_argo0)) | |
6625 | return NULL; | |
6626 | if (_argo0) { | |
6627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasCapture. Expected _wxWindow_p."); | |
6630 | return NULL; | |
6631 | } | |
6632 | } | |
6633 | { | |
6634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6635 | _result = (bool )wxWindow_HasCapture(_arg0); | |
6636 | ||
6637 | wxPyEndAllowThreads(__tstate); | |
6638 | if (PyErr_Occurred()) return NULL; | |
6639 | } _resultobj = Py_BuildValue("i",_result); | |
6640 | return _resultobj; | |
6641 | } | |
6642 | ||
1fded56b RD |
6643 | #define wxWindow_SetThemeEnabled(_swigobj,_swigarg0) (_swigobj->SetThemeEnabled(_swigarg0)) |
6644 | static PyObject *_wrap_wxWindow_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6645 | PyObject * _resultobj; | |
6646 | wxWindow * _arg0; | |
6647 | bool _arg1; | |
6648 | PyObject * _argo0 = 0; | |
6649 | int tempbool1; | |
6650 | char *_kwnames[] = { "self","enable", NULL }; | |
6651 | ||
6652 | self = self; | |
6653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetThemeEnabled",_kwnames,&_argo0,&tempbool1)) | |
6654 | return NULL; | |
6655 | if (_argo0) { | |
6656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetThemeEnabled. Expected _wxWindow_p."); | |
6659 | return NULL; | |
6660 | } | |
6661 | } | |
6662 | _arg1 = (bool ) tempbool1; | |
6663 | { | |
6664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6665 | wxWindow_SetThemeEnabled(_arg0,_arg1); | |
6666 | ||
6667 | wxPyEndAllowThreads(__tstate); | |
6668 | if (PyErr_Occurred()) return NULL; | |
6669 | } Py_INCREF(Py_None); | |
6670 | _resultobj = Py_None; | |
6671 | return _resultobj; | |
6672 | } | |
6673 | ||
6674 | #define wxWindow_GetThemeEnabled(_swigobj) (_swigobj->GetThemeEnabled()) | |
6675 | static PyObject *_wrap_wxWindow_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6676 | PyObject * _resultobj; | |
6677 | bool _result; | |
6678 | wxWindow * _arg0; | |
6679 | PyObject * _argo0 = 0; | |
6680 | char *_kwnames[] = { "self", NULL }; | |
6681 | ||
6682 | self = self; | |
6683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetThemeEnabled",_kwnames,&_argo0)) | |
6684 | return NULL; | |
6685 | if (_argo0) { | |
6686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetThemeEnabled. Expected _wxWindow_p."); | |
6689 | return NULL; | |
6690 | } | |
6691 | } | |
6692 | { | |
6693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6694 | _result = (bool )wxWindow_GetThemeEnabled(_arg0); | |
6695 | ||
6696 | wxPyEndAllowThreads(__tstate); | |
6697 | if (PyErr_Occurred()) return NULL; | |
6698 | } _resultobj = Py_BuildValue("i",_result); | |
6699 | return _resultobj; | |
6700 | } | |
6701 | ||
8ab979d7 RD |
6702 | static void *SwigwxPanelTowxWindow(void *ptr) { |
6703 | wxPanel *src; | |
6704 | wxWindow *dest; | |
6705 | src = (wxPanel *) ptr; | |
6706 | dest = (wxWindow *) src; | |
6707 | return (void *) dest; | |
6708 | } | |
6709 | ||
6710 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
6711 | wxPanel *src; | |
6712 | wxEvtHandler *dest; | |
6713 | src = (wxPanel *) ptr; | |
6714 | dest = (wxEvtHandler *) src; | |
6715 | return (void *) dest; | |
6716 | } | |
6717 | ||
9df61a29 RD |
6718 | static void *SwigwxPanelTowxObject(void *ptr) { |
6719 | wxPanel *src; | |
6720 | wxObject *dest; | |
6721 | src = (wxPanel *) ptr; | |
6722 | dest = (wxObject *) src; | |
6723 | return (void *) dest; | |
6724 | } | |
6725 | ||
8ab979d7 | 6726 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6727 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6728 | PyObject * _resultobj; |
6729 | wxPanel * _result; | |
6730 | wxWindow * _arg0; | |
6731 | wxWindowID _arg1; | |
b68dc582 RD |
6732 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6733 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 6734 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
9a74fcaf | 6735 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 6736 | PyObject * _argo0 = 0; |
2f90df85 RD |
6737 | wxPoint temp; |
6738 | PyObject * _obj2 = 0; | |
6739 | wxSize temp0; | |
6740 | PyObject * _obj3 = 0; | |
9a74fcaf | 6741 | PyObject * _obj5 = 0; |
efc5f224 | 6742 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6743 | char _ptemp[128]; |
6744 | ||
6745 | self = self; | |
9a74fcaf | 6746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 6747 | return NULL; |
1d99702e RD |
6748 | if (_argo0) { |
6749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
6752 | return NULL; | |
6753 | } | |
6754 | } | |
2f90df85 RD |
6755 | if (_obj2) |
6756 | { | |
6757 | _arg2 = &temp; | |
6758 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6759 | return NULL; |
2f90df85 RD |
6760 | } |
6761 | if (_obj3) | |
6762 | { | |
6763 | _arg3 = &temp0; | |
6764 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6765 | return NULL; |
9a74fcaf RD |
6766 | } |
6767 | if (_obj5) | |
6768 | { | |
6769 | _arg5 = wxString_in_helper(_obj5); | |
6770 | if (_arg5 == NULL) | |
6771 | return NULL; | |
2f90df85 | 6772 | } |
cf694132 | 6773 | { |
474c48f9 | 6774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6775 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 6776 | |
474c48f9 | 6777 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6778 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6779 | } if (_result) { |
6780 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6781 | _resultobj = Py_BuildValue("s",_ptemp); | |
6782 | } else { | |
6783 | Py_INCREF(Py_None); | |
6784 | _resultobj = Py_None; | |
6785 | } | |
9a74fcaf RD |
6786 | { |
6787 | if (_obj5) | |
6788 | delete _arg5; | |
6789 | } | |
8ab979d7 RD |
6790 | return _resultobj; |
6791 | } | |
6792 | ||
aa2a5b86 RD |
6793 | #define new_wxPrePanel() (new wxPanel()) |
6794 | static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6795 | PyObject * _resultobj; | |
6796 | wxPanel * _result; | |
6797 | char *_kwnames[] = { NULL }; | |
6798 | char _ptemp[128]; | |
6799 | ||
6800 | self = self; | |
6801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames)) | |
6802 | return NULL; | |
6803 | { | |
474c48f9 | 6804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6805 | _result = (wxPanel *)new_wxPrePanel(); |
aa2a5b86 | 6806 | |
474c48f9 | 6807 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6808 | if (PyErr_Occurred()) return NULL; |
6809 | } if (_result) { | |
6810 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6811 | _resultobj = Py_BuildValue("s",_ptemp); | |
6812 | } else { | |
6813 | Py_INCREF(Py_None); | |
6814 | _resultobj = Py_None; | |
6815 | } | |
6816 | return _resultobj; | |
6817 | } | |
6818 | ||
6819 | #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6820 | static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6821 | PyObject * _resultobj; | |
6822 | bool _result; | |
6823 | wxPanel * _arg0; | |
6824 | wxWindow * _arg1; | |
6825 | wxWindowID _arg2; | |
6826 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6827 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6828 | long _arg5 = (long ) wxTAB_TRAVERSAL; | |
9a74fcaf | 6829 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
aa2a5b86 RD |
6830 | PyObject * _argo0 = 0; |
6831 | PyObject * _argo1 = 0; | |
6832 | wxPoint temp; | |
6833 | PyObject * _obj3 = 0; | |
6834 | wxSize temp0; | |
6835 | PyObject * _obj4 = 0; | |
9a74fcaf | 6836 | PyObject * _obj6 = 0; |
aa2a5b86 RD |
6837 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
6838 | ||
6839 | self = self; | |
9a74fcaf | 6840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
aa2a5b86 RD |
6841 | return NULL; |
6842 | if (_argo0) { | |
6843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
6845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p."); | |
6846 | return NULL; | |
6847 | } | |
6848 | } | |
6849 | if (_argo1) { | |
6850 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6851 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p."); | |
6853 | return NULL; | |
6854 | } | |
6855 | } | |
6856 | if (_obj3) | |
6857 | { | |
6858 | _arg3 = &temp; | |
6859 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6860 | return NULL; | |
6861 | } | |
6862 | if (_obj4) | |
6863 | { | |
6864 | _arg4 = &temp0; | |
6865 | if (! wxSize_helper(_obj4, &_arg4)) | |
6866 | return NULL; | |
9a74fcaf RD |
6867 | } |
6868 | if (_obj6) | |
6869 | { | |
6870 | _arg6 = wxString_in_helper(_obj6); | |
6871 | if (_arg6 == NULL) | |
6872 | return NULL; | |
aa2a5b86 RD |
6873 | } |
6874 | { | |
474c48f9 | 6875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6876 | _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
aa2a5b86 | 6877 | |
474c48f9 | 6878 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6879 | if (PyErr_Occurred()) return NULL; |
6880 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
6881 | { |
6882 | if (_obj6) | |
6883 | delete _arg6; | |
6884 | } | |
aa2a5b86 RD |
6885 | return _resultobj; |
6886 | } | |
6887 | ||
8ab979d7 | 6888 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 6889 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6890 | PyObject * _resultobj; |
6891 | wxPanel * _arg0; | |
1d99702e | 6892 | PyObject * _argo0 = 0; |
efc5f224 | 6893 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6894 | |
6895 | self = self; | |
efc5f224 | 6896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 6897 | return NULL; |
1d99702e RD |
6898 | if (_argo0) { |
6899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
6901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
6902 | return NULL; | |
6903 | } | |
6904 | } | |
cf694132 | 6905 | { |
474c48f9 | 6906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6907 | wxPanel_InitDialog(_arg0); |
cf694132 | 6908 | |
474c48f9 | 6909 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6910 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6911 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6912 | _resultobj = Py_None; |
6913 | return _resultobj; | |
6914 | } | |
6915 | ||
bb0054cd RD |
6916 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
6917 | wxScrolledWindow *src; | |
6918 | wxPanel *dest; | |
6919 | src = (wxScrolledWindow *) ptr; | |
6920 | dest = (wxPanel *) src; | |
6921 | return (void *) dest; | |
6922 | } | |
6923 | ||
8ab979d7 RD |
6924 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
6925 | wxScrolledWindow *src; | |
6926 | wxWindow *dest; | |
6927 | src = (wxScrolledWindow *) ptr; | |
6928 | dest = (wxWindow *) src; | |
6929 | return (void *) dest; | |
6930 | } | |
6931 | ||
6932 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
6933 | wxScrolledWindow *src; | |
6934 | wxEvtHandler *dest; | |
6935 | src = (wxScrolledWindow *) ptr; | |
6936 | dest = (wxEvtHandler *) src; | |
6937 | return (void *) dest; | |
6938 | } | |
6939 | ||
9df61a29 RD |
6940 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
6941 | wxScrolledWindow *src; | |
6942 | wxObject *dest; | |
6943 | src = (wxScrolledWindow *) ptr; | |
6944 | dest = (wxObject *) src; | |
6945 | return (void *) dest; | |
6946 | } | |
6947 | ||
8ab979d7 | 6948 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6949 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6950 | PyObject * _resultobj; |
6951 | wxScrolledWindow * _result; | |
6952 | wxWindow * _arg0; | |
1d99702e | 6953 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
6954 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6955 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 6956 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
9a74fcaf | 6957 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 6958 | PyObject * _argo0 = 0; |
2f90df85 RD |
6959 | wxPoint temp; |
6960 | PyObject * _obj2 = 0; | |
6961 | wxSize temp0; | |
6962 | PyObject * _obj3 = 0; | |
9a74fcaf | 6963 | PyObject * _obj5 = 0; |
efc5f224 | 6964 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6965 | char _ptemp[128]; |
6966 | ||
6967 | self = self; | |
9a74fcaf | 6968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 6969 | return NULL; |
1d99702e RD |
6970 | if (_argo0) { |
6971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
6974 | return NULL; | |
6975 | } | |
6976 | } | |
2f90df85 RD |
6977 | if (_obj2) |
6978 | { | |
6979 | _arg2 = &temp; | |
6980 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6981 | return NULL; |
2f90df85 RD |
6982 | } |
6983 | if (_obj3) | |
6984 | { | |
6985 | _arg3 = &temp0; | |
6986 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6987 | return NULL; |
9a74fcaf RD |
6988 | } |
6989 | if (_obj5) | |
6990 | { | |
6991 | _arg5 = wxString_in_helper(_obj5); | |
6992 | if (_arg5 == NULL) | |
6993 | return NULL; | |
2f90df85 | 6994 | } |
cf694132 | 6995 | { |
474c48f9 | 6996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6997 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 6998 | |
474c48f9 | 6999 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7000 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7001 | } if (_result) { |
7002 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
7003 | _resultobj = Py_BuildValue("s",_ptemp); | |
7004 | } else { | |
7005 | Py_INCREF(Py_None); | |
7006 | _resultobj = Py_None; | |
7007 | } | |
9a74fcaf RD |
7008 | { |
7009 | if (_obj5) | |
7010 | delete _arg5; | |
7011 | } | |
8ab979d7 RD |
7012 | return _resultobj; |
7013 | } | |
7014 | ||
aa2a5b86 RD |
7015 | #define new_wxPreScrolledWindow() (new wxScrolledWindow()) |
7016 | static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7017 | PyObject * _resultobj; | |
7018 | wxScrolledWindow * _result; | |
7019 | char *_kwnames[] = { NULL }; | |
7020 | char _ptemp[128]; | |
7021 | ||
7022 | self = self; | |
7023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames)) | |
7024 | return NULL; | |
7025 | { | |
474c48f9 | 7026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7027 | _result = (wxScrolledWindow *)new_wxPreScrolledWindow(); |
aa2a5b86 | 7028 | |
474c48f9 | 7029 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
7030 | if (PyErr_Occurred()) return NULL; |
7031 | } if (_result) { | |
7032 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
7033 | _resultobj = Py_BuildValue("s",_ptemp); | |
7034 | } else { | |
7035 | Py_INCREF(Py_None); | |
7036 | _resultobj = Py_None; | |
7037 | } | |
7038 | return _resultobj; | |
7039 | } | |
7040 | ||
7041 | #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
7042 | static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7043 | PyObject * _resultobj; | |
7044 | bool _result; | |
7045 | wxScrolledWindow * _arg0; | |
7046 | wxWindow * _arg1; | |
7047 | wxWindowID _arg2 = (wxWindowID ) -1; | |
7048 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
7049 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
7050 | long _arg5 = (long ) wxHSCROLL|wxVSCROLL; | |
9a74fcaf | 7051 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
aa2a5b86 RD |
7052 | PyObject * _argo0 = 0; |
7053 | PyObject * _argo1 = 0; | |
7054 | wxPoint temp; | |
7055 | PyObject * _obj3 = 0; | |
7056 | wxSize temp0; | |
7057 | PyObject * _obj4 = 0; | |
9a74fcaf | 7058 | PyObject * _obj6 = 0; |
aa2a5b86 RD |
7059 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
7060 | ||
7061 | self = self; | |
9a74fcaf | 7062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
aa2a5b86 RD |
7063 | return NULL; |
7064 | if (_argo0) { | |
7065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p."); | |
7068 | return NULL; | |
7069 | } | |
7070 | } | |
7071 | if (_argo1) { | |
7072 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7073 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p."); | |
7075 | return NULL; | |
7076 | } | |
7077 | } | |
7078 | if (_obj3) | |
7079 | { | |
7080 | _arg3 = &temp; | |
7081 | if (! wxPoint_helper(_obj3, &_arg3)) | |
7082 | return NULL; | |
7083 | } | |
7084 | if (_obj4) | |
7085 | { | |
7086 | _arg4 = &temp0; | |
7087 | if (! wxSize_helper(_obj4, &_arg4)) | |
7088 | return NULL; | |
9a74fcaf RD |
7089 | } |
7090 | if (_obj6) | |
7091 | { | |
7092 | _arg6 = wxString_in_helper(_obj6); | |
7093 | if (_arg6 == NULL) | |
7094 | return NULL; | |
aa2a5b86 RD |
7095 | } |
7096 | { | |
474c48f9 | 7097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 7098 | _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
aa2a5b86 | 7099 | |
474c48f9 | 7100 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
7101 | if (PyErr_Occurred()) return NULL; |
7102 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
7103 | { |
7104 | if (_obj6) | |
7105 | delete _arg6; | |
7106 | } | |
aa2a5b86 RD |
7107 | return _resultobj; |
7108 | } | |
7109 | ||
8ab979d7 | 7110 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) |
efc5f224 | 7111 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7112 | PyObject * _resultobj; |
7113 | wxScrolledWindow * _arg0; | |
7114 | bool _arg1; | |
7115 | bool _arg2; | |
1d99702e | 7116 | PyObject * _argo0 = 0; |
8ab979d7 RD |
7117 | int tempbool1; |
7118 | int tempbool2; | |
efc5f224 | 7119 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
7120 | |
7121 | self = self; | |
efc5f224 | 7122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 7123 | return NULL; |
1d99702e RD |
7124 | if (_argo0) { |
7125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
7128 | return NULL; | |
7129 | } | |
7130 | } | |
7131 | _arg1 = (bool ) tempbool1; | |
7132 | _arg2 = (bool ) tempbool2; | |
cf694132 | 7133 | { |
474c48f9 | 7134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7135 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); |
cf694132 | 7136 | |
474c48f9 | 7137 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7138 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7139 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7140 | _resultobj = Py_None; |
7141 | return _resultobj; | |
7142 | } | |
7143 | ||
b7e72427 RD |
7144 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
7145 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7146 | PyObject * _resultobj; | |
7147 | int _result; | |
7148 | wxScrolledWindow * _arg0; | |
7149 | int _arg1; | |
7150 | PyObject * _argo0 = 0; | |
7151 | char *_kwnames[] = { "self","orient", NULL }; | |
7152 | ||
7153 | self = self; | |
7154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
7155 | return NULL; | |
7156 | if (_argo0) { | |
7157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
7160 | return NULL; | |
7161 | } | |
7162 | } | |
7163 | { | |
474c48f9 | 7164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7165 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); |
b7e72427 | 7166 | |
474c48f9 | 7167 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7168 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
7169 | } _resultobj = Py_BuildValue("i",_result); |
7170 | return _resultobj; | |
7171 | } | |
7172 | ||
8ab979d7 | 7173 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 7174 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7175 | PyObject * _resultobj; |
7176 | wxScrolledWindow * _arg0; | |
7177 | int * _arg1; | |
7178 | int temp; | |
7179 | int * _arg2; | |
7180 | int temp0; | |
1d99702e | 7181 | PyObject * _argo0 = 0; |
efc5f224 | 7182 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7183 | |
7184 | self = self; | |
7185 | { | |
7186 | _arg1 = &temp; | |
7187 | } | |
7188 | { | |
7189 | _arg2 = &temp0; | |
7190 | } | |
efc5f224 | 7191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 7192 | return NULL; |
1d99702e RD |
7193 | if (_argo0) { |
7194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
7197 | return NULL; | |
7198 | } | |
7199 | } | |
cf694132 | 7200 | { |
474c48f9 | 7201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7202 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); |
cf694132 | 7203 | |
474c48f9 | 7204 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7205 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7206 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7207 | _resultobj = Py_None; |
7208 | { | |
7209 | PyObject *o; | |
7210 | o = PyInt_FromLong((long) (*_arg1)); | |
7211 | _resultobj = t_output_helper(_resultobj, o); | |
7212 | } | |
7213 | { | |
7214 | PyObject *o; | |
7215 | o = PyInt_FromLong((long) (*_arg2)); | |
7216 | _resultobj = t_output_helper(_resultobj, o); | |
7217 | } | |
7218 | return _resultobj; | |
7219 | } | |
7220 | ||
b7e72427 RD |
7221 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
7222 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7223 | PyObject * _resultobj; | |
7224 | wxWindow * _result; | |
7225 | wxScrolledWindow * _arg0; | |
7226 | PyObject * _argo0 = 0; | |
7227 | char *_kwnames[] = { "self", NULL }; | |
b7e72427 RD |
7228 | |
7229 | self = self; | |
7230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
7231 | return NULL; | |
7232 | if (_argo0) { | |
7233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
7236 | return NULL; | |
7237 | } | |
7238 | } | |
7239 | { | |
474c48f9 | 7240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7241 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); |
b7e72427 | 7242 | |
474c48f9 | 7243 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7244 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 7245 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b7e72427 RD |
7246 | return _resultobj; |
7247 | } | |
7248 | ||
8ab979d7 | 7249 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 7250 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7251 | PyObject * _resultobj; |
7252 | bool _result; | |
7253 | wxScrolledWindow * _arg0; | |
1d99702e | 7254 | PyObject * _argo0 = 0; |
efc5f224 | 7255 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7256 | |
7257 | self = self; | |
efc5f224 | 7258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 7259 | return NULL; |
1d99702e RD |
7260 | if (_argo0) { |
7261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
7264 | return NULL; | |
7265 | } | |
7266 | } | |
cf694132 | 7267 | { |
474c48f9 | 7268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7269 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); |
cf694132 | 7270 | |
474c48f9 | 7271 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7272 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7273 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7274 | return _resultobj; |
7275 | } | |
7276 | ||
7277 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 7278 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7279 | PyObject * _resultobj; |
7280 | wxScrolledWindow * _arg0; | |
7281 | wxDC * _arg1; | |
1d99702e RD |
7282 | PyObject * _argo0 = 0; |
7283 | PyObject * _argo1 = 0; | |
efc5f224 | 7284 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
7285 | |
7286 | self = self; | |
efc5f224 | 7287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7288 | return NULL; |
1d99702e RD |
7289 | if (_argo0) { |
7290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
7293 | return NULL; | |
7294 | } | |
7295 | } | |
1d99702e | 7296 | if (_argo1) { |
b67a9327 | 7297 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { |
8ab979d7 RD |
7298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
7299 | return NULL; | |
7300 | } | |
7301 | } | |
cf694132 | 7302 | { |
474c48f9 | 7303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7304 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); |
cf694132 | 7305 | |
474c48f9 | 7306 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7307 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7308 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7309 | _resultobj = Py_None; |
7310 | return _resultobj; | |
7311 | } | |
7312 | ||
7313 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 7314 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7315 | PyObject * _resultobj; |
7316 | wxScrolledWindow * _arg0; | |
7317 | int _arg1; | |
7318 | int _arg2; | |
1d99702e | 7319 | PyObject * _argo0 = 0; |
efc5f224 | 7320 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7321 | |
7322 | self = self; | |
efc5f224 | 7323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7324 | return NULL; |
1d99702e RD |
7325 | if (_argo0) { |
7326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
7329 | return NULL; | |
7330 | } | |
7331 | } | |
cf694132 | 7332 | { |
474c48f9 | 7333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7334 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); |
cf694132 | 7335 | |
474c48f9 | 7336 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7337 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7338 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7339 | _resultobj = Py_None; |
7340 | return _resultobj; | |
7341 | } | |
7342 | ||
f6bcfd97 | 7343 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 7344 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7345 | PyObject * _resultobj; |
7346 | wxScrolledWindow * _arg0; | |
7347 | int _arg1; | |
7348 | int _arg2; | |
7349 | int _arg3; | |
7350 | int _arg4; | |
1d99702e RD |
7351 | int _arg5 = (int ) 0; |
7352 | int _arg6 = (int ) 0; | |
f6bcfd97 | 7353 | int _arg7 = (int ) FALSE; |
1d99702e | 7354 | PyObject * _argo0 = 0; |
f6bcfd97 | 7355 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
7356 | |
7357 | self = self; | |
f6bcfd97 | 7358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 7359 | return NULL; |
1d99702e RD |
7360 | if (_argo0) { |
7361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
7364 | return NULL; | |
7365 | } | |
7366 | } | |
cf694132 | 7367 | { |
474c48f9 | 7368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7369 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 | 7370 | |
474c48f9 | 7371 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7372 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7373 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7374 | _resultobj = Py_None; |
7375 | return _resultobj; | |
7376 | } | |
7377 | ||
b7e72427 RD |
7378 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
7379 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7380 | PyObject * _resultobj; | |
7381 | wxScrolledWindow * _arg0; | |
7382 | int _arg1; | |
7383 | int _arg2; | |
7384 | PyObject * _argo0 = 0; | |
7385 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
7386 | ||
7387 | self = self; | |
7388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7389 | return NULL; | |
7390 | if (_argo0) { | |
7391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
7394 | return NULL; | |
7395 | } | |
7396 | } | |
7397 | { | |
474c48f9 | 7398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7399 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); |
b7e72427 | 7400 | |
474c48f9 | 7401 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7402 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
7403 | } Py_INCREF(Py_None); |
7404 | _resultobj = Py_None; | |
7405 | return _resultobj; | |
7406 | } | |
7407 | ||
eb715945 RD |
7408 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
7409 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7410 | PyObject * _resultobj; | |
7411 | wxScrolledWindow * _arg0; | |
7412 | wxWindow * _arg1; | |
7413 | PyObject * _argo0 = 0; | |
7414 | PyObject * _argo1 = 0; | |
7415 | char *_kwnames[] = { "self","window", NULL }; | |
7416 | ||
7417 | self = self; | |
7418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
7419 | return NULL; | |
7420 | if (_argo0) { | |
7421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
7424 | return NULL; | |
7425 | } | |
7426 | } | |
7427 | if (_argo1) { | |
7428 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7429 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
7431 | return NULL; | |
7432 | } | |
7433 | } | |
7434 | { | |
474c48f9 | 7435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7436 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); |
eb715945 | 7437 | |
474c48f9 | 7438 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7439 | if (PyErr_Occurred()) return NULL; |
eb715945 RD |
7440 | } Py_INCREF(Py_None); |
7441 | _resultobj = Py_None; | |
7442 | return _resultobj; | |
7443 | } | |
7444 | ||
4c9993c3 RD |
7445 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
7446 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7447 | PyObject * _resultobj; | |
7448 | wxScrolledWindow * _arg0; | |
7449 | int * _arg1; | |
7450 | int temp; | |
7451 | int * _arg2; | |
7452 | int temp0; | |
7453 | PyObject * _argo0 = 0; | |
7454 | char *_kwnames[] = { "self", NULL }; | |
7455 | ||
7456 | self = self; | |
7457 | { | |
7458 | _arg1 = &temp; | |
7459 | } | |
7460 | { | |
7461 | _arg2 = &temp0; | |
7462 | } | |
7463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
7464 | return NULL; | |
7465 | if (_argo0) { | |
7466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
7469 | return NULL; | |
7470 | } | |
7471 | } | |
7472 | { | |
474c48f9 | 7473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7474 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); |
4c9993c3 | 7475 | |
474c48f9 | 7476 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7477 | if (PyErr_Occurred()) return NULL; |
4c9993c3 RD |
7478 | } Py_INCREF(Py_None); |
7479 | _resultobj = Py_None; | |
7480 | { | |
7481 | PyObject *o; | |
7482 | o = PyInt_FromLong((long) (*_arg1)); | |
7483 | _resultobj = t_output_helper(_resultobj, o); | |
7484 | } | |
7485 | { | |
7486 | PyObject *o; | |
7487 | o = PyInt_FromLong((long) (*_arg2)); | |
7488 | _resultobj = t_output_helper(_resultobj, o); | |
7489 | } | |
7490 | return _resultobj; | |
7491 | } | |
7492 | ||
a884bee5 RD |
7493 | #define wxScrolledWindow_CalcScrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcScrolledPosition(_swigarg0)) |
7494 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7495 | PyObject * _resultobj; | |
7496 | wxPoint * _result; | |
7497 | wxScrolledWindow * _arg0; | |
7498 | wxPoint * _arg1; | |
7499 | PyObject * _argo0 = 0; | |
7500 | wxPoint temp; | |
7501 | PyObject * _obj1 = 0; | |
7502 | char *_kwnames[] = { "self","pt", NULL }; | |
7503 | char _ptemp[128]; | |
7504 | ||
7505 | self = self; | |
7506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcScrolledPosition1",_kwnames,&_argo0,&_obj1)) | |
7507 | return NULL; | |
7508 | if (_argo0) { | |
7509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition1. Expected _wxScrolledWindow_p."); | |
7512 | return NULL; | |
7513 | } | |
7514 | } | |
7515 | { | |
7516 | _arg1 = &temp; | |
7517 | if (! wxPoint_helper(_obj1, &_arg1)) | |
7518 | return NULL; | |
7519 | } | |
7520 | { | |
7521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7522 | _result = new wxPoint (wxScrolledWindow_CalcScrolledPosition1(_arg0,*_arg1)); | |
7523 | ||
7524 | wxPyEndAllowThreads(__tstate); | |
7525 | if (PyErr_Occurred()) return NULL; | |
7526 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
7527 | _resultobj = Py_BuildValue("s",_ptemp); | |
7528 | return _resultobj; | |
7529 | } | |
7530 | ||
7531 | #define wxScrolledWindow_CalcScrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7532 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d8bd15f RD |
7533 | PyObject * _resultobj; |
7534 | wxScrolledWindow * _arg0; | |
7535 | int _arg1; | |
7536 | int _arg2; | |
7537 | int * _arg3; | |
7538 | int temp; | |
7539 | int * _arg4; | |
7540 | int temp0; | |
7541 | PyObject * _argo0 = 0; | |
7542 | char *_kwnames[] = { "self","x","y", NULL }; | |
7543 | ||
7544 | self = self; | |
7545 | { | |
7546 | _arg3 = &temp; | |
7547 | } | |
7548 | { | |
7549 | _arg4 = &temp0; | |
7550 | } | |
a884bee5 | 7551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) |
9d8bd15f RD |
7552 | return NULL; |
7553 | if (_argo0) { | |
7554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
a884bee5 | 7556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition2. Expected _wxScrolledWindow_p."); |
9d8bd15f RD |
7557 | return NULL; |
7558 | } | |
7559 | } | |
7560 | { | |
474c48f9 | 7561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 7562 | wxScrolledWindow_CalcScrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d8bd15f | 7563 | |
474c48f9 | 7564 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7565 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
7566 | } Py_INCREF(Py_None); |
7567 | _resultobj = Py_None; | |
7568 | { | |
7569 | PyObject *o; | |
7570 | o = PyInt_FromLong((long) (*_arg3)); | |
7571 | _resultobj = t_output_helper(_resultobj, o); | |
7572 | } | |
7573 | { | |
7574 | PyObject *o; | |
7575 | o = PyInt_FromLong((long) (*_arg4)); | |
7576 | _resultobj = t_output_helper(_resultobj, o); | |
7577 | } | |
7578 | return _resultobj; | |
7579 | } | |
7580 | ||
a884bee5 RD |
7581 | #define wxScrolledWindow_CalcUnscrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcUnscrolledPosition(_swigarg0)) |
7582 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7583 | PyObject * _resultobj; | |
7584 | wxPoint * _result; | |
7585 | wxScrolledWindow * _arg0; | |
7586 | wxPoint * _arg1; | |
7587 | PyObject * _argo0 = 0; | |
7588 | wxPoint temp; | |
7589 | PyObject * _obj1 = 0; | |
7590 | char *_kwnames[] = { "self","pt", NULL }; | |
7591 | char _ptemp[128]; | |
7592 | ||
7593 | self = self; | |
7594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcUnscrolledPosition1",_kwnames,&_argo0,&_obj1)) | |
7595 | return NULL; | |
7596 | if (_argo0) { | |
7597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition1. Expected _wxScrolledWindow_p."); | |
7600 | return NULL; | |
7601 | } | |
7602 | } | |
7603 | { | |
7604 | _arg1 = &temp; | |
7605 | if (! wxPoint_helper(_obj1, &_arg1)) | |
7606 | return NULL; | |
7607 | } | |
7608 | { | |
7609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7610 | _result = new wxPoint (wxScrolledWindow_CalcUnscrolledPosition1(_arg0,*_arg1)); | |
7611 | ||
7612 | wxPyEndAllowThreads(__tstate); | |
7613 | if (PyErr_Occurred()) return NULL; | |
7614 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
7615 | _resultobj = Py_BuildValue("s",_ptemp); | |
7616 | return _resultobj; | |
7617 | } | |
7618 | ||
7619 | #define wxScrolledWindow_CalcUnscrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7620 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d8bd15f RD |
7621 | PyObject * _resultobj; |
7622 | wxScrolledWindow * _arg0; | |
7623 | int _arg1; | |
7624 | int _arg2; | |
7625 | int * _arg3; | |
7626 | int temp; | |
7627 | int * _arg4; | |
7628 | int temp0; | |
7629 | PyObject * _argo0 = 0; | |
7630 | char *_kwnames[] = { "self","x","y", NULL }; | |
7631 | ||
7632 | self = self; | |
7633 | { | |
7634 | _arg3 = &temp; | |
7635 | } | |
7636 | { | |
7637 | _arg4 = &temp0; | |
7638 | } | |
a884bee5 | 7639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) |
9d8bd15f RD |
7640 | return NULL; |
7641 | if (_argo0) { | |
7642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
a884bee5 | 7644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition2. Expected _wxScrolledWindow_p."); |
9d8bd15f RD |
7645 | return NULL; |
7646 | } | |
7647 | } | |
7648 | { | |
474c48f9 | 7649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 7650 | wxScrolledWindow_CalcUnscrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d8bd15f | 7651 | |
474c48f9 | 7652 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7653 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
7654 | } Py_INCREF(Py_None); |
7655 | _resultobj = Py_None; | |
7656 | { | |
7657 | PyObject *o; | |
7658 | o = PyInt_FromLong((long) (*_arg3)); | |
7659 | _resultobj = t_output_helper(_resultobj, o); | |
7660 | } | |
7661 | { | |
7662 | PyObject *o; | |
7663 | o = PyInt_FromLong((long) (*_arg4)); | |
7664 | _resultobj = t_output_helper(_resultobj, o); | |
7665 | } | |
7666 | return _resultobj; | |
7667 | } | |
7668 | ||
7a446686 RD |
7669 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
7670 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7671 | PyObject * _resultobj; | |
7672 | wxScrolledWindow * _arg0; | |
7673 | double _arg1; | |
7674 | double _arg2; | |
7675 | PyObject * _argo0 = 0; | |
7676 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
7677 | ||
7678 | self = self; | |
7679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7680 | return NULL; | |
7681 | if (_argo0) { | |
7682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
7685 | return NULL; | |
7686 | } | |
7687 | } | |
7688 | { | |
474c48f9 | 7689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7690 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); |
7a446686 | 7691 | |
474c48f9 | 7692 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7693 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
7694 | } Py_INCREF(Py_None); |
7695 | _resultobj = Py_None; | |
7696 | return _resultobj; | |
7697 | } | |
7698 | ||
7699 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
7700 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7701 | PyObject * _resultobj; | |
7702 | double _result; | |
7703 | wxScrolledWindow * _arg0; | |
7704 | PyObject * _argo0 = 0; | |
7705 | char *_kwnames[] = { "self", NULL }; | |
7706 | ||
7707 | self = self; | |
7708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
7709 | return NULL; | |
7710 | if (_argo0) { | |
7711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
7714 | return NULL; | |
7715 | } | |
7716 | } | |
7717 | { | |
474c48f9 | 7718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 RD |
7719 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); |
7720 | ||
7721 | wxPyEndAllowThreads(__tstate); | |
7722 | if (PyErr_Occurred()) return NULL; | |
7723 | } _resultobj = Py_BuildValue("d",_result); | |
7724 | return _resultobj; | |
7725 | } | |
7726 | ||
7727 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
7728 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7729 | PyObject * _resultobj; | |
7730 | double _result; | |
7731 | wxScrolledWindow * _arg0; | |
7732 | PyObject * _argo0 = 0; | |
7733 | char *_kwnames[] = { "self", NULL }; | |
7734 | ||
7735 | self = self; | |
7736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
7737 | return NULL; | |
7738 | if (_argo0) { | |
7739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
7742 | return NULL; | |
7743 | } | |
7744 | } | |
7745 | { | |
7746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7747 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); | |
7748 | ||
7749 | wxPyEndAllowThreads(__tstate); | |
7750 | if (PyErr_Occurred()) return NULL; | |
7751 | } _resultobj = Py_BuildValue("d",_result); | |
7752 | return _resultobj; | |
7753 | } | |
7754 | ||
7755 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
7756 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7757 | PyObject * _resultobj; | |
7758 | wxScrolledWindow * _arg0; | |
7759 | PyObject * _argo0 = 0; | |
7760 | char *_kwnames[] = { "self", NULL }; | |
7761 | ||
7762 | self = self; | |
7763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
7764 | return NULL; | |
7765 | if (_argo0) { | |
7766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
7769 | return NULL; | |
7770 | } | |
7771 | } | |
7772 | { | |
7773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7774 | wxScrolledWindow_AdjustScrollbars(_arg0); | |
7775 | ||
7776 | wxPyEndAllowThreads(__tstate); | |
7777 | if (PyErr_Occurred()) return NULL; | |
7778 | } Py_INCREF(Py_None); | |
7779 | _resultobj = Py_None; | |
7780 | return _resultobj; | |
7781 | } | |
7782 | ||
7783 | #define wxScrolledWindow_Layout(_swigobj) (_swigobj->Layout()) | |
7784 | static PyObject *_wrap_wxScrolledWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7785 | PyObject * _resultobj; | |
7786 | bool _result; | |
7787 | wxScrolledWindow * _arg0; | |
7788 | PyObject * _argo0 = 0; | |
7789 | char *_kwnames[] = { "self", NULL }; | |
7790 | ||
7791 | self = self; | |
7792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_Layout",_kwnames,&_argo0)) | |
7793 | return NULL; | |
7794 | if (_argo0) { | |
7795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Layout. Expected _wxScrolledWindow_p."); | |
7798 | return NULL; | |
7799 | } | |
7800 | } | |
7801 | { | |
7802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7803 | _result = (bool )wxScrolledWindow_Layout(_arg0); | |
7804 | ||
7805 | wxPyEndAllowThreads(__tstate); | |
7806 | if (PyErr_Occurred()) return NULL; | |
7807 | } _resultobj = Py_BuildValue("i",_result); | |
7808 | return _resultobj; | |
7809 | } | |
7810 | ||
8381e4cd RD |
7811 | #define wxScrolledWindow_SetScrollRate(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollRate(_swigarg0,_swigarg1)) |
7812 | static PyObject *_wrap_wxScrolledWindow_SetScrollRate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7813 | PyObject * _resultobj; | |
7814 | wxScrolledWindow * _arg0; | |
7815 | int _arg1; | |
7816 | int _arg2; | |
7817 | PyObject * _argo0 = 0; | |
7818 | char *_kwnames[] = { "self","xstep","ystep", NULL }; | |
7819 | ||
7820 | self = self; | |
7821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollRate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7822 | return NULL; | |
7823 | if (_argo0) { | |
7824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollRate. Expected _wxScrolledWindow_p."); | |
7827 | return NULL; | |
7828 | } | |
7829 | } | |
7830 | { | |
7831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7832 | wxScrolledWindow_SetScrollRate(_arg0,_arg1,_arg2); | |
7833 | ||
7834 | wxPyEndAllowThreads(__tstate); | |
7835 | if (PyErr_Occurred()) return NULL; | |
7836 | } Py_INCREF(Py_None); | |
7837 | _resultobj = Py_None; | |
7838 | return _resultobj; | |
7839 | } | |
7840 | ||
a884bee5 RD |
7841 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
7842 | wxMenu *src; | |
7843 | wxEvtHandler *dest; | |
7844 | src = (wxMenu *) ptr; | |
7845 | dest = (wxEvtHandler *) src; | |
7846 | return (void *) dest; | |
7847 | } | |
7848 | ||
7849 | static void *SwigwxMenuTowxObject(void *ptr) { | |
7850 | wxMenu *src; | |
7851 | wxObject *dest; | |
7852 | src = (wxMenu *) ptr; | |
7853 | dest = (wxObject *) src; | |
7854 | return (void *) dest; | |
7855 | } | |
7856 | ||
7857 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) | |
7858 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7859 | PyObject * _resultobj; | |
7860 | wxMenu * _result; | |
9a74fcaf | 7861 | wxString * _arg0 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
7862 | long _arg1 = (long ) 0; |
7863 | PyObject * _obj0 = 0; | |
7864 | char *_kwnames[] = { "title","style", NULL }; | |
7865 | char _ptemp[128]; | |
7866 | ||
7867 | self = self; | |
7868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) | |
7869 | return NULL; | |
7870 | if (_obj0) | |
7871 | { | |
7872 | _arg0 = wxString_in_helper(_obj0); | |
7873 | if (_arg0 == NULL) | |
7874 | return NULL; | |
7875 | } | |
7876 | { | |
7877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7878 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); | |
7879 | ||
7880 | wxPyEndAllowThreads(__tstate); | |
7881 | if (PyErr_Occurred()) return NULL; | |
7882 | } if (_result) { | |
7883 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7884 | _resultobj = Py_BuildValue("s",_ptemp); | |
7885 | } else { | |
7886 | Py_INCREF(Py_None); | |
7887 | _resultobj = Py_None; | |
7888 | } | |
7889 | { | |
7890 | if (_obj0) | |
7891 | delete _arg0; | |
7892 | } | |
7893 | return _resultobj; | |
7894 | } | |
7895 | ||
7896 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7897 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7898 | PyObject * _resultobj; | |
7899 | wxMenu * _arg0; | |
7900 | int _arg1; | |
7901 | wxString * _arg2; | |
9a74fcaf | 7902 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
546bfbea | 7903 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
a884bee5 RD |
7904 | PyObject * _argo0 = 0; |
7905 | PyObject * _obj2 = 0; | |
7906 | PyObject * _obj3 = 0; | |
7907 | char *_kwnames[] = { "self","id","item","helpString","kind", NULL }; | |
7908 | ||
7909 | self = self; | |
7910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
7911 | return NULL; | |
7912 | if (_argo0) { | |
7913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); | |
7916 | return NULL; | |
7917 | } | |
7918 | } | |
7919 | { | |
7920 | _arg2 = wxString_in_helper(_obj2); | |
7921 | if (_arg2 == NULL) | |
7922 | return NULL; | |
7923 | } | |
7924 | if (_obj3) | |
7925 | { | |
7926 | _arg3 = wxString_in_helper(_obj3); | |
7927 | if (_arg3 == NULL) | |
7928 | return NULL; | |
7929 | } | |
7930 | { | |
7931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7932 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
7933 | ||
7934 | wxPyEndAllowThreads(__tstate); | |
7935 | if (PyErr_Occurred()) return NULL; | |
7936 | } Py_INCREF(Py_None); | |
7937 | _resultobj = Py_None; | |
7938 | { | |
7939 | if (_obj2) | |
7940 | delete _arg2; | |
7941 | } | |
7942 | { | |
7943 | if (_obj3) | |
7944 | delete _arg3; | |
7945 | } | |
7946 | return _resultobj; | |
7947 | } | |
7948 | ||
7949 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7950 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7951 | PyObject * _resultobj; | |
7952 | wxMenu * _arg0; | |
7953 | int _arg1; | |
7954 | wxString * _arg2; | |
7955 | wxMenu * _arg3; | |
9a74fcaf | 7956 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
7957 | PyObject * _argo0 = 0; |
7958 | PyObject * _obj2 = 0; | |
7959 | PyObject * _argo3 = 0; | |
7960 | PyObject * _obj4 = 0; | |
7961 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; | |
7962 | ||
7963 | self = self; | |
7964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) | |
7965 | return NULL; | |
7966 | if (_argo0) { | |
7967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
7970 | return NULL; | |
7971 | } | |
7972 | } | |
7973 | { | |
7974 | _arg2 = wxString_in_helper(_obj2); | |
7975 | if (_arg2 == NULL) | |
7976 | return NULL; | |
7977 | } | |
7978 | if (_argo3) { | |
7979 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7980 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
7981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
7982 | return NULL; | |
7983 | } | |
7984 | } | |
7985 | if (_obj4) | |
7986 | { | |
7987 | _arg4 = wxString_in_helper(_obj4); | |
7988 | if (_arg4 == NULL) | |
7989 | return NULL; | |
7990 | } | |
7991 | { | |
7992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7993 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
7994 | ||
7995 | wxPyEndAllowThreads(__tstate); | |
7996 | if (PyErr_Occurred()) return NULL; | |
7997 | } Py_INCREF(Py_None); | |
7998 | _resultobj = Py_None; | |
7999 | { | |
8000 | if (_obj2) | |
8001 | delete _arg2; | |
8002 | } | |
8003 | { | |
8004 | if (_obj4) | |
8005 | delete _arg4; | |
8006 | } | |
8007 | return _resultobj; | |
8008 | } | |
8009 | ||
8010 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
8011 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8012 | PyObject * _resultobj; | |
8013 | wxMenu * _arg0; | |
8014 | wxMenuItem * _arg1; | |
8015 | PyObject * _argo0 = 0; | |
8016 | PyObject * _argo1 = 0; | |
8017 | char *_kwnames[] = { "self","item", NULL }; | |
8018 | ||
8019 | self = self; | |
8020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) | |
8021 | return NULL; | |
8022 | if (_argo0) { | |
8023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); | |
8026 | return NULL; | |
8027 | } | |
8028 | } | |
8029 | if (_argo1) { | |
8030 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8031 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); | |
8033 | return NULL; | |
8034 | } | |
8035 | } | |
8036 | { | |
8037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8038 | wxMenu_AppendItem(_arg0,_arg1); | |
8039 | ||
8040 | wxPyEndAllowThreads(__tstate); | |
8041 | if (PyErr_Occurred()) return NULL; | |
8042 | } Py_INCREF(Py_None); | |
8043 | _resultobj = Py_None; | |
8044 | return _resultobj; | |
8045 | } | |
8046 | ||
8047 | #define wxMenu_AppendCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendCheckItem(_swigarg0,_swigarg1,_swigarg2)) | |
8048 | static PyObject *_wrap_wxMenu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8049 | PyObject * _resultobj; | |
8050 | wxMenu * _arg0; | |
8051 | int _arg1; | |
8052 | wxString * _arg2; | |
9a74fcaf | 8053 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
8054 | PyObject * _argo0 = 0; |
8055 | PyObject * _obj2 = 0; | |
8056 | PyObject * _obj3 = 0; | |
8057 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
8058 | ||
8059 | self = self; | |
8060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) | |
8061 | return NULL; | |
8062 | if (_argo0) { | |
8063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendCheckItem. Expected _wxMenu_p."); | |
8066 | return NULL; | |
8067 | } | |
8068 | } | |
8069 | { | |
8070 | _arg2 = wxString_in_helper(_obj2); | |
8071 | if (_arg2 == NULL) | |
8072 | return NULL; | |
8073 | } | |
8074 | if (_obj3) | |
8075 | { | |
8076 | _arg3 = wxString_in_helper(_obj3); | |
8077 | if (_arg3 == NULL) | |
8078 | return NULL; | |
8079 | } | |
8080 | { | |
8081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8082 | wxMenu_AppendCheckItem(_arg0,_arg1,*_arg2,*_arg3); | |
8083 | ||
8084 | wxPyEndAllowThreads(__tstate); | |
8085 | if (PyErr_Occurred()) return NULL; | |
8086 | } Py_INCREF(Py_None); | |
8087 | _resultobj = Py_None; | |
8088 | { | |
8089 | if (_obj2) | |
8090 | delete _arg2; | |
8091 | } | |
8092 | { | |
8093 | if (_obj3) | |
8094 | delete _arg3; | |
8095 | } | |
8096 | return _resultobj; | |
8097 | } | |
8098 | ||
8099 | #define wxMenu_AppendRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendRadioItem(_swigarg0,_swigarg1,_swigarg2)) | |
8100 | static PyObject *_wrap_wxMenu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8101 | PyObject * _resultobj; | |
8102 | wxMenu * _arg0; | |
8103 | int _arg1; | |
8104 | wxString * _arg2; | |
9a74fcaf | 8105 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
8106 | PyObject * _argo0 = 0; |
8107 | PyObject * _obj2 = 0; | |
8108 | PyObject * _obj3 = 0; | |
8109 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
8110 | ||
8111 | self = self; | |
8112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) | |
8113 | return NULL; | |
8114 | if (_argo0) { | |
8115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendRadioItem. Expected _wxMenu_p."); | |
8118 | return NULL; | |
8119 | } | |
8120 | } | |
8121 | { | |
8122 | _arg2 = wxString_in_helper(_obj2); | |
8123 | if (_arg2 == NULL) | |
8124 | return NULL; | |
8125 | } | |
8126 | if (_obj3) | |
8127 | { | |
8128 | _arg3 = wxString_in_helper(_obj3); | |
8129 | if (_arg3 == NULL) | |
8130 | return NULL; | |
8131 | } | |
8132 | { | |
8133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8134 | wxMenu_AppendRadioItem(_arg0,_arg1,*_arg2,*_arg3); | |
8135 | ||
8136 | wxPyEndAllowThreads(__tstate); | |
8137 | if (PyErr_Occurred()) return NULL; | |
8138 | } Py_INCREF(Py_None); | |
8139 | _resultobj = Py_None; | |
8140 | { | |
8141 | if (_obj2) | |
8142 | delete _arg2; | |
8143 | } | |
8144 | { | |
8145 | if (_obj3) | |
8146 | delete _arg3; | |
8147 | } | |
8148 | return _resultobj; | |
8149 | } | |
8150 | ||
8151 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) | |
8152 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8153 | PyObject * _resultobj; | |
8154 | wxMenu * _arg0; | |
8155 | PyObject * _argo0 = 0; | |
8156 | char *_kwnames[] = { "self", NULL }; | |
8157 | ||
8158 | self = self; | |
8159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) | |
8160 | return NULL; | |
8161 | if (_argo0) { | |
8162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); | |
8165 | return NULL; | |
8166 | } | |
8167 | } | |
8168 | { | |
8169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8170 | wxMenu_AppendSeparator(_arg0); | |
8171 | ||
8172 | wxPyEndAllowThreads(__tstate); | |
8173 | if (PyErr_Occurred()) return NULL; | |
8174 | } Py_INCREF(Py_None); | |
8175 | _resultobj = Py_None; | |
8176 | return _resultobj; | |
8177 | } | |
8178 | ||
8179 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
8180 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8181 | PyObject * _resultobj; | |
8182 | wxMenu * _arg0; | |
8183 | size_t _arg1; | |
8184 | int _arg2; | |
8185 | wxString * _arg3; | |
9a74fcaf | 8186 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
546bfbea | 8187 | wxItemKind _arg5 = (wxItemKind ) wxITEM_NORMAL; |
a884bee5 RD |
8188 | PyObject * _argo0 = 0; |
8189 | PyObject * _obj3 = 0; | |
8190 | PyObject * _obj4 = 0; | |
8191 | char *_kwnames[] = { "self","pos","id","text","help","kind", NULL }; | |
8192 | ||
8193 | self = self; | |
8194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|Oi:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
8195 | return NULL; | |
8196 | if (_argo0) { | |
8197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); | |
8200 | return NULL; | |
8201 | } | |
8202 | } | |
8203 | { | |
8204 | _arg3 = wxString_in_helper(_obj3); | |
8205 | if (_arg3 == NULL) | |
8206 | return NULL; | |
8207 | } | |
8208 | if (_obj4) | |
8209 | { | |
8210 | _arg4 = wxString_in_helper(_obj4); | |
8211 | if (_arg4 == NULL) | |
8212 | return NULL; | |
8213 | } | |
8214 | { | |
8215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8216 | wxMenu_Insert(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); | |
8217 | ||
8218 | wxPyEndAllowThreads(__tstate); | |
8219 | if (PyErr_Occurred()) return NULL; | |
8220 | } Py_INCREF(Py_None); | |
8221 | _resultobj = Py_None; | |
8222 | { | |
8223 | if (_obj3) | |
8224 | delete _arg3; | |
8225 | } | |
8226 | { | |
8227 | if (_obj4) | |
8228 | delete _arg4; | |
8229 | } | |
8230 | return _resultobj; | |
8231 | } | |
8232 | ||
8233 | #define wxMenu_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0)) | |
8234 | static PyObject *_wrap_wxMenu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8235 | PyObject * _resultobj; | |
8236 | wxMenu * _arg0; | |
8237 | size_t _arg1; | |
8238 | PyObject * _argo0 = 0; | |
8239 | char *_kwnames[] = { "self","pos", NULL }; | |
8240 | ||
8241 | self = self; | |
8242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_InsertSeparator",_kwnames,&_argo0,&_arg1)) | |
8243 | return NULL; | |
8244 | if (_argo0) { | |
8245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertSeparator. Expected _wxMenu_p."); | |
8248 | return NULL; | |
8249 | } | |
8250 | } | |
8251 | { | |
8252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8253 | wxMenu_InsertSeparator(_arg0,_arg1); | |
8254 | ||
8255 | wxPyEndAllowThreads(__tstate); | |
8256 | if (PyErr_Occurred()) return NULL; | |
8257 | } Py_INCREF(Py_None); | |
8258 | _resultobj = Py_None; | |
8259 | return _resultobj; | |
8260 | } | |
8261 | ||
8262 | #define wxMenu_InsertCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertCheckItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8263 | static PyObject *_wrap_wxMenu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8264 | PyObject * _resultobj; | |
8265 | wxMenu * _arg0; | |
8266 | size_t _arg1; | |
8267 | int _arg2; | |
8268 | wxString * _arg3; | |
9a74fcaf | 8269 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
8270 | PyObject * _argo0 = 0; |
8271 | PyObject * _obj3 = 0; | |
8272 | PyObject * _obj4 = 0; | |
8273 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; | |
8274 | ||
8275 | self = self; | |
8276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertCheckItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) | |
8277 | return NULL; | |
8278 | if (_argo0) { | |
8279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertCheckItem. Expected _wxMenu_p."); | |
8282 | return NULL; | |
8283 | } | |
8284 | } | |
8285 | { | |
8286 | _arg3 = wxString_in_helper(_obj3); | |
8287 | if (_arg3 == NULL) | |
8288 | return NULL; | |
8289 | } | |
8290 | if (_obj4) | |
8291 | { | |
8292 | _arg4 = wxString_in_helper(_obj4); | |
8293 | if (_arg4 == NULL) | |
8294 | return NULL; | |
8295 | } | |
8296 | { | |
8297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8298 | wxMenu_InsertCheckItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
8299 | ||
8300 | wxPyEndAllowThreads(__tstate); | |
8301 | if (PyErr_Occurred()) return NULL; | |
8302 | } Py_INCREF(Py_None); | |
8303 | _resultobj = Py_None; | |
8304 | { | |
8305 | if (_obj3) | |
8306 | delete _arg3; | |
8307 | } | |
8308 | { | |
8309 | if (_obj4) | |
8310 | delete _arg4; | |
8311 | } | |
8312 | return _resultobj; | |
8313 | } | |
8314 | ||
8315 | #define wxMenu_InsertRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertRadioItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8316 | static PyObject *_wrap_wxMenu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8317 | PyObject * _resultobj; | |
8318 | wxMenu * _arg0; | |
8319 | size_t _arg1; | |
8320 | int _arg2; | |
8321 | wxString * _arg3; | |
9a74fcaf | 8322 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
8323 | PyObject * _argo0 = 0; |
8324 | PyObject * _obj3 = 0; | |
8325 | PyObject * _obj4 = 0; | |
8326 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; | |
8327 | ||
8328 | self = self; | |
8329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertRadioItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) | |
8330 | return NULL; | |
8331 | if (_argo0) { | |
8332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertRadioItem. Expected _wxMenu_p."); | |
8335 | return NULL; | |
8336 | } | |
8337 | } | |
8338 | { | |
8339 | _arg3 = wxString_in_helper(_obj3); | |
8340 | if (_arg3 == NULL) | |
8341 | return NULL; | |
8342 | } | |
8343 | if (_obj4) | |
8344 | { | |
8345 | _arg4 = wxString_in_helper(_obj4); | |
8346 | if (_arg4 == NULL) | |
8347 | return NULL; | |
8348 | } | |
8349 | { | |
8350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8351 | wxMenu_InsertRadioItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
8352 | ||
8353 | wxPyEndAllowThreads(__tstate); | |
8354 | if (PyErr_Occurred()) return NULL; | |
8355 | } Py_INCREF(Py_None); | |
8356 | _resultobj = Py_None; | |
8357 | { | |
8358 | if (_obj3) | |
8359 | delete _arg3; | |
8360 | } | |
8361 | { | |
8362 | if (_obj4) | |
8363 | delete _arg4; | |
8364 | } | |
8365 | return _resultobj; | |
8366 | } | |
8367 | ||
8368 | #define wxMenu_InsertMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
8369 | static PyObject *_wrap_wxMenu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8370 | PyObject * _resultobj; | |
8371 | wxMenu * _arg0; | |
8372 | size_t _arg1; | |
8373 | int _arg2; | |
8374 | wxString * _arg3; | |
8375 | wxMenu * _arg4; | |
9a74fcaf | 8376 | wxString * _arg5 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
8377 | PyObject * _argo0 = 0; |
8378 | PyObject * _obj3 = 0; | |
8379 | PyObject * _argo4 = 0; | |
8380 | PyObject * _obj5 = 0; | |
8381 | char *_kwnames[] = { "self","pos","id","text","submenu","help", NULL }; | |
8382 | ||
8383 | self = self; | |
8384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOO|O:wxMenu_InsertMenu",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_argo4,&_obj5)) | |
8385 | return NULL; | |
8386 | if (_argo0) { | |
8387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertMenu. Expected _wxMenu_p."); | |
8390 | return NULL; | |
8391 | } | |
8392 | } | |
8393 | { | |
8394 | _arg3 = wxString_in_helper(_obj3); | |
8395 | if (_arg3 == NULL) | |
8396 | return NULL; | |
8397 | } | |
8398 | if (_argo4) { | |
8399 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8400 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxMenu_p")) { | |
8401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxMenu_InsertMenu. Expected _wxMenu_p."); | |
8402 | return NULL; | |
8403 | } | |
8404 | } | |
8405 | if (_obj5) | |
8406 | { | |
8407 | _arg5 = wxString_in_helper(_obj5); | |
8408 | if (_arg5 == NULL) | |
8409 | return NULL; | |
8410 | } | |
8411 | { | |
8412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8413 | wxMenu_InsertMenu(_arg0,_arg1,_arg2,*_arg3,_arg4,*_arg5); | |
7a446686 | 8414 | |
474c48f9 | 8415 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8416 | if (PyErr_Occurred()) return NULL; |
a884bee5 RD |
8417 | } Py_INCREF(Py_None); |
8418 | _resultobj = Py_None; | |
8419 | { | |
8420 | if (_obj3) | |
8421 | delete _arg3; | |
8422 | } | |
8423 | { | |
8424 | if (_obj5) | |
8425 | delete _arg5; | |
8426 | } | |
7a446686 RD |
8427 | return _resultobj; |
8428 | } | |
8429 | ||
a884bee5 RD |
8430 | #define wxMenu_InsertItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
8431 | static PyObject *_wrap_wxMenu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7a446686 | 8432 | PyObject * _resultobj; |
a884bee5 RD |
8433 | bool _result; |
8434 | wxMenu * _arg0; | |
8435 | size_t _arg1; | |
8436 | wxMenuItem * _arg2; | |
7a446686 | 8437 | PyObject * _argo0 = 0; |
a884bee5 RD |
8438 | PyObject * _argo2 = 0; |
8439 | char *_kwnames[] = { "self","pos","item", NULL }; | |
7a446686 RD |
8440 | |
8441 | self = self; | |
a884bee5 | 8442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_InsertItem",_kwnames,&_argo0,&_arg1,&_argo2)) |
7a446686 RD |
8443 | return NULL; |
8444 | if (_argo0) { | |
8445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
a884bee5 RD |
8446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertItem. Expected _wxMenu_p."); | |
8448 | return NULL; | |
8449 | } | |
8450 | } | |
8451 | if (_argo2) { | |
8452 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8453 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
8454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_InsertItem. Expected _wxMenuItem_p."); | |
7a446686 RD |
8455 | return NULL; |
8456 | } | |
8457 | } | |
8458 | { | |
474c48f9 | 8459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8460 | _result = (bool )wxMenu_InsertItem(_arg0,_arg1,_arg2); |
7a446686 | 8461 | |
474c48f9 | 8462 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8463 | if (PyErr_Occurred()) return NULL; |
a884bee5 | 8464 | } _resultobj = Py_BuildValue("i",_result); |
7a446686 RD |
8465 | return _resultobj; |
8466 | } | |
8467 | ||
a884bee5 RD |
8468 | #define wxMenu_Prepend(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8469 | static PyObject *_wrap_wxMenu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7a446686 | 8470 | PyObject * _resultobj; |
a884bee5 RD |
8471 | wxMenu * _arg0; |
8472 | int _arg1; | |
8473 | wxString * _arg2; | |
9a74fcaf | 8474 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
546bfbea | 8475 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
7a446686 | 8476 | PyObject * _argo0 = 0; |
a884bee5 RD |
8477 | PyObject * _obj2 = 0; |
8478 | PyObject * _obj3 = 0; | |
8479 | char *_kwnames[] = { "self","id","text","help","kind", NULL }; | |
7a446686 RD |
8480 | |
8481 | self = self; | |
a884bee5 | 8482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Prepend",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
7a446686 RD |
8483 | return NULL; |
8484 | if (_argo0) { | |
8485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
a884bee5 RD |
8486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Prepend. Expected _wxMenu_p."); | |
7a446686 RD |
8488 | return NULL; |
8489 | } | |
8490 | } | |
a884bee5 RD |
8491 | { |
8492 | _arg2 = wxString_in_helper(_obj2); | |
8493 | if (_arg2 == NULL) | |
8494 | return NULL; | |
8495 | } | |
8496 | if (_obj3) | |
8497 | { | |
8498 | _arg3 = wxString_in_helper(_obj3); | |
8499 | if (_arg3 == NULL) | |
8500 | return NULL; | |
8501 | } | |
7a446686 | 8502 | { |
474c48f9 | 8503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8504 | wxMenu_Prepend(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
7a446686 | 8505 | |
474c48f9 | 8506 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8507 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
8508 | } Py_INCREF(Py_None); |
8509 | _resultobj = Py_None; | |
a884bee5 RD |
8510 | { |
8511 | if (_obj2) | |
8512 | delete _arg2; | |
8513 | } | |
8514 | { | |
8515 | if (_obj3) | |
8516 | delete _arg3; | |
8517 | } | |
7a446686 RD |
8518 | return _resultobj; |
8519 | } | |
8520 | ||
a884bee5 RD |
8521 | #define wxMenu_PrependSeparator(_swigobj) (_swigobj->PrependSeparator()) |
8522 | static PyObject *_wrap_wxMenu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
49df1f52 | 8523 | PyObject * _resultobj; |
a884bee5 | 8524 | wxMenu * _arg0; |
49df1f52 RD |
8525 | PyObject * _argo0 = 0; |
8526 | char *_kwnames[] = { "self", NULL }; | |
8527 | ||
8528 | self = self; | |
a884bee5 | 8529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_PrependSeparator",_kwnames,&_argo0)) |
49df1f52 RD |
8530 | return NULL; |
8531 | if (_argo0) { | |
8532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
a884bee5 RD |
8533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependSeparator. Expected _wxMenu_p."); | |
49df1f52 RD |
8535 | return NULL; |
8536 | } | |
8537 | } | |
8538 | { | |
8539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a884bee5 | 8540 | wxMenu_PrependSeparator(_arg0); |
49df1f52 RD |
8541 | |
8542 | wxPyEndAllowThreads(__tstate); | |
8543 | if (PyErr_Occurred()) return NULL; | |
a884bee5 RD |
8544 | } Py_INCREF(Py_None); |
8545 | _resultobj = Py_None; | |
49df1f52 RD |
8546 | return _resultobj; |
8547 | } | |
8548 | ||
a884bee5 RD |
8549 | #define wxMenu_PrependCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependCheckItem(_swigarg0,_swigarg1,_swigarg2)) |
8550 | static PyObject *_wrap_wxMenu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8551 | PyObject * _resultobj; |
a884bee5 RD |
8552 | wxMenu * _arg0; |
8553 | int _arg1; | |
8554 | wxString * _arg2; | |
9a74fcaf | 8555 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
8556 | PyObject * _argo0 = 0; |
8557 | PyObject * _obj2 = 0; | |
8558 | PyObject * _obj3 = 0; | |
8559 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
8ab979d7 RD |
8560 | |
8561 | self = self; | |
a884bee5 | 8562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
8ab979d7 | 8563 | return NULL; |
a884bee5 RD |
8564 | if (_argo0) { |
8565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependCheckItem. Expected _wxMenu_p."); | |
8568 | return NULL; | |
8569 | } | |
8570 | } | |
8ab979d7 | 8571 | { |
a884bee5 RD |
8572 | _arg2 = wxString_in_helper(_obj2); |
8573 | if (_arg2 == NULL) | |
8574 | return NULL; | |
8575 | } | |
8576 | if (_obj3) | |
8577 | { | |
8578 | _arg3 = wxString_in_helper(_obj3); | |
8579 | if (_arg3 == NULL) | |
2cd2fac8 | 8580 | return NULL; |
8ab979d7 | 8581 | } |
cf694132 | 8582 | { |
474c48f9 | 8583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8584 | wxMenu_PrependCheckItem(_arg0,_arg1,*_arg2,*_arg3); |
cf694132 | 8585 | |
474c48f9 | 8586 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8587 | if (PyErr_Occurred()) return NULL; |
a884bee5 RD |
8588 | } Py_INCREF(Py_None); |
8589 | _resultobj = Py_None; | |
8ab979d7 | 8590 | { |
a884bee5 RD |
8591 | if (_obj2) |
8592 | delete _arg2; | |
8593 | } | |
8594 | { | |
8595 | if (_obj3) | |
8596 | delete _arg3; | |
8ab979d7 RD |
8597 | } |
8598 | return _resultobj; | |
8599 | } | |
8600 | ||
a884bee5 RD |
8601 | #define wxMenu_PrependRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependRadioItem(_swigarg0,_swigarg1,_swigarg2)) |
8602 | static PyObject *_wrap_wxMenu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8603 | PyObject * _resultobj; |
8604 | wxMenu * _arg0; | |
8605 | int _arg1; | |
8606 | wxString * _arg2; | |
9a74fcaf | 8607 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
1d99702e | 8608 | PyObject * _argo0 = 0; |
8ab979d7 RD |
8609 | PyObject * _obj2 = 0; |
8610 | PyObject * _obj3 = 0; | |
a884bee5 | 8611 | char *_kwnames[] = { "self","id","text","help", NULL }; |
8ab979d7 RD |
8612 | |
8613 | self = self; | |
a884bee5 | 8614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
8ab979d7 | 8615 | return NULL; |
1d99702e RD |
8616 | if (_argo0) { |
8617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
a884bee5 | 8619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependRadioItem. Expected _wxMenu_p."); |
8ab979d7 RD |
8620 | return NULL; |
8621 | } | |
8622 | } | |
8623 | { | |
c8bc7bb8 RD |
8624 | _arg2 = wxString_in_helper(_obj2); |
8625 | if (_arg2 == NULL) | |
8ab979d7 | 8626 | return NULL; |
8ab979d7 RD |
8627 | } |
8628 | if (_obj3) | |
8629 | { | |
c8bc7bb8 RD |
8630 | _arg3 = wxString_in_helper(_obj3); |
8631 | if (_arg3 == NULL) | |
8ab979d7 | 8632 | return NULL; |
8ab979d7 | 8633 | } |
cf694132 | 8634 | { |
474c48f9 | 8635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8636 | wxMenu_PrependRadioItem(_arg0,_arg1,*_arg2,*_arg3); |
cf694132 | 8637 | |
474c48f9 | 8638 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8639 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8640 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8641 | _resultobj = Py_None; |
8642 | { | |
8643 | if (_obj2) | |
8644 | delete _arg2; | |
8645 | } | |
8646 | { | |
8647 | if (_obj3) | |
8648 | delete _arg3; | |
8649 | } | |
8650 | return _resultobj; | |
8651 | } | |
8652 | ||
a884bee5 RD |
8653 | #define wxMenu_PrependMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8654 | static PyObject *_wrap_wxMenu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8655 | PyObject * _resultobj; |
8656 | wxMenu * _arg0; | |
8657 | int _arg1; | |
8658 | wxString * _arg2; | |
8659 | wxMenu * _arg3; | |
9a74fcaf | 8660 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
1d99702e | 8661 | PyObject * _argo0 = 0; |
8ab979d7 | 8662 | PyObject * _obj2 = 0; |
1d99702e | 8663 | PyObject * _argo3 = 0; |
8ab979d7 | 8664 | PyObject * _obj4 = 0; |
a884bee5 | 8665 | char *_kwnames[] = { "self","id","text","submenu","help", NULL }; |
8ab979d7 RD |
8666 | |
8667 | self = self; | |
a884bee5 | 8668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_PrependMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 8669 | return NULL; |
1d99702e RD |
8670 | if (_argo0) { |
8671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
a884bee5 | 8673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependMenu. Expected _wxMenu_p."); |
8ab979d7 RD |
8674 | return NULL; |
8675 | } | |
8676 | } | |
8677 | { | |
c8bc7bb8 RD |
8678 | _arg2 = wxString_in_helper(_obj2); |
8679 | if (_arg2 == NULL) | |
2cd2fac8 | 8680 | return NULL; |
8ab979d7 | 8681 | } |
1d99702e RD |
8682 | if (_argo3) { |
8683 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8684 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
a884bee5 | 8685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_PrependMenu. Expected _wxMenu_p."); |
8ab979d7 RD |
8686 | return NULL; |
8687 | } | |
8688 | } | |
8689 | if (_obj4) | |
8690 | { | |
c8bc7bb8 RD |
8691 | _arg4 = wxString_in_helper(_obj4); |
8692 | if (_arg4 == NULL) | |
2cd2fac8 | 8693 | return NULL; |
8ab979d7 | 8694 | } |
cf694132 | 8695 | { |
474c48f9 | 8696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8697 | wxMenu_PrependMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); |
cf694132 | 8698 | |
474c48f9 | 8699 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8700 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8701 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8702 | _resultobj = Py_None; |
8703 | { | |
8704 | if (_obj2) | |
8705 | delete _arg2; | |
8706 | } | |
8707 | { | |
8708 | if (_obj4) | |
8709 | delete _arg4; | |
8710 | } | |
8711 | return _resultobj; | |
8712 | } | |
8713 | ||
a884bee5 RD |
8714 | #define wxMenu_PrependItem(_swigobj,_swigarg0) (_swigobj->Prepend(_swigarg0)) |
8715 | static PyObject *_wrap_wxMenu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
8716 | PyObject * _resultobj; |
8717 | wxMenu * _arg0; | |
8718 | wxMenuItem * _arg1; | |
1d99702e RD |
8719 | PyObject * _argo0 = 0; |
8720 | PyObject * _argo1 = 0; | |
efc5f224 | 8721 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
8722 | |
8723 | self = self; | |
a884bee5 | 8724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_PrependItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 8725 | return NULL; |
1d99702e RD |
8726 | if (_argo0) { |
8727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
a884bee5 | 8729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependItem. Expected _wxMenu_p."); |
af309447 RD |
8730 | return NULL; |
8731 | } | |
8732 | } | |
1d99702e RD |
8733 | if (_argo1) { |
8734 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8735 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
a884bee5 | 8736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_PrependItem. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8737 | return NULL; |
8738 | } | |
8739 | } | |
cf694132 | 8740 | { |
474c48f9 | 8741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8742 | wxMenu_PrependItem(_arg0,_arg1); |
cf694132 | 8743 | |
474c48f9 | 8744 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8745 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8746 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8747 | _resultobj = Py_None; |
8748 | return _resultobj; | |
8749 | } | |
8750 | ||
8751 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 8752 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8753 | PyObject * _resultobj; |
8754 | wxMenu * _arg0; | |
1d99702e | 8755 | PyObject * _argo0 = 0; |
efc5f224 | 8756 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8757 | |
8758 | self = self; | |
efc5f224 | 8759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 8760 | return NULL; |
1d99702e RD |
8761 | if (_argo0) { |
8762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
8765 | return NULL; | |
8766 | } | |
8767 | } | |
cf694132 | 8768 | { |
474c48f9 | 8769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8770 | wxMenu_Break(_arg0); |
cf694132 | 8771 | |
474c48f9 | 8772 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8773 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8774 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8775 | _resultobj = Py_None; |
8776 | return _resultobj; | |
8777 | } | |
8778 | ||
8779 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 8780 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8781 | PyObject * _resultobj; |
8782 | wxMenu * _arg0; | |
8783 | int _arg1; | |
8784 | bool _arg2; | |
1d99702e | 8785 | PyObject * _argo0 = 0; |
8ab979d7 | 8786 | int tempbool2; |
efc5f224 | 8787 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
8788 | |
8789 | self = self; | |
efc5f224 | 8790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 8791 | return NULL; |
1d99702e RD |
8792 | if (_argo0) { |
8793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
8796 | return NULL; | |
8797 | } | |
8798 | } | |
8799 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8800 | { |
474c48f9 | 8801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8802 | wxMenu_Check(_arg0,_arg1,_arg2); |
cf694132 | 8803 | |
474c48f9 | 8804 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8805 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8806 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8807 | _resultobj = Py_None; |
8808 | return _resultobj; | |
8809 | } | |
8810 | ||
b1462dfa RD |
8811 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8812 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8813 | PyObject * _resultobj; | |
8814 | bool _result; | |
8815 | wxMenu * _arg0; | |
8816 | int _arg1; | |
8817 | PyObject * _argo0 = 0; | |
8818 | char *_kwnames[] = { "self","id", NULL }; | |
8819 | ||
8820 | self = self; | |
8821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
8822 | return NULL; | |
8823 | if (_argo0) { | |
8824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
8827 | return NULL; | |
8828 | } | |
8829 | } | |
8830 | { | |
474c48f9 | 8831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8832 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); |
b1462dfa | 8833 | |
474c48f9 | 8834 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8835 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8836 | } _resultobj = Py_BuildValue("i",_result); |
8837 | return _resultobj; | |
8838 | } | |
8839 | ||
8ab979d7 | 8840 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 8841 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8842 | PyObject * _resultobj; |
8843 | wxMenu * _arg0; | |
8844 | int _arg1; | |
8845 | bool _arg2; | |
1d99702e | 8846 | PyObject * _argo0 = 0; |
8ab979d7 | 8847 | int tempbool2; |
efc5f224 | 8848 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
8849 | |
8850 | self = self; | |
efc5f224 | 8851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 8852 | return NULL; |
1d99702e RD |
8853 | if (_argo0) { |
8854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
8857 | return NULL; | |
8858 | } | |
8859 | } | |
8860 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8861 | { |
474c48f9 | 8862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8863 | wxMenu_Enable(_arg0,_arg1,_arg2); |
cf694132 | 8864 | |
474c48f9 | 8865 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8866 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8867 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8868 | _resultobj = Py_None; |
8869 | return _resultobj; | |
8870 | } | |
8871 | ||
b1462dfa RD |
8872 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8873 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8874 | PyObject * _resultobj; | |
8875 | bool _result; | |
8876 | wxMenu * _arg0; | |
8877 | int _arg1; | |
8878 | PyObject * _argo0 = 0; | |
8879 | char *_kwnames[] = { "self","id", NULL }; | |
8880 | ||
8881 | self = self; | |
8882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
8883 | return NULL; | |
8884 | if (_argo0) { | |
8885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
8888 | return NULL; | |
8889 | } | |
8890 | } | |
8891 | { | |
474c48f9 | 8892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8893 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); |
b1462dfa | 8894 | |
474c48f9 | 8895 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8896 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8897 | } _resultobj = Py_BuildValue("i",_result); |
8898 | return _resultobj; | |
8899 | } | |
8900 | ||
8ab979d7 | 8901 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 8902 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8903 | PyObject * _resultobj; |
8904 | int _result; | |
8905 | wxMenu * _arg0; | |
8906 | wxString * _arg1; | |
1d99702e | 8907 | PyObject * _argo0 = 0; |
8ab979d7 | 8908 | PyObject * _obj1 = 0; |
efc5f224 | 8909 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
8910 | |
8911 | self = self; | |
efc5f224 | 8912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8913 | return NULL; |
1d99702e RD |
8914 | if (_argo0) { |
8915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
8918 | return NULL; | |
8919 | } | |
8920 | } | |
8921 | { | |
c8bc7bb8 RD |
8922 | _arg1 = wxString_in_helper(_obj1); |
8923 | if (_arg1 == NULL) | |
2cd2fac8 | 8924 | return NULL; |
8ab979d7 | 8925 | } |
cf694132 | 8926 | { |
474c48f9 | 8927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8928 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); |
cf694132 | 8929 | |
474c48f9 | 8930 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8931 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8932 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8933 | { |
8934 | if (_obj1) | |
8935 | delete _arg1; | |
8936 | } | |
8937 | return _resultobj; | |
8938 | } | |
8939 | ||
b1462dfa RD |
8940 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
8941 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8942 | PyObject * _resultobj; | |
8943 | wxMenuItem * _result; | |
8944 | wxMenu * _arg0; | |
8945 | int _arg1; | |
8946 | PyObject * _argo0 = 0; | |
8947 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
8948 | |
8949 | self = self; | |
8950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8951 | return NULL; | |
8952 | if (_argo0) { | |
8953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
8956 | return NULL; | |
8957 | } | |
8958 | } | |
8959 | { | |
474c48f9 | 8960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8961 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); |
b1462dfa | 8962 | |
474c48f9 | 8963 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8964 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8965 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
8966 | return _resultobj; |
8967 | } | |
8968 | ||
8ab979d7 | 8969 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 8970 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8971 | PyObject * _resultobj; |
8972 | wxString * _result; | |
8973 | wxMenu * _arg0; | |
1d99702e | 8974 | PyObject * _argo0 = 0; |
efc5f224 | 8975 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8976 | |
8977 | self = self; | |
efc5f224 | 8978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 8979 | return NULL; |
1d99702e RD |
8980 | if (_argo0) { |
8981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
8984 | return NULL; | |
8985 | } | |
8986 | } | |
8ab979d7 | 8987 | { |
474c48f9 | 8988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8989 | _result = new wxString (wxMenu_GetTitle(_arg0)); |
cf694132 | 8990 | |
474c48f9 | 8991 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8992 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8993 | }{ |
c8bc7bb8 | 8994 | #if wxUSE_UNICODE |
b67a9327 | 8995 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8996 | #else |
eec92d76 | 8997 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8998 | #endif |
8ab979d7 RD |
8999 | } |
9000 | { | |
9001 | delete _result; | |
9002 | } | |
9003 | return _resultobj; | |
9004 | } | |
9005 | ||
9006 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 9007 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9008 | PyObject * _resultobj; |
9009 | wxMenu * _arg0; | |
9010 | wxString * _arg1; | |
1d99702e | 9011 | PyObject * _argo0 = 0; |
8ab979d7 | 9012 | PyObject * _obj1 = 0; |
efc5f224 | 9013 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
9014 | |
9015 | self = self; | |
efc5f224 | 9016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9017 | return NULL; |
1d99702e RD |
9018 | if (_argo0) { |
9019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
9021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
9022 | return NULL; | |
9023 | } | |
9024 | } | |
9025 | { | |
c8bc7bb8 RD |
9026 | _arg1 = wxString_in_helper(_obj1); |
9027 | if (_arg1 == NULL) | |
2cd2fac8 | 9028 | return NULL; |
8ab979d7 | 9029 | } |
cf694132 | 9030 | { |
474c48f9 | 9031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9032 | wxMenu_SetTitle(_arg0,*_arg1); |
cf694132 | 9033 | |
474c48f9 | 9034 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9035 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9036 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9037 | _resultobj = Py_None; |
9038 | { | |
9039 | if (_obj1) | |
9040 | delete _arg1; | |
9041 | } | |
9042 | return _resultobj; | |
9043 | } | |
9044 | ||
b1462dfa RD |
9045 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
9046 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9047 | PyObject * _resultobj; |
b1462dfa | 9048 | wxString * _result; |
8ab979d7 RD |
9049 | wxMenu * _arg0; |
9050 | int _arg1; | |
1d99702e | 9051 | PyObject * _argo0 = 0; |
efc5f224 | 9052 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9053 | |
9054 | self = self; | |
b1462dfa | 9055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9056 | return NULL; |
1d99702e RD |
9057 | if (_argo0) { |
9058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
9061 | return NULL; |
9062 | } | |
9063 | } | |
cf694132 | 9064 | { |
474c48f9 | 9065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9066 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 | 9067 | |
474c48f9 | 9068 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9069 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9070 | }{ |
c8bc7bb8 | 9071 | #if wxUSE_UNICODE |
b67a9327 | 9072 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9073 | #else |
eec92d76 | 9074 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9075 | #endif |
b1462dfa RD |
9076 | } |
9077 | { | |
9078 | delete _result; | |
9079 | } | |
8ab979d7 RD |
9080 | return _resultobj; |
9081 | } | |
9082 | ||
b1462dfa RD |
9083 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
9084 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9085 | PyObject * _resultobj; |
8ab979d7 RD |
9086 | wxMenu * _arg0; |
9087 | int _arg1; | |
b1462dfa | 9088 | wxString * _arg2; |
1d99702e | 9089 | PyObject * _argo0 = 0; |
b1462dfa RD |
9090 | PyObject * _obj2 = 0; |
9091 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
9092 | |
9093 | self = self; | |
b1462dfa | 9094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 9095 | return NULL; |
1d99702e RD |
9096 | if (_argo0) { |
9097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
9100 | return NULL; |
9101 | } | |
9102 | } | |
b1462dfa | 9103 | { |
c8bc7bb8 RD |
9104 | _arg2 = wxString_in_helper(_obj2); |
9105 | if (_arg2 == NULL) | |
2cd2fac8 | 9106 | return NULL; |
b1462dfa | 9107 | } |
8ab979d7 | 9108 | { |
474c48f9 | 9109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9110 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 9111 | |
474c48f9 | 9112 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9113 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9114 | } Py_INCREF(Py_None); |
9115 | _resultobj = Py_None; | |
8ab979d7 | 9116 | { |
b1462dfa RD |
9117 | if (_obj2) |
9118 | delete _arg2; | |
8ab979d7 RD |
9119 | } |
9120 | return _resultobj; | |
9121 | } | |
9122 | ||
b1462dfa RD |
9123 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
9124 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9125 | PyObject * _resultobj; |
9126 | wxString * _result; | |
9127 | wxMenu * _arg0; | |
9128 | int _arg1; | |
1d99702e | 9129 | PyObject * _argo0 = 0; |
efc5f224 | 9130 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9131 | |
9132 | self = self; | |
b1462dfa | 9133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9134 | return NULL; |
1d99702e RD |
9135 | if (_argo0) { |
9136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
9139 | return NULL; |
9140 | } | |
9141 | } | |
8ab979d7 | 9142 | { |
474c48f9 | 9143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9144 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 | 9145 | |
474c48f9 | 9146 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9147 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9148 | }{ |
c8bc7bb8 | 9149 | #if wxUSE_UNICODE |
b67a9327 | 9150 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9151 | #else |
eec92d76 | 9152 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9153 | #endif |
8ab979d7 RD |
9154 | } |
9155 | { | |
9156 | delete _result; | |
9157 | } | |
9158 | return _resultobj; | |
9159 | } | |
9160 | ||
9161 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 9162 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9163 | PyObject * _resultobj; |
9164 | wxMenu * _arg0; | |
9165 | int _arg1; | |
9166 | wxString * _arg2; | |
1d99702e | 9167 | PyObject * _argo0 = 0; |
8ab979d7 | 9168 | PyObject * _obj2 = 0; |
efc5f224 | 9169 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
9170 | |
9171 | self = self; | |
efc5f224 | 9172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 9173 | return NULL; |
1d99702e RD |
9174 | if (_argo0) { |
9175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
9177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
9178 | return NULL; | |
9179 | } | |
9180 | } | |
9181 | { | |
c8bc7bb8 RD |
9182 | _arg2 = wxString_in_helper(_obj2); |
9183 | if (_arg2 == NULL) | |
2cd2fac8 | 9184 | return NULL; |
8ab979d7 | 9185 | } |
cf694132 | 9186 | { |
474c48f9 | 9187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9188 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); |
cf694132 | 9189 | |
474c48f9 | 9190 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9191 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9192 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9193 | _resultobj = Py_None; |
9194 | { | |
9195 | if (_obj2) | |
9196 | delete _arg2; | |
9197 | } | |
9198 | return _resultobj; | |
9199 | } | |
9200 | ||
b1462dfa RD |
9201 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
9202 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9203 | PyObject * _resultobj; |
8ab979d7 | 9204 | wxMenu * _arg0; |
b1462dfa | 9205 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 9206 | PyObject * _argo0 = 0; |
b1462dfa RD |
9207 | PyObject * _argo1 = 0; |
9208 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
9209 | |
9210 | self = self; | |
b1462dfa | 9211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9212 | return NULL; |
1d99702e RD |
9213 | if (_argo0) { |
9214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
9216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
9217 | return NULL; | |
9218 | } | |
9219 | } | |
9220 | if (_argo1) { | |
9221 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9222 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
9223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
9224 | return NULL; |
9225 | } | |
9226 | } | |
cf694132 | 9227 | { |
474c48f9 | 9228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9229 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 | 9230 | |
474c48f9 | 9231 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9232 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9233 | } Py_INCREF(Py_None); |
9234 | _resultobj = Py_None; | |
8ab979d7 RD |
9235 | return _resultobj; |
9236 | } | |
9237 | ||
b1462dfa RD |
9238 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
9239 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9240 | PyObject * _resultobj; |
9241 | bool _result; | |
9242 | wxMenu * _arg0; | |
9243 | int _arg1; | |
1d99702e | 9244 | PyObject * _argo0 = 0; |
efc5f224 | 9245 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9246 | |
9247 | self = self; | |
b1462dfa | 9248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9249 | return NULL; |
1d99702e RD |
9250 | if (_argo0) { |
9251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
9254 | return NULL; |
9255 | } | |
9256 | } | |
cf694132 | 9257 | { |
474c48f9 | 9258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9259 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 | 9260 | |
474c48f9 | 9261 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9262 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9263 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9264 | return _resultobj; |
9265 | } | |
9266 | ||
b1462dfa RD |
9267 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
9268 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9269 | PyObject * _resultobj; |
b1462dfa | 9270 | bool _result; |
8ab979d7 | 9271 | wxMenu * _arg0; |
b1462dfa | 9272 | wxMenuItem * _arg1; |
1d99702e | 9273 | PyObject * _argo0 = 0; |
b1462dfa RD |
9274 | PyObject * _argo1 = 0; |
9275 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
9276 | |
9277 | self = self; | |
b1462dfa | 9278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9279 | return NULL; |
1d99702e RD |
9280 | if (_argo0) { |
9281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
9284 | return NULL; |
9285 | } | |
9286 | } | |
b1462dfa RD |
9287 | if (_argo1) { |
9288 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9289 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
9290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 9291 | return NULL; |
b1462dfa | 9292 | } |
8ab979d7 | 9293 | } |
cf694132 | 9294 | { |
474c48f9 | 9295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9296 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 | 9297 | |
474c48f9 | 9298 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9299 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9300 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9301 | return _resultobj; |
9302 | } | |
9303 | ||
b1462dfa RD |
9304 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
9305 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 9306 | PyObject * _resultobj; |
b1462dfa | 9307 | wxMenuItem * _result; |
efc5f224 | 9308 | wxMenu * _arg0; |
b1462dfa | 9309 | int _arg1; |
efc5f224 | 9310 | PyObject * _argo0 = 0; |
b1462dfa | 9311 | char *_kwnames[] = { "self","id", NULL }; |
efc5f224 RD |
9312 | |
9313 | self = self; | |
b1462dfa | 9314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
9315 | return NULL; |
9316 | if (_argo0) { | |
9317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
9320 | return NULL; |
9321 | } | |
9322 | } | |
9323 | { | |
474c48f9 | 9324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9325 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 | 9326 | |
474c48f9 | 9327 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9328 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9329 | }{ _resultobj = wxPyMake_wxObject(_result); } |
efc5f224 RD |
9330 | return _resultobj; |
9331 | } | |
9332 | ||
b1462dfa RD |
9333 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
9334 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9335 | PyObject * _resultobj; |
b1462dfa RD |
9336 | wxMenuItem * _result; |
9337 | wxMenu * _arg0; | |
9338 | wxMenuItem * _arg1; | |
9339 | PyObject * _argo0 = 0; | |
9340 | PyObject * _argo1 = 0; | |
9341 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
9342 | |
9343 | self = self; | |
b1462dfa RD |
9344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
9345 | return NULL; | |
9346 | if (_argo0) { | |
9347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
9350 | return NULL; | |
9351 | } | |
9352 | } | |
9353 | if (_argo1) { | |
9354 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9355 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
9356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 9357 | return NULL; |
b1462dfa RD |
9358 | } |
9359 | } | |
cf694132 | 9360 | { |
474c48f9 | 9361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9362 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 | 9363 | |
474c48f9 | 9364 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9365 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9366 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9367 | return _resultobj; |
9368 | } | |
9369 | ||
eb715945 | 9370 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 9371 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 9372 | PyObject * _resultobj; |
b1462dfa | 9373 | wxMenu * _arg0; |
1d99702e | 9374 | PyObject * _argo0 = 0; |
b1462dfa | 9375 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9376 | |
9377 | self = self; | |
b1462dfa | 9378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 9379 | return NULL; |
1d99702e RD |
9380 | if (_argo0) { |
9381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
9384 | return NULL; |
9385 | } | |
9386 | } | |
cf694132 | 9387 | { |
474c48f9 | 9388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9389 | wxMenu_Destroy(_arg0); |
cf694132 | 9390 | |
474c48f9 | 9391 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9392 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9393 | } Py_INCREF(Py_None); |
8ab979d7 | 9394 | _resultobj = Py_None; |
8ab979d7 RD |
9395 | return _resultobj; |
9396 | } | |
9397 | ||
b1462dfa RD |
9398 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
9399 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9400 | PyObject * _resultobj; |
b1462dfa RD |
9401 | bool _result; |
9402 | wxMenu * _arg0; | |
8ab979d7 | 9403 | int _arg1; |
1d99702e | 9404 | PyObject * _argo0 = 0; |
b1462dfa | 9405 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9406 | |
9407 | self = self; | |
b1462dfa | 9408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9409 | return NULL; |
1d99702e RD |
9410 | if (_argo0) { |
9411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
9414 | return NULL; |
9415 | } | |
9416 | } | |
cf694132 | 9417 | { |
474c48f9 | 9418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9419 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 | 9420 | |
474c48f9 | 9421 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9422 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9423 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9424 | return _resultobj; |
9425 | } | |
9426 | ||
b1462dfa RD |
9427 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
9428 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9429 | PyObject * _resultobj; |
b1462dfa RD |
9430 | bool _result; |
9431 | wxMenu * _arg0; | |
9432 | wxMenuItem * _arg1; | |
1d99702e | 9433 | PyObject * _argo0 = 0; |
b1462dfa RD |
9434 | PyObject * _argo1 = 0; |
9435 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
9436 | |
9437 | self = self; | |
b1462dfa | 9438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9439 | return NULL; |
1d99702e RD |
9440 | if (_argo0) { |
9441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
9444 | return NULL; | |
9445 | } | |
9446 | } | |
9447 | if (_argo1) { | |
9448 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9449 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
9450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
9451 | return NULL; |
9452 | } | |
9453 | } | |
cf694132 | 9454 | { |
474c48f9 | 9455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9456 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 | 9457 | |
474c48f9 | 9458 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9459 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9460 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9461 | return _resultobj; |
9462 | } | |
9463 | ||
b1462dfa RD |
9464 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
9465 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9466 | PyObject * _resultobj; |
b1462dfa RD |
9467 | size_t _result; |
9468 | wxMenu * _arg0; | |
1d99702e | 9469 | PyObject * _argo0 = 0; |
b1462dfa | 9470 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9471 | |
9472 | self = self; | |
b1462dfa | 9473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 9474 | return NULL; |
1d99702e RD |
9475 | if (_argo0) { |
9476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
9479 | return NULL; |
9480 | } | |
9481 | } | |
cf694132 | 9482 | { |
474c48f9 | 9483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9484 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 | 9485 | |
474c48f9 | 9486 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9487 | if (PyErr_Occurred()) return NULL; |
2abc0a0f | 9488 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9489 | return _resultobj; |
9490 | } | |
9491 | ||
b1462dfa RD |
9492 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
9493 | wxMenuItemList& list = self->GetMenuItems(); | |
9494 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
9495 | } | |
9496 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9497 | PyObject * _resultobj; |
b1462dfa RD |
9498 | PyObject * _result; |
9499 | wxMenu * _arg0; | |
1d99702e | 9500 | PyObject * _argo0 = 0; |
b1462dfa | 9501 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9502 | |
9503 | self = self; | |
b1462dfa | 9504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 9505 | return NULL; |
1d99702e RD |
9506 | if (_argo0) { |
9507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
9510 | return NULL; |
9511 | } | |
9512 | } | |
cf694132 | 9513 | { |
474c48f9 | 9514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9515 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 | 9516 | |
474c48f9 | 9517 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9518 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9519 | }{ |
9520 | _resultobj = _result; | |
9521 | } | |
8ab979d7 RD |
9522 | return _resultobj; |
9523 | } | |
9524 | ||
b1462dfa RD |
9525 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
9526 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9527 | PyObject * _resultobj; |
b1462dfa RD |
9528 | wxMenu * _arg0; |
9529 | wxEvtHandler * _arg1; | |
1d99702e | 9530 | PyObject * _argo0 = 0; |
b1462dfa RD |
9531 | PyObject * _argo1 = 0; |
9532 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
9533 | |
9534 | self = self; | |
b1462dfa | 9535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9536 | return NULL; |
1d99702e RD |
9537 | if (_argo0) { |
9538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
9541 | return NULL; |
9542 | } | |
9543 | } | |
b1462dfa RD |
9544 | if (_argo1) { |
9545 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9546 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
9547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 9548 | return NULL; |
b1462dfa | 9549 | } |
8ab979d7 | 9550 | } |
cf694132 | 9551 | { |
474c48f9 | 9552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9553 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 | 9554 | |
474c48f9 | 9555 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9556 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9557 | } Py_INCREF(Py_None); |
9558 | _resultobj = Py_None; | |
8ab979d7 RD |
9559 | return _resultobj; |
9560 | } | |
9561 | ||
b1462dfa RD |
9562 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
9563 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9564 | PyObject * _resultobj; |
b1462dfa RD |
9565 | wxEvtHandler * _result; |
9566 | wxMenu * _arg0; | |
1d99702e | 9567 | PyObject * _argo0 = 0; |
b1462dfa | 9568 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9569 | |
9570 | self = self; | |
b1462dfa | 9571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 9572 | return NULL; |
1d99702e RD |
9573 | if (_argo0) { |
9574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
9577 | return NULL; |
9578 | } | |
9579 | } | |
cf694132 | 9580 | { |
474c48f9 | 9581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9582 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 | 9583 | |
474c48f9 | 9584 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9585 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9586 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9587 | return _resultobj; |
9588 | } | |
9589 | ||
b1462dfa RD |
9590 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
9591 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 9592 | PyObject * _resultobj; |
b1462dfa RD |
9593 | wxMenu * _arg0; |
9594 | wxWindow * _arg1; | |
2f90df85 | 9595 | PyObject * _argo0 = 0; |
b1462dfa RD |
9596 | PyObject * _argo1 = 0; |
9597 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
9598 | |
9599 | self = self; | |
b1462dfa | 9600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
9601 | return NULL; |
9602 | if (_argo0) { | |
9603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
9606 | return NULL; |
9607 | } | |
9608 | } | |
b1462dfa RD |
9609 | if (_argo1) { |
9610 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9611 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 9613 | return NULL; |
b1462dfa | 9614 | } |
2f90df85 | 9615 | } |
2f90df85 | 9616 | { |
474c48f9 | 9617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9618 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 | 9619 | |
474c48f9 | 9620 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9621 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
9622 | } Py_INCREF(Py_None); |
9623 | _resultobj = Py_None; | |
2f90df85 RD |
9624 | return _resultobj; |
9625 | } | |
9626 | ||
b1462dfa RD |
9627 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
9628 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9629 | PyObject * _resultobj; |
b1462dfa RD |
9630 | wxWindow * _result; |
9631 | wxMenu * _arg0; | |
1d99702e | 9632 | PyObject * _argo0 = 0; |
b1462dfa | 9633 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9634 | |
9635 | self = self; | |
b1462dfa | 9636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 9637 | return NULL; |
1d99702e RD |
9638 | if (_argo0) { |
9639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
9642 | return NULL; |
9643 | } | |
9644 | } | |
cf694132 | 9645 | { |
474c48f9 | 9646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9647 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 | 9648 | |
474c48f9 | 9649 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9650 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9651 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9652 | return _resultobj; |
9653 | } | |
9654 | ||
b1462dfa RD |
9655 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
9656 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9657 | PyObject * _resultobj; |
b1462dfa RD |
9658 | long _result; |
9659 | wxMenu * _arg0; | |
1d99702e | 9660 | PyObject * _argo0 = 0; |
b1462dfa | 9661 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9662 | |
9663 | self = self; | |
b1462dfa | 9664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 9665 | return NULL; |
1d99702e RD |
9666 | if (_argo0) { |
9667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
9670 | return NULL; |
9671 | } | |
9672 | } | |
8ab979d7 | 9673 | { |
474c48f9 | 9674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9675 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 | 9676 | |
474c48f9 | 9677 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9678 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9679 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9680 | return _resultobj; |
9681 | } | |
9682 | ||
b1462dfa RD |
9683 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
9684 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9685 | PyObject * _resultobj; |
b1462dfa RD |
9686 | bool _result; |
9687 | wxMenu * _arg0; | |
1d99702e | 9688 | PyObject * _argo0 = 0; |
b1462dfa | 9689 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9690 | |
9691 | self = self; | |
b1462dfa | 9692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 9693 | return NULL; |
1d99702e RD |
9694 | if (_argo0) { |
9695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
9698 | return NULL; |
9699 | } | |
9700 | } | |
8ab979d7 | 9701 | { |
474c48f9 | 9702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9703 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 | 9704 | |
474c48f9 | 9705 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9706 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9707 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9708 | return _resultobj; |
9709 | } | |
9710 | ||
b1462dfa RD |
9711 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
9712 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9713 | PyObject * _resultobj; |
b1462dfa RD |
9714 | wxMenu * _arg0; |
9715 | wxMenu * _arg1; | |
1d99702e | 9716 | PyObject * _argo0 = 0; |
b1462dfa RD |
9717 | PyObject * _argo1 = 0; |
9718 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
9719 | |
9720 | self = self; | |
b1462dfa | 9721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9722 | return NULL; |
1d99702e RD |
9723 | if (_argo0) { |
9724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
9727 | return NULL; |
9728 | } | |
9729 | } | |
b1462dfa RD |
9730 | if (_argo1) { |
9731 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9732 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 9734 | return NULL; |
b1462dfa | 9735 | } |
8ab979d7 | 9736 | } |
cf694132 | 9737 | { |
474c48f9 | 9738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9739 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 | 9740 | |
474c48f9 | 9741 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9742 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9743 | } Py_INCREF(Py_None); |
8ab979d7 | 9744 | _resultobj = Py_None; |
8ab979d7 RD |
9745 | return _resultobj; |
9746 | } | |
9747 | ||
b1462dfa RD |
9748 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
9749 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9750 | PyObject * _resultobj; |
b1462dfa RD |
9751 | wxMenu * _result; |
9752 | wxMenu * _arg0; | |
1d99702e | 9753 | PyObject * _argo0 = 0; |
b1462dfa | 9754 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9755 | |
9756 | self = self; | |
b1462dfa | 9757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 9758 | return NULL; |
1d99702e RD |
9759 | if (_argo0) { |
9760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
9763 | return NULL; |
9764 | } | |
9765 | } | |
8ab979d7 | 9766 | { |
474c48f9 | 9767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9768 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 | 9769 | |
474c48f9 | 9770 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9771 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9772 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 9773 | return _resultobj; |
8ab979d7 | 9774 | } |
b1462dfa RD |
9775 | |
9776 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
9777 | wxMenuBar *src; | |
9778 | wxWindow *dest; | |
9779 | src = (wxMenuBar *) ptr; | |
9780 | dest = (wxWindow *) src; | |
9781 | return (void *) dest; | |
9782 | } | |
9783 | ||
9784 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
9785 | wxMenuBar *src; | |
9786 | wxEvtHandler *dest; | |
9787 | src = (wxMenuBar *) ptr; | |
9788 | dest = (wxEvtHandler *) src; | |
9789 | return (void *) dest; | |
8ab979d7 | 9790 | } |
b1462dfa | 9791 | |
9df61a29 RD |
9792 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
9793 | wxMenuBar *src; | |
9794 | wxObject *dest; | |
9795 | src = (wxMenuBar *) ptr; | |
9796 | dest = (wxObject *) src; | |
9797 | return (void *) dest; | |
9798 | } | |
9799 | ||
c368d904 | 9800 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
9801 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9802 | PyObject * _resultobj; | |
9803 | wxMenuBar * _result; | |
c368d904 RD |
9804 | long _arg0 = (long ) 0; |
9805 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
9806 | char _ptemp[128]; |
9807 | ||
9808 | self = self; | |
c368d904 | 9809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
9810 | return NULL; |
9811 | { | |
474c48f9 | 9812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9813 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa | 9814 | |
474c48f9 | 9815 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9816 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9817 | } if (_result) { |
9818 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
9819 | _resultobj = Py_BuildValue("s",_ptemp); | |
9820 | } else { | |
9821 | Py_INCREF(Py_None); | |
9822 | _resultobj = Py_None; | |
9823 | } | |
8ab979d7 RD |
9824 | return _resultobj; |
9825 | } | |
9826 | ||
b1462dfa RD |
9827 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
9828 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9829 | PyObject * _resultobj; |
b1462dfa | 9830 | bool _result; |
8ab979d7 | 9831 | wxMenuBar * _arg0; |
b1462dfa | 9832 | wxMenu * _arg1; |
8ab979d7 | 9833 | wxString * _arg2; |
1d99702e | 9834 | PyObject * _argo0 = 0; |
b1462dfa | 9835 | PyObject * _argo1 = 0; |
8ab979d7 | 9836 | PyObject * _obj2 = 0; |
b1462dfa | 9837 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
9838 | |
9839 | self = self; | |
b1462dfa | 9840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 9841 | return NULL; |
1d99702e RD |
9842 | if (_argo0) { |
9843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
9845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
9846 | return NULL; | |
9847 | } | |
9848 | } | |
9849 | if (_argo1) { | |
9850 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9851 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
9853 | return NULL; |
9854 | } | |
9855 | } | |
9856 | { | |
c8bc7bb8 RD |
9857 | _arg2 = wxString_in_helper(_obj2); |
9858 | if (_arg2 == NULL) | |
2cd2fac8 | 9859 | return NULL; |
8ab979d7 | 9860 | } |
cf694132 | 9861 | { |
474c48f9 | 9862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9863 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 | 9864 | |
474c48f9 | 9865 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9866 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9867 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9868 | { |
9869 | if (_obj2) | |
9870 | delete _arg2; | |
9871 | } | |
9872 | return _resultobj; | |
9873 | } | |
9874 | ||
b1462dfa RD |
9875 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
9876 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9877 | PyObject * _resultobj; |
b1462dfa | 9878 | bool _result; |
8ab979d7 | 9879 | wxMenuBar * _arg0; |
b1462dfa RD |
9880 | size_t _arg1; |
9881 | wxMenu * _arg2; | |
9882 | wxString * _arg3; | |
1d99702e | 9883 | PyObject * _argo0 = 0; |
b1462dfa RD |
9884 | PyObject * _argo2 = 0; |
9885 | PyObject * _obj3 = 0; | |
9886 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
9887 | |
9888 | self = self; | |
b1462dfa | 9889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 9890 | return NULL; |
1d99702e RD |
9891 | if (_argo0) { |
9892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
9894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
9895 | return NULL; | |
9896 | } | |
9897 | } | |
9898 | if (_argo2) { | |
9899 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9900 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
9901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
9902 | return NULL; |
9903 | } | |
9904 | } | |
b1462dfa | 9905 | { |
c8bc7bb8 RD |
9906 | _arg3 = wxString_in_helper(_obj3); |
9907 | if (_arg3 == NULL) | |
2cd2fac8 | 9908 | return NULL; |
b1462dfa | 9909 | } |
cf694132 | 9910 | { |
474c48f9 | 9911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9912 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 9913 | |
474c48f9 | 9914 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9915 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9916 | } _resultobj = Py_BuildValue("i",_result); |
b1462dfa RD |
9917 | { |
9918 | if (_obj3) | |
9919 | delete _arg3; | |
9920 | } | |
8ab979d7 RD |
9921 | return _resultobj; |
9922 | } | |
9923 | ||
b1462dfa RD |
9924 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
9925 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9926 | PyObject * _resultobj; |
b1462dfa | 9927 | size_t _result; |
8ab979d7 | 9928 | wxMenuBar * _arg0; |
1d99702e | 9929 | PyObject * _argo0 = 0; |
b1462dfa | 9930 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9931 | |
9932 | self = self; | |
b1462dfa | 9933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 9934 | return NULL; |
1d99702e RD |
9935 | if (_argo0) { |
9936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 9938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
9939 | return NULL; |
9940 | } | |
9941 | } | |
cf694132 | 9942 | { |
474c48f9 | 9943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9944 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 | 9945 | |
474c48f9 | 9946 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9947 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9948 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9949 | return _resultobj; |
9950 | } | |
9951 | ||
b1462dfa RD |
9952 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
9953 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 9954 | PyObject * _resultobj; |
b1462dfa | 9955 | wxMenu * _result; |
06c0fba4 | 9956 | wxMenuBar * _arg0; |
b1462dfa | 9957 | size_t _arg1; |
06c0fba4 | 9958 | PyObject * _argo0 = 0; |
b1462dfa | 9959 | char *_kwnames[] = { "self","pos", NULL }; |
06c0fba4 RD |
9960 | |
9961 | self = self; | |
b1462dfa | 9962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
9963 | return NULL; |
9964 | if (_argo0) { | |
9965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 9967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
9968 | return NULL; |
9969 | } | |
9970 | } | |
9971 | { | |
474c48f9 | 9972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9973 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 | 9974 | |
474c48f9 | 9975 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9976 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9977 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
9978 | return _resultobj; |
9979 | } | |
9980 | ||
2abc0a0f RD |
9981 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
9982 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9983 | PyObject * _resultobj; | |
9984 | wxMenu * _result; | |
9985 | wxMenuBar * _arg0; | |
9986 | size_t _arg1; | |
9987 | wxMenu * _arg2; | |
9988 | wxString * _arg3; | |
9989 | PyObject * _argo0 = 0; | |
9990 | PyObject * _argo2 = 0; | |
9991 | PyObject * _obj3 = 0; | |
9992 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
2abc0a0f RD |
9993 | |
9994 | self = self; | |
9995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
9996 | return NULL; | |
9997 | if (_argo0) { | |
9998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
10001 | return NULL; | |
10002 | } | |
10003 | } | |
10004 | if (_argo2) { | |
10005 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10006 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
10007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
10008 | return NULL; | |
10009 | } | |
10010 | } | |
10011 | { | |
c8bc7bb8 RD |
10012 | _arg3 = wxString_in_helper(_obj3); |
10013 | if (_arg3 == NULL) | |
2cd2fac8 | 10014 | return NULL; |
2abc0a0f RD |
10015 | } |
10016 | { | |
474c48f9 | 10017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10018 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); |
2abc0a0f | 10019 | |
474c48f9 | 10020 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10021 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 10022 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
10023 | { |
10024 | if (_obj3) | |
10025 | delete _arg3; | |
10026 | } | |
10027 | return _resultobj; | |
10028 | } | |
10029 | ||
10030 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
10031 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10032 | PyObject * _resultobj; | |
10033 | wxMenu * _result; | |
10034 | wxMenuBar * _arg0; | |
10035 | size_t _arg1; | |
10036 | PyObject * _argo0 = 0; | |
10037 | char *_kwnames[] = { "self","pos", NULL }; | |
2abc0a0f RD |
10038 | |
10039 | self = self; | |
10040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
10041 | return NULL; | |
10042 | if (_argo0) { | |
10043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
10046 | return NULL; | |
10047 | } | |
10048 | } | |
10049 | { | |
474c48f9 | 10050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10051 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); |
2abc0a0f | 10052 | |
474c48f9 | 10053 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10054 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 10055 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
10056 | return _resultobj; |
10057 | } | |
10058 | ||
b1462dfa RD |
10059 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
10060 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10061 | PyObject * _resultobj; |
b1462dfa RD |
10062 | wxMenuBar * _arg0; |
10063 | size_t _arg1; | |
10064 | bool _arg2; | |
10065 | PyObject * _argo0 = 0; | |
10066 | int tempbool2; | |
10067 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
10068 | ||
10069 | self = self; | |
10070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
10071 | return NULL; | |
10072 | if (_argo0) { | |
10073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
10076 | return NULL; | |
10077 | } | |
10078 | } | |
10079 | _arg2 = (bool ) tempbool2; | |
10080 | { | |
474c48f9 | 10081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10082 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); |
b1462dfa | 10083 | |
474c48f9 | 10084 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10085 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10086 | } Py_INCREF(Py_None); |
10087 | _resultobj = Py_None; | |
10088 | return _resultobj; | |
10089 | } | |
10090 | ||
b67a9327 RD |
10091 | #define wxMenuBar_IsEnabledTop(_swigobj,_swigarg0) (_swigobj->IsEnabledTop(_swigarg0)) |
10092 | static PyObject *_wrap_wxMenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10093 | PyObject * _resultobj; | |
10094 | bool _result; | |
10095 | wxMenuBar * _arg0; | |
10096 | size_t _arg1; | |
10097 | PyObject * _argo0 = 0; | |
10098 | char *_kwnames[] = { "self","pos", NULL }; | |
10099 | ||
10100 | self = self; | |
10101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabledTop",_kwnames,&_argo0,&_arg1)) | |
10102 | return NULL; | |
10103 | if (_argo0) { | |
10104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabledTop. Expected _wxMenuBar_p."); | |
10107 | return NULL; | |
10108 | } | |
10109 | } | |
10110 | { | |
10111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10112 | _result = (bool )wxMenuBar_IsEnabledTop(_arg0,_arg1); | |
10113 | ||
10114 | wxPyEndAllowThreads(__tstate); | |
10115 | if (PyErr_Occurred()) return NULL; | |
10116 | } _resultobj = Py_BuildValue("i",_result); | |
10117 | return _resultobj; | |
10118 | } | |
10119 | ||
b1462dfa RD |
10120 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) |
10121 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10122 | PyObject * _resultobj; | |
10123 | wxMenuBar * _arg0; | |
10124 | size_t _arg1; | |
10125 | wxString * _arg2; | |
1d99702e | 10126 | PyObject * _argo0 = 0; |
cf694132 | 10127 | PyObject * _obj2 = 0; |
b1462dfa | 10128 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
10129 | |
10130 | self = self; | |
b1462dfa | 10131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 10132 | return NULL; |
1d99702e RD |
10133 | if (_argo0) { |
10134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
10137 | return NULL; |
10138 | } | |
10139 | } | |
cf694132 | 10140 | { |
c8bc7bb8 RD |
10141 | _arg2 = wxString_in_helper(_obj2); |
10142 | if (_arg2 == NULL) | |
2cd2fac8 | 10143 | return NULL; |
cf694132 | 10144 | } |
cf694132 | 10145 | { |
474c48f9 | 10146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10147 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); |
b1462dfa | 10148 | |
474c48f9 | 10149 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10150 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10151 | } Py_INCREF(Py_None); |
10152 | _resultobj = Py_None; | |
10153 | { | |
10154 | if (_obj2) | |
10155 | delete _arg2; | |
10156 | } | |
10157 | return _resultobj; | |
10158 | } | |
10159 | ||
10160 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
10161 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10162 | PyObject * _resultobj; | |
10163 | wxString * _result; | |
10164 | wxMenuBar * _arg0; | |
10165 | size_t _arg1; | |
10166 | PyObject * _argo0 = 0; | |
10167 | char *_kwnames[] = { "self","pos", NULL }; | |
10168 | ||
10169 | self = self; | |
10170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
10171 | return NULL; | |
10172 | if (_argo0) { | |
10173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
10176 | return NULL; | |
10177 | } | |
10178 | } | |
10179 | { | |
474c48f9 | 10180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10181 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); |
b1462dfa | 10182 | |
474c48f9 | 10183 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10184 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10185 | }{ |
c8bc7bb8 | 10186 | #if wxUSE_UNICODE |
b67a9327 | 10187 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10188 | #else |
eec92d76 | 10189 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10190 | #endif |
b1462dfa RD |
10191 | } |
10192 | { | |
10193 | delete _result; | |
10194 | } | |
10195 | return _resultobj; | |
10196 | } | |
10197 | ||
10be44ac RD |
10198 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) |
10199 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10200 | PyObject * _resultobj; | |
10201 | int _result; | |
10202 | wxMenuBar * _arg0; | |
10203 | wxString * _arg1; | |
10204 | PyObject * _argo0 = 0; | |
10205 | PyObject * _obj1 = 0; | |
10206 | char *_kwnames[] = { "self","title", NULL }; | |
10207 | ||
10208 | self = self; | |
10209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) | |
10210 | return NULL; | |
10211 | if (_argo0) { | |
10212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); | |
10215 | return NULL; | |
10216 | } | |
10217 | } | |
10218 | { | |
c8bc7bb8 RD |
10219 | _arg1 = wxString_in_helper(_obj1); |
10220 | if (_arg1 == NULL) | |
10be44ac | 10221 | return NULL; |
10be44ac RD |
10222 | } |
10223 | { | |
474c48f9 | 10224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10225 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); |
10be44ac | 10226 | |
474c48f9 | 10227 | wxPyEndAllowThreads(__tstate); |
10be44ac RD |
10228 | if (PyErr_Occurred()) return NULL; |
10229 | } _resultobj = Py_BuildValue("i",_result); | |
10230 | { | |
10231 | if (_obj1) | |
10232 | delete _arg1; | |
10233 | } | |
10234 | return _resultobj; | |
10235 | } | |
10236 | ||
b1462dfa RD |
10237 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) |
10238 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10239 | PyObject * _resultobj; | |
10240 | int _result; | |
10241 | wxMenuBar * _arg0; | |
10242 | wxString * _arg1; | |
10243 | wxString * _arg2; | |
10244 | PyObject * _argo0 = 0; | |
10245 | PyObject * _obj1 = 0; | |
10246 | PyObject * _obj2 = 0; | |
10247 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
10248 | ||
10249 | self = self; | |
10250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
10251 | return NULL; | |
10252 | if (_argo0) { | |
10253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
10256 | return NULL; | |
10257 | } | |
10258 | } | |
10259 | { | |
c8bc7bb8 RD |
10260 | _arg1 = wxString_in_helper(_obj1); |
10261 | if (_arg1 == NULL) | |
2cd2fac8 | 10262 | return NULL; |
cf694132 | 10263 | } |
b1462dfa | 10264 | { |
c8bc7bb8 RD |
10265 | _arg2 = wxString_in_helper(_obj2); |
10266 | if (_arg2 == NULL) | |
b1462dfa | 10267 | return NULL; |
b1462dfa RD |
10268 | } |
10269 | { | |
474c48f9 | 10270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10271 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); |
b1462dfa | 10272 | |
474c48f9 | 10273 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10274 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10275 | } _resultobj = Py_BuildValue("i",_result); |
10276 | { | |
10277 | if (_obj1) | |
10278 | delete _arg1; | |
10279 | } | |
10280 | { | |
10281 | if (_obj2) | |
10282 | delete _arg2; | |
10283 | } | |
10284 | return _resultobj; | |
10285 | } | |
10286 | ||
10287 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
10288 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10289 | PyObject * _resultobj; | |
10290 | wxMenuItem * _result; | |
10291 | wxMenuBar * _arg0; | |
10292 | int _arg1; | |
10293 | PyObject * _argo0 = 0; | |
10294 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
10295 | |
10296 | self = self; | |
10297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
10298 | return NULL; | |
10299 | if (_argo0) { | |
10300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
10303 | return NULL; |
10304 | } | |
10305 | } | |
10306 | { | |
474c48f9 | 10307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10308 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 | 10309 | |
474c48f9 | 10310 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10311 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 10312 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 10313 | return _resultobj; |
cf694132 | 10314 | } |
b1462dfa RD |
10315 | |
10316 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
10317 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10318 | PyObject * _resultobj; | |
10319 | wxMenuBar * _arg0; | |
10320 | int _arg1; | |
10321 | bool _arg2; | |
10322 | PyObject * _argo0 = 0; | |
10323 | int tempbool2; | |
10324 | char *_kwnames[] = { "self","id","enable", NULL }; | |
10325 | ||
10326 | self = self; | |
10327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
10328 | return NULL; | |
10329 | if (_argo0) { | |
10330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
10333 | return NULL; | |
10334 | } | |
10335 | } | |
10336 | _arg2 = (bool ) tempbool2; | |
cf694132 | 10337 | { |
474c48f9 | 10338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10339 | wxMenuBar_Enable(_arg0,_arg1,_arg2); |
b1462dfa | 10340 | |
474c48f9 | 10341 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10342 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10343 | } Py_INCREF(Py_None); |
10344 | _resultobj = Py_None; | |
10345 | return _resultobj; | |
cf694132 | 10346 | } |
b1462dfa RD |
10347 | |
10348 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
10349 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10350 | PyObject * _resultobj; | |
10351 | wxMenuBar * _arg0; | |
10352 | int _arg1; | |
10353 | bool _arg2; | |
10354 | PyObject * _argo0 = 0; | |
10355 | int tempbool2; | |
10356 | char *_kwnames[] = { "self","id","check", NULL }; | |
10357 | ||
10358 | self = self; | |
10359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
10360 | return NULL; | |
10361 | if (_argo0) { | |
10362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
10365 | return NULL; | |
10366 | } | |
10367 | } | |
10368 | _arg2 = (bool ) tempbool2; | |
10369 | { | |
474c48f9 | 10370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10371 | wxMenuBar_Check(_arg0,_arg1,_arg2); |
b1462dfa | 10372 | |
474c48f9 | 10373 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10374 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10375 | } Py_INCREF(Py_None); |
10376 | _resultobj = Py_None; | |
cf694132 RD |
10377 | return _resultobj; |
10378 | } | |
10379 | ||
b1462dfa RD |
10380 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
10381 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10382 | PyObject * _resultobj; |
10383 | bool _result; | |
b1462dfa RD |
10384 | wxMenuBar * _arg0; |
10385 | int _arg1; | |
1d99702e | 10386 | PyObject * _argo0 = 0; |
b1462dfa | 10387 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10388 | |
10389 | self = self; | |
b1462dfa | 10390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10391 | return NULL; |
1d99702e RD |
10392 | if (_argo0) { |
10393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10396 | return NULL; |
10397 | } | |
10398 | } | |
cf694132 | 10399 | { |
474c48f9 | 10400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10401 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 | 10402 | |
474c48f9 | 10403 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10404 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10405 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10406 | return _resultobj; |
10407 | } | |
10408 | ||
b1462dfa RD |
10409 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
10410 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10411 | PyObject * _resultobj; |
10412 | bool _result; | |
b1462dfa RD |
10413 | wxMenuBar * _arg0; |
10414 | int _arg1; | |
1d99702e | 10415 | PyObject * _argo0 = 0; |
b1462dfa | 10416 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10417 | |
10418 | self = self; | |
b1462dfa | 10419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10420 | return NULL; |
1d99702e RD |
10421 | if (_argo0) { |
10422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10425 | return NULL; |
10426 | } | |
10427 | } | |
cf694132 | 10428 | { |
474c48f9 | 10429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10430 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 | 10431 | |
474c48f9 | 10432 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10433 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10434 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10435 | return _resultobj; |
10436 | } | |
10437 | ||
b1462dfa RD |
10438 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
10439 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10440 | PyObject * _resultobj; |
b1462dfa RD |
10441 | wxMenuBar * _arg0; |
10442 | int _arg1; | |
10443 | wxString * _arg2; | |
1d99702e | 10444 | PyObject * _argo0 = 0; |
b1462dfa RD |
10445 | PyObject * _obj2 = 0; |
10446 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
10447 | |
10448 | self = self; | |
b1462dfa | 10449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 10450 | return NULL; |
1d99702e RD |
10451 | if (_argo0) { |
10452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10455 | return NULL; |
10456 | } | |
10457 | } | |
b1462dfa | 10458 | { |
c8bc7bb8 RD |
10459 | _arg2 = wxString_in_helper(_obj2); |
10460 | if (_arg2 == NULL) | |
b1462dfa | 10461 | return NULL; |
b1462dfa | 10462 | } |
cf694132 | 10463 | { |
474c48f9 | 10464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10465 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 10466 | |
474c48f9 | 10467 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10468 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10469 | } Py_INCREF(Py_None); |
10470 | _resultobj = Py_None; | |
10471 | { | |
10472 | if (_obj2) | |
10473 | delete _arg2; | |
10474 | } | |
8ab979d7 RD |
10475 | return _resultobj; |
10476 | } | |
10477 | ||
b1462dfa RD |
10478 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
10479 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10480 | PyObject * _resultobj; |
b1462dfa RD |
10481 | wxString * _result; |
10482 | wxMenuBar * _arg0; | |
10483 | int _arg1; | |
1d99702e | 10484 | PyObject * _argo0 = 0; |
b1462dfa | 10485 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10486 | |
10487 | self = self; | |
b1462dfa | 10488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10489 | return NULL; |
1d99702e RD |
10490 | if (_argo0) { |
10491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
10494 | return NULL; | |
10495 | } | |
10496 | } | |
10497 | { | |
474c48f9 | 10498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10499 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); |
b1462dfa | 10500 | |
474c48f9 | 10501 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10502 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10503 | }{ |
c8bc7bb8 | 10504 | #if wxUSE_UNICODE |
b67a9327 | 10505 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10506 | #else |
eec92d76 | 10507 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10508 | #endif |
b1462dfa RD |
10509 | } |
10510 | { | |
10511 | delete _result; | |
10512 | } | |
10513 | return _resultobj; | |
10514 | } | |
10515 | ||
10516 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
10517 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10518 | PyObject * _resultobj; | |
10519 | wxMenuBar * _arg0; | |
10520 | int _arg1; | |
10521 | wxString * _arg2; | |
10522 | PyObject * _argo0 = 0; | |
10523 | PyObject * _obj2 = 0; | |
10524 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
10525 | ||
10526 | self = self; | |
10527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
10528 | return NULL; | |
10529 | if (_argo0) { | |
10530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
10533 | return NULL; | |
10534 | } | |
10535 | } | |
10536 | { | |
c8bc7bb8 RD |
10537 | _arg2 = wxString_in_helper(_obj2); |
10538 | if (_arg2 == NULL) | |
b1462dfa | 10539 | return NULL; |
b1462dfa RD |
10540 | } |
10541 | { | |
474c48f9 | 10542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10543 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); |
b1462dfa | 10544 | |
474c48f9 | 10545 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10546 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10547 | } Py_INCREF(Py_None); |
10548 | _resultobj = Py_None; | |
10549 | { | |
10550 | if (_obj2) | |
10551 | delete _arg2; | |
10552 | } | |
10553 | return _resultobj; | |
10554 | } | |
10555 | ||
10556 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
10557 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10558 | PyObject * _resultobj; | |
10559 | wxString * _result; | |
10560 | wxMenuBar * _arg0; | |
10561 | int _arg1; | |
10562 | PyObject * _argo0 = 0; | |
10563 | char *_kwnames[] = { "self","id", NULL }; | |
10564 | ||
10565 | self = self; | |
10566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
10567 | return NULL; | |
10568 | if (_argo0) { | |
10569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10572 | return NULL; |
10573 | } | |
10574 | } | |
cf694132 | 10575 | { |
474c48f9 | 10576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10577 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 | 10578 | |
474c48f9 | 10579 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10580 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10581 | }{ |
c8bc7bb8 | 10582 | #if wxUSE_UNICODE |
b67a9327 | 10583 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10584 | #else |
eec92d76 | 10585 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10586 | #endif |
b1462dfa RD |
10587 | } |
10588 | { | |
10589 | delete _result; | |
10590 | } | |
8ab979d7 RD |
10591 | return _resultobj; |
10592 | } | |
10593 | ||
9df61a29 RD |
10594 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
10595 | wxMenuItem *src; | |
10596 | wxObject *dest; | |
10597 | src = (wxMenuItem *) ptr; | |
10598 | dest = (wxObject *) src; | |
10599 | return (void *) dest; | |
10600 | } | |
10601 | ||
b1462dfa RD |
10602 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
10603 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10604 | PyObject * _resultobj; |
b1462dfa RD |
10605 | wxMenuItem * _result; |
10606 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 10607 | int _arg1 = (int ) wxID_SEPARATOR; |
9a74fcaf RD |
10608 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
10609 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
546bfbea | 10610 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
b1462dfa | 10611 | wxMenu * _arg5 = (wxMenu *) NULL; |
1d99702e | 10612 | PyObject * _argo0 = 0; |
b1462dfa RD |
10613 | PyObject * _obj2 = 0; |
10614 | PyObject * _obj3 = 0; | |
b1462dfa | 10615 | PyObject * _argo5 = 0; |
a884bee5 | 10616 | char *_kwnames[] = { "parentMenu","id","text","help","kind","subMenu", NULL }; |
b1462dfa | 10617 | char _ptemp[128]; |
8ab979d7 RD |
10618 | |
10619 | self = self; | |
a884bee5 | 10620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5)) |
8ab979d7 | 10621 | return NULL; |
1d99702e RD |
10622 | if (_argo0) { |
10623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
10625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
10626 | return NULL; | |
10627 | } | |
10628 | } | |
10629 | if (_obj2) | |
10630 | { | |
c8bc7bb8 RD |
10631 | _arg2 = wxString_in_helper(_obj2); |
10632 | if (_arg2 == NULL) | |
b1462dfa | 10633 | return NULL; |
b1462dfa RD |
10634 | } |
10635 | if (_obj3) | |
10636 | { | |
c8bc7bb8 RD |
10637 | _arg3 = wxString_in_helper(_obj3); |
10638 | if (_arg3 == NULL) | |
b1462dfa | 10639 | return NULL; |
b1462dfa | 10640 | } |
b1462dfa RD |
10641 | if (_argo5) { |
10642 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
10643 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
10644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
10645 | return NULL; |
10646 | } | |
10647 | } | |
cf694132 | 10648 | { |
474c48f9 | 10649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10650 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 | 10651 | |
474c48f9 | 10652 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10653 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10654 | } if (_result) { |
10655 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
10656 | _resultobj = Py_BuildValue("s",_ptemp); | |
10657 | } else { | |
10658 | Py_INCREF(Py_None); | |
10659 | _resultobj = Py_None; | |
10660 | } | |
10661 | { | |
10662 | if (_obj2) | |
10663 | delete _arg2; | |
10664 | } | |
10665 | { | |
10666 | if (_obj3) | |
10667 | delete _arg3; | |
10668 | } | |
8ab979d7 RD |
10669 | return _resultobj; |
10670 | } | |
10671 | ||
b1462dfa RD |
10672 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
10673 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10674 | PyObject * _resultobj; |
b1462dfa | 10675 | wxMenu * _result; |
8ab979d7 | 10676 | wxMenuItem * _arg0; |
1d99702e | 10677 | PyObject * _argo0 = 0; |
efc5f224 | 10678 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10679 | |
10680 | self = self; | |
b1462dfa | 10681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 10682 | return NULL; |
1d99702e RD |
10683 | if (_argo0) { |
10684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10687 | return NULL; |
10688 | } | |
10689 | } | |
cf694132 | 10690 | { |
474c48f9 | 10691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10692 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 | 10693 | |
474c48f9 | 10694 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10695 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 10696 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
10697 | return _resultobj; |
10698 | } | |
10699 | ||
1fded56b RD |
10700 | #define wxMenuItem_SetMenu(_swigobj,_swigarg0) (_swigobj->SetMenu(_swigarg0)) |
10701 | static PyObject *_wrap_wxMenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10702 | PyObject * _resultobj; | |
10703 | wxMenuItem * _arg0; | |
10704 | wxMenu * _arg1; | |
10705 | PyObject * _argo0 = 0; | |
10706 | PyObject * _argo1 = 0; | |
10707 | char *_kwnames[] = { "self","menu", NULL }; | |
10708 | ||
10709 | self = self; | |
10710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetMenu",_kwnames,&_argo0,&_argo1)) | |
10711 | return NULL; | |
10712 | if (_argo0) { | |
10713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMenu. Expected _wxMenuItem_p."); | |
10716 | return NULL; | |
10717 | } | |
10718 | } | |
10719 | if (_argo1) { | |
10720 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10721 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
10722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetMenu. Expected _wxMenu_p."); | |
10723 | return NULL; | |
10724 | } | |
10725 | } | |
10726 | { | |
10727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10728 | wxMenuItem_SetMenu(_arg0,_arg1); | |
10729 | ||
10730 | wxPyEndAllowThreads(__tstate); | |
10731 | if (PyErr_Occurred()) return NULL; | |
10732 | } Py_INCREF(Py_None); | |
10733 | _resultobj = Py_None; | |
10734 | return _resultobj; | |
10735 | } | |
10736 | ||
2abc0a0f RD |
10737 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
10738 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10739 | PyObject * _resultobj; |
10740 | wxMenuItem * _arg0; | |
2abc0a0f | 10741 | int _arg1; |
1d99702e | 10742 | PyObject * _argo0 = 0; |
2abc0a0f | 10743 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10744 | |
10745 | self = self; | |
2abc0a0f | 10746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10747 | return NULL; |
1d99702e RD |
10748 | if (_argo0) { |
10749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 10751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10752 | return NULL; |
10753 | } | |
10754 | } | |
cf694132 | 10755 | { |
474c48f9 | 10756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10757 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 | 10758 | |
474c48f9 | 10759 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10760 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10761 | } Py_INCREF(Py_None); |
8ab979d7 | 10762 | _resultobj = Py_None; |
8ab979d7 RD |
10763 | return _resultobj; |
10764 | } | |
10765 | ||
b1462dfa RD |
10766 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
10767 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10768 | PyObject * _resultobj; |
b1462dfa | 10769 | int _result; |
8ab979d7 | 10770 | wxMenuItem * _arg0; |
1d99702e | 10771 | PyObject * _argo0 = 0; |
efc5f224 | 10772 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10773 | |
10774 | self = self; | |
b1462dfa | 10775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 10776 | return NULL; |
1d99702e RD |
10777 | if (_argo0) { |
10778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10781 | return NULL; |
10782 | } | |
10783 | } | |
8ab979d7 | 10784 | { |
474c48f9 | 10785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10786 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 | 10787 | |
474c48f9 | 10788 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10789 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10790 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10791 | return _resultobj; |
10792 | } | |
10793 | ||
b1462dfa RD |
10794 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
10795 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10796 | PyObject * _resultobj; |
b1462dfa | 10797 | bool _result; |
8ab979d7 | 10798 | wxMenuItem * _arg0; |
1d99702e | 10799 | PyObject * _argo0 = 0; |
efc5f224 | 10800 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10801 | |
10802 | self = self; | |
b1462dfa | 10803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 10804 | return NULL; |
1d99702e RD |
10805 | if (_argo0) { |
10806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10809 | return NULL; |
10810 | } | |
10811 | } | |
8ab979d7 | 10812 | { |
474c48f9 | 10813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10814 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 | 10815 | |
474c48f9 | 10816 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10817 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10818 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10819 | return _resultobj; |
10820 | } | |
10821 | ||
b1462dfa RD |
10822 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
10823 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10824 | PyObject * _resultobj; |
10825 | wxMenuItem * _arg0; | |
10826 | wxString * _arg1; | |
1d99702e | 10827 | PyObject * _argo0 = 0; |
8ab979d7 | 10828 | PyObject * _obj1 = 0; |
b1462dfa | 10829 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
10830 | |
10831 | self = self; | |
b1462dfa | 10832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 10833 | return NULL; |
1d99702e RD |
10834 | if (_argo0) { |
10835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10838 | return NULL; |
10839 | } | |
10840 | } | |
10841 | { | |
c8bc7bb8 RD |
10842 | _arg1 = wxString_in_helper(_obj1); |
10843 | if (_arg1 == NULL) | |
2cd2fac8 | 10844 | return NULL; |
8ab979d7 | 10845 | } |
cf694132 | 10846 | { |
474c48f9 | 10847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10848 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 | 10849 | |
474c48f9 | 10850 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10851 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10852 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10853 | _resultobj = Py_None; |
10854 | { | |
10855 | if (_obj1) | |
10856 | delete _arg1; | |
10857 | } | |
10858 | return _resultobj; | |
10859 | } | |
10860 | ||
b1462dfa RD |
10861 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
10862 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10863 | PyObject * _resultobj; |
b1462dfa | 10864 | wxString * _result; |
8ab979d7 | 10865 | wxMenuItem * _arg0; |
1d99702e | 10866 | PyObject * _argo0 = 0; |
b1462dfa | 10867 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10868 | |
10869 | self = self; | |
b1462dfa | 10870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 10871 | return NULL; |
1d99702e RD |
10872 | if (_argo0) { |
10873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10876 | return NULL; |
10877 | } | |
10878 | } | |
cf694132 | 10879 | { |
474c48f9 | 10880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10881 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 | 10882 | |
474c48f9 | 10883 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10884 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10885 | }{ |
c8bc7bb8 | 10886 | #if wxUSE_UNICODE |
b67a9327 | 10887 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10888 | #else |
eec92d76 | 10889 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10890 | #endif |
8ab979d7 | 10891 | } |
cf694132 | 10892 | { |
b1462dfa RD |
10893 | delete _result; |
10894 | } | |
cf694132 RD |
10895 | return _resultobj; |
10896 | } | |
10897 | ||
b1462dfa RD |
10898 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
10899 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10900 | PyObject * _resultobj; |
b1462dfa | 10901 | wxString * _result; |
cf694132 | 10902 | wxMenuItem * _arg0; |
1d99702e | 10903 | PyObject * _argo0 = 0; |
efc5f224 | 10904 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10905 | |
10906 | self = self; | |
b1462dfa | 10907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 10908 | return NULL; |
1d99702e RD |
10909 | if (_argo0) { |
10910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
10913 | return NULL; |
10914 | } | |
10915 | } | |
10916 | { | |
474c48f9 | 10917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10918 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
b1462dfa | 10919 | _result = (wxString *) &_result_ref; |
cf694132 | 10920 | |
474c48f9 | 10921 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10922 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10923 | }{ |
c8bc7bb8 | 10924 | #if wxUSE_UNICODE |
b67a9327 | 10925 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10926 | #else |
eec92d76 | 10927 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10928 | #endif |
cf694132 | 10929 | } |
cf694132 RD |
10930 | return _resultobj; |
10931 | } | |
10932 | ||
a884bee5 RD |
10933 | #define wxMenuItem_GetKind(_swigobj) (_swigobj->GetKind()) |
10934 | static PyObject *_wrap_wxMenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10935 | PyObject * _resultobj; | |
10936 | wxItemKind _result; | |
10937 | wxMenuItem * _arg0; | |
10938 | PyObject * _argo0 = 0; | |
10939 | char *_kwnames[] = { "self", NULL }; | |
10940 | ||
10941 | self = self; | |
10942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetKind",_kwnames,&_argo0)) | |
10943 | return NULL; | |
10944 | if (_argo0) { | |
10945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetKind. Expected _wxMenuItem_p."); | |
10948 | return NULL; | |
10949 | } | |
10950 | } | |
10951 | { | |
10952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10953 | _result = (wxItemKind )wxMenuItem_GetKind(_arg0); | |
10954 | ||
10955 | wxPyEndAllowThreads(__tstate); | |
10956 | if (PyErr_Occurred()) return NULL; | |
10957 | } _resultobj = Py_BuildValue("i",_result); | |
10958 | return _resultobj; | |
10959 | } | |
10960 | ||
b1462dfa RD |
10961 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
10962 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10963 | PyObject * _resultobj; |
cf694132 | 10964 | wxMenuItem * _arg0; |
b1462dfa | 10965 | bool _arg1; |
1d99702e | 10966 | PyObject * _argo0 = 0; |
b1462dfa RD |
10967 | int tempbool1; |
10968 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
10969 | |
10970 | self = self; | |
b1462dfa | 10971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 10972 | return NULL; |
1d99702e RD |
10973 | if (_argo0) { |
10974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
10977 | return NULL; |
10978 | } | |
10979 | } | |
b1462dfa | 10980 | _arg1 = (bool ) tempbool1; |
cf694132 | 10981 | { |
474c48f9 | 10982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10983 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 | 10984 | |
474c48f9 | 10985 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10986 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10987 | } Py_INCREF(Py_None); |
10988 | _resultobj = Py_None; | |
cf694132 RD |
10989 | return _resultobj; |
10990 | } | |
10991 | ||
b1462dfa RD |
10992 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
10993 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10994 | PyObject * _resultobj; |
b1462dfa | 10995 | bool _result; |
cf694132 | 10996 | wxMenuItem * _arg0; |
1d99702e | 10997 | PyObject * _argo0 = 0; |
efc5f224 | 10998 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10999 | |
11000 | self = self; | |
b1462dfa | 11001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 11002 | return NULL; |
1d99702e RD |
11003 | if (_argo0) { |
11004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
11007 | return NULL; |
11008 | } | |
11009 | } | |
11010 | { | |
474c48f9 | 11011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11012 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 | 11013 | |
474c48f9 | 11014 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11015 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
11016 | } _resultobj = Py_BuildValue("i",_result); |
11017 | return _resultobj; | |
11018 | } | |
11019 | ||
b1462dfa RD |
11020 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
11021 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 11022 | PyObject * _resultobj; |
b1462dfa | 11023 | bool _result; |
cf694132 | 11024 | wxMenuItem * _arg0; |
1d99702e | 11025 | PyObject * _argo0 = 0; |
efc5f224 | 11026 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
11027 | |
11028 | self = self; | |
b1462dfa | 11029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 11030 | return NULL; |
1d99702e RD |
11031 | if (_argo0) { |
11032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
11035 | return NULL; |
11036 | } | |
11037 | } | |
11038 | { | |
474c48f9 | 11039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11040 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 | 11041 | |
474c48f9 | 11042 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11043 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 11044 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
11045 | return _resultobj; |
11046 | } | |
11047 | ||
b1462dfa RD |
11048 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
11049 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
11050 | PyObject * _resultobj; |
11051 | wxMenuItem * _arg0; | |
b1462dfa | 11052 | wxMenu * _arg1; |
1d99702e RD |
11053 | PyObject * _argo0 = 0; |
11054 | PyObject * _argo1 = 0; | |
b1462dfa | 11055 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
11056 | |
11057 | self = self; | |
b1462dfa | 11058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 11059 | return NULL; |
1d99702e RD |
11060 | if (_argo0) { |
11061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
11064 | return NULL; |
11065 | } | |
11066 | } | |
1d99702e RD |
11067 | if (_argo1) { |
11068 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
11069 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
11070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
11071 | return NULL; |
11072 | } | |
11073 | } | |
11074 | { | |
474c48f9 | 11075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11076 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 | 11077 | |
474c48f9 | 11078 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11079 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
11080 | } Py_INCREF(Py_None); |
11081 | _resultobj = Py_None; | |
11082 | return _resultobj; | |
11083 | } | |
11084 | ||
b1462dfa RD |
11085 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
11086 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 11087 | PyObject * _resultobj; |
b1462dfa | 11088 | wxMenu * _result; |
cf694132 | 11089 | wxMenuItem * _arg0; |
1d99702e | 11090 | PyObject * _argo0 = 0; |
b1462dfa | 11091 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
11092 | |
11093 | self = self; | |
b1462dfa | 11094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 11095 | return NULL; |
1d99702e RD |
11096 | if (_argo0) { |
11097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
11100 | return NULL; |
11101 | } | |
11102 | } | |
b1462dfa | 11103 | { |
474c48f9 | 11104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11105 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); |
b1462dfa | 11106 | |
474c48f9 | 11107 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11108 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 11109 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
11110 | return _resultobj; |
11111 | } | |
11112 | ||
11113 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
11114 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11115 | PyObject * _resultobj; | |
11116 | wxMenuItem * _arg0; | |
11117 | bool _arg1 = (bool ) TRUE; | |
11118 | PyObject * _argo0 = 0; | |
11119 | int tempbool1 = (int) TRUE; | |
11120 | char *_kwnames[] = { "self","enable", NULL }; | |
11121 | ||
11122 | self = self; | |
11123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
11124 | return NULL; | |
11125 | if (_argo0) { | |
11126 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
11129 | return NULL; |
11130 | } | |
11131 | } | |
b1462dfa | 11132 | _arg1 = (bool ) tempbool1; |
cf694132 | 11133 | { |
474c48f9 | 11134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11135 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 | 11136 | |
474c48f9 | 11137 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11138 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
11139 | } Py_INCREF(Py_None); |
11140 | _resultobj = Py_None; | |
11141 | return _resultobj; | |
11142 | } | |
11143 | ||
b1462dfa RD |
11144 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
11145 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 11146 | PyObject * _resultobj; |
b1462dfa | 11147 | bool _result; |
cf694132 | 11148 | wxMenuItem * _arg0; |
1d99702e | 11149 | PyObject * _argo0 = 0; |
b1462dfa | 11150 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
11151 | |
11152 | self = self; | |
b1462dfa | 11153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 11154 | return NULL; |
1d99702e RD |
11155 | if (_argo0) { |
11156 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11157 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
11159 | return NULL; |
11160 | } | |
11161 | } | |
11162 | { | |
474c48f9 | 11163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11164 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 | 11165 | |
474c48f9 | 11166 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11167 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 11168 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
11169 | return _resultobj; |
11170 | } | |
11171 | ||
b1462dfa RD |
11172 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
11173 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
11174 | PyObject * _resultobj; |
11175 | wxMenuItem * _arg0; | |
b1462dfa | 11176 | bool _arg1 = (bool ) TRUE; |
1d99702e | 11177 | PyObject * _argo0 = 0; |
b1462dfa RD |
11178 | int tempbool1 = (int) TRUE; |
11179 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
11180 | |
11181 | self = self; | |
b1462dfa | 11182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 11183 | return NULL; |
1d99702e RD |
11184 | if (_argo0) { |
11185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
11188 | return NULL; |
11189 | } | |
11190 | } | |
b1462dfa | 11191 | _arg1 = (bool ) tempbool1; |
cf694132 | 11192 | { |
474c48f9 | 11193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11194 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 | 11195 | |
474c48f9 | 11196 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11197 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
11198 | } Py_INCREF(Py_None); |
11199 | _resultobj = Py_None; | |
11200 | return _resultobj; | |
11201 | } | |
11202 | ||
b1462dfa RD |
11203 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
11204 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 11205 | PyObject * _resultobj; |
b1462dfa | 11206 | bool _result; |
2abc0a0f | 11207 | wxMenuItem * _arg0; |
2abc0a0f | 11208 | PyObject * _argo0 = 0; |
b1462dfa | 11209 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
11210 | |
11211 | self = self; | |
b1462dfa | 11212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
11213 | return NULL; |
11214 | if (_argo0) { | |
11215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
11218 | return NULL; |
11219 | } | |
11220 | } | |
2abc0a0f | 11221 | { |
474c48f9 | 11222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11223 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f | 11224 | |
474c48f9 | 11225 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11226 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 11227 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
11228 | return _resultobj; |
11229 | } | |
11230 | ||
b1462dfa RD |
11231 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
11232 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 11233 | PyObject * _resultobj; |
2abc0a0f RD |
11234 | wxMenuItem * _arg0; |
11235 | PyObject * _argo0 = 0; | |
11236 | char *_kwnames[] = { "self", NULL }; | |
11237 | ||
11238 | self = self; | |
b1462dfa | 11239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
11240 | return NULL; |
11241 | if (_argo0) { | |
11242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
11245 | return NULL; |
11246 | } | |
11247 | } | |
11248 | { | |
474c48f9 | 11249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11250 | wxMenuItem_Toggle(_arg0); |
2abc0a0f | 11251 | |
474c48f9 | 11252 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11253 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
11254 | } Py_INCREF(Py_None); |
11255 | _resultobj = Py_None; | |
2abc0a0f RD |
11256 | return _resultobj; |
11257 | } | |
11258 | ||
b1462dfa RD |
11259 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
11260 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
11261 | PyObject * _resultobj; |
11262 | wxMenuItem * _arg0; | |
b1462dfa | 11263 | wxString * _arg1; |
1d99702e | 11264 | PyObject * _argo0 = 0; |
b1462dfa RD |
11265 | PyObject * _obj1 = 0; |
11266 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
11267 | |
11268 | self = self; | |
b1462dfa | 11269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 11270 | return NULL; |
1d99702e RD |
11271 | if (_argo0) { |
11272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
11275 | return NULL; |
11276 | } | |
11277 | } | |
b1462dfa | 11278 | { |
c8bc7bb8 RD |
11279 | _arg1 = wxString_in_helper(_obj1); |
11280 | if (_arg1 == NULL) | |
2cd2fac8 | 11281 | return NULL; |
b1462dfa | 11282 | } |
cf694132 | 11283 | { |
474c48f9 | 11284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11285 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 | 11286 | |
474c48f9 | 11287 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11288 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11289 | } Py_INCREF(Py_None); |
8ab979d7 | 11290 | _resultobj = Py_None; |
b1462dfa RD |
11291 | { |
11292 | if (_obj1) | |
11293 | delete _arg1; | |
11294 | } | |
8ab979d7 RD |
11295 | return _resultobj; |
11296 | } | |
11297 | ||
b1462dfa RD |
11298 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
11299 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 11300 | PyObject * _resultobj; |
b1462dfa | 11301 | wxString * _result; |
be4d9c1f | 11302 | wxMenuItem * _arg0; |
1d99702e | 11303 | PyObject * _argo0 = 0; |
efc5f224 | 11304 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
11305 | |
11306 | self = self; | |
b1462dfa | 11307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 11308 | return NULL; |
1d99702e RD |
11309 | if (_argo0) { |
11310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
11313 | return NULL; |
11314 | } | |
11315 | } | |
cf694132 | 11316 | { |
474c48f9 | 11317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11318 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
b1462dfa | 11319 | _result = (wxString *) &_result_ref; |
cf694132 | 11320 | |
474c48f9 | 11321 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11322 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 11323 | }{ |
c8bc7bb8 | 11324 | #if wxUSE_UNICODE |
b67a9327 | 11325 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11326 | #else |
eec92d76 | 11327 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11328 | #endif |
b1462dfa | 11329 | } |
be4d9c1f RD |
11330 | return _resultobj; |
11331 | } | |
11332 | ||
b1462dfa RD |
11333 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
11334 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 11335 | PyObject * _resultobj; |
b1462dfa | 11336 | wxAcceleratorEntry * _result; |
2abc0a0f | 11337 | wxMenuItem * _arg0; |
2abc0a0f | 11338 | PyObject * _argo0 = 0; |
b1462dfa RD |
11339 | char *_kwnames[] = { "self", NULL }; |
11340 | char _ptemp[128]; | |
2abc0a0f RD |
11341 | |
11342 | self = self; | |
b1462dfa | 11343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
11344 | return NULL; |
11345 | if (_argo0) { | |
11346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
11349 | return NULL; |
11350 | } | |
11351 | } | |
2abc0a0f | 11352 | { |
474c48f9 | 11353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11354 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f | 11355 | |
474c48f9 | 11356 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11357 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
11358 | } if (_result) { |
11359 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
11360 | _resultobj = Py_BuildValue("s",_ptemp); | |
11361 | } else { | |
11362 | Py_INCREF(Py_None); | |
11363 | _resultobj = Py_None; | |
11364 | } | |
2abc0a0f RD |
11365 | return _resultobj; |
11366 | } | |
11367 | ||
b1462dfa RD |
11368 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
11369 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
11370 | PyObject * _resultobj; |
11371 | wxMenuItem * _arg0; | |
b1462dfa | 11372 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
11373 | PyObject * _argo0 = 0; |
11374 | PyObject * _argo1 = 0; | |
b1462dfa | 11375 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
11376 | |
11377 | self = self; | |
b1462dfa | 11378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
11379 | return NULL; |
11380 | if (_argo0) { | |
11381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
11384 | return NULL; |
11385 | } | |
11386 | } | |
11387 | if (_argo1) { | |
11388 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
11389 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
11390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
11391 | return NULL; |
11392 | } | |
11393 | } | |
11394 | { | |
474c48f9 | 11395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11396 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f | 11397 | |
474c48f9 | 11398 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11399 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
11400 | } Py_INCREF(Py_None); |
11401 | _resultobj = Py_None; | |
11402 | return _resultobj; | |
11403 | } | |
11404 | ||
9c4165ad RD |
11405 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
11406 | PyObject * _resultobj; | |
11407 | wxString * _result; | |
11408 | wxString * _arg0; | |
11409 | PyObject * _obj0 = 0; | |
11410 | char *_kwnames[] = { "text", NULL }; | |
11411 | ||
11412 | self = self; | |
11413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
11414 | return NULL; | |
11415 | { | |
c8bc7bb8 RD |
11416 | _arg0 = wxString_in_helper(_obj0); |
11417 | if (_arg0 == NULL) | |
9c4165ad | 11418 | return NULL; |
9c4165ad RD |
11419 | } |
11420 | { | |
474c48f9 | 11421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11422 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); |
9c4165ad | 11423 | |
474c48f9 | 11424 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11425 | if (PyErr_Occurred()) return NULL; |
9c4165ad | 11426 | }{ |
c8bc7bb8 | 11427 | #if wxUSE_UNICODE |
b67a9327 | 11428 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11429 | #else |
9c4165ad | 11430 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11431 | #endif |
9c4165ad RD |
11432 | } |
11433 | { | |
11434 | if (_obj0) | |
11435 | delete _arg0; | |
11436 | } | |
11437 | { | |
11438 | delete _result; | |
11439 | } | |
11440 | return _resultobj; | |
11441 | } | |
11442 | ||
04c883f8 RD |
11443 | #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) |
11444 | static PyObject *_wrap_wxMenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11445 | PyObject * _resultobj; | |
11446 | wxMenuItem * _arg0; | |
11447 | wxBitmap * _arg1; | |
11448 | PyObject * _argo0 = 0; | |
11449 | PyObject * _argo1 = 0; | |
11450 | char *_kwnames[] = { "self","bitmap", NULL }; | |
11451 | ||
11452 | self = self; | |
11453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
11454 | return NULL; | |
11455 | if (_argo0) { | |
11456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p."); | |
11459 | return NULL; | |
11460 | } | |
11461 | } | |
11462 | if (_argo1) { | |
b67a9327 | 11463 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { |
04c883f8 RD |
11464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p."); |
11465 | return NULL; | |
11466 | } | |
11467 | } | |
11468 | { | |
11469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11470 | wxMenuItem_SetBitmap(_arg0,*_arg1); | |
11471 | ||
11472 | wxPyEndAllowThreads(__tstate); | |
11473 | if (PyErr_Occurred()) return NULL; | |
11474 | } Py_INCREF(Py_None); | |
11475 | _resultobj = Py_None; | |
11476 | return _resultobj; | |
11477 | } | |
11478 | ||
11479 | #define wxMenuItem_GetBitmap(_swigobj) (_swigobj->GetBitmap()) | |
11480 | static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11481 | PyObject * _resultobj; | |
11482 | wxBitmap * _result; | |
11483 | wxMenuItem * _arg0; | |
11484 | PyObject * _argo0 = 0; | |
11485 | char *_kwnames[] = { "self", NULL }; | |
11486 | char _ptemp[128]; | |
11487 | ||
11488 | self = self; | |
11489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBitmap",_kwnames,&_argo0)) | |
11490 | return NULL; | |
11491 | if (_argo0) { | |
11492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p."); | |
11495 | return NULL; | |
11496 | } | |
11497 | } | |
11498 | { | |
11499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11500 | const wxBitmap & _result_ref = wxMenuItem_GetBitmap(_arg0); | |
11501 | _result = (wxBitmap *) &_result_ref; | |
11502 | ||
11503 | wxPyEndAllowThreads(__tstate); | |
11504 | if (PyErr_Occurred()) return NULL; | |
11505 | } if (_result) { | |
11506 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
11507 | _resultobj = Py_BuildValue("s",_ptemp); | |
11508 | } else { | |
11509 | Py_INCREF(Py_None); | |
11510 | _resultobj = Py_None; | |
11511 | } | |
11512 | return _resultobj; | |
11513 | } | |
11514 | ||
8ab979d7 | 11515 | static PyMethodDef windowscMethods[] = { |
04c883f8 RD |
11516 | { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, |
11517 | { "wxMenuItem_SetBitmap", (PyCFunction) _wrap_wxMenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9c4165ad | 11518 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11519 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
11520 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
11521 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
11522 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
11523 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
11524 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11525 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11526 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11527 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11528 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11529 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 11530 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11531 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11532 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
a884bee5 | 11533 | { "wxMenuItem_GetKind", (PyCFunction) _wrap_wxMenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11534 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, |
11535 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11536 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11537 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11538 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
11539 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
1fded56b | 11540 | { "wxMenuItem_SetMenu", (PyCFunction) _wrap_wxMenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11541 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11542 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11543 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11544 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
11545 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 11546 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
11547 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
11548 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11549 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11550 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
11551 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
11552 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
10be44ac | 11553 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11554 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, |
11555 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
b67a9327 | 11556 | { "wxMenuBar_IsEnabledTop", (PyCFunction) _wrap_wxMenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11557 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, |
11558 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11559 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11560 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
11561 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
11562 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11563 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
11564 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
11565 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
11566 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
11567 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
11568 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11569 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
11570 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
11571 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11572 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11573 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
11574 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
11575 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
11576 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11577 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11578 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
11579 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
11580 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, |
11581 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11582 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11583 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11584 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11585 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
11586 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11587 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
11588 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 11589 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11590 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11591 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11592 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11593 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11594 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
11595 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
a884bee5 RD |
11596 | { "wxMenu_PrependItem", (PyCFunction) _wrap_wxMenu_PrependItem, METH_VARARGS | METH_KEYWORDS }, |
11597 | { "wxMenu_PrependMenu", (PyCFunction) _wrap_wxMenu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
11598 | { "wxMenu_PrependRadioItem", (PyCFunction) _wrap_wxMenu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
11599 | { "wxMenu_PrependCheckItem", (PyCFunction) _wrap_wxMenu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
11600 | { "wxMenu_PrependSeparator", (PyCFunction) _wrap_wxMenu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
11601 | { "wxMenu_Prepend", (PyCFunction) _wrap_wxMenu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
11602 | { "wxMenu_InsertItem", (PyCFunction) _wrap_wxMenu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
11603 | { "wxMenu_InsertMenu", (PyCFunction) _wrap_wxMenu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
11604 | { "wxMenu_InsertRadioItem", (PyCFunction) _wrap_wxMenu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
11605 | { "wxMenu_InsertCheckItem", (PyCFunction) _wrap_wxMenu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
11606 | { "wxMenu_InsertSeparator", (PyCFunction) _wrap_wxMenu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
11607 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11608 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, |
a884bee5 RD |
11609 | { "wxMenu_AppendRadioItem", (PyCFunction) _wrap_wxMenu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, |
11610 | { "wxMenu_AppendCheckItem", (PyCFunction) _wrap_wxMenu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11611 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, |
11612 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
11613 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
11614 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
8381e4cd | 11615 | { "wxScrolledWindow_SetScrollRate", (PyCFunction) _wrap_wxScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS }, |
49df1f52 | 11616 | { "wxScrolledWindow_Layout", (PyCFunction) _wrap_wxScrolledWindow_Layout, METH_VARARGS | METH_KEYWORDS }, |
7a446686 RD |
11617 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
11618 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
11619 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
11620 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
a884bee5 RD |
11621 | { "wxScrolledWindow_CalcUnscrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition2, METH_VARARGS | METH_KEYWORDS }, |
11622 | { "wxScrolledWindow_CalcUnscrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition1, METH_VARARGS | METH_KEYWORDS }, | |
11623 | { "wxScrolledWindow_CalcScrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition2, METH_VARARGS | METH_KEYWORDS }, | |
11624 | { "wxScrolledWindow_CalcScrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition1, METH_VARARGS | METH_KEYWORDS }, | |
4c9993c3 | 11625 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 11626 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 11627 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11628 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
11629 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
11630 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
11631 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 11632 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11633 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 11634 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11635 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11636 | { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
11637 | { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11638 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11639 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11640 | { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS }, |
11641 | { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11642 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, |
1fded56b RD |
11643 | { "wxWindow_GetThemeEnabled", (PyCFunction) _wrap_wxWindow_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, |
11644 | { "wxWindow_SetThemeEnabled", (PyCFunction) _wrap_wxWindow_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
94c16279 RD |
11645 | { "wxWindow_HasCapture", (PyCFunction) _wrap_wxWindow_HasCapture, METH_VARARGS | METH_KEYWORDS }, |
11646 | { "wxWindow_GetCapture", (PyCFunction) _wrap_wxWindow_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
11647 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
11648 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
11649 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
12d1116b | 11650 | { "wxWindow_SetTmpDefaultItem", (PyCFunction) _wrap_wxWindow_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
1893b029 RD |
11651 | { "wxWindow_SetDefaultItem", (PyCFunction) _wrap_wxWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
11652 | { "wxWindow_GetDefaultItem", (PyCFunction) _wrap_wxWindow_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
65191ae8 | 11653 | { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
32c988a3 | 11654 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11655 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
11656 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
11657 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
11658 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
cd096152 RD |
11659 | { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS }, |
11660 | { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
11661 | { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
11662 | { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
11663 | { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
11664 | { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
8cb49012 | 11665 | { "wxWindow_SetHelpTextForId", (PyCFunction) _wrap_wxWindow_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, |
cd096152 RD |
11666 | { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS }, |
11667 | { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 | 11668 | { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS }, |
10be44ac RD |
11669 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, |
11670 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
11671 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
11672 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
b67a9327 | 11673 | { "wxWindow_GetAdjustedBestSize", (PyCFunction) _wrap_wxWindow_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, |
49df1f52 | 11674 | { "wxWindow_GetMaxSize", (PyCFunction) _wrap_wxWindow_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, |
694759cf | 11675 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11676 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
11677 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
11678 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
11679 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
94082a71 RD |
11680 | { "wxWindow_GetContainingSizer", (PyCFunction) _wrap_wxWindow_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, |
11681 | { "wxWindow_SetContainingSizer", (PyCFunction) _wrap_wxWindow_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11682 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
8381e4cd | 11683 | { "wxWindow_SetSizerAndFit", (PyCFunction) _wrap_wxWindow_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11684 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11685 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
11686 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
11687 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
11688 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
11689 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
11690 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11691 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11692 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11693 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11694 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, |
8cb49012 | 11695 | { "wxWindow_UpdateWindowUI", (PyCFunction) _wrap_wxWindow_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11696 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, |
11697 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
11698 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
11699 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd | 11700 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11701 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
298ae144 | 11702 | { "wxWindow_GetCursor", (PyCFunction) _wrap_wxWindow_GetCursor, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11703 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
11704 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
11705 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
b67a9327 | 11706 | { "wxWindow_GetBestVirtualSize", (PyCFunction) _wrap_wxWindow_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, |
8381e4cd RD |
11707 | { "wxWindow_GetVirtualSizeTuple", (PyCFunction) _wrap_wxWindow_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
11708 | { "wxWindow_GetVirtualSize", (PyCFunction) _wrap_wxWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
11709 | { "wxWindow_SetVirtualSizeWH", (PyCFunction) _wrap_wxWindow_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
11710 | { "wxWindow_SetVirtualSize", (PyCFunction) _wrap_wxWindow_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
11711 | { "wxWindow_SetVirtualSizeHints", (PyCFunction) _wrap_wxWindow_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11712 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, |
2cd2fac8 | 11713 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11714 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
11715 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
11716 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
11717 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
11718 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
11719 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
11720 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11721 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11722 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 11723 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
8381e4cd | 11724 | { "wxWindow_SetFocusFromKbd", (PyCFunction) _wrap_wxWindow_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11725 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11726 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11727 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
11728 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 11729 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11730 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11731 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, |
11732 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
11733 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
11734 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 11735 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
298ae144 | 11736 | { "wxWindow_AddChild", (PyCFunction) _wrap_wxWindow_AddChild, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 | 11737 | { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11738 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, |
11739 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
11740 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
11741 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
5d413391 | 11742 | { "wxWindow_RemoveEventHandler", (PyCFunction) _wrap_wxWindow_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11743 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
11744 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11745 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
11746 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
11747 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
11748 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11749 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, |
11750 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
11751 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
11752 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
11753 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
11754 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
11755 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11756 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
11757 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
8cb49012 | 11758 | { "wxWindow_HitTest", (PyCFunction) _wrap_wxWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11759 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, |
8cb49012 | 11760 | { "wxWindow_HasScrollbar", (PyCFunction) _wrap_wxWindow_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11761 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
11762 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11763 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
11764 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
11765 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
11766 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11767 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11768 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11769 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11770 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
11771 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
11772 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
11773 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
11774 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
11775 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
11776 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
11777 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
11778 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11779 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11780 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 11781 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11782 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
11783 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11784 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 11785 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11786 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
8cb49012 RD |
11787 | { "wxWindow_GetClientRect", (PyCFunction) _wrap_wxWindow_GetClientRect, METH_VARARGS | METH_KEYWORDS }, |
11788 | { "wxWindow_GetClientAreaOrigin", (PyCFunction) _wrap_wxWindow_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11789 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, |
11790 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11791 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
11792 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 11793 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
8cb49012 | 11794 | { "wxWindow_GetBorder", (PyCFunction) _wrap_wxWindow_GetBorder, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11795 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
b67a9327 | 11796 | { "wxWindow_FitInside", (PyCFunction) _wrap_wxWindow_FitInside, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11797 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, |
11798 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
11799 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
b67a9327 | 11800 | { "wxWindow_Disable", (PyCFunction) _wrap_wxWindow_Disable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11801 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, |
4dfaa61e | 11802 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11803 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, |
11804 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
11805 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
11806 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
11807 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
9d6da64a | 11808 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, |
3ca6a5f0 BP |
11809 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
11810 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11811 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
11812 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
11813 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
11814 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11815 | { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
11816 | { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11817 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, |
0220cbc1 | 11818 | { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11819 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
9df61a29 RD |
11820 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
11821 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
11822 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
11823 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
11824 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
11825 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 11826 | { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 11827 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11828 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
11829 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
11830 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
11831 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
11832 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
11833 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
11834 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11835 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11836 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 11837 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
298ae144 RD |
11838 | { "wxFindWindowByLabel", (PyCFunction) _wrap_wxFindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, |
11839 | { "wxFindWindowByName", (PyCFunction) _wrap_wxFindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
11840 | { "wxFindWindowById", (PyCFunction) _wrap_wxFindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
11841 | { NULL, NULL } |
11842 | }; | |
1d99702e RD |
11843 | #ifdef __cplusplus |
11844 | } | |
11845 | #endif | |
11846 | /* | |
11847 | * This table is used by the pointer type-checker | |
11848 | */ | |
11849 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11850 | { "_signed_long","_long",0}, |
b1462dfa | 11851 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11852 | { "_wxPrintQuality","_int",0}, |
11853 | { "_wxPrintQuality","_signed_int",0}, | |
11854 | { "_wxPrintQuality","_unsigned_int",0}, | |
11855 | { "_wxPrintQuality","_wxWindowID",0}, | |
11856 | { "_wxPrintQuality","_uint",0}, | |
11857 | { "_wxPrintQuality","_EBool",0}, | |
11858 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11859 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11860 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
11861 | { "_long","_unsigned_long",0}, |
11862 | { "_long","_signed_long",0}, | |
b1462dfa | 11863 | { "_size_t","_wxCoord",0}, |
1d99702e | 11864 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11865 | { "_size_t","_time_t",0}, |
1d99702e RD |
11866 | { "_size_t","_unsigned_int",0}, |
11867 | { "_size_t","_int",0}, | |
11868 | { "_size_t","_wxWindowID",0}, | |
11869 | { "_size_t","_uint",0}, | |
1d99702e | 11870 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
b1462dfa | 11871 | { "_uint","_wxCoord",0}, |
1d99702e | 11872 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11873 | { "_uint","_time_t",0}, |
1d99702e RD |
11874 | { "_uint","_size_t",0}, |
11875 | { "_uint","_unsigned_int",0}, | |
11876 | { "_uint","_int",0}, | |
11877 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11878 | { "_wxChar","_char",0}, |
f6bcfd97 | 11879 | { "_char","_wxChar",0}, |
059a841c | 11880 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11881 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11882 | { "_EBool","_wxPrintQuality",0}, |
11883 | { "_EBool","_signed_int",0}, | |
11884 | { "_EBool","_int",0}, | |
11885 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11886 | { "_unsigned_long","_long",0}, |
059a841c | 11887 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11888 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11889 | { "_signed_int","_wxPrintQuality",0}, |
11890 | { "_signed_int","_EBool",0}, | |
11891 | { "_signed_int","_wxWindowID",0}, | |
11892 | { "_signed_int","_int",0}, | |
1d99702e RD |
11893 | { "_WXTYPE","_short",0}, |
11894 | { "_WXTYPE","_signed_short",0}, | |
11895 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11896 | { "_unsigned_short","_WXTYPE",0}, |
11897 | { "_unsigned_short","_short",0}, | |
9df61a29 | 11898 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, |
9df61a29 | 11899 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, |
9df61a29 | 11900 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, |
9df61a29 | 11901 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, |
9df61a29 | 11902 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, |
9df61a29 | 11903 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, |
9df61a29 | 11904 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, |
9df61a29 | 11905 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, |
9df61a29 | 11906 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, |
1d99702e RD |
11907 | { "_signed_short","_WXTYPE",0}, |
11908 | { "_signed_short","_short",0}, | |
1d99702e | 11909 | { "_unsigned_char","_byte",0}, |
b1462dfa | 11910 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11911 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11912 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11913 | { "_unsigned_int","_size_t",0}, |
11914 | { "_unsigned_int","_uint",0}, | |
11915 | { "_unsigned_int","_wxWindowID",0}, | |
11916 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11917 | { "_short","_WXTYPE",0}, |
11918 | { "_short","_unsigned_short",0}, | |
11919 | { "_short","_signed_short",0}, | |
b1462dfa | 11920 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11921 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11922 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11923 | { "_wxWindowID","_size_t",0}, |
11924 | { "_wxWindowID","_EBool",0}, | |
11925 | { "_wxWindowID","_uint",0}, | |
11926 | { "_wxWindowID","_int",0}, | |
11927 | { "_wxWindowID","_signed_int",0}, | |
11928 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11929 | { "_int","_wxCoord",0}, |
1d99702e | 11930 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11931 | { "_int","_time_t",0}, |
1d99702e RD |
11932 | { "_int","_size_t",0}, |
11933 | { "_int","_EBool",0}, | |
11934 | { "_int","_uint",0}, | |
11935 | { "_int","_wxWindowID",0}, | |
11936 | { "_int","_unsigned_int",0}, | |
11937 | { "_int","_signed_int",0}, | |
c368d904 RD |
11938 | { "_time_t","_wxCoord",0}, |
11939 | { "_time_t","_wxPrintQuality",0}, | |
11940 | { "_time_t","_unsigned_int",0}, | |
11941 | { "_time_t","_int",0}, | |
11942 | { "_time_t","_wxWindowID",0}, | |
11943 | { "_time_t","_uint",0}, | |
11944 | { "_time_t","_size_t",0}, | |
2f90df85 | 11945 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
b1462dfa RD |
11946 | { "_wxCoord","_int",0}, |
11947 | { "_wxCoord","_signed_int",0}, | |
11948 | { "_wxCoord","_unsigned_int",0}, | |
11949 | { "_wxCoord","_wxWindowID",0}, | |
11950 | { "_wxCoord","_uint",0}, | |
11951 | { "_wxCoord","_EBool",0}, | |
11952 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11953 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11954 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 11955 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
1d99702e | 11956 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, |
1d99702e | 11957 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, |
1d99702e | 11958 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, |
1d99702e | 11959 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, |
2f90df85 | 11960 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
2f90df85 | 11961 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, |
b1462dfa | 11962 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, |
1d99702e | 11963 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
1d99702e | 11964 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, |
1d99702e RD |
11965 | {0,0,0}}; |
11966 | ||
8ab979d7 RD |
11967 | static PyObject *SWIG_globals; |
11968 | #ifdef __cplusplus | |
11969 | extern "C" | |
11970 | #endif | |
1d99702e | 11971 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
11972 | PyObject *m, *d; |
11973 | SWIG_globals = SWIG_newvarlink(); | |
11974 | m = Py_InitModule("windowsc", windowscMethods); | |
11975 | d = PyModule_GetDict(m); | |
1d99702e RD |
11976 | { |
11977 | int i; | |
11978 | for (i = 0; _swig_mapping[i].n1; i++) | |
11979 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11980 | } | |
8ab979d7 | 11981 | } |