]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/windows.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
dbbb98cd | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
dbbb98cd | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initwindowsc |
55 | ||
56 | #define SWIG_name "windowsc" | |
57 | ||
58 | #include "helpers.h" | |
8ab979d7 | 59 | #include <wx/menuitem.h> |
9416aa89 | 60 | #include <wx/tooltip.h> |
8ab979d7 | 61 | |
8ab979d7 RD |
62 | |
63 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
64 | PyObject* o2; | |
65 | PyObject* o3; | |
66 | ||
f3d9dc1d | 67 | if (!target) { |
8ab979d7 | 68 | target = o; |
f3d9dc1d | 69 | } else if (target == Py_None) { |
8ab979d7 RD |
70 | Py_DECREF(Py_None); |
71 | target = o; | |
f3d9dc1d | 72 | } else { |
8ab979d7 RD |
73 | if (!PyTuple_Check(target)) { |
74 | o2 = target; | |
75 | target = PyTuple_New(1); | |
76 | PyTuple_SetItem(target, 0, o2); | |
77 | } | |
f3d9dc1d RD |
78 | o3 = PyTuple_New(1); |
79 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
80 | |
81 | o2 = target; | |
f3d9dc1d RD |
82 | target = PySequence_Concat(o2, o3); |
83 | Py_DECREF(o2); | |
8ab979d7 RD |
84 | Py_DECREF(o3); |
85 | } | |
86 | return target; | |
87 | } | |
88 | ||
794c5cb1 RD |
89 | #if PYTHON_API_VERSION >= 1009 |
90 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
91 | #else | |
92 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
93 | #endif | |
2f90df85 | 94 | |
e508a2b6 RD |
95 | static wxString wxPyEmptyStr(""); |
96 | ||
2f90df85 RD |
97 | class wxPyValidator : public wxValidator { |
98 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
99 | public: | |
100 | wxPyValidator() { | |
101 | } | |
2f90df85 RD |
102 | |
103 | ~wxPyValidator() { | |
104 | } | |
105 | ||
106 | wxObject* wxPyValidator::Clone() const { | |
694759cf RD |
107 | wxPyValidator* ptr = NULL; |
108 | wxPyValidator* self = (wxPyValidator*)this; | |
2f90df85 | 109 | |
694759cf RD |
110 | bool doSave = wxPyRestoreThread(); |
111 | if (self->m_myInst.findCallback("Clone")) { | |
112 | PyObject* ro; | |
113 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
f6bcfd97 BP |
114 | if (ro) { |
115 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
116 | Py_DECREF(ro); | |
117 | } | |
694759cf RD |
118 | } |
119 | // This is very dangerous!!! But is the only way I could find | |
120 | // to squash a memory leak. Currently it is okay, but if the | |
121 | // validator architecture in wxWindows ever changes, problems | |
122 | // could arise. | |
123 | delete self; | |
2f90df85 | 124 | |
694759cf RD |
125 | wxPySaveThread(doSave); |
126 | return ptr; | |
127 | } | |
2f90df85 | 128 | |
9416aa89 | 129 | |
2f90df85 RD |
130 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); |
131 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
132 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
133 | ||
134 | PYPRIVATE; | |
2f90df85 RD |
135 | }; |
136 | ||
137 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
138 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
139 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
140 | ||
141 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
8ab979d7 | 142 | |
8ab979d7 RD |
143 | |
144 | wxWindow* wxWindow_FindFocus() { | |
145 | return wxWindow::FindFocus(); | |
146 | } | |
2f90df85 RD |
147 | |
148 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { | |
149 | wxWindow* win = new wxWindow; | |
150 | win->SetHWND(hWnd); | |
151 | win->SubclassWin(hWnd); | |
152 | return win; | |
153 | } | |
a1df7a95 RD |
154 | |
155 | int wxWindow_NewControlId() { | |
156 | return wxWindow::NewControlId(); | |
157 | } | |
158 | int wxWindow_NextControlId(int id) { | |
159 | return wxWindow::NextControlId(id); | |
160 | } | |
161 | int wxWindow_PrevControlId(int id) { | |
162 | return wxWindow::PrevControlId(id); | |
163 | } | |
2f90df85 RD |
164 | #ifdef __cplusplus |
165 | extern "C" { | |
166 | #endif | |
2f90df85 RD |
167 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
168 | PyObject * _resultobj; | |
169 | wxWindow * _result; | |
170 | char *_kwnames[] = { NULL }; | |
2f90df85 RD |
171 | |
172 | self = self; | |
173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
174 | return NULL; | |
175 | { | |
176 | wxPy_BEGIN_ALLOW_THREADS; | |
177 | _result = (wxWindow *)wxWindow_FindFocus(); | |
178 | ||
179 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 180 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 181 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
182 | return _resultobj; |
183 | } | |
184 | ||
185 | static PyObject *_wrap_wxWindow_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
186 | PyObject * _resultobj; | |
187 | wxWindow * _result; | |
188 | unsigned long _arg0; | |
189 | char *_kwnames[] = { "hWnd", NULL }; | |
2f90df85 RD |
190 | |
191 | self = self; | |
192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxWindow_FromHWND",_kwnames,&_arg0)) | |
193 | return NULL; | |
194 | { | |
195 | wxPy_BEGIN_ALLOW_THREADS; | |
196 | _result = (wxWindow *)wxWindow_FromHWND(_arg0); | |
197 | ||
198 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 199 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 200 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
201 | return _resultobj; |
202 | } | |
203 | ||
a1df7a95 RD |
204 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { |
205 | PyObject * _resultobj; | |
206 | int _result; | |
207 | char *_kwnames[] = { NULL }; | |
208 | ||
209 | self = self; | |
210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
211 | return NULL; | |
212 | { | |
213 | wxPy_BEGIN_ALLOW_THREADS; | |
214 | _result = (int )wxWindow_NewControlId(); | |
215 | ||
216 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 217 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
218 | } _resultobj = Py_BuildValue("i",_result); |
219 | return _resultobj; | |
220 | } | |
221 | ||
222 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
223 | PyObject * _resultobj; | |
224 | int _result; | |
225 | int _arg0; | |
226 | char *_kwnames[] = { "id", NULL }; | |
227 | ||
228 | self = self; | |
229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
230 | return NULL; | |
231 | { | |
232 | wxPy_BEGIN_ALLOW_THREADS; | |
233 | _result = (int )wxWindow_NextControlId(_arg0); | |
234 | ||
235 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 236 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
237 | } _resultobj = Py_BuildValue("i",_result); |
238 | return _resultobj; | |
239 | } | |
240 | ||
241 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
242 | PyObject * _resultobj; | |
243 | int _result; | |
244 | int _arg0; | |
245 | char *_kwnames[] = { "id", NULL }; | |
246 | ||
247 | self = self; | |
248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
249 | return NULL; | |
250 | { | |
251 | wxPy_BEGIN_ALLOW_THREADS; | |
252 | _result = (int )wxWindow_PrevControlId(_arg0); | |
253 | ||
254 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 255 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
256 | } _resultobj = Py_BuildValue("i",_result); |
257 | return _resultobj; | |
258 | } | |
259 | ||
9416aa89 RD |
260 | static void *SwigwxEvtHandlerTowxObject(void *ptr) { |
261 | wxEvtHandler *src; | |
262 | wxObject *dest; | |
263 | src = (wxEvtHandler *) ptr; | |
264 | dest = (wxObject *) src; | |
265 | return (void *) dest; | |
266 | } | |
267 | ||
c368d904 RD |
268 | #define new_wxEvtHandler() (new wxEvtHandler()) |
269 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
270 | PyObject * _resultobj; | |
271 | wxEvtHandler * _result; | |
272 | char *_kwnames[] = { NULL }; | |
273 | char _ptemp[128]; | |
274 | ||
275 | self = self; | |
276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
277 | return NULL; | |
278 | { | |
279 | wxPy_BEGIN_ALLOW_THREADS; | |
280 | _result = (wxEvtHandler *)new_wxEvtHandler(); | |
281 | ||
282 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 283 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
284 | } if (_result) { |
285 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
286 | _resultobj = Py_BuildValue("s",_ptemp); | |
287 | } else { | |
288 | Py_INCREF(Py_None); | |
289 | _resultobj = Py_None; | |
290 | } | |
291 | return _resultobj; | |
292 | } | |
293 | ||
2f90df85 RD |
294 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
295 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
296 | PyObject * _resultobj; | |
297 | bool _result; | |
298 | wxEvtHandler * _arg0; | |
299 | wxEvent * _arg1; | |
300 | PyObject * _argo0 = 0; | |
301 | PyObject * _argo1 = 0; | |
302 | char *_kwnames[] = { "self","event", NULL }; | |
303 | ||
304 | self = self; | |
305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
306 | return NULL; | |
307 | if (_argo0) { | |
308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
311 | return NULL; | |
312 | } | |
313 | } | |
314 | if (_argo1) { | |
315 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
316 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
318 | return NULL; | |
319 | } | |
320 | } | |
321 | { | |
322 | wxPy_BEGIN_ALLOW_THREADS; | |
323 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); | |
324 | ||
325 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 326 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
327 | } _resultobj = Py_BuildValue("i",_result); |
328 | return _resultobj; | |
329 | } | |
330 | ||
f6bcfd97 BP |
331 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
332 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
333 | PyObject * _resultobj; | |
334 | wxEvtHandler * _arg0; | |
335 | wxEvent * _arg1; | |
336 | PyObject * _argo0 = 0; | |
337 | PyObject * _argo1 = 0; | |
338 | char *_kwnames[] = { "self","event", NULL }; | |
339 | ||
340 | self = self; | |
341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
342 | return NULL; | |
343 | if (_argo0) { | |
344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
347 | return NULL; | |
348 | } | |
349 | } | |
350 | if (_argo1) { | |
351 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
352 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
354 | return NULL; | |
355 | } | |
356 | } | |
357 | { | |
358 | wxPy_BEGIN_ALLOW_THREADS; | |
359 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); | |
360 | ||
361 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 362 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
363 | } Py_INCREF(Py_None); |
364 | _resultobj = Py_None; | |
365 | return _resultobj; | |
366 | } | |
367 | ||
2f90df85 RD |
368 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
369 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
370 | PyObject * _resultobj; | |
371 | bool _result; | |
372 | wxEvtHandler * _arg0; | |
373 | PyObject * _argo0 = 0; | |
374 | char *_kwnames[] = { "self", NULL }; | |
375 | ||
376 | self = self; | |
377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
378 | return NULL; | |
379 | if (_argo0) { | |
380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
383 | return NULL; | |
384 | } | |
385 | } | |
386 | { | |
387 | wxPy_BEGIN_ALLOW_THREADS; | |
388 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); | |
389 | ||
390 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 391 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
392 | } _resultobj = Py_BuildValue("i",_result); |
393 | return _resultobj; | |
394 | } | |
395 | ||
396 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
397 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
398 | PyObject * _resultobj; | |
399 | wxEvtHandler * _arg0; | |
400 | bool _arg1; | |
401 | PyObject * _argo0 = 0; | |
402 | int tempbool1; | |
403 | char *_kwnames[] = { "self","enabled", NULL }; | |
404 | ||
405 | self = self; | |
406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
407 | return NULL; | |
408 | if (_argo0) { | |
409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
412 | return NULL; | |
413 | } | |
414 | } | |
415 | _arg1 = (bool ) tempbool1; | |
416 | { | |
417 | wxPy_BEGIN_ALLOW_THREADS; | |
418 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); | |
419 | ||
420 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 421 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
422 | } Py_INCREF(Py_None); |
423 | _resultobj = Py_None; | |
424 | return _resultobj; | |
425 | } | |
426 | ||
427 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
428 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
429 | PyObject * _resultobj; | |
430 | wxEvtHandler * _result; | |
431 | wxEvtHandler * _arg0; | |
432 | PyObject * _argo0 = 0; | |
433 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
434 | |
435 | self = self; | |
436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
437 | return NULL; | |
438 | if (_argo0) { | |
439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
442 | return NULL; | |
443 | } | |
444 | } | |
445 | { | |
446 | wxPy_BEGIN_ALLOW_THREADS; | |
447 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); | |
448 | ||
449 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 450 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 451 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
452 | return _resultobj; |
453 | } | |
454 | ||
455 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
456 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
457 | PyObject * _resultobj; | |
458 | wxEvtHandler * _result; | |
459 | wxEvtHandler * _arg0; | |
460 | PyObject * _argo0 = 0; | |
461 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
462 | |
463 | self = self; | |
464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
465 | return NULL; | |
466 | if (_argo0) { | |
467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
470 | return NULL; | |
471 | } | |
472 | } | |
473 | { | |
474 | wxPy_BEGIN_ALLOW_THREADS; | |
475 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); | |
476 | ||
477 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 478 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 479 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
480 | return _resultobj; |
481 | } | |
482 | ||
483 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
484 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
485 | PyObject * _resultobj; | |
486 | wxEvtHandler * _arg0; | |
487 | wxEvtHandler * _arg1; | |
488 | PyObject * _argo0 = 0; | |
489 | PyObject * _argo1 = 0; | |
490 | char *_kwnames[] = { "self","handler", NULL }; | |
491 | ||
492 | self = self; | |
493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
494 | return NULL; | |
495 | if (_argo0) { | |
496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
499 | return NULL; | |
500 | } | |
501 | } | |
502 | if (_argo1) { | |
503 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
504 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
506 | return NULL; | |
507 | } | |
508 | } | |
509 | { | |
510 | wxPy_BEGIN_ALLOW_THREADS; | |
511 | wxEvtHandler_SetNextHandler(_arg0,_arg1); | |
512 | ||
513 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 514 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
515 | } Py_INCREF(Py_None); |
516 | _resultobj = Py_None; | |
517 | return _resultobj; | |
518 | } | |
519 | ||
520 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
521 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
522 | PyObject * _resultobj; | |
523 | wxEvtHandler * _arg0; | |
524 | wxEvtHandler * _arg1; | |
525 | PyObject * _argo0 = 0; | |
526 | PyObject * _argo1 = 0; | |
527 | char *_kwnames[] = { "self","handler", NULL }; | |
528 | ||
529 | self = self; | |
530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
531 | return NULL; | |
532 | if (_argo0) { | |
533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
536 | return NULL; | |
537 | } | |
538 | } | |
539 | if (_argo1) { | |
540 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
541 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
543 | return NULL; | |
544 | } | |
545 | } | |
546 | { | |
547 | wxPy_BEGIN_ALLOW_THREADS; | |
548 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); | |
549 | ||
550 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 551 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
552 | } Py_INCREF(Py_None); |
553 | _resultobj = Py_None; | |
554 | return _resultobj; | |
555 | } | |
556 | ||
557 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
558 | if (PyCallable_Check(func)) { | |
559 | self->Connect(id, lastId, eventType, | |
560 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
561 | new wxPyCallback(func)); | |
562 | } | |
563 | } | |
564 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
565 | PyObject * _resultobj; | |
566 | wxEvtHandler * _arg0; | |
567 | int _arg1; | |
568 | int _arg2; | |
569 | int _arg3; | |
570 | PyObject * _arg4; | |
571 | PyObject * _argo0 = 0; | |
572 | PyObject * _obj4 = 0; | |
573 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
574 | ||
575 | self = self; | |
576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
577 | return NULL; | |
578 | if (_argo0) { | |
579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
582 | return NULL; | |
583 | } | |
584 | } | |
585 | { | |
586 | _arg4 = _obj4; | |
587 | } | |
588 | { | |
589 | wxPy_BEGIN_ALLOW_THREADS; | |
590 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
591 | ||
592 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 593 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
594 | } Py_INCREF(Py_None); |
595 | _resultobj = Py_None; | |
596 | return _resultobj; | |
597 | } | |
598 | ||
6999b0d8 RD |
599 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
600 | return self->Disconnect(id, lastId, eventType, | |
601 | (wxObjectEventFunction) | |
602 | &wxPyCallback::EventThunker); | |
603 | } | |
604 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
605 | PyObject * _resultobj; | |
606 | bool _result; | |
607 | wxEvtHandler * _arg0; | |
608 | int _arg1; | |
609 | int _arg2 = (int ) -1; | |
610 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
611 | PyObject * _argo0 = 0; | |
612 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
613 | ||
614 | self = self; | |
615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
616 | return NULL; | |
617 | if (_argo0) { | |
618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
621 | return NULL; | |
622 | } | |
623 | } | |
624 | { | |
625 | wxPy_BEGIN_ALLOW_THREADS; | |
626 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); | |
627 | ||
628 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 629 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
630 | } _resultobj = Py_BuildValue("i",_result); |
631 | return _resultobj; | |
632 | } | |
633 | ||
2f90df85 RD |
634 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
635 | wxValidator *src; | |
636 | wxEvtHandler *dest; | |
637 | src = (wxValidator *) ptr; | |
638 | dest = (wxEvtHandler *) src; | |
639 | return (void *) dest; | |
640 | } | |
641 | ||
9416aa89 RD |
642 | static void *SwigwxValidatorTowxObject(void *ptr) { |
643 | wxValidator *src; | |
644 | wxObject *dest; | |
645 | src = (wxValidator *) ptr; | |
646 | dest = (wxObject *) src; | |
647 | return (void *) dest; | |
648 | } | |
649 | ||
2f90df85 RD |
650 | #define new_wxValidator() (new wxValidator()) |
651 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
652 | PyObject * _resultobj; | |
653 | wxValidator * _result; | |
654 | char *_kwnames[] = { NULL }; | |
655 | char _ptemp[128]; | |
656 | ||
657 | self = self; | |
658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
659 | return NULL; | |
660 | { | |
661 | wxPy_BEGIN_ALLOW_THREADS; | |
662 | _result = (wxValidator *)new_wxValidator(); | |
663 | ||
664 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 665 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
666 | } if (_result) { |
667 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
668 | _resultobj = Py_BuildValue("s",_ptemp); | |
669 | } else { | |
670 | Py_INCREF(Py_None); | |
671 | _resultobj = Py_None; | |
672 | } | |
673 | return _resultobj; | |
af309447 | 674 | } |
2f90df85 RD |
675 | |
676 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
677 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 678 | PyObject * _resultobj; |
2f90df85 RD |
679 | wxValidator * _result; |
680 | wxValidator * _arg0; | |
681 | PyObject * _argo0 = 0; | |
682 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
683 | |
684 | self = self; | |
2f90df85 RD |
685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
686 | return NULL; | |
687 | if (_argo0) { | |
688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 691 | return NULL; |
2f90df85 RD |
692 | } |
693 | } | |
cf694132 RD |
694 | { |
695 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 696 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 RD |
697 | |
698 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 699 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 700 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
701 | return _resultobj; |
702 | } | |
703 | ||
2f90df85 RD |
704 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
705 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
706 | PyObject * _resultobj; |
707 | wxWindow * _result; | |
2f90df85 RD |
708 | wxValidator * _arg0; |
709 | PyObject * _argo0 = 0; | |
710 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
711 | |
712 | self = self; | |
2f90df85 RD |
713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
714 | return NULL; | |
715 | if (_argo0) { | |
716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 719 | return NULL; |
2f90df85 RD |
720 | } |
721 | } | |
cf694132 RD |
722 | { |
723 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 724 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 RD |
725 | |
726 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 727 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 728 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
729 | return _resultobj; |
730 | } | |
731 | ||
2f90df85 RD |
732 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
733 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 734 | PyObject * _resultobj; |
2f90df85 RD |
735 | wxValidator * _arg0; |
736 | wxWindow * _arg1; | |
1d99702e RD |
737 | PyObject * _argo0 = 0; |
738 | PyObject * _argo1 = 0; | |
2f90df85 | 739 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
740 | |
741 | self = self; | |
2f90df85 | 742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 743 | return NULL; |
1d99702e RD |
744 | if (_argo0) { |
745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
748 | return NULL; |
749 | } | |
750 | } | |
1d99702e RD |
751 | if (_argo1) { |
752 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
753 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
755 | return NULL; |
756 | } | |
757 | } | |
758 | { | |
759 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 760 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 RD |
761 | |
762 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 763 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
764 | } Py_INCREF(Py_None); |
765 | _resultobj = Py_None; | |
cf694132 RD |
766 | return _resultobj; |
767 | } | |
768 | ||
9416aa89 RD |
769 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { |
770 | PyObject * _resultobj; | |
771 | bool _result; | |
772 | char *_kwnames[] = { NULL }; | |
773 | ||
774 | self = self; | |
775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
776 | return NULL; | |
777 | { | |
778 | wxPy_BEGIN_ALLOW_THREADS; | |
779 | _result = (bool )wxValidator::IsSilent(); | |
780 | ||
781 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 782 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
783 | } _resultobj = Py_BuildValue("i",_result); |
784 | return _resultobj; | |
785 | } | |
786 | ||
787 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
788 | PyObject * _resultobj; | |
789 | int _arg0 = (int ) TRUE; | |
790 | char *_kwnames[] = { "doIt", NULL }; | |
791 | ||
792 | self = self; | |
793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
794 | return NULL; | |
795 | { | |
796 | wxPy_BEGIN_ALLOW_THREADS; | |
797 | wxValidator::SetBellOnError(_arg0); | |
798 | ||
799 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 800 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
801 | } Py_INCREF(Py_None); |
802 | _resultobj = Py_None; | |
803 | return _resultobj; | |
804 | } | |
805 | ||
2f90df85 RD |
806 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
807 | wxPyValidator *src; | |
808 | wxValidator *dest; | |
809 | src = (wxPyValidator *) ptr; | |
810 | dest = (wxValidator *) src; | |
811 | return (void *) dest; | |
812 | } | |
813 | ||
814 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
815 | wxPyValidator *src; | |
816 | wxEvtHandler *dest; | |
817 | src = (wxPyValidator *) ptr; | |
818 | dest = (wxEvtHandler *) src; | |
819 | return (void *) dest; | |
820 | } | |
821 | ||
9416aa89 RD |
822 | static void *SwigwxPyValidatorTowxObject(void *ptr) { |
823 | wxPyValidator *src; | |
824 | wxObject *dest; | |
825 | src = (wxPyValidator *) ptr; | |
826 | dest = (wxObject *) src; | |
827 | return (void *) dest; | |
828 | } | |
829 | ||
2f90df85 RD |
830 | #define new_wxPyValidator() (new wxPyValidator()) |
831 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
832 | PyObject * _resultobj; | |
833 | wxPyValidator * _result; | |
834 | char *_kwnames[] = { NULL }; | |
835 | char _ptemp[128]; | |
836 | ||
837 | self = self; | |
838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
839 | return NULL; | |
840 | { | |
841 | wxPy_BEGIN_ALLOW_THREADS; | |
842 | _result = (wxPyValidator *)new_wxPyValidator(); | |
843 | ||
844 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 845 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
846 | } if (_result) { |
847 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
848 | _resultobj = Py_BuildValue("s",_ptemp); | |
849 | } else { | |
850 | Py_INCREF(Py_None); | |
851 | _resultobj = Py_None; | |
852 | } | |
853 | return _resultobj; | |
854 | } | |
855 | ||
f6bcfd97 | 856 | #define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setSelf(_swigarg0,_swigarg1,_swigarg2)) |
2f90df85 | 857 | static PyObject *_wrap_wxPyValidator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 858 | PyObject * _resultobj; |
2f90df85 RD |
859 | wxPyValidator * _arg0; |
860 | PyObject * _arg1; | |
f6bcfd97 BP |
861 | PyObject * _arg2; |
862 | int _arg3 = (int ) TRUE; | |
1d99702e | 863 | PyObject * _argo0 = 0; |
2f90df85 | 864 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
865 | PyObject * _obj2 = 0; |
866 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
867 | |
868 | self = self; | |
f6bcfd97 | 869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setSelf",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 870 | return NULL; |
1d99702e RD |
871 | if (_argo0) { |
872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setSelf. Expected _wxPyValidator_p."); | |
8ab979d7 RD |
875 | return NULL; |
876 | } | |
877 | } | |
878 | { | |
2f90df85 | 879 | _arg1 = _obj1; |
8ab979d7 | 880 | } |
f6bcfd97 BP |
881 | { |
882 | _arg2 = _obj2; | |
883 | } | |
cf694132 RD |
884 | { |
885 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 886 | wxPyValidator__setSelf(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
887 | |
888 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 889 | if (PyErr_Occurred()) return NULL; |
cf694132 | 890 | } Py_INCREF(Py_None); |
8ab979d7 RD |
891 | _resultobj = Py_None; |
892 | return _resultobj; | |
893 | } | |
894 | ||
895 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
896 | wxWindow *src; | |
897 | wxEvtHandler *dest; | |
898 | src = (wxWindow *) ptr; | |
899 | dest = (wxEvtHandler *) src; | |
900 | return (void *) dest; | |
901 | } | |
902 | ||
9416aa89 RD |
903 | static void *SwigwxWindowTowxObject(void *ptr) { |
904 | wxWindow *src; | |
905 | wxObject *dest; | |
906 | src = (wxWindow *) ptr; | |
907 | dest = (wxObject *) src; | |
908 | return (void *) dest; | |
909 | } | |
910 | ||
8ab979d7 | 911 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 912 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
913 | PyObject * _resultobj; |
914 | wxWindow * _result; | |
915 | wxWindow * _arg0; | |
916 | wxWindowID _arg1; | |
e508a2b6 RD |
917 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
918 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
919 | long _arg4 = (long ) 0; |
920 | char * _arg5 = (char *) "panel"; | |
921 | PyObject * _argo0 = 0; | |
2f90df85 RD |
922 | wxPoint temp; |
923 | PyObject * _obj2 = 0; | |
924 | wxSize temp0; | |
925 | PyObject * _obj3 = 0; | |
efc5f224 | 926 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
927 | char _ptemp[128]; |
928 | ||
929 | self = self; | |
2f90df85 | 930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 931 | return NULL; |
1d99702e RD |
932 | if (_argo0) { |
933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
936 | return NULL; | |
937 | } | |
938 | } | |
2f90df85 RD |
939 | if (_obj2) |
940 | { | |
941 | _arg2 = &temp; | |
942 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 943 | return NULL; |
2f90df85 RD |
944 | } |
945 | if (_obj3) | |
946 | { | |
947 | _arg3 = &temp0; | |
948 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 949 | return NULL; |
2f90df85 | 950 | } |
cf694132 RD |
951 | { |
952 | wxPy_BEGIN_ALLOW_THREADS; | |
953 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
954 | ||
955 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 956 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
957 | } if (_result) { |
958 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
959 | _resultobj = Py_BuildValue("s",_ptemp); | |
960 | } else { | |
961 | Py_INCREF(Py_None); | |
962 | _resultobj = Py_None; | |
963 | } | |
8ab979d7 RD |
964 | return _resultobj; |
965 | } | |
966 | ||
967 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
efc5f224 | 968 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
969 | PyObject * _resultobj; |
970 | wxWindow * _arg0; | |
1d99702e | 971 | PyObject * _argo0 = 0; |
efc5f224 | 972 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
973 | |
974 | self = self; | |
efc5f224 | 975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) |
8ab979d7 | 976 | return NULL; |
1d99702e RD |
977 | if (_argo0) { |
978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); |
981 | return NULL; | |
982 | } | |
983 | } | |
cf694132 RD |
984 | { |
985 | wxPy_BEGIN_ALLOW_THREADS; | |
986 | wxWindow_CaptureMouse(_arg0); | |
987 | ||
988 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 989 | if (PyErr_Occurred()) return NULL; |
cf694132 | 990 | } Py_INCREF(Py_None); |
8ab979d7 RD |
991 | _resultobj = Py_None; |
992 | return _resultobj; | |
993 | } | |
994 | ||
995 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
efc5f224 | 996 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
997 | PyObject * _resultobj; |
998 | wxWindow * _arg0; | |
1d99702e RD |
999 | int _arg1 = (int ) wxBOTH; |
1000 | PyObject * _argo0 = 0; | |
efc5f224 | 1001 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1002 | |
1003 | self = self; | |
efc5f224 | 1004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1005 | return NULL; |
1d99702e RD |
1006 | if (_argo0) { |
1007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
1010 | return NULL; | |
1011 | } | |
1012 | } | |
cf694132 RD |
1013 | { |
1014 | wxPy_BEGIN_ALLOW_THREADS; | |
1015 | wxWindow_Center(_arg0,_arg1); | |
1016 | ||
1017 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1018 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1019 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1020 | _resultobj = Py_None; |
1021 | return _resultobj; | |
1022 | } | |
1023 | ||
1024 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 1025 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1026 | PyObject * _resultobj; |
1027 | wxWindow * _arg0; | |
1d99702e RD |
1028 | int _arg1 = (int ) wxBOTH; |
1029 | PyObject * _argo0 = 0; | |
efc5f224 | 1030 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1031 | |
1032 | self = self; | |
efc5f224 | 1033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1034 | return NULL; |
1d99702e RD |
1035 | if (_argo0) { |
1036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
1039 | return NULL; | |
1040 | } | |
1041 | } | |
cf694132 RD |
1042 | { |
1043 | wxPy_BEGIN_ALLOW_THREADS; | |
1044 | wxWindow_Centre(_arg0,_arg1); | |
1045 | ||
1046 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1047 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1048 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1049 | _resultobj = Py_None; |
1050 | return _resultobj; | |
1051 | } | |
1052 | ||
bb0054cd | 1053 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 1054 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1055 | PyObject * _resultobj; |
1056 | wxWindow * _arg0; | |
1d99702e RD |
1057 | int _arg1 = (int ) wxBOTH; |
1058 | PyObject * _argo0 = 0; | |
efc5f224 | 1059 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1060 | |
1061 | self = self; | |
efc5f224 | 1062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1063 | return NULL; |
1d99702e RD |
1064 | if (_argo0) { |
1065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
1068 | return NULL; | |
1069 | } | |
1070 | } | |
1071 | { | |
1072 | wxPy_BEGIN_ALLOW_THREADS; | |
1073 | wxWindow_CentreOnParent(_arg0,_arg1); | |
1074 | ||
1075 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1076 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1077 | } Py_INCREF(Py_None); |
1078 | _resultobj = Py_None; | |
1079 | return _resultobj; | |
1080 | } | |
1081 | ||
1082 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 1083 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1084 | PyObject * _resultobj; |
1085 | wxWindow * _arg0; | |
1d99702e RD |
1086 | int _arg1 = (int ) wxBOTH; |
1087 | PyObject * _argo0 = 0; | |
efc5f224 | 1088 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1089 | |
1090 | self = self; | |
efc5f224 | 1091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1092 | return NULL; |
1d99702e RD |
1093 | if (_argo0) { |
1094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
1097 | return NULL; | |
1098 | } | |
1099 | } | |
1100 | { | |
1101 | wxPy_BEGIN_ALLOW_THREADS; | |
1102 | wxWindow_CenterOnParent(_arg0,_arg1); | |
1103 | ||
1104 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1105 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1106 | } Py_INCREF(Py_None); |
1107 | _resultobj = Py_None; | |
1108 | return _resultobj; | |
1109 | } | |
1110 | ||
3ca6a5f0 BP |
1111 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
1112 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1113 | PyObject * _resultobj; | |
1114 | wxWindow * _arg0; | |
1115 | int _arg1 = (int ) wxBOTH; | |
1116 | PyObject * _argo0 = 0; | |
1117 | char *_kwnames[] = { "self","direction", NULL }; | |
1118 | ||
1119 | self = self; | |
1120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1121 | return NULL; | |
1122 | if (_argo0) { | |
1123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1126 | return NULL; | |
1127 | } | |
1128 | } | |
1129 | { | |
1130 | wxPy_BEGIN_ALLOW_THREADS; | |
1131 | wxWindow_CentreOnScreen(_arg0,_arg1); | |
1132 | ||
1133 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1134 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1135 | } Py_INCREF(Py_None); |
1136 | _resultobj = Py_None; | |
1137 | return _resultobj; | |
1138 | } | |
1139 | ||
1140 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1141 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1142 | PyObject * _resultobj; | |
1143 | wxWindow * _arg0; | |
1144 | int _arg1 = (int ) wxBOTH; | |
1145 | PyObject * _argo0 = 0; | |
1146 | char *_kwnames[] = { "self","direction", NULL }; | |
1147 | ||
1148 | self = self; | |
1149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1150 | return NULL; | |
1151 | if (_argo0) { | |
1152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1155 | return NULL; | |
1156 | } | |
1157 | } | |
1158 | { | |
1159 | wxPy_BEGIN_ALLOW_THREADS; | |
1160 | wxWindow_CenterOnScreen(_arg0,_arg1); | |
1161 | ||
1162 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1163 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1164 | } Py_INCREF(Py_None); |
1165 | _resultobj = Py_None; | |
1166 | return _resultobj; | |
1167 | } | |
1168 | ||
af309447 | 1169 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1170 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1171 | PyObject * _resultobj; |
1172 | wxWindow * _arg0; | |
1173 | int * _arg1; | |
1174 | int * _arg2; | |
1d99702e | 1175 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1176 | int temp; |
1177 | PyObject * _obj1 = 0; | |
1178 | int temp0; | |
1179 | PyObject * _obj2 = 0; | |
efc5f224 | 1180 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1181 | |
1182 | self = self; | |
efc5f224 | 1183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1184 | return NULL; |
1d99702e RD |
1185 | if (_argo0) { |
1186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1189 | return NULL; |
1190 | } | |
1191 | } | |
1192 | { | |
1193 | temp = (int) PyInt_AsLong(_obj1); | |
1194 | _arg1 = &temp; | |
1195 | } | |
1196 | { | |
1197 | temp0 = (int) PyInt_AsLong(_obj2); | |
1198 | _arg2 = &temp0; | |
1199 | } | |
cf694132 RD |
1200 | { |
1201 | wxPy_BEGIN_ALLOW_THREADS; | |
1202 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); | |
1203 | ||
1204 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1205 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1206 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1207 | _resultobj = Py_None; |
1208 | { | |
1209 | PyObject *o; | |
1210 | o = PyInt_FromLong((long) (*_arg1)); | |
1211 | _resultobj = t_output_helper(_resultobj, o); | |
1212 | } | |
1213 | { | |
1214 | PyObject *o; | |
1215 | o = PyInt_FromLong((long) (*_arg2)); | |
1216 | _resultobj = t_output_helper(_resultobj, o); | |
1217 | } | |
1218 | return _resultobj; | |
1219 | } | |
1220 | ||
af309447 | 1221 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1222 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1223 | PyObject * _resultobj; |
1224 | wxPoint * _result; | |
1225 | wxWindow * _arg0; | |
1226 | wxPoint * _arg1; | |
1d99702e | 1227 | PyObject * _argo0 = 0; |
2f90df85 RD |
1228 | wxPoint temp; |
1229 | PyObject * _obj1 = 0; | |
efc5f224 | 1230 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1231 | char _ptemp[128]; |
1232 | ||
1233 | self = self; | |
2f90df85 | 1234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1235 | return NULL; |
1d99702e RD |
1236 | if (_argo0) { |
1237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1240 | return NULL; | |
1241 | } | |
1242 | } | |
2f90df85 RD |
1243 | { |
1244 | _arg1 = &temp; | |
1245 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1246 | return NULL; |
2f90df85 | 1247 | } |
cf694132 RD |
1248 | { |
1249 | wxPy_BEGIN_ALLOW_THREADS; | |
1250 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); | |
1251 | ||
1252 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1253 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1254 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
1255 | _resultobj = Py_BuildValue("s",_ptemp); |
1256 | return _resultobj; | |
1257 | } | |
1258 | ||
8ab979d7 | 1259 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1260 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1261 | PyObject * _resultobj; |
1262 | bool _result; | |
1263 | wxWindow * _arg0; | |
1d99702e RD |
1264 | int _arg1 = (int ) FALSE; |
1265 | PyObject * _argo0 = 0; | |
efc5f224 | 1266 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1267 | |
1268 | self = self; | |
efc5f224 | 1269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1270 | return NULL; |
1d99702e RD |
1271 | if (_argo0) { |
1272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1275 | return NULL; | |
1276 | } | |
1277 | } | |
cf694132 RD |
1278 | { |
1279 | wxPy_BEGIN_ALLOW_THREADS; | |
1280 | _result = (bool )wxWindow_Close(_arg0,_arg1); | |
1281 | ||
1282 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1283 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1284 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1285 | return _resultobj; |
1286 | } | |
1287 | ||
1288 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1289 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1290 | PyObject * _resultobj; |
1291 | bool _result; | |
1292 | wxWindow * _arg0; | |
1d99702e | 1293 | PyObject * _argo0 = 0; |
efc5f224 | 1294 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1295 | |
1296 | self = self; | |
efc5f224 | 1297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1298 | return NULL; |
1d99702e RD |
1299 | if (_argo0) { |
1300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1303 | return NULL; | |
1304 | } | |
1305 | } | |
cf694132 RD |
1306 | { |
1307 | wxPy_BEGIN_ALLOW_THREADS; | |
1308 | _result = (bool )wxWindow_Destroy(_arg0); | |
1309 | ||
1310 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1311 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1312 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1313 | return _resultobj; |
1314 | } | |
1315 | ||
1316 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1317 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1318 | PyObject * _resultobj; |
1319 | wxWindow * _arg0; | |
1d99702e | 1320 | PyObject * _argo0 = 0; |
efc5f224 | 1321 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1322 | |
1323 | self = self; | |
efc5f224 | 1324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1325 | return NULL; |
1d99702e RD |
1326 | if (_argo0) { |
1327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1330 | return NULL; | |
1331 | } | |
1332 | } | |
cf694132 RD |
1333 | { |
1334 | wxPy_BEGIN_ALLOW_THREADS; | |
1335 | wxWindow_DestroyChildren(_arg0); | |
1336 | ||
1337 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1338 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1339 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1340 | _resultobj = Py_None; |
1341 | return _resultobj; | |
1342 | } | |
1343 | ||
ac346f50 RD |
1344 | #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted()) |
1345 | static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1346 | PyObject * _resultobj; | |
1347 | bool _result; | |
1348 | wxWindow * _arg0; | |
1349 | PyObject * _argo0 = 0; | |
1350 | char *_kwnames[] = { "self", NULL }; | |
1351 | ||
1352 | self = self; | |
1353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0)) | |
1354 | return NULL; | |
1355 | if (_argo0) { | |
1356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p."); | |
1359 | return NULL; | |
1360 | } | |
1361 | } | |
1362 | { | |
1363 | wxPy_BEGIN_ALLOW_THREADS; | |
1364 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); | |
1365 | ||
1366 | wxPy_END_ALLOW_THREADS; | |
1367 | if (PyErr_Occurred()) return NULL; | |
1368 | } _resultobj = Py_BuildValue("i",_result); | |
1369 | return _resultobj; | |
1370 | } | |
1371 | ||
8ab979d7 | 1372 | #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0)) |
efc5f224 | 1373 | static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1374 | PyObject * _resultobj; |
1375 | wxWindow * _arg0; | |
1376 | bool _arg1; | |
1d99702e | 1377 | PyObject * _argo0 = 0; |
8ab979d7 | 1378 | int tempbool1; |
efc5f224 | 1379 | char *_kwnames[] = { "self","accept", NULL }; |
8ab979d7 RD |
1380 | |
1381 | self = self; | |
efc5f224 | 1382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1383 | return NULL; |
1d99702e RD |
1384 | if (_argo0) { |
1385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p."); |
1388 | return NULL; | |
1389 | } | |
1390 | } | |
1391 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1392 | { |
1393 | wxPy_BEGIN_ALLOW_THREADS; | |
1394 | wxWindow_DragAcceptFiles(_arg0,_arg1); | |
1395 | ||
1396 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1397 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1398 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1399 | _resultobj = Py_None; |
1400 | return _resultobj; | |
1401 | } | |
1402 | ||
1403 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
efc5f224 | 1404 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1405 | PyObject * _resultobj; |
1406 | wxWindow * _arg0; | |
1407 | bool _arg1; | |
1d99702e | 1408 | PyObject * _argo0 = 0; |
8ab979d7 | 1409 | int tempbool1; |
efc5f224 | 1410 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1411 | |
1412 | self = self; | |
efc5f224 | 1413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1414 | return NULL; |
1d99702e RD |
1415 | if (_argo0) { |
1416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1419 | return NULL; | |
1420 | } | |
1421 | } | |
1422 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1423 | { |
1424 | wxPy_BEGIN_ALLOW_THREADS; | |
1425 | wxWindow_Enable(_arg0,_arg1); | |
1426 | ||
1427 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1428 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1429 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1430 | _resultobj = Py_None; |
1431 | return _resultobj; | |
1432 | } | |
1433 | ||
af309447 | 1434 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1435 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1436 | PyObject * _resultobj; |
1437 | wxWindow * _result; | |
1438 | wxWindow * _arg0; | |
1439 | long _arg1; | |
1d99702e | 1440 | PyObject * _argo0 = 0; |
efc5f224 | 1441 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1442 | |
1443 | self = self; | |
efc5f224 | 1444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1445 | return NULL; |
1d99702e RD |
1446 | if (_argo0) { |
1447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1450 | return NULL; |
1451 | } | |
1452 | } | |
cf694132 RD |
1453 | { |
1454 | wxPy_BEGIN_ALLOW_THREADS; | |
1455 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); | |
1456 | ||
1457 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1458 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1459 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1460 | return _resultobj; |
1461 | } | |
1462 | ||
1463 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1464 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1465 | PyObject * _resultobj; |
1466 | wxWindow * _result; | |
1467 | wxWindow * _arg0; | |
1468 | wxString * _arg1; | |
1d99702e | 1469 | PyObject * _argo0 = 0; |
8ab979d7 | 1470 | PyObject * _obj1 = 0; |
efc5f224 | 1471 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1472 | |
1473 | self = self; | |
efc5f224 | 1474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1475 | return NULL; |
1d99702e RD |
1476 | if (_argo0) { |
1477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1480 | return NULL; | |
1481 | } | |
1482 | } | |
1483 | { | |
185d7c3e RD |
1484 | #if PYTHON_API_VERSION >= 1009 |
1485 | char* tmpPtr; int tmpSize; | |
1486 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1487 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1488 | return NULL; |
1489 | } | |
1490 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1491 | return NULL; | |
1492 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1493 | #else | |
8ab979d7 RD |
1494 | if (!PyString_Check(_obj1)) { |
1495 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1496 | return NULL; | |
1497 | } | |
185d7c3e RD |
1498 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1499 | #endif | |
8ab979d7 | 1500 | } |
cf694132 RD |
1501 | { |
1502 | wxPy_BEGIN_ALLOW_THREADS; | |
1503 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); | |
1504 | ||
1505 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1506 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1507 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1508 | { |
1509 | if (_obj1) | |
1510 | delete _arg1; | |
1511 | } | |
1512 | return _resultobj; | |
1513 | } | |
1514 | ||
1515 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1516 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1517 | PyObject * _resultobj; |
1518 | wxWindow * _arg0; | |
1d99702e | 1519 | PyObject * _argo0 = 0; |
efc5f224 | 1520 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1521 | |
1522 | self = self; | |
efc5f224 | 1523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1524 | return NULL; |
1d99702e RD |
1525 | if (_argo0) { |
1526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1529 | return NULL; | |
1530 | } | |
1531 | } | |
cf694132 RD |
1532 | { |
1533 | wxPy_BEGIN_ALLOW_THREADS; | |
1534 | wxWindow_Fit(_arg0); | |
1535 | ||
1536 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1537 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1538 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1539 | _resultobj = Py_None; |
1540 | return _resultobj; | |
1541 | } | |
1542 | ||
1543 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
efc5f224 | 1544 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1545 | PyObject * _resultobj; |
1546 | wxColour * _result; | |
1547 | wxWindow * _arg0; | |
1d99702e | 1548 | PyObject * _argo0 = 0; |
efc5f224 | 1549 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1550 | char _ptemp[128]; |
1551 | ||
1552 | self = self; | |
efc5f224 | 1553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1554 | return NULL; |
1d99702e RD |
1555 | if (_argo0) { |
1556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1559 | return NULL; | |
1560 | } | |
1561 | } | |
cf694132 RD |
1562 | { |
1563 | wxPy_BEGIN_ALLOW_THREADS; | |
1564 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); | |
1565 | ||
1566 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1567 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1568 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1569 | _resultobj = Py_BuildValue("s",_ptemp); |
1570 | return _resultobj; | |
1571 | } | |
1572 | ||
d426c97e RD |
1573 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1574 | wxWindowList& list = self->GetChildren(); | |
1575 | return wxPy_ConvertList(&list, "wxWindow"); | |
1576 | } | |
1577 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1578 | PyObject * _resultobj; | |
1579 | PyObject * _result; | |
1580 | wxWindow * _arg0; | |
1581 | PyObject * _argo0 = 0; | |
1582 | char *_kwnames[] = { "self", NULL }; | |
1583 | ||
1584 | self = self; | |
1585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1586 | return NULL; | |
1587 | if (_argo0) { | |
1588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1591 | return NULL; | |
1592 | } | |
1593 | } | |
1594 | { | |
1595 | wxPy_BEGIN_ALLOW_THREADS; | |
1596 | _result = (PyObject *)wxWindow_GetChildren(_arg0); | |
1597 | ||
1598 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1599 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
1600 | }{ |
1601 | _resultobj = _result; | |
1602 | } | |
1603 | return _resultobj; | |
1604 | } | |
1605 | ||
8ab979d7 | 1606 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1607 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1608 | PyObject * _resultobj; |
1609 | int _result; | |
1610 | wxWindow * _arg0; | |
1d99702e | 1611 | PyObject * _argo0 = 0; |
efc5f224 | 1612 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1613 | |
1614 | self = self; | |
efc5f224 | 1615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1616 | return NULL; |
1d99702e RD |
1617 | if (_argo0) { |
1618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1621 | return NULL; | |
1622 | } | |
1623 | } | |
cf694132 RD |
1624 | { |
1625 | wxPy_BEGIN_ALLOW_THREADS; | |
1626 | _result = (int )wxWindow_GetCharHeight(_arg0); | |
1627 | ||
1628 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1629 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1630 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1631 | return _resultobj; |
1632 | } | |
1633 | ||
1634 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1635 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1636 | PyObject * _resultobj; |
1637 | int _result; | |
1638 | wxWindow * _arg0; | |
1d99702e | 1639 | PyObject * _argo0 = 0; |
efc5f224 | 1640 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1641 | |
1642 | self = self; | |
efc5f224 | 1643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1644 | return NULL; |
1d99702e RD |
1645 | if (_argo0) { |
1646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1649 | return NULL; | |
1650 | } | |
1651 | } | |
cf694132 RD |
1652 | { |
1653 | wxPy_BEGIN_ALLOW_THREADS; | |
1654 | _result = (int )wxWindow_GetCharWidth(_arg0); | |
1655 | ||
1656 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1657 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1658 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1659 | return _resultobj; |
1660 | } | |
1661 | ||
b8b8dda7 | 1662 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1663 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1664 | PyObject * _resultobj; |
1665 | wxWindow * _arg0; | |
1666 | int * _arg1; | |
1667 | int temp; | |
1668 | int * _arg2; | |
1669 | int temp0; | |
1d99702e | 1670 | PyObject * _argo0 = 0; |
efc5f224 | 1671 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1672 | |
1673 | self = self; | |
1674 | { | |
1675 | _arg1 = &temp; | |
1676 | } | |
1677 | { | |
1678 | _arg2 = &temp0; | |
1679 | } | |
efc5f224 | 1680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1681 | return NULL; |
1d99702e RD |
1682 | if (_argo0) { |
1683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1686 | return NULL; |
1687 | } | |
1688 | } | |
cf694132 RD |
1689 | { |
1690 | wxPy_BEGIN_ALLOW_THREADS; | |
1691 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); | |
1692 | ||
1693 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1694 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1695 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1696 | _resultobj = Py_None; |
1697 | { | |
1698 | PyObject *o; | |
1699 | o = PyInt_FromLong((long) (*_arg1)); | |
1700 | _resultobj = t_output_helper(_resultobj, o); | |
1701 | } | |
1702 | { | |
1703 | PyObject *o; | |
1704 | o = PyInt_FromLong((long) (*_arg2)); | |
1705 | _resultobj = t_output_helper(_resultobj, o); | |
1706 | } | |
1707 | return _resultobj; | |
1708 | } | |
1709 | ||
b8b8dda7 | 1710 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1711 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1712 | PyObject * _resultobj; |
1713 | wxSize * _result; | |
1714 | wxWindow * _arg0; | |
1d99702e | 1715 | PyObject * _argo0 = 0; |
efc5f224 | 1716 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1717 | char _ptemp[128]; |
1718 | ||
1719 | self = self; | |
efc5f224 | 1720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1721 | return NULL; |
1d99702e RD |
1722 | if (_argo0) { |
1723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1726 | return NULL; | |
1727 | } | |
1728 | } | |
cf694132 RD |
1729 | { |
1730 | wxPy_BEGIN_ALLOW_THREADS; | |
1731 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); | |
1732 | ||
1733 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1734 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1735 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
1736 | _resultobj = Py_BuildValue("s",_ptemp); |
1737 | return _resultobj; | |
1738 | } | |
1739 | ||
8ab979d7 | 1740 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1741 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1742 | PyObject * _resultobj; |
1743 | wxLayoutConstraints * _result; | |
1744 | wxWindow * _arg0; | |
1d99702e | 1745 | PyObject * _argo0 = 0; |
efc5f224 | 1746 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1747 | char _ptemp[128]; |
1748 | ||
1749 | self = self; | |
efc5f224 | 1750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1751 | return NULL; |
1d99702e RD |
1752 | if (_argo0) { |
1753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1756 | return NULL; | |
1757 | } | |
1758 | } | |
cf694132 RD |
1759 | { |
1760 | wxPy_BEGIN_ALLOW_THREADS; | |
1761 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); | |
1762 | ||
1763 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1764 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1765 | } if (_result) { |
1766 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1767 | _resultobj = Py_BuildValue("s",_ptemp); | |
1768 | } else { | |
1769 | Py_INCREF(Py_None); | |
1770 | _resultobj = Py_None; | |
1771 | } | |
8ab979d7 RD |
1772 | return _resultobj; |
1773 | } | |
1774 | ||
1afc06c2 RD |
1775 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1776 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1777 | PyObject * _resultobj; | |
1778 | wxEvtHandler * _result; | |
1779 | wxWindow * _arg0; | |
1780 | PyObject * _argo0 = 0; | |
1781 | char *_kwnames[] = { "self", NULL }; | |
1afc06c2 RD |
1782 | |
1783 | self = self; | |
1784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1785 | return NULL; | |
1786 | if (_argo0) { | |
1787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1790 | return NULL; | |
1791 | } | |
1792 | } | |
1793 | { | |
1794 | wxPy_BEGIN_ALLOW_THREADS; | |
1795 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); | |
1796 | ||
1797 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1798 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1799 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
1800 | return _resultobj; |
1801 | } | |
1802 | ||
8ab979d7 | 1803 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 1804 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1805 | PyObject * _resultobj; |
1806 | wxFont * _result; | |
1807 | wxWindow * _arg0; | |
1d99702e | 1808 | PyObject * _argo0 = 0; |
efc5f224 | 1809 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1810 | char _ptemp[128]; |
1811 | ||
1812 | self = self; | |
efc5f224 | 1813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 1814 | return NULL; |
1d99702e RD |
1815 | if (_argo0) { |
1816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
1819 | return NULL; | |
1820 | } | |
1821 | } | |
cf694132 RD |
1822 | { |
1823 | wxPy_BEGIN_ALLOW_THREADS; | |
1824 | wxFont & _result_ref = wxWindow_GetFont(_arg0); | |
b8b8dda7 | 1825 | _result = (wxFont *) &_result_ref; |
cf694132 RD |
1826 | |
1827 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1828 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1829 | } if (_result) { |
1830 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
1831 | _resultobj = Py_BuildValue("s",_ptemp); | |
1832 | } else { | |
1833 | Py_INCREF(Py_None); | |
1834 | _resultobj = Py_None; | |
1835 | } | |
8ab979d7 RD |
1836 | return _resultobj; |
1837 | } | |
1838 | ||
1839 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 1840 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1841 | PyObject * _resultobj; |
1842 | wxColour * _result; | |
1843 | wxWindow * _arg0; | |
1d99702e | 1844 | PyObject * _argo0 = 0; |
efc5f224 | 1845 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1846 | char _ptemp[128]; |
1847 | ||
1848 | self = self; | |
efc5f224 | 1849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1850 | return NULL; |
1d99702e RD |
1851 | if (_argo0) { |
1852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
1855 | return NULL; | |
1856 | } | |
1857 | } | |
cf694132 RD |
1858 | { |
1859 | wxPy_BEGIN_ALLOW_THREADS; | |
1860 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); | |
1861 | ||
1862 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1863 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1864 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1865 | _resultobj = Py_BuildValue("s",_ptemp); |
1866 | return _resultobj; | |
1867 | } | |
1868 | ||
1869 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 1870 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1871 | PyObject * _resultobj; |
1872 | wxWindow * _result; | |
1873 | wxWindow * _arg0; | |
1d99702e | 1874 | PyObject * _argo0 = 0; |
efc5f224 | 1875 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1876 | |
1877 | self = self; | |
efc5f224 | 1878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 1879 | return NULL; |
1d99702e RD |
1880 | if (_argo0) { |
1881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
1884 | return NULL; | |
1885 | } | |
1886 | } | |
cf694132 RD |
1887 | { |
1888 | wxPy_BEGIN_ALLOW_THREADS; | |
1889 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); | |
1890 | ||
1891 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1892 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1893 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1894 | return _resultobj; |
1895 | } | |
1896 | ||
2abc0a0f | 1897 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 1898 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
1899 | } |
1900 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1901 | PyObject * _resultobj; | |
1902 | long _result; | |
1903 | wxWindow * _arg0; | |
1904 | PyObject * _argo0 = 0; | |
1905 | char *_kwnames[] = { "self", NULL }; | |
1906 | ||
1907 | self = self; | |
1908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
1909 | return NULL; | |
1910 | if (_argo0) { | |
1911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
1914 | return NULL; | |
1915 | } | |
1916 | } | |
1917 | { | |
1918 | wxPy_BEGIN_ALLOW_THREADS; | |
1919 | _result = (long )wxWindow_GetHandle(_arg0); | |
1920 | ||
1921 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1922 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
1923 | } _resultobj = Py_BuildValue("l",_result); |
1924 | return _resultobj; | |
1925 | } | |
1926 | ||
8ab979d7 | 1927 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 1928 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1929 | PyObject * _resultobj; |
1930 | int _result; | |
1931 | wxWindow * _arg0; | |
1d99702e | 1932 | PyObject * _argo0 = 0; |
efc5f224 | 1933 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1934 | |
1935 | self = self; | |
efc5f224 | 1936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 1937 | return NULL; |
1d99702e RD |
1938 | if (_argo0) { |
1939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
1942 | return NULL; | |
1943 | } | |
1944 | } | |
cf694132 RD |
1945 | { |
1946 | wxPy_BEGIN_ALLOW_THREADS; | |
1947 | _result = (int )wxWindow_GetId(_arg0); | |
1948 | ||
1949 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1950 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1951 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1952 | return _resultobj; |
1953 | } | |
1954 | ||
8ab979d7 | 1955 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 1956 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1957 | PyObject * _resultobj; |
1958 | wxString * _result; | |
1959 | wxWindow * _arg0; | |
1d99702e | 1960 | PyObject * _argo0 = 0; |
efc5f224 | 1961 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1962 | |
1963 | self = self; | |
efc5f224 | 1964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 1965 | return NULL; |
1d99702e RD |
1966 | if (_argo0) { |
1967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
1970 | return NULL; | |
1971 | } | |
1972 | } | |
8ab979d7 | 1973 | { |
cf694132 RD |
1974 | wxPy_BEGIN_ALLOW_THREADS; |
1975 | _result = new wxString (wxWindow_GetLabel(_arg0)); | |
1976 | ||
1977 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1978 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1979 | }{ |
eec92d76 | 1980 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
1981 | } |
1982 | { | |
1983 | delete _result; | |
1984 | } | |
1985 | return _resultobj; | |
1986 | } | |
1987 | ||
bb0054cd | 1988 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 1989 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1990 | PyObject * _resultobj; |
1991 | wxWindow * _arg0; | |
1992 | wxString * _arg1; | |
1d99702e | 1993 | PyObject * _argo0 = 0; |
bb0054cd | 1994 | PyObject * _obj1 = 0; |
efc5f224 | 1995 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
1996 | |
1997 | self = self; | |
efc5f224 | 1998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 1999 | return NULL; |
1d99702e RD |
2000 | if (_argo0) { |
2001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
2004 | return NULL; | |
2005 | } | |
2006 | } | |
2007 | { | |
185d7c3e RD |
2008 | #if PYTHON_API_VERSION >= 1009 |
2009 | char* tmpPtr; int tmpSize; | |
2010 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2011 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2012 | return NULL; |
2013 | } | |
2014 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2015 | return NULL; | |
2016 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2017 | #else | |
bb0054cd RD |
2018 | if (!PyString_Check(_obj1)) { |
2019 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2020 | return NULL; | |
2021 | } | |
185d7c3e RD |
2022 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2023 | #endif | |
bb0054cd RD |
2024 | } |
2025 | { | |
2026 | wxPy_BEGIN_ALLOW_THREADS; | |
2027 | wxWindow_SetLabel(_arg0,*_arg1); | |
2028 | ||
2029 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2030 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2031 | } Py_INCREF(Py_None); |
2032 | _resultobj = Py_None; | |
2033 | { | |
2034 | if (_obj1) | |
2035 | delete _arg1; | |
2036 | } | |
2037 | return _resultobj; | |
2038 | } | |
2039 | ||
8ab979d7 | 2040 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2041 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2042 | PyObject * _resultobj; |
2043 | wxString * _result; | |
2044 | wxWindow * _arg0; | |
1d99702e | 2045 | PyObject * _argo0 = 0; |
efc5f224 | 2046 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2047 | |
2048 | self = self; | |
efc5f224 | 2049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2050 | return NULL; |
1d99702e RD |
2051 | if (_argo0) { |
2052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2055 | return NULL; | |
2056 | } | |
2057 | } | |
8ab979d7 | 2058 | { |
cf694132 RD |
2059 | wxPy_BEGIN_ALLOW_THREADS; |
2060 | _result = new wxString (wxWindow_GetName(_arg0)); | |
2061 | ||
2062 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2063 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2064 | }{ |
eec92d76 | 2065 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2066 | } |
2067 | { | |
2068 | delete _result; | |
2069 | } | |
2070 | return _resultobj; | |
2071 | } | |
2072 | ||
2073 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2074 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2075 | PyObject * _resultobj; |
2076 | wxWindow * _result; | |
2077 | wxWindow * _arg0; | |
1d99702e | 2078 | PyObject * _argo0 = 0; |
efc5f224 | 2079 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2080 | |
2081 | self = self; | |
efc5f224 | 2082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2083 | return NULL; |
1d99702e RD |
2084 | if (_argo0) { |
2085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2088 | return NULL; | |
2089 | } | |
2090 | } | |
cf694132 RD |
2091 | { |
2092 | wxPy_BEGIN_ALLOW_THREADS; | |
2093 | _result = (wxWindow *)wxWindow_GetParent(_arg0); | |
2094 | ||
2095 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2096 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2097 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2098 | return _resultobj; |
2099 | } | |
2100 | ||
b8b8dda7 | 2101 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2102 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2103 | PyObject * _resultobj; |
2104 | wxWindow * _arg0; | |
2105 | int * _arg1; | |
2106 | int temp; | |
2107 | int * _arg2; | |
2108 | int temp0; | |
1d99702e | 2109 | PyObject * _argo0 = 0; |
efc5f224 | 2110 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2111 | |
2112 | self = self; | |
2113 | { | |
2114 | _arg1 = &temp; | |
2115 | } | |
2116 | { | |
2117 | _arg2 = &temp0; | |
2118 | } | |
efc5f224 | 2119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2120 | return NULL; |
1d99702e RD |
2121 | if (_argo0) { |
2122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2125 | return NULL; | |
2126 | } | |
2127 | } | |
cf694132 RD |
2128 | { |
2129 | wxPy_BEGIN_ALLOW_THREADS; | |
2130 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); | |
2131 | ||
2132 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2133 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2134 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
2135 | _resultobj = Py_None; |
2136 | { | |
2137 | PyObject *o; | |
2138 | o = PyInt_FromLong((long) (*_arg1)); | |
2139 | _resultobj = t_output_helper(_resultobj, o); | |
2140 | } | |
2141 | { | |
2142 | PyObject *o; | |
2143 | o = PyInt_FromLong((long) (*_arg2)); | |
2144 | _resultobj = t_output_helper(_resultobj, o); | |
2145 | } | |
2146 | return _resultobj; | |
2147 | } | |
2148 | ||
2149 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2150 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2151 | PyObject * _resultobj; |
2152 | wxPoint * _result; | |
2153 | wxWindow * _arg0; | |
1d99702e | 2154 | PyObject * _argo0 = 0; |
efc5f224 | 2155 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2156 | char _ptemp[128]; |
2157 | ||
2158 | self = self; | |
efc5f224 | 2159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2160 | return NULL; |
1d99702e RD |
2161 | if (_argo0) { |
2162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2165 | return NULL; | |
2166 | } | |
2167 | } | |
cf694132 RD |
2168 | { |
2169 | wxPy_BEGIN_ALLOW_THREADS; | |
2170 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); | |
2171 | ||
2172 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2173 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2174 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
2175 | _resultobj = Py_BuildValue("s",_ptemp); |
2176 | return _resultobj; | |
2177 | } | |
2178 | ||
2179 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2180 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2181 | PyObject * _resultobj; |
2182 | wxRect * _result; | |
2183 | wxWindow * _arg0; | |
1d99702e | 2184 | PyObject * _argo0 = 0; |
efc5f224 | 2185 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2186 | char _ptemp[128]; |
2187 | ||
2188 | self = self; | |
efc5f224 | 2189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2190 | return NULL; |
1d99702e RD |
2191 | if (_argo0) { |
2192 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2195 | return NULL; | |
2196 | } | |
2197 | } | |
cf694132 RD |
2198 | { |
2199 | wxPy_BEGIN_ALLOW_THREADS; | |
2200 | _result = new wxRect (wxWindow_GetRect(_arg0)); | |
2201 | ||
2202 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2203 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2204 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
b8b8dda7 RD |
2205 | _resultobj = Py_BuildValue("s",_ptemp); |
2206 | return _resultobj; | |
2207 | } | |
2208 | ||
8ab979d7 | 2209 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2210 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2211 | PyObject * _resultobj; |
2212 | int _result; | |
2213 | wxWindow * _arg0; | |
2214 | int _arg1; | |
1d99702e | 2215 | PyObject * _argo0 = 0; |
efc5f224 | 2216 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2217 | |
2218 | self = self; | |
efc5f224 | 2219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2220 | return NULL; |
1d99702e RD |
2221 | if (_argo0) { |
2222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2225 | return NULL; | |
2226 | } | |
2227 | } | |
cf694132 RD |
2228 | { |
2229 | wxPy_BEGIN_ALLOW_THREADS; | |
2230 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); | |
2231 | ||
2232 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2233 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2234 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2235 | return _resultobj; |
2236 | } | |
2237 | ||
2238 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2239 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2240 | PyObject * _resultobj; |
2241 | int _result; | |
2242 | wxWindow * _arg0; | |
2243 | int _arg1; | |
1d99702e | 2244 | PyObject * _argo0 = 0; |
efc5f224 | 2245 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2246 | |
2247 | self = self; | |
efc5f224 | 2248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2249 | return NULL; |
1d99702e RD |
2250 | if (_argo0) { |
2251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2254 | return NULL; | |
2255 | } | |
2256 | } | |
cf694132 RD |
2257 | { |
2258 | wxPy_BEGIN_ALLOW_THREADS; | |
2259 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); | |
2260 | ||
2261 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2262 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2263 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2264 | return _resultobj; |
2265 | } | |
2266 | ||
2267 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2268 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2269 | PyObject * _resultobj; |
2270 | int _result; | |
2271 | wxWindow * _arg0; | |
2272 | int _arg1; | |
1d99702e | 2273 | PyObject * _argo0 = 0; |
efc5f224 | 2274 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2275 | |
2276 | self = self; | |
efc5f224 | 2277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2278 | return NULL; |
1d99702e RD |
2279 | if (_argo0) { |
2280 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2281 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2283 | return NULL; | |
2284 | } | |
2285 | } | |
cf694132 RD |
2286 | { |
2287 | wxPy_BEGIN_ALLOW_THREADS; | |
2288 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); | |
2289 | ||
2290 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2291 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2292 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2293 | return _resultobj; |
2294 | } | |
2295 | ||
b8b8dda7 | 2296 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2297 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2298 | PyObject * _resultobj; |
2299 | wxWindow * _arg0; | |
2300 | int * _arg1; | |
2301 | int temp; | |
2302 | int * _arg2; | |
2303 | int temp0; | |
1d99702e | 2304 | PyObject * _argo0 = 0; |
efc5f224 | 2305 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2306 | |
2307 | self = self; | |
2308 | { | |
2309 | _arg1 = &temp; | |
2310 | } | |
2311 | { | |
2312 | _arg2 = &temp0; | |
2313 | } | |
efc5f224 | 2314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2315 | return NULL; |
1d99702e RD |
2316 | if (_argo0) { |
2317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2320 | return NULL; |
2321 | } | |
2322 | } | |
cf694132 RD |
2323 | { |
2324 | wxPy_BEGIN_ALLOW_THREADS; | |
2325 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); | |
2326 | ||
2327 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2328 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2329 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2330 | _resultobj = Py_None; |
2331 | { | |
2332 | PyObject *o; | |
2333 | o = PyInt_FromLong((long) (*_arg1)); | |
2334 | _resultobj = t_output_helper(_resultobj, o); | |
2335 | } | |
2336 | { | |
2337 | PyObject *o; | |
2338 | o = PyInt_FromLong((long) (*_arg2)); | |
2339 | _resultobj = t_output_helper(_resultobj, o); | |
2340 | } | |
2341 | return _resultobj; | |
2342 | } | |
2343 | ||
b8b8dda7 | 2344 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2345 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2346 | PyObject * _resultobj; |
2347 | wxSize * _result; | |
2348 | wxWindow * _arg0; | |
1d99702e | 2349 | PyObject * _argo0 = 0; |
efc5f224 | 2350 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2351 | char _ptemp[128]; |
2352 | ||
2353 | self = self; | |
efc5f224 | 2354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_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_GetSize. Expected _wxWindow_p."); |
2360 | return NULL; | |
2361 | } | |
2362 | } | |
cf694132 RD |
2363 | { |
2364 | wxPy_BEGIN_ALLOW_THREADS; | |
2365 | _result = new wxSize (wxWindow_GetSize(_arg0)); | |
2366 | ||
2367 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2368 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2369 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
2370 | _resultobj = Py_BuildValue("s",_ptemp); |
2371 | return _resultobj; | |
2372 | } | |
2373 | ||
8ab979d7 | 2374 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2375 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2376 | PyObject * _resultobj; |
2377 | wxWindow * _arg0; | |
2378 | wxString * _arg1; | |
2379 | int * _arg2; | |
2380 | int temp; | |
2381 | int * _arg3; | |
2382 | int temp0; | |
1d99702e | 2383 | PyObject * _argo0 = 0; |
8ab979d7 | 2384 | PyObject * _obj1 = 0; |
efc5f224 | 2385 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2386 | |
2387 | self = self; | |
2388 | { | |
2389 | _arg2 = &temp; | |
2390 | } | |
2391 | { | |
2392 | _arg3 = &temp0; | |
2393 | } | |
efc5f224 | 2394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 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")) { | |
8ab979d7 RD |
2399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2400 | return NULL; | |
2401 | } | |
2402 | } | |
2403 | { | |
185d7c3e RD |
2404 | #if PYTHON_API_VERSION >= 1009 |
2405 | char* tmpPtr; int tmpSize; | |
2406 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2407 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2408 | return NULL; |
2409 | } | |
2410 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2411 | return NULL; | |
2412 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2413 | #else | |
8ab979d7 RD |
2414 | if (!PyString_Check(_obj1)) { |
2415 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2416 | return NULL; | |
2417 | } | |
185d7c3e RD |
2418 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2419 | #endif | |
8ab979d7 | 2420 | } |
cf694132 RD |
2421 | { |
2422 | wxPy_BEGIN_ALLOW_THREADS; | |
2423 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
2424 | ||
2425 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2426 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2427 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2428 | _resultobj = Py_None; |
2429 | { | |
2430 | PyObject *o; | |
2431 | o = PyInt_FromLong((long) (*_arg2)); | |
2432 | _resultobj = t_output_helper(_resultobj, o); | |
2433 | } | |
2434 | { | |
2435 | PyObject *o; | |
2436 | o = PyInt_FromLong((long) (*_arg3)); | |
2437 | _resultobj = t_output_helper(_resultobj, o); | |
2438 | } | |
2439 | { | |
2440 | if (_obj1) | |
2441 | delete _arg1; | |
2442 | } | |
2443 | return _resultobj; | |
2444 | } | |
2445 | ||
af309447 | 2446 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2447 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2448 | PyObject * _resultobj; |
2449 | wxWindow * _arg0; | |
2450 | wxString * _arg1; | |
2451 | int * _arg2; | |
2452 | int temp; | |
2453 | int * _arg3; | |
2454 | int temp0; | |
2455 | int * _arg4; | |
2456 | int temp1; | |
2457 | int * _arg5; | |
2458 | int temp2; | |
1d99702e RD |
2459 | wxFont * _arg6 = (wxFont *) NULL; |
2460 | PyObject * _argo0 = 0; | |
af309447 | 2461 | PyObject * _obj1 = 0; |
1d99702e | 2462 | PyObject * _argo6 = 0; |
efc5f224 | 2463 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2464 | |
2465 | self = self; | |
2466 | { | |
2467 | _arg2 = &temp; | |
2468 | } | |
2469 | { | |
2470 | _arg3 = &temp0; | |
2471 | } | |
2472 | { | |
2473 | _arg4 = &temp1; | |
2474 | } | |
2475 | { | |
2476 | _arg5 = &temp2; | |
2477 | } | |
efc5f224 | 2478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2479 | return NULL; |
1d99702e RD |
2480 | if (_argo0) { |
2481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2484 | return NULL; | |
2485 | } | |
2486 | } | |
2487 | { | |
185d7c3e RD |
2488 | #if PYTHON_API_VERSION >= 1009 |
2489 | char* tmpPtr; int tmpSize; | |
2490 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2491 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2492 | return NULL; |
2493 | } | |
2494 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2495 | return NULL; | |
2496 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2497 | #else | |
af309447 RD |
2498 | if (!PyString_Check(_obj1)) { |
2499 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2500 | return NULL; | |
2501 | } | |
185d7c3e RD |
2502 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2503 | #endif | |
af309447 | 2504 | } |
1d99702e RD |
2505 | if (_argo6) { |
2506 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2507 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2509 | return NULL; | |
2510 | } | |
2511 | } | |
cf694132 RD |
2512 | { |
2513 | wxPy_BEGIN_ALLOW_THREADS; | |
2514 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2515 | ||
2516 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2517 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2518 | } Py_INCREF(Py_None); |
af309447 RD |
2519 | _resultobj = Py_None; |
2520 | { | |
2521 | PyObject *o; | |
2522 | o = PyInt_FromLong((long) (*_arg2)); | |
2523 | _resultobj = t_output_helper(_resultobj, o); | |
2524 | } | |
2525 | { | |
2526 | PyObject *o; | |
2527 | o = PyInt_FromLong((long) (*_arg3)); | |
2528 | _resultobj = t_output_helper(_resultobj, o); | |
2529 | } | |
2530 | { | |
2531 | PyObject *o; | |
2532 | o = PyInt_FromLong((long) (*_arg4)); | |
2533 | _resultobj = t_output_helper(_resultobj, o); | |
2534 | } | |
2535 | { | |
2536 | PyObject *o; | |
2537 | o = PyInt_FromLong((long) (*_arg5)); | |
2538 | _resultobj = t_output_helper(_resultobj, o); | |
2539 | } | |
2540 | { | |
2541 | if (_obj1) | |
2542 | delete _arg1; | |
2543 | } | |
2544 | return _resultobj; | |
2545 | } | |
2546 | ||
8ab979d7 | 2547 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2548 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2549 | PyObject * _resultobj; |
2550 | wxString * _result; | |
2551 | wxWindow * _arg0; | |
1d99702e | 2552 | PyObject * _argo0 = 0; |
efc5f224 | 2553 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2554 | |
2555 | self = self; | |
efc5f224 | 2556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2557 | return NULL; |
1d99702e RD |
2558 | if (_argo0) { |
2559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2562 | return NULL; | |
2563 | } | |
2564 | } | |
8ab979d7 | 2565 | { |
cf694132 RD |
2566 | wxPy_BEGIN_ALLOW_THREADS; |
2567 | _result = new wxString (wxWindow_GetTitle(_arg0)); | |
2568 | ||
2569 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2570 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2571 | }{ |
eec92d76 | 2572 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2573 | } |
2574 | { | |
2575 | delete _result; | |
2576 | } | |
2577 | return _resultobj; | |
2578 | } | |
2579 | ||
8bf5d46e | 2580 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2581 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2582 | PyObject * _resultobj; |
2583 | wxRegion * _result; | |
2584 | wxWindow * _arg0; | |
1d99702e | 2585 | PyObject * _argo0 = 0; |
efc5f224 | 2586 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2587 | char _ptemp[128]; |
2588 | ||
2589 | self = self; | |
efc5f224 | 2590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2591 | return NULL; |
1d99702e RD |
2592 | if (_argo0) { |
2593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2596 | return NULL; | |
2597 | } | |
2598 | } | |
2599 | { | |
2600 | wxPy_BEGIN_ALLOW_THREADS; | |
2601 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); | |
2602 | ||
2603 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2604 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
2605 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); |
2606 | _resultobj = Py_BuildValue("s",_ptemp); | |
2607 | return _resultobj; | |
2608 | } | |
2609 | ||
8ab979d7 | 2610 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2611 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2612 | PyObject * _resultobj; |
2613 | long _result; | |
2614 | wxWindow * _arg0; | |
1d99702e | 2615 | PyObject * _argo0 = 0; |
efc5f224 | 2616 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2617 | |
2618 | self = self; | |
efc5f224 | 2619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2620 | return NULL; |
1d99702e RD |
2621 | if (_argo0) { |
2622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2625 | return NULL; | |
2626 | } | |
2627 | } | |
cf694132 RD |
2628 | { |
2629 | wxPy_BEGIN_ALLOW_THREADS; | |
2630 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); | |
2631 | ||
2632 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2633 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2634 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2635 | return _resultobj; |
2636 | } | |
2637 | ||
f6bcfd97 BP |
2638 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2639 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2640 | PyObject * _resultobj; | |
2641 | wxWindow * _arg0; | |
2642 | long _arg1; | |
2643 | PyObject * _argo0 = 0; | |
2644 | char *_kwnames[] = { "self","style", NULL }; | |
2645 | ||
2646 | self = self; | |
2647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2648 | return NULL; | |
2649 | if (_argo0) { | |
2650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2653 | return NULL; | |
2654 | } | |
2655 | } | |
2656 | { | |
2657 | wxPy_BEGIN_ALLOW_THREADS; | |
2658 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); | |
2659 | ||
2660 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2661 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2662 | } Py_INCREF(Py_None); |
2663 | _resultobj = Py_None; | |
2664 | return _resultobj; | |
2665 | } | |
2666 | ||
2667 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2668 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2669 | PyObject * _resultobj; | |
2670 | wxWindow * _arg0; | |
2671 | long _arg1; | |
2672 | PyObject * _argo0 = 0; | |
2673 | char *_kwnames[] = { "self","style", NULL }; | |
2674 | ||
2675 | self = self; | |
2676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2677 | return NULL; | |
2678 | if (_argo0) { | |
2679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2682 | return NULL; | |
2683 | } | |
2684 | } | |
2685 | { | |
2686 | wxPy_BEGIN_ALLOW_THREADS; | |
2687 | wxWindow_SetWindowStyle(_arg0,_arg1); | |
2688 | ||
2689 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2690 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2691 | } Py_INCREF(Py_None); |
2692 | _resultobj = Py_None; | |
2693 | return _resultobj; | |
2694 | } | |
2695 | ||
bb0054cd | 2696 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2697 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2698 | PyObject * _resultobj; |
2699 | bool _result; | |
2700 | wxWindow * _arg0; | |
1d99702e | 2701 | PyObject * _argo0 = 0; |
efc5f224 | 2702 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2703 | |
2704 | self = self; | |
efc5f224 | 2705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2706 | return NULL; |
1d99702e RD |
2707 | if (_argo0) { |
2708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2711 | return NULL; | |
2712 | } | |
2713 | } | |
2714 | { | |
2715 | wxPy_BEGIN_ALLOW_THREADS; | |
2716 | _result = (bool )wxWindow_Hide(_arg0); | |
2717 | ||
2718 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2719 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2720 | } _resultobj = Py_BuildValue("i",_result); |
2721 | return _resultobj; | |
2722 | } | |
2723 | ||
8ab979d7 | 2724 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2725 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2726 | PyObject * _resultobj; |
2727 | wxWindow * _arg0; | |
1d99702e | 2728 | PyObject * _argo0 = 0; |
efc5f224 | 2729 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2730 | |
2731 | self = self; | |
efc5f224 | 2732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2733 | return NULL; |
1d99702e RD |
2734 | if (_argo0) { |
2735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2738 | return NULL; | |
2739 | } | |
2740 | } | |
cf694132 RD |
2741 | { |
2742 | wxPy_BEGIN_ALLOW_THREADS; | |
2743 | wxWindow_InitDialog(_arg0); | |
2744 | ||
2745 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2746 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2747 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2748 | _resultobj = Py_None; |
2749 | return _resultobj; | |
2750 | } | |
2751 | ||
2752 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 2753 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2754 | PyObject * _resultobj; |
2755 | bool _result; | |
2756 | wxWindow * _arg0; | |
1d99702e | 2757 | PyObject * _argo0 = 0; |
efc5f224 | 2758 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2759 | |
2760 | self = self; | |
efc5f224 | 2761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 2762 | return NULL; |
1d99702e RD |
2763 | if (_argo0) { |
2764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2767 | return NULL; | |
2768 | } | |
2769 | } | |
cf694132 RD |
2770 | { |
2771 | wxPy_BEGIN_ALLOW_THREADS; | |
2772 | _result = (bool )wxWindow_IsEnabled(_arg0); | |
2773 | ||
2774 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2775 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2776 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2777 | return _resultobj; |
2778 | } | |
2779 | ||
1b55cabf RD |
2780 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2781 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2782 | PyObject * _resultobj; | |
2783 | bool _result; | |
2784 | wxWindow * _arg0; | |
2785 | int _arg1; | |
2786 | int _arg2; | |
2787 | int _arg3 = (int ) 0; | |
2788 | int _arg4 = (int ) 0; | |
2789 | PyObject * _argo0 = 0; | |
2790 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2791 | ||
2792 | self = self; | |
2793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2794 | return NULL; | |
2795 | if (_argo0) { | |
2796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2799 | return NULL; | |
2800 | } | |
2801 | } | |
2802 | { | |
2803 | wxPy_BEGIN_ALLOW_THREADS; | |
2804 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2805 | ||
2806 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2807 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2808 | } _resultobj = Py_BuildValue("i",_result); |
2809 | return _resultobj; | |
2810 | } | |
2811 | ||
2812 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2813 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2814 | PyObject * _resultobj; | |
2815 | bool _result; | |
2816 | wxWindow * _arg0; | |
2817 | wxPoint * _arg1; | |
2818 | PyObject * _argo0 = 0; | |
2819 | wxPoint temp; | |
2820 | PyObject * _obj1 = 0; | |
2821 | char *_kwnames[] = { "self","pt", NULL }; | |
2822 | ||
2823 | self = self; | |
2824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2825 | return NULL; | |
2826 | if (_argo0) { | |
2827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2830 | return NULL; | |
2831 | } | |
2832 | } | |
2833 | { | |
2834 | _arg1 = &temp; | |
2835 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2836 | return NULL; | |
2837 | } | |
2838 | { | |
2839 | wxPy_BEGIN_ALLOW_THREADS; | |
2840 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); | |
2841 | ||
2842 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2843 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2844 | } _resultobj = Py_BuildValue("i",_result); |
2845 | return _resultobj; | |
2846 | } | |
2847 | ||
2848 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2849 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2850 | PyObject * _resultobj; | |
2851 | bool _result; | |
2852 | wxWindow * _arg0; | |
2853 | wxRect * _arg1; | |
2854 | PyObject * _argo0 = 0; | |
2855 | wxRect temp; | |
2856 | PyObject * _obj1 = 0; | |
2857 | char *_kwnames[] = { "self","rect", NULL }; | |
2858 | ||
2859 | self = self; | |
2860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
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_IsExposedRect. Expected _wxWindow_p."); | |
2866 | return NULL; | |
2867 | } | |
2868 | } | |
2869 | { | |
2870 | _arg1 = &temp; | |
2871 | if (! wxRect_helper(_obj1, &_arg1)) | |
2872 | return NULL; | |
2873 | } | |
2874 | { | |
2875 | wxPy_BEGIN_ALLOW_THREADS; | |
2876 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); | |
2877 | ||
2878 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2879 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2880 | } _resultobj = Py_BuildValue("i",_result); |
2881 | return _resultobj; | |
2882 | } | |
2883 | ||
8ab979d7 | 2884 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 2885 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2886 | PyObject * _resultobj; |
2887 | bool _result; | |
2888 | wxWindow * _arg0; | |
1d99702e | 2889 | PyObject * _argo0 = 0; |
efc5f224 | 2890 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2891 | |
2892 | self = self; | |
efc5f224 | 2893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 2894 | return NULL; |
1d99702e RD |
2895 | if (_argo0) { |
2896 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2897 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
2899 | return NULL; | |
2900 | } | |
2901 | } | |
cf694132 RD |
2902 | { |
2903 | wxPy_BEGIN_ALLOW_THREADS; | |
2904 | _result = (bool )wxWindow_IsRetained(_arg0); | |
2905 | ||
2906 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2907 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2908 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2909 | return _resultobj; |
2910 | } | |
2911 | ||
2912 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 2913 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2914 | PyObject * _resultobj; |
2915 | bool _result; | |
2916 | wxWindow * _arg0; | |
1d99702e | 2917 | PyObject * _argo0 = 0; |
efc5f224 | 2918 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2919 | |
2920 | self = self; | |
efc5f224 | 2921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 2922 | return NULL; |
1d99702e RD |
2923 | if (_argo0) { |
2924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
2927 | return NULL; | |
2928 | } | |
2929 | } | |
cf694132 RD |
2930 | { |
2931 | wxPy_BEGIN_ALLOW_THREADS; | |
2932 | _result = (bool )wxWindow_IsShown(_arg0); | |
2933 | ||
2934 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2935 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2936 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2937 | return _resultobj; |
2938 | } | |
2939 | ||
bb0054cd | 2940 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 2941 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2942 | PyObject * _resultobj; |
2943 | bool _result; | |
2944 | wxWindow * _arg0; | |
1d99702e | 2945 | PyObject * _argo0 = 0; |
efc5f224 | 2946 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2947 | |
2948 | self = self; | |
efc5f224 | 2949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 2950 | return NULL; |
1d99702e RD |
2951 | if (_argo0) { |
2952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
2955 | return NULL; | |
2956 | } | |
2957 | } | |
2958 | { | |
2959 | wxPy_BEGIN_ALLOW_THREADS; | |
2960 | _result = (bool )wxWindow_IsTopLevel(_arg0); | |
2961 | ||
2962 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2963 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2964 | } _resultobj = Py_BuildValue("i",_result); |
2965 | return _resultobj; | |
2966 | } | |
2967 | ||
8ab979d7 | 2968 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 2969 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2970 | PyObject * _resultobj; |
2971 | wxWindow * _arg0; | |
1d99702e | 2972 | PyObject * _argo0 = 0; |
efc5f224 | 2973 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2974 | |
2975 | self = self; | |
efc5f224 | 2976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 2977 | return NULL; |
1d99702e RD |
2978 | if (_argo0) { |
2979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
2982 | return NULL; | |
2983 | } | |
2984 | } | |
cf694132 RD |
2985 | { |
2986 | wxPy_BEGIN_ALLOW_THREADS; | |
2987 | wxWindow_Layout(_arg0); | |
2988 | ||
2989 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2990 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2991 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2992 | _resultobj = Py_None; |
2993 | return _resultobj; | |
2994 | } | |
2995 | ||
2996 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 2997 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2998 | PyObject * _resultobj; |
2999 | bool _result; | |
3000 | wxWindow * _arg0; | |
3001 | wxWindow * _arg1; | |
3002 | wxString * _arg2; | |
1d99702e RD |
3003 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
3004 | PyObject * _argo0 = 0; | |
3005 | PyObject * _argo1 = 0; | |
8ab979d7 | 3006 | PyObject * _obj2 = 0; |
1d99702e | 3007 | PyObject * _argo3 = 0; |
efc5f224 | 3008 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
8ab979d7 RD |
3009 | |
3010 | self = self; | |
efc5f224 | 3011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
8ab979d7 | 3012 | return NULL; |
1d99702e RD |
3013 | if (_argo0) { |
3014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3017 | return NULL; | |
3018 | } | |
3019 | } | |
1d99702e RD |
3020 | if (_argo1) { |
3021 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3022 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
3023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3024 | return NULL; | |
3025 | } | |
3026 | } | |
3027 | { | |
185d7c3e RD |
3028 | #if PYTHON_API_VERSION >= 1009 |
3029 | char* tmpPtr; int tmpSize; | |
3030 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 3031 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
3032 | return NULL; |
3033 | } | |
3034 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3035 | return NULL; | |
3036 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3037 | #else | |
8ab979d7 RD |
3038 | if (!PyString_Check(_obj2)) { |
3039 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3040 | return NULL; | |
3041 | } | |
185d7c3e RD |
3042 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3043 | #endif | |
8ab979d7 | 3044 | } |
1d99702e RD |
3045 | if (_argo3) { |
3046 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3047 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
8ab979d7 RD |
3048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
3049 | return NULL; | |
3050 | } | |
3051 | } | |
cf694132 RD |
3052 | { |
3053 | wxPy_BEGIN_ALLOW_THREADS; | |
3054 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); | |
3055 | ||
3056 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3057 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3058 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3059 | { |
3060 | if (_obj2) | |
3061 | delete _arg2; | |
3062 | } | |
3063 | return _resultobj; | |
3064 | } | |
3065 | ||
3066 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
efc5f224 | 3067 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3068 | PyObject * _resultobj; |
3069 | wxWindow * _arg0; | |
1d99702e | 3070 | PyObject * _argo0 = 0; |
efc5f224 | 3071 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3072 | |
3073 | self = self; | |
efc5f224 | 3074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3075 | return NULL; |
1d99702e RD |
3076 | if (_argo0) { |
3077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3080 | return NULL; | |
3081 | } | |
3082 | } | |
cf694132 RD |
3083 | { |
3084 | wxPy_BEGIN_ALLOW_THREADS; | |
3085 | wxWindow_Lower(_arg0); | |
3086 | ||
3087 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3088 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3089 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3090 | _resultobj = Py_None; |
3091 | return _resultobj; | |
3092 | } | |
3093 | ||
3094 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3095 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3096 | PyObject * _resultobj; |
3097 | wxWindow * _arg0; | |
3098 | bool _arg1; | |
1d99702e | 3099 | PyObject * _argo0 = 0; |
8ab979d7 | 3100 | int tempbool1; |
efc5f224 | 3101 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3102 | |
3103 | self = self; | |
efc5f224 | 3104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3105 | return NULL; |
1d99702e RD |
3106 | if (_argo0) { |
3107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3110 | return NULL; | |
3111 | } | |
3112 | } | |
3113 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3114 | { |
3115 | wxPy_BEGIN_ALLOW_THREADS; | |
3116 | wxWindow_MakeModal(_arg0,_arg1); | |
3117 | ||
3118 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3119 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3120 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3121 | _resultobj = Py_None; |
3122 | return _resultobj; | |
3123 | } | |
3124 | ||
af309447 | 3125 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3126 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3127 | PyObject * _resultobj; |
3128 | wxWindow * _arg0; | |
3129 | int _arg1; | |
3130 | int _arg2; | |
1d99702e | 3131 | PyObject * _argo0 = 0; |
efc5f224 | 3132 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3133 | |
3134 | self = self; | |
efc5f224 | 3135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 3136 | return NULL; |
1d99702e RD |
3137 | if (_argo0) { |
3138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3141 | return NULL; | |
3142 | } | |
3143 | } | |
cf694132 RD |
3144 | { |
3145 | wxPy_BEGIN_ALLOW_THREADS; | |
3146 | wxWindow_MoveXY(_arg0,_arg1,_arg2); | |
3147 | ||
3148 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3149 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3150 | } Py_INCREF(Py_None); |
af309447 RD |
3151 | _resultobj = Py_None; |
3152 | return _resultobj; | |
3153 | } | |
3154 | ||
3155 | #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
efc5f224 | 3156 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3157 | PyObject * _resultobj; |
3158 | wxWindow * _arg0; | |
3159 | wxPoint * _arg1; | |
1d99702e | 3160 | PyObject * _argo0 = 0; |
2f90df85 RD |
3161 | wxPoint temp; |
3162 | PyObject * _obj1 = 0; | |
efc5f224 | 3163 | char *_kwnames[] = { "self","point", NULL }; |
af309447 RD |
3164 | |
3165 | self = self; | |
2f90df85 | 3166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3167 | return NULL; |
1d99702e RD |
3168 | if (_argo0) { |
3169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3172 | return NULL; | |
3173 | } | |
3174 | } | |
2f90df85 RD |
3175 | { |
3176 | _arg1 = &temp; | |
3177 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3178 | return NULL; |
2f90df85 | 3179 | } |
cf694132 RD |
3180 | { |
3181 | wxPy_BEGIN_ALLOW_THREADS; | |
3182 | wxWindow_Move(_arg0,*_arg1); | |
3183 | ||
3184 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3185 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3186 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3187 | _resultobj = Py_None; |
3188 | return _resultobj; | |
3189 | } | |
3190 | ||
1afc06c2 RD |
3191 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3192 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3193 | PyObject * _resultobj; | |
3194 | wxEvtHandler * _result; | |
3195 | wxWindow * _arg0; | |
3196 | bool _arg1 = (bool ) FALSE; | |
3197 | PyObject * _argo0 = 0; | |
3198 | int tempbool1 = (int) FALSE; | |
3199 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
1afc06c2 RD |
3200 | |
3201 | self = self; | |
3202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3203 | return NULL; | |
3204 | if (_argo0) { | |
3205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3208 | return NULL; | |
3209 | } | |
3210 | } | |
3211 | _arg1 = (bool ) tempbool1; | |
3212 | { | |
3213 | wxPy_BEGIN_ALLOW_THREADS; | |
3214 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); | |
3215 | ||
3216 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3217 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 3218 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
3219 | return _resultobj; |
3220 | } | |
3221 | ||
3222 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3223 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3224 | PyObject * _resultobj; | |
3225 | wxWindow * _arg0; | |
3226 | wxEvtHandler * _arg1; | |
3227 | PyObject * _argo0 = 0; | |
3228 | PyObject * _argo1 = 0; | |
3229 | char *_kwnames[] = { "self","handler", NULL }; | |
3230 | ||
3231 | self = self; | |
3232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3233 | return NULL; | |
3234 | if (_argo0) { | |
3235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3238 | return NULL; | |
3239 | } | |
3240 | } | |
3241 | if (_argo1) { | |
3242 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3243 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3245 | return NULL; | |
3246 | } | |
3247 | } | |
3248 | { | |
3249 | wxPy_BEGIN_ALLOW_THREADS; | |
3250 | wxWindow_PushEventHandler(_arg0,_arg1); | |
3251 | ||
3252 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3253 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
3254 | } Py_INCREF(Py_None); |
3255 | _resultobj = Py_None; | |
3256 | return _resultobj; | |
3257 | } | |
3258 | ||
8bf5d46e | 3259 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3260 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3261 | PyObject * _resultobj; |
3262 | bool _result; | |
3263 | wxWindow * _arg0; | |
3264 | wxMenu * _arg1; | |
3265 | int _arg2; | |
3266 | int _arg3; | |
1d99702e RD |
3267 | PyObject * _argo0 = 0; |
3268 | PyObject * _argo1 = 0; | |
efc5f224 | 3269 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3270 | |
3271 | self = self; | |
efc5f224 | 3272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3273 | return NULL; |
1d99702e RD |
3274 | if (_argo0) { |
3275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3278 | return NULL; | |
3279 | } | |
3280 | } | |
1d99702e RD |
3281 | if (_argo1) { |
3282 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3283 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3285 | return NULL; | |
3286 | } | |
3287 | } | |
3288 | { | |
3289 | wxPy_BEGIN_ALLOW_THREADS; | |
3290 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); | |
3291 | ||
3292 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3293 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
3294 | } _resultobj = Py_BuildValue("i",_result); |
3295 | return _resultobj; | |
3296 | } | |
3297 | ||
3298 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3299 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3300 | PyObject * _resultobj; |
3301 | bool _result; | |
3302 | wxWindow * _arg0; | |
3303 | wxMenu * _arg1; | |
3304 | wxPoint * _arg2; | |
1d99702e RD |
3305 | PyObject * _argo0 = 0; |
3306 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3307 | wxPoint temp; |
3308 | PyObject * _obj2 = 0; | |
efc5f224 | 3309 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3310 | |
3311 | self = self; | |
2f90df85 | 3312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
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_PopupMenu. Expected _wxWindow_p."); |
3318 | return NULL; | |
3319 | } | |
3320 | } | |
1d99702e RD |
3321 | if (_argo1) { |
3322 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3323 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3325 | return NULL; | |
3326 | } | |
3327 | } | |
2f90df85 RD |
3328 | { |
3329 | _arg2 = &temp; | |
3330 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3331 | return NULL; |
2f90df85 | 3332 | } |
cf694132 RD |
3333 | { |
3334 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 3335 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 RD |
3336 | |
3337 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3338 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3339 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3340 | return _resultobj; |
3341 | } | |
3342 | ||
3343 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3344 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3345 | PyObject * _resultobj; |
3346 | wxWindow * _arg0; | |
1d99702e | 3347 | PyObject * _argo0 = 0; |
efc5f224 | 3348 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3349 | |
3350 | self = self; | |
efc5f224 | 3351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3352 | return NULL; |
1d99702e RD |
3353 | if (_argo0) { |
3354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3357 | return NULL; | |
3358 | } | |
3359 | } | |
cf694132 RD |
3360 | { |
3361 | wxPy_BEGIN_ALLOW_THREADS; | |
3362 | wxWindow_Raise(_arg0); | |
3363 | ||
3364 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3365 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3366 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3367 | _resultobj = Py_None; |
3368 | return _resultobj; | |
3369 | } | |
3370 | ||
3371 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3372 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3373 | PyObject * _resultobj; |
3374 | wxWindow * _arg0; | |
1d99702e RD |
3375 | bool _arg1 = (bool ) TRUE; |
3376 | wxRect * _arg2 = (wxRect *) NULL; | |
3377 | PyObject * _argo0 = 0; | |
3378 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3379 | wxRect temp; |
3380 | PyObject * _obj2 = 0; | |
efc5f224 | 3381 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3382 | |
3383 | self = self; | |
2f90df85 | 3384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3385 | return NULL; |
1d99702e RD |
3386 | if (_argo0) { |
3387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3390 | return NULL; | |
3391 | } | |
3392 | } | |
3393 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3394 | if (_obj2) |
3395 | { | |
3396 | _arg2 = &temp; | |
3397 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3398 | return NULL; |
2f90df85 | 3399 | } |
cf694132 RD |
3400 | { |
3401 | wxPy_BEGIN_ALLOW_THREADS; | |
3402 | wxWindow_Refresh(_arg0,_arg1,_arg2); | |
3403 | ||
3404 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3405 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3406 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3407 | _resultobj = Py_None; |
3408 | return _resultobj; | |
3409 | } | |
3410 | ||
3411 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
efc5f224 | 3412 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3413 | PyObject * _resultobj; |
3414 | wxWindow * _arg0; | |
1d99702e | 3415 | PyObject * _argo0 = 0; |
efc5f224 | 3416 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3417 | |
3418 | self = self; | |
efc5f224 | 3419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
8ab979d7 | 3420 | return NULL; |
1d99702e RD |
3421 | if (_argo0) { |
3422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); |
3425 | return NULL; | |
3426 | } | |
3427 | } | |
cf694132 RD |
3428 | { |
3429 | wxPy_BEGIN_ALLOW_THREADS; | |
3430 | wxWindow_ReleaseMouse(_arg0); | |
3431 | ||
3432 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3433 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3434 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3435 | _resultobj = Py_None; |
3436 | return _resultobj; | |
3437 | } | |
3438 | ||
b7e72427 RD |
3439 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3440 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3441 | PyObject * _resultobj; | |
3442 | wxWindow * _arg0; | |
3443 | wxWindow * _arg1; | |
3444 | PyObject * _argo0 = 0; | |
3445 | PyObject * _argo1 = 0; | |
3446 | char *_kwnames[] = { "self","child", NULL }; | |
3447 | ||
3448 | self = self; | |
3449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3450 | return NULL; | |
3451 | if (_argo0) { | |
3452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3455 | return NULL; | |
3456 | } | |
3457 | } | |
3458 | if (_argo1) { | |
3459 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3460 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3462 | return NULL; | |
3463 | } | |
3464 | } | |
3465 | { | |
3466 | wxPy_BEGIN_ALLOW_THREADS; | |
3467 | wxWindow_RemoveChild(_arg0,_arg1); | |
3468 | ||
3469 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3470 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
3471 | } Py_INCREF(Py_None); |
3472 | _resultobj = Py_None; | |
3473 | return _resultobj; | |
3474 | } | |
3475 | ||
bb0054cd | 3476 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3477 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3478 | PyObject * _resultobj; |
3479 | bool _result; | |
3480 | wxWindow * _arg0; | |
3481 | wxWindow * _arg1; | |
1d99702e RD |
3482 | PyObject * _argo0 = 0; |
3483 | PyObject * _argo1 = 0; | |
efc5f224 | 3484 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3485 | |
3486 | self = self; | |
efc5f224 | 3487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3488 | return NULL; |
1d99702e RD |
3489 | if (_argo0) { |
3490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3493 | return NULL; | |
3494 | } | |
3495 | } | |
1d99702e RD |
3496 | if (_argo1) { |
3497 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3498 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3500 | return NULL; | |
3501 | } | |
3502 | } | |
3503 | { | |
3504 | wxPy_BEGIN_ALLOW_THREADS; | |
3505 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); | |
3506 | ||
3507 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3508 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3509 | } _resultobj = Py_BuildValue("i",_result); |
3510 | return _resultobj; | |
3511 | } | |
3512 | ||
af309447 | 3513 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3514 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3515 | PyObject * _resultobj; |
3516 | wxWindow * _arg0; | |
3517 | int * _arg1; | |
3518 | int * _arg2; | |
1d99702e | 3519 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3520 | int temp; |
3521 | PyObject * _obj1 = 0; | |
3522 | int temp0; | |
3523 | PyObject * _obj2 = 0; | |
efc5f224 | 3524 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3525 | |
3526 | self = self; | |
efc5f224 | 3527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3528 | return NULL; |
1d99702e RD |
3529 | if (_argo0) { |
3530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3533 | return NULL; |
3534 | } | |
3535 | } | |
3536 | { | |
3537 | temp = (int) PyInt_AsLong(_obj1); | |
3538 | _arg1 = &temp; | |
3539 | } | |
3540 | { | |
3541 | temp0 = (int) PyInt_AsLong(_obj2); | |
3542 | _arg2 = &temp0; | |
3543 | } | |
cf694132 RD |
3544 | { |
3545 | wxPy_BEGIN_ALLOW_THREADS; | |
3546 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); | |
3547 | ||
3548 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3549 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3550 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3551 | _resultobj = Py_None; |
3552 | { | |
3553 | PyObject *o; | |
3554 | o = PyInt_FromLong((long) (*_arg1)); | |
3555 | _resultobj = t_output_helper(_resultobj, o); | |
3556 | } | |
3557 | { | |
3558 | PyObject *o; | |
3559 | o = PyInt_FromLong((long) (*_arg2)); | |
3560 | _resultobj = t_output_helper(_resultobj, o); | |
3561 | } | |
3562 | return _resultobj; | |
3563 | } | |
3564 | ||
af309447 | 3565 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3566 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3567 | PyObject * _resultobj; |
3568 | wxPoint * _result; | |
3569 | wxWindow * _arg0; | |
3570 | wxPoint * _arg1; | |
1d99702e | 3571 | PyObject * _argo0 = 0; |
2f90df85 RD |
3572 | wxPoint temp; |
3573 | PyObject * _obj1 = 0; | |
efc5f224 | 3574 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3575 | char _ptemp[128]; |
3576 | ||
3577 | self = self; | |
2f90df85 | 3578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3579 | return NULL; |
1d99702e RD |
3580 | if (_argo0) { |
3581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3584 | return NULL; | |
3585 | } | |
3586 | } | |
2f90df85 RD |
3587 | { |
3588 | _arg1 = &temp; | |
3589 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3590 | return NULL; |
2f90df85 | 3591 | } |
cf694132 RD |
3592 | { |
3593 | wxPy_BEGIN_ALLOW_THREADS; | |
3594 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); | |
3595 | ||
3596 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3597 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3598 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
3599 | _resultobj = Py_BuildValue("s",_ptemp); |
3600 | return _resultobj; | |
3601 | } | |
3602 | ||
8ab979d7 | 3603 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3604 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3605 | PyObject * _resultobj; |
3606 | wxWindow * _arg0; | |
3607 | int _arg1; | |
3608 | int _arg2; | |
1d99702e RD |
3609 | wxRect * _arg3 = (wxRect *) NULL; |
3610 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3611 | wxRect temp; |
3612 | PyObject * _obj3 = 0; | |
efc5f224 | 3613 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3614 | |
3615 | self = self; | |
2f90df85 | 3616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3617 | return NULL; |
1d99702e RD |
3618 | if (_argo0) { |
3619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3622 | return NULL; | |
3623 | } | |
3624 | } | |
2f90df85 RD |
3625 | if (_obj3) |
3626 | { | |
3627 | _arg3 = &temp; | |
3628 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3629 | return NULL; |
2f90df85 | 3630 | } |
cf694132 RD |
3631 | { |
3632 | wxPy_BEGIN_ALLOW_THREADS; | |
3633 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); | |
3634 | ||
3635 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3636 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3637 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3638 | _resultobj = Py_None; |
3639 | return _resultobj; | |
3640 | } | |
3641 | ||
b8b8dda7 | 3642 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
efc5f224 | 3643 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
3644 | PyObject * _resultobj; |
3645 | wxWindow * _arg0; | |
3646 | wxAcceleratorTable * _arg1; | |
1d99702e RD |
3647 | PyObject * _argo0 = 0; |
3648 | PyObject * _argo1 = 0; | |
efc5f224 | 3649 | char *_kwnames[] = { "self","accel", NULL }; |
b8b8dda7 RD |
3650 | |
3651 | self = self; | |
efc5f224 | 3652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 3653 | return NULL; |
1d99702e RD |
3654 | if (_argo0) { |
3655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
3657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); |
3658 | return NULL; | |
3659 | } | |
3660 | } | |
1d99702e RD |
3661 | if (_argo1) { |
3662 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3663 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
b8b8dda7 RD |
3664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); |
3665 | return NULL; | |
3666 | } | |
3667 | } | |
cf694132 RD |
3668 | { |
3669 | wxPy_BEGIN_ALLOW_THREADS; | |
3670 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); | |
3671 | ||
3672 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3673 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3674 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
3675 | _resultobj = Py_None; |
3676 | return _resultobj; | |
3677 | } | |
3678 | ||
8ab979d7 | 3679 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) |
efc5f224 | 3680 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3681 | PyObject * _resultobj; |
3682 | wxWindow * _arg0; | |
3683 | bool _arg1; | |
1d99702e | 3684 | PyObject * _argo0 = 0; |
8ab979d7 | 3685 | int tempbool1; |
efc5f224 | 3686 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3687 | |
3688 | self = self; | |
efc5f224 | 3689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3690 | return NULL; |
1d99702e RD |
3691 | if (_argo0) { |
3692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3695 | return NULL; | |
3696 | } | |
3697 | } | |
3698 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3699 | { |
3700 | wxPy_BEGIN_ALLOW_THREADS; | |
3701 | wxWindow_SetAutoLayout(_arg0,_arg1); | |
3702 | ||
3703 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3704 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3705 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3706 | _resultobj = Py_None; |
3707 | return _resultobj; | |
3708 | } | |
3709 | ||
9d8bd15f RD |
3710 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3711 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3712 | PyObject * _resultobj; | |
3713 | bool _result; | |
3714 | wxWindow * _arg0; | |
3715 | PyObject * _argo0 = 0; | |
3716 | char *_kwnames[] = { "self", NULL }; | |
3717 | ||
3718 | self = self; | |
3719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3720 | return NULL; | |
3721 | if (_argo0) { | |
3722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3725 | return NULL; | |
3726 | } | |
3727 | } | |
3728 | { | |
3729 | wxPy_BEGIN_ALLOW_THREADS; | |
3730 | _result = (bool )wxWindow_GetAutoLayout(_arg0); | |
3731 | ||
3732 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3733 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
3734 | } _resultobj = Py_BuildValue("i",_result); |
3735 | return _resultobj; | |
3736 | } | |
3737 | ||
8ab979d7 | 3738 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3739 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3740 | PyObject * _resultobj; |
3741 | wxWindow * _arg0; | |
3742 | wxColour * _arg1; | |
1d99702e | 3743 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3744 | wxColour temp; |
3745 | PyObject * _obj1 = 0; | |
efc5f224 | 3746 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3747 | |
3748 | self = self; | |
f6bcfd97 | 3749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3750 | return NULL; |
1d99702e RD |
3751 | if (_argo0) { |
3752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3755 | return NULL; | |
3756 | } | |
3757 | } | |
f6bcfd97 BP |
3758 | { |
3759 | _arg1 = &temp; | |
3760 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3761 | return NULL; |
f6bcfd97 | 3762 | } |
cf694132 RD |
3763 | { |
3764 | wxPy_BEGIN_ALLOW_THREADS; | |
3765 | wxWindow_SetBackgroundColour(_arg0,*_arg1); | |
3766 | ||
3767 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3768 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3769 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3770 | _resultobj = Py_None; |
3771 | return _resultobj; | |
3772 | } | |
3773 | ||
3774 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 3775 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3776 | PyObject * _resultobj; |
3777 | wxWindow * _arg0; | |
3778 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
3779 | PyObject * _argo0 = 0; |
3780 | PyObject * _argo1 = 0; | |
efc5f224 | 3781 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
3782 | |
3783 | self = self; | |
efc5f224 | 3784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3785 | return NULL; |
1d99702e RD |
3786 | if (_argo0) { |
3787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3790 | return NULL; | |
3791 | } | |
3792 | } | |
1d99702e RD |
3793 | if (_argo1) { |
3794 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3795 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
3796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3797 | return NULL; | |
3798 | } | |
3799 | } | |
cf694132 RD |
3800 | { |
3801 | wxPy_BEGIN_ALLOW_THREADS; | |
3802 | wxWindow_SetConstraints(_arg0,_arg1); | |
3803 | ||
3804 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3805 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3806 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3807 | _resultobj = Py_None; |
3808 | return _resultobj; | |
3809 | } | |
3810 | ||
2f90df85 RD |
3811 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
3812 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3813 | PyObject * _resultobj; | |
3814 | wxWindow * _arg0; | |
3815 | wxLayoutConstraints * _arg1; | |
3816 | PyObject * _argo0 = 0; | |
3817 | PyObject * _argo1 = 0; | |
3818 | char *_kwnames[] = { "self","constraints", NULL }; | |
3819 | ||
3820 | self = self; | |
3821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3822 | return NULL; | |
3823 | if (_argo0) { | |
3824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3827 | return NULL; | |
3828 | } | |
3829 | } | |
3830 | if (_argo1) { | |
3831 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3832 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3834 | return NULL; | |
3835 | } | |
3836 | } | |
3837 | { | |
3838 | wxPy_BEGIN_ALLOW_THREADS; | |
3839 | wxWindow_UnsetConstraints(_arg0,_arg1); | |
3840 | ||
3841 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3842 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
3843 | } Py_INCREF(Py_None); |
3844 | _resultobj = Py_None; | |
3845 | return _resultobj; | |
3846 | } | |
3847 | ||
8ab979d7 | 3848 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 3849 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3850 | PyObject * _resultobj; |
3851 | wxWindow * _arg0; | |
1d99702e | 3852 | PyObject * _argo0 = 0; |
efc5f224 | 3853 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3854 | |
3855 | self = self; | |
efc5f224 | 3856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 3857 | return NULL; |
1d99702e RD |
3858 | if (_argo0) { |
3859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
3862 | return NULL; | |
3863 | } | |
3864 | } | |
cf694132 RD |
3865 | { |
3866 | wxPy_BEGIN_ALLOW_THREADS; | |
3867 | wxWindow_SetFocus(_arg0); | |
3868 | ||
3869 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3870 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3871 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3872 | _resultobj = Py_None; |
3873 | return _resultobj; | |
3874 | } | |
3875 | ||
2f90df85 RD |
3876 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
3877 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3878 | PyObject * _resultobj; | |
3879 | bool _result; | |
3880 | wxWindow * _arg0; | |
3881 | PyObject * _argo0 = 0; | |
3882 | char *_kwnames[] = { "self", NULL }; | |
3883 | ||
3884 | self = self; | |
3885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3886 | return NULL; | |
3887 | if (_argo0) { | |
3888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3891 | return NULL; | |
3892 | } | |
3893 | } | |
3894 | { | |
3895 | wxPy_BEGIN_ALLOW_THREADS; | |
3896 | _result = (bool )wxWindow_AcceptsFocus(_arg0); | |
3897 | ||
3898 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3899 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
3900 | } _resultobj = Py_BuildValue("i",_result); |
3901 | return _resultobj; | |
3902 | } | |
3903 | ||
8ab979d7 | 3904 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 3905 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3906 | PyObject * _resultobj; |
3907 | wxWindow * _arg0; | |
3908 | wxFont * _arg1; | |
1d99702e RD |
3909 | PyObject * _argo0 = 0; |
3910 | PyObject * _argo1 = 0; | |
efc5f224 | 3911 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
3912 | |
3913 | self = self; | |
efc5f224 | 3914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3915 | return NULL; |
1d99702e RD |
3916 | if (_argo0) { |
3917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
3920 | return NULL; | |
3921 | } | |
3922 | } | |
1d99702e RD |
3923 | if (_argo1) { |
3924 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3925 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
3926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
3927 | return NULL; | |
3928 | } | |
3929 | } | |
cf694132 RD |
3930 | { |
3931 | wxPy_BEGIN_ALLOW_THREADS; | |
3932 | wxWindow_SetFont(_arg0,*_arg1); | |
3933 | ||
3934 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3935 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3936 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3937 | _resultobj = Py_None; |
3938 | return _resultobj; | |
3939 | } | |
3940 | ||
3941 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 3942 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3943 | PyObject * _resultobj; |
3944 | wxWindow * _arg0; | |
3945 | wxColour * _arg1; | |
1d99702e | 3946 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3947 | wxColour temp; |
3948 | PyObject * _obj1 = 0; | |
efc5f224 | 3949 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3950 | |
3951 | self = self; | |
f6bcfd97 | 3952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3953 | return NULL; |
1d99702e RD |
3954 | if (_argo0) { |
3955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
3958 | return NULL; | |
3959 | } | |
3960 | } | |
f6bcfd97 BP |
3961 | { |
3962 | _arg1 = &temp; | |
3963 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3964 | return NULL; |
f6bcfd97 | 3965 | } |
cf694132 RD |
3966 | { |
3967 | wxPy_BEGIN_ALLOW_THREADS; | |
3968 | wxWindow_SetForegroundColour(_arg0,*_arg1); | |
3969 | ||
3970 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3971 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3972 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3973 | _resultobj = Py_None; |
3974 | return _resultobj; | |
3975 | } | |
3976 | ||
3977 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 3978 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3979 | PyObject * _resultobj; |
3980 | wxWindow * _arg0; | |
3981 | int _arg1; | |
1d99702e | 3982 | PyObject * _argo0 = 0; |
efc5f224 | 3983 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
3984 | |
3985 | self = self; | |
efc5f224 | 3986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3987 | return NULL; |
1d99702e RD |
3988 | if (_argo0) { |
3989 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3990 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
3992 | return NULL; | |
3993 | } | |
3994 | } | |
cf694132 RD |
3995 | { |
3996 | wxPy_BEGIN_ALLOW_THREADS; | |
3997 | wxWindow_SetId(_arg0,_arg1); | |
3998 | ||
3999 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4000 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4001 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4002 | _resultobj = Py_None; |
4003 | return _resultobj; | |
4004 | } | |
4005 | ||
4006 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 4007 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4008 | PyObject * _resultobj; |
4009 | wxWindow * _arg0; | |
4010 | wxString * _arg1; | |
1d99702e | 4011 | PyObject * _argo0 = 0; |
8ab979d7 | 4012 | PyObject * _obj1 = 0; |
efc5f224 | 4013 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
4014 | |
4015 | self = self; | |
efc5f224 | 4016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4017 | return NULL; |
1d99702e RD |
4018 | if (_argo0) { |
4019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
4022 | return NULL; | |
4023 | } | |
4024 | } | |
4025 | { | |
185d7c3e RD |
4026 | #if PYTHON_API_VERSION >= 1009 |
4027 | char* tmpPtr; int tmpSize; | |
4028 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4029 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4030 | return NULL; |
4031 | } | |
4032 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4033 | return NULL; | |
4034 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4035 | #else | |
8ab979d7 RD |
4036 | if (!PyString_Check(_obj1)) { |
4037 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4038 | return NULL; | |
4039 | } | |
185d7c3e RD |
4040 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4041 | #endif | |
8ab979d7 | 4042 | } |
cf694132 RD |
4043 | { |
4044 | wxPy_BEGIN_ALLOW_THREADS; | |
4045 | wxWindow_SetName(_arg0,*_arg1); | |
4046 | ||
4047 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4048 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4049 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4050 | _resultobj = Py_None; |
4051 | { | |
4052 | if (_obj1) | |
4053 | delete _arg1; | |
4054 | } | |
4055 | return _resultobj; | |
4056 | } | |
4057 | ||
8ab979d7 | 4058 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4059 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4060 | PyObject * _resultobj; |
4061 | wxWindow * _arg0; | |
4062 | int _arg1; | |
4063 | int _arg2; | |
4064 | int _arg3; | |
4065 | int _arg4; | |
eb715945 | 4066 | int _arg5 = (int ) TRUE; |
1d99702e | 4067 | PyObject * _argo0 = 0; |
efc5f224 | 4068 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4069 | |
4070 | self = self; | |
eb715945 | 4071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4072 | return NULL; |
1d99702e RD |
4073 | if (_argo0) { |
4074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4077 | return NULL; | |
4078 | } | |
4079 | } | |
cf694132 RD |
4080 | { |
4081 | wxPy_BEGIN_ALLOW_THREADS; | |
4082 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4083 | ||
4084 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4085 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4086 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4087 | _resultobj = Py_None; |
4088 | return _resultobj; | |
4089 | } | |
4090 | ||
4091 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4092 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4093 | PyObject * _resultobj; |
4094 | wxWindow * _arg0; | |
4095 | int _arg1; | |
4096 | int _arg2; | |
1d99702e RD |
4097 | bool _arg3 = (bool ) TRUE; |
4098 | PyObject * _argo0 = 0; | |
4099 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4100 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4101 | |
4102 | self = self; | |
efc5f224 | 4103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4104 | return NULL; |
1d99702e RD |
4105 | if (_argo0) { |
4106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4109 | return NULL; | |
4110 | } | |
4111 | } | |
4112 | _arg3 = (bool ) tempbool3; | |
cf694132 RD |
4113 | { |
4114 | wxPy_BEGIN_ALLOW_THREADS; | |
4115 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); | |
4116 | ||
4117 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4118 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4119 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4120 | _resultobj = Py_None; |
4121 | return _resultobj; | |
4122 | } | |
4123 | ||
4124 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4125 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4126 | PyObject * _resultobj; |
4127 | wxWindow * _arg0; | |
4128 | int _arg1; | |
4129 | int _arg2; | |
4130 | int _arg3; | |
4131 | int _arg4; | |
1d99702e RD |
4132 | int _arg5 = (int ) wxSIZE_AUTO; |
4133 | PyObject * _argo0 = 0; | |
efc5f224 | 4134 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4135 | |
4136 | self = self; | |
efc5f224 | 4137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4138 | return NULL; |
1d99702e RD |
4139 | if (_argo0) { |
4140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4143 | return NULL; | |
4144 | } | |
4145 | } | |
cf694132 RD |
4146 | { |
4147 | wxPy_BEGIN_ALLOW_THREADS; | |
4148 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4149 | ||
4150 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4151 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4152 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4153 | _resultobj = Py_None; |
4154 | return _resultobj; | |
4155 | } | |
4156 | ||
4157 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4158 | self->SetSize(size); |
8ab979d7 | 4159 | } |
efc5f224 | 4160 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4161 | PyObject * _resultobj; |
4162 | wxWindow * _arg0; | |
4163 | wxSize * _arg1; | |
1d99702e | 4164 | PyObject * _argo0 = 0; |
2f90df85 RD |
4165 | wxSize temp; |
4166 | PyObject * _obj1 = 0; | |
efc5f224 | 4167 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4168 | |
4169 | self = self; | |
2f90df85 | 4170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4171 | return NULL; |
1d99702e RD |
4172 | if (_argo0) { |
4173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4176 | return NULL; | |
4177 | } | |
4178 | } | |
2f90df85 RD |
4179 | { |
4180 | _arg1 = &temp; | |
4181 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4182 | return NULL; |
2f90df85 | 4183 | } |
cf694132 RD |
4184 | { |
4185 | wxPy_BEGIN_ALLOW_THREADS; | |
4186 | wxWindow_SetSize(_arg0,*_arg1); | |
4187 | ||
4188 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4189 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4190 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4191 | _resultobj = Py_None; |
4192 | return _resultobj; | |
4193 | } | |
4194 | ||
4195 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) { | |
b7e72427 | 4196 | self->Move(pos); |
8ab979d7 | 4197 | } |
efc5f224 | 4198 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4199 | PyObject * _resultobj; |
4200 | wxWindow * _arg0; | |
4201 | wxPoint * _arg1; | |
1d99702e | 4202 | PyObject * _argo0 = 0; |
2f90df85 RD |
4203 | wxPoint temp; |
4204 | PyObject * _obj1 = 0; | |
efc5f224 | 4205 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
4206 | |
4207 | self = self; | |
2f90df85 | 4208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4209 | return NULL; |
1d99702e RD |
4210 | if (_argo0) { |
4211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4214 | return NULL; | |
4215 | } | |
4216 | } | |
2f90df85 RD |
4217 | { |
4218 | _arg1 = &temp; | |
4219 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4220 | return NULL; |
2f90df85 | 4221 | } |
cf694132 RD |
4222 | { |
4223 | wxPy_BEGIN_ALLOW_THREADS; | |
4224 | wxWindow_SetPosition(_arg0,*_arg1); | |
4225 | ||
4226 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4227 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4228 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4229 | _resultobj = Py_None; |
4230 | return _resultobj; | |
4231 | } | |
4232 | ||
dbbb98cd RD |
4233 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4234 | self->SetSize(rect, sizeFlags); | |
4235 | } | |
4236 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4237 | PyObject * _resultobj; | |
4238 | wxWindow * _arg0; | |
4239 | wxRect * _arg1; | |
4240 | int _arg2 = (int ) wxSIZE_AUTO; | |
4241 | PyObject * _argo0 = 0; | |
4242 | wxRect temp; | |
4243 | PyObject * _obj1 = 0; | |
4244 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4245 | ||
4246 | self = self; | |
4247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4248 | return NULL; | |
4249 | if (_argo0) { | |
4250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4253 | return NULL; | |
4254 | } | |
4255 | } | |
4256 | { | |
4257 | _arg1 = &temp; | |
4258 | if (! wxRect_helper(_obj1, &_arg1)) | |
4259 | return NULL; | |
4260 | } | |
4261 | { | |
4262 | wxPy_BEGIN_ALLOW_THREADS; | |
4263 | wxWindow_SetRect(_arg0,*_arg1,_arg2); | |
4264 | ||
4265 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4266 | if (PyErr_Occurred()) return NULL; |
dbbb98cd RD |
4267 | } Py_INCREF(Py_None); |
4268 | _resultobj = Py_None; | |
4269 | return _resultobj; | |
4270 | } | |
4271 | ||
8ab979d7 | 4272 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4273 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4274 | PyObject * _resultobj; |
4275 | wxWindow * _arg0; | |
1d99702e RD |
4276 | int _arg1 = (int ) -1; |
4277 | int _arg2 = (int ) -1; | |
4278 | int _arg3 = (int ) -1; | |
4279 | int _arg4 = (int ) -1; | |
4280 | int _arg5 = (int ) -1; | |
4281 | int _arg6 = (int ) -1; | |
4282 | PyObject * _argo0 = 0; | |
efc5f224 | 4283 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4284 | |
4285 | self = self; | |
efc5f224 | 4286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4287 | return NULL; |
1d99702e RD |
4288 | if (_argo0) { |
4289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4292 | return NULL; | |
4293 | } | |
4294 | } | |
cf694132 RD |
4295 | { |
4296 | wxPy_BEGIN_ALLOW_THREADS; | |
4297 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
4298 | ||
4299 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4300 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4301 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4302 | _resultobj = Py_None; |
4303 | return _resultobj; | |
4304 | } | |
4305 | ||
af309447 | 4306 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4307 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4308 | PyObject * _resultobj; |
4309 | wxWindow * _arg0; | |
4310 | int _arg1; | |
4311 | int _arg2; | |
1d99702e | 4312 | PyObject * _argo0 = 0; |
efc5f224 | 4313 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4314 | |
4315 | self = self; | |
efc5f224 | 4316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4317 | return NULL; |
1d99702e RD |
4318 | if (_argo0) { |
4319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4322 | return NULL; | |
4323 | } | |
4324 | } | |
cf694132 RD |
4325 | { |
4326 | wxPy_BEGIN_ALLOW_THREADS; | |
4327 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); | |
4328 | ||
4329 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4330 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4331 | } Py_INCREF(Py_None); |
af309447 RD |
4332 | _resultobj = Py_None; |
4333 | return _resultobj; | |
4334 | } | |
4335 | ||
4336 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4337 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4338 | PyObject * _resultobj; |
4339 | wxWindow * _arg0; | |
4340 | wxSize * _arg1; | |
1d99702e | 4341 | PyObject * _argo0 = 0; |
2f90df85 RD |
4342 | wxSize temp; |
4343 | PyObject * _obj1 = 0; | |
efc5f224 | 4344 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4345 | |
4346 | self = self; | |
2f90df85 | 4347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4348 | return NULL; |
1d99702e RD |
4349 | if (_argo0) { |
4350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4353 | return NULL; | |
4354 | } | |
4355 | } | |
2f90df85 RD |
4356 | { |
4357 | _arg1 = &temp; | |
4358 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4359 | return NULL; |
2f90df85 | 4360 | } |
cf694132 RD |
4361 | { |
4362 | wxPy_BEGIN_ALLOW_THREADS; | |
4363 | wxWindow_SetClientSize(_arg0,*_arg1); | |
4364 | ||
4365 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4366 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4367 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4368 | _resultobj = Py_None; |
4369 | return _resultobj; | |
4370 | } | |
4371 | ||
4372 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4373 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4374 | PyObject * _resultobj; |
4375 | wxWindow * _arg0; | |
4376 | wxCursor * _arg1; | |
1d99702e RD |
4377 | PyObject * _argo0 = 0; |
4378 | PyObject * _argo1 = 0; | |
efc5f224 | 4379 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4380 | |
4381 | self = self; | |
efc5f224 | 4382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4383 | return NULL; |
1d99702e RD |
4384 | if (_argo0) { |
4385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4388 | return NULL; | |
4389 | } | |
4390 | } | |
1d99702e RD |
4391 | if (_argo1) { |
4392 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4393 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4395 | return NULL; | |
4396 | } | |
4397 | } | |
cf694132 RD |
4398 | { |
4399 | wxPy_BEGIN_ALLOW_THREADS; | |
4400 | wxWindow_SetCursor(_arg0,*_arg1); | |
4401 | ||
4402 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4403 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4404 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4405 | _resultobj = Py_None; |
4406 | return _resultobj; | |
4407 | } | |
4408 | ||
1afc06c2 RD |
4409 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4410 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4411 | PyObject * _resultobj; | |
4412 | wxWindow * _arg0; | |
4413 | wxEvtHandler * _arg1; | |
4414 | PyObject * _argo0 = 0; | |
4415 | PyObject * _argo1 = 0; | |
4416 | char *_kwnames[] = { "self","handler", NULL }; | |
4417 | ||
4418 | self = self; | |
4419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4420 | return NULL; | |
4421 | if (_argo0) { | |
4422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4425 | return NULL; | |
4426 | } | |
4427 | } | |
4428 | if (_argo1) { | |
4429 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4430 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4432 | return NULL; | |
4433 | } | |
4434 | } | |
4435 | { | |
4436 | wxPy_BEGIN_ALLOW_THREADS; | |
4437 | wxWindow_SetEventHandler(_arg0,_arg1); | |
4438 | ||
4439 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4440 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
4441 | } Py_INCREF(Py_None); |
4442 | _resultobj = Py_None; | |
4443 | return _resultobj; | |
4444 | } | |
4445 | ||
83b18bab RD |
4446 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
4447 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4448 | PyObject * _resultobj; | |
4449 | wxWindow * _arg0; | |
4450 | long _arg1; | |
4451 | PyObject * _argo0 = 0; | |
4452 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4453 | ||
4454 | self = self; | |
4455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4456 | return NULL; | |
4457 | if (_argo0) { | |
4458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4461 | return NULL; | |
4462 | } | |
4463 | } | |
4464 | { | |
4465 | wxPy_BEGIN_ALLOW_THREADS; | |
4466 | wxWindow_SetExtraStyle(_arg0,_arg1); | |
4467 | ||
4468 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4469 | if (PyErr_Occurred()) return NULL; |
83b18bab RD |
4470 | } Py_INCREF(Py_None); |
4471 | _resultobj = Py_None; | |
4472 | return _resultobj; | |
4473 | } | |
4474 | ||
8ab979d7 | 4475 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4476 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4477 | PyObject * _resultobj; |
4478 | wxWindow * _arg0; | |
4479 | wxString * _arg1; | |
1d99702e | 4480 | PyObject * _argo0 = 0; |
8ab979d7 | 4481 | PyObject * _obj1 = 0; |
efc5f224 | 4482 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4483 | |
4484 | self = self; | |
efc5f224 | 4485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4486 | return NULL; |
1d99702e RD |
4487 | if (_argo0) { |
4488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4491 | return NULL; | |
4492 | } | |
4493 | } | |
4494 | { | |
185d7c3e RD |
4495 | #if PYTHON_API_VERSION >= 1009 |
4496 | char* tmpPtr; int tmpSize; | |
4497 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4498 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4499 | return NULL; |
4500 | } | |
4501 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4502 | return NULL; | |
4503 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4504 | #else | |
8ab979d7 RD |
4505 | if (!PyString_Check(_obj1)) { |
4506 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4507 | return NULL; | |
4508 | } | |
185d7c3e RD |
4509 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4510 | #endif | |
8ab979d7 | 4511 | } |
cf694132 RD |
4512 | { |
4513 | wxPy_BEGIN_ALLOW_THREADS; | |
4514 | wxWindow_SetTitle(_arg0,*_arg1); | |
4515 | ||
4516 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4517 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4518 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4519 | _resultobj = Py_None; |
4520 | { | |
4521 | if (_obj1) | |
4522 | delete _arg1; | |
4523 | } | |
4524 | return _resultobj; | |
4525 | } | |
4526 | ||
4527 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4528 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4529 | PyObject * _resultobj; |
4530 | bool _result; | |
4531 | wxWindow * _arg0; | |
4532 | bool _arg1; | |
1d99702e | 4533 | PyObject * _argo0 = 0; |
8ab979d7 | 4534 | int tempbool1; |
efc5f224 | 4535 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4536 | |
4537 | self = self; | |
efc5f224 | 4538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4539 | return NULL; |
1d99702e RD |
4540 | if (_argo0) { |
4541 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4542 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
4544 | return NULL; | |
4545 | } | |
4546 | } | |
4547 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
4548 | { |
4549 | wxPy_BEGIN_ALLOW_THREADS; | |
4550 | _result = (bool )wxWindow_Show(_arg0,_arg1); | |
4551 | ||
4552 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4553 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4554 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4555 | return _resultobj; |
4556 | } | |
4557 | ||
4558 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4559 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4560 | PyObject * _resultobj; |
4561 | bool _result; | |
4562 | wxWindow * _arg0; | |
1d99702e | 4563 | PyObject * _argo0 = 0; |
efc5f224 | 4564 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4565 | |
4566 | self = self; | |
efc5f224 | 4567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4568 | return NULL; |
1d99702e RD |
4569 | if (_argo0) { |
4570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4573 | return NULL; | |
4574 | } | |
4575 | } | |
cf694132 RD |
4576 | { |
4577 | wxPy_BEGIN_ALLOW_THREADS; | |
4578 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); | |
4579 | ||
4580 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4581 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4582 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4583 | return _resultobj; |
4584 | } | |
4585 | ||
4586 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4587 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4588 | PyObject * _resultobj; |
4589 | bool _result; | |
4590 | wxWindow * _arg0; | |
1d99702e | 4591 | PyObject * _argo0 = 0; |
efc5f224 | 4592 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4593 | |
4594 | self = self; | |
efc5f224 | 4595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4596 | return NULL; |
1d99702e RD |
4597 | if (_argo0) { |
4598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4601 | return NULL; | |
4602 | } | |
4603 | } | |
cf694132 RD |
4604 | { |
4605 | wxPy_BEGIN_ALLOW_THREADS; | |
4606 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); | |
4607 | ||
4608 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4609 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4610 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4611 | return _resultobj; |
4612 | } | |
4613 | ||
4614 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) | |
efc5f224 | 4615 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4616 | PyObject * _resultobj; |
4617 | bool _result; | |
4618 | wxWindow * _arg0; | |
1d99702e | 4619 | PyObject * _argo0 = 0; |
efc5f224 | 4620 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4621 | |
4622 | self = self; | |
efc5f224 | 4623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 4624 | return NULL; |
1d99702e RD |
4625 | if (_argo0) { |
4626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
4629 | return NULL; | |
4630 | } | |
4631 | } | |
cf694132 RD |
4632 | { |
4633 | wxPy_BEGIN_ALLOW_THREADS; | |
4634 | _result = (bool )wxWindow_Validate(_arg0); | |
4635 | ||
4636 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4637 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4638 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4639 | return _resultobj; |
4640 | } | |
4641 | ||
4642 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
efc5f224 | 4643 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4644 | PyObject * _resultobj; |
4645 | wxWindow * _arg0; | |
4646 | int _arg1; | |
4647 | int _arg2; | |
1d99702e | 4648 | PyObject * _argo0 = 0; |
efc5f224 | 4649 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
4650 | |
4651 | self = self; | |
efc5f224 | 4652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4653 | return NULL; |
1d99702e RD |
4654 | if (_argo0) { |
4655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); |
4658 | return NULL; | |
4659 | } | |
4660 | } | |
cf694132 RD |
4661 | { |
4662 | wxPy_BEGIN_ALLOW_THREADS; | |
4663 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
4664 | ||
4665 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4666 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4667 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4668 | _resultobj = Py_None; |
4669 | return _resultobj; | |
4670 | } | |
4671 | ||
b8b8dda7 | 4672 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 4673 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4674 | PyObject * _resultobj; |
4675 | wxPoint * _result; | |
4676 | wxWindow * _arg0; | |
4677 | wxPoint * _arg1; | |
1d99702e | 4678 | PyObject * _argo0 = 0; |
2f90df85 RD |
4679 | wxPoint temp; |
4680 | PyObject * _obj1 = 0; | |
efc5f224 | 4681 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4682 | char _ptemp[128]; |
4683 | ||
4684 | self = self; | |
2f90df85 | 4685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4686 | return NULL; |
1d99702e RD |
4687 | if (_argo0) { |
4688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
4691 | return NULL; | |
4692 | } | |
4693 | } | |
2f90df85 RD |
4694 | { |
4695 | _arg1 = &temp; | |
4696 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4697 | return NULL; |
2f90df85 | 4698 | } |
cf694132 RD |
4699 | { |
4700 | wxPy_BEGIN_ALLOW_THREADS; | |
4701 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); | |
4702 | ||
4703 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4704 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4705 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4706 | _resultobj = Py_BuildValue("s",_ptemp); |
4707 | return _resultobj; | |
4708 | } | |
4709 | ||
4710 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 4711 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4712 | PyObject * _resultobj; |
4713 | wxSize * _result; | |
4714 | wxWindow * _arg0; | |
4715 | wxSize * _arg1; | |
1d99702e | 4716 | PyObject * _argo0 = 0; |
2f90df85 RD |
4717 | wxSize temp; |
4718 | PyObject * _obj1 = 0; | |
efc5f224 | 4719 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4720 | char _ptemp[128]; |
4721 | ||
4722 | self = self; | |
2f90df85 | 4723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4724 | return NULL; |
1d99702e RD |
4725 | if (_argo0) { |
4726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
4729 | return NULL; | |
4730 | } | |
4731 | } | |
2f90df85 RD |
4732 | { |
4733 | _arg1 = &temp; | |
4734 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4735 | return NULL; |
2f90df85 | 4736 | } |
cf694132 RD |
4737 | { |
4738 | wxPy_BEGIN_ALLOW_THREADS; | |
4739 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); | |
4740 | ||
4741 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4742 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4743 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4744 | _resultobj = Py_BuildValue("s",_ptemp); |
4745 | return _resultobj; | |
4746 | } | |
4747 | ||
4748 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4749 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4750 | PyObject * _resultobj; |
4751 | wxPoint * _result; | |
4752 | wxWindow * _arg0; | |
4753 | wxPoint * _arg1; | |
1d99702e | 4754 | PyObject * _argo0 = 0; |
2f90df85 RD |
4755 | wxPoint temp; |
4756 | PyObject * _obj1 = 0; | |
efc5f224 | 4757 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4758 | char _ptemp[128]; |
4759 | ||
4760 | self = self; | |
2f90df85 | 4761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4762 | return NULL; |
1d99702e RD |
4763 | if (_argo0) { |
4764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
4767 | return NULL; | |
4768 | } | |
4769 | } | |
2f90df85 RD |
4770 | { |
4771 | _arg1 = &temp; | |
4772 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4773 | return NULL; |
2f90df85 | 4774 | } |
cf694132 RD |
4775 | { |
4776 | wxPy_BEGIN_ALLOW_THREADS; | |
4777 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); | |
4778 | ||
4779 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4780 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4781 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4782 | _resultobj = Py_BuildValue("s",_ptemp); |
4783 | return _resultobj; | |
4784 | } | |
4785 | ||
4786 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4787 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4788 | PyObject * _resultobj; |
4789 | wxSize * _result; | |
4790 | wxWindow * _arg0; | |
4791 | wxSize * _arg1; | |
1d99702e | 4792 | PyObject * _argo0 = 0; |
2f90df85 RD |
4793 | wxSize temp; |
4794 | PyObject * _obj1 = 0; | |
efc5f224 | 4795 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4796 | char _ptemp[128]; |
4797 | ||
4798 | self = self; | |
2f90df85 | 4799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4800 | return NULL; |
1d99702e RD |
4801 | if (_argo0) { |
4802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
4805 | return NULL; | |
4806 | } | |
4807 | } | |
2f90df85 RD |
4808 | { |
4809 | _arg1 = &temp; | |
4810 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4811 | return NULL; |
2f90df85 | 4812 | } |
cf694132 RD |
4813 | { |
4814 | wxPy_BEGIN_ALLOW_THREADS; | |
4815 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); | |
4816 | ||
4817 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4818 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4819 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4820 | _resultobj = Py_BuildValue("s",_ptemp); |
4821 | return _resultobj; | |
4822 | } | |
4823 | ||
af309447 | 4824 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 4825 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4826 | PyObject * _resultobj; |
4827 | wxWindow * _arg0; | |
4828 | wxString * _arg1; | |
1d99702e | 4829 | PyObject * _argo0 = 0; |
af309447 | 4830 | PyObject * _obj1 = 0; |
efc5f224 | 4831 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
4832 | |
4833 | self = self; | |
efc5f224 | 4834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 4835 | return NULL; |
1d99702e RD |
4836 | if (_argo0) { |
4837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
4840 | return NULL; | |
4841 | } | |
4842 | } | |
4843 | { | |
185d7c3e RD |
4844 | #if PYTHON_API_VERSION >= 1009 |
4845 | char* tmpPtr; int tmpSize; | |
4846 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4847 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4848 | return NULL; |
4849 | } | |
4850 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4851 | return NULL; | |
4852 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4853 | #else | |
af309447 RD |
4854 | if (!PyString_Check(_obj1)) { |
4855 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4856 | return NULL; | |
4857 | } | |
185d7c3e RD |
4858 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4859 | #endif | |
af309447 | 4860 | } |
cf694132 RD |
4861 | { |
4862 | wxPy_BEGIN_ALLOW_THREADS; | |
4863 | wxWindow_SetToolTipString(_arg0,*_arg1); | |
4864 | ||
4865 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4866 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4867 | } Py_INCREF(Py_None); |
af309447 RD |
4868 | _resultobj = Py_None; |
4869 | { | |
4870 | if (_obj1) | |
4871 | delete _arg1; | |
4872 | } | |
4873 | return _resultobj; | |
4874 | } | |
4875 | ||
4876 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 4877 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4878 | PyObject * _resultobj; |
4879 | wxWindow * _arg0; | |
4880 | wxToolTip * _arg1; | |
1d99702e RD |
4881 | PyObject * _argo0 = 0; |
4882 | PyObject * _argo1 = 0; | |
efc5f224 | 4883 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
4884 | |
4885 | self = self; | |
efc5f224 | 4886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 4887 | return NULL; |
1d99702e RD |
4888 | if (_argo0) { |
4889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
4892 | return NULL; | |
4893 | } | |
4894 | } | |
1d99702e RD |
4895 | if (_argo1) { |
4896 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4897 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
4898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
4899 | return NULL; | |
4900 | } | |
4901 | } | |
cf694132 RD |
4902 | { |
4903 | wxPy_BEGIN_ALLOW_THREADS; | |
4904 | wxWindow_SetToolTip(_arg0,_arg1); | |
4905 | ||
4906 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4907 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4908 | } Py_INCREF(Py_None); |
af309447 RD |
4909 | _resultobj = Py_None; |
4910 | return _resultobj; | |
4911 | } | |
4912 | ||
4913 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 4914 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4915 | PyObject * _resultobj; |
4916 | wxToolTip * _result; | |
4917 | wxWindow * _arg0; | |
1d99702e | 4918 | PyObject * _argo0 = 0; |
efc5f224 | 4919 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
4920 | |
4921 | self = self; | |
efc5f224 | 4922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 4923 | return NULL; |
1d99702e RD |
4924 | if (_argo0) { |
4925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
4928 | return NULL; | |
4929 | } | |
4930 | } | |
cf694132 RD |
4931 | { |
4932 | wxPy_BEGIN_ALLOW_THREADS; | |
4933 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); | |
4934 | ||
4935 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4936 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 4937 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
4938 | return _resultobj; |
4939 | } | |
4940 | ||
2f90df85 RD |
4941 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) |
4942 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4943 | PyObject * _resultobj; | |
4944 | wxWindow * _arg0; | |
4945 | wxSizer * _arg1; | |
4946 | PyObject * _argo0 = 0; | |
4947 | PyObject * _argo1 = 0; | |
4948 | char *_kwnames[] = { "self","sizer", NULL }; | |
4949 | ||
4950 | self = self; | |
4951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
4952 | return NULL; | |
4953 | if (_argo0) { | |
4954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
4957 | return NULL; | |
4958 | } | |
4959 | } | |
4960 | if (_argo1) { | |
4961 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4962 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
4963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
4964 | return NULL; | |
4965 | } | |
4966 | } | |
4967 | { | |
4968 | wxPy_BEGIN_ALLOW_THREADS; | |
4969 | wxWindow_SetSizer(_arg0,_arg1); | |
4970 | ||
4971 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4972 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4973 | } Py_INCREF(Py_None); |
4974 | _resultobj = Py_None; | |
4975 | return _resultobj; | |
4976 | } | |
4977 | ||
f6bcfd97 BP |
4978 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
4979 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4980 | PyObject * _resultobj; | |
4981 | wxSizer * _result; | |
4982 | wxWindow * _arg0; | |
4983 | PyObject * _argo0 = 0; | |
4984 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
4985 | |
4986 | self = self; | |
4987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
4988 | return NULL; | |
4989 | if (_argo0) { | |
4990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
4993 | return NULL; | |
4994 | } | |
4995 | } | |
4996 | { | |
4997 | wxPy_BEGIN_ALLOW_THREADS; | |
4998 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); | |
4999 | ||
5000 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5001 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5002 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
5003 | return _resultobj; |
5004 | } | |
5005 | ||
2f90df85 RD |
5006 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
5007 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5008 | PyObject * _resultobj; | |
5009 | wxValidator * _result; | |
5010 | wxWindow * _arg0; | |
5011 | PyObject * _argo0 = 0; | |
5012 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
5013 | |
5014 | self = self; | |
5015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
5016 | return NULL; | |
5017 | if (_argo0) { | |
5018 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5019 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
5021 | return NULL; | |
5022 | } | |
5023 | } | |
5024 | { | |
5025 | wxPy_BEGIN_ALLOW_THREADS; | |
5026 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); | |
5027 | ||
5028 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5029 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5030 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
5031 | return _resultobj; |
5032 | } | |
5033 | ||
5034 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5035 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5036 | PyObject * _resultobj; | |
5037 | wxWindow * _arg0; | |
5038 | wxValidator * _arg1; | |
5039 | PyObject * _argo0 = 0; | |
5040 | PyObject * _argo1 = 0; | |
5041 | char *_kwnames[] = { "self","validator", NULL }; | |
5042 | ||
5043 | self = self; | |
5044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
5045 | return NULL; | |
5046 | if (_argo0) { | |
5047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5050 | return NULL; | |
5051 | } | |
5052 | } | |
5053 | if (_argo1) { | |
5054 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5055 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
5056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5057 | return NULL; | |
5058 | } | |
5059 | } | |
5060 | { | |
5061 | wxPy_BEGIN_ALLOW_THREADS; | |
5062 | wxWindow_SetValidator(_arg0,*_arg1); | |
5063 | ||
5064 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5065 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5066 | } Py_INCREF(Py_None); |
5067 | _resultobj = Py_None; | |
5068 | return _resultobj; | |
5069 | } | |
5070 | ||
b1462dfa RD |
5071 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5072 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5073 | PyObject * _resultobj; | |
5074 | wxWindow * _arg0; | |
5075 | wxDropTarget * _arg1; | |
5076 | PyObject * _argo0 = 0; | |
5077 | PyObject * _argo1 = 0; | |
5078 | char *_kwnames[] = { "self","target", NULL }; | |
5079 | ||
5080 | self = self; | |
5081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5082 | return NULL; | |
5083 | if (_argo0) { | |
5084 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5085 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5087 | return NULL; | |
5088 | } | |
5089 | } | |
5090 | if (_argo1) { | |
5091 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5092 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5094 | return NULL; | |
5095 | } | |
5096 | } | |
5097 | { | |
5098 | wxPy_BEGIN_ALLOW_THREADS; | |
5099 | wxWindow_SetDropTarget(_arg0,_arg1); | |
5100 | ||
5101 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5102 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5103 | } Py_INCREF(Py_None); |
5104 | _resultobj = Py_None; | |
5105 | return _resultobj; | |
5106 | } | |
5107 | ||
5108 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5109 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5110 | PyObject * _resultobj; | |
5111 | wxDropTarget * _result; | |
5112 | wxWindow * _arg0; | |
5113 | PyObject * _argo0 = 0; | |
5114 | char *_kwnames[] = { "self", NULL }; | |
5115 | char _ptemp[128]; | |
5116 | ||
5117 | self = self; | |
5118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5119 | return NULL; | |
5120 | if (_argo0) { | |
5121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5124 | return NULL; | |
5125 | } | |
5126 | } | |
5127 | { | |
5128 | wxPy_BEGIN_ALLOW_THREADS; | |
5129 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); | |
5130 | ||
5131 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5132 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5133 | } if (_result) { |
5134 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5135 | _resultobj = Py_BuildValue("s",_ptemp); | |
5136 | } else { | |
5137 | Py_INCREF(Py_None); | |
5138 | _resultobj = Py_None; | |
5139 | } | |
5140 | return _resultobj; | |
5141 | } | |
5142 | ||
694759cf RD |
5143 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5144 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5145 | PyObject * _resultobj; | |
5146 | wxSize * _result; | |
5147 | wxWindow * _arg0; | |
5148 | PyObject * _argo0 = 0; | |
5149 | char *_kwnames[] = { "self", NULL }; | |
5150 | char _ptemp[128]; | |
5151 | ||
5152 | self = self; | |
5153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5154 | return NULL; | |
5155 | if (_argo0) { | |
5156 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5157 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5159 | return NULL; | |
5160 | } | |
5161 | } | |
5162 | { | |
5163 | wxPy_BEGIN_ALLOW_THREADS; | |
5164 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); | |
5165 | ||
5166 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5167 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5168 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5169 | _resultobj = Py_BuildValue("s",_ptemp); | |
5170 | return _resultobj; | |
5171 | } | |
5172 | ||
a1df7a95 RD |
5173 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5174 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5175 | PyObject * _resultobj; | |
5176 | wxWindow * _arg0; | |
5177 | wxCaret * _arg1; | |
5178 | PyObject * _argo0 = 0; | |
5179 | PyObject * _argo1 = 0; | |
5180 | char *_kwnames[] = { "self","caret", NULL }; | |
5181 | ||
5182 | self = self; | |
5183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5184 | return NULL; | |
5185 | if (_argo0) { | |
5186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5189 | return NULL; | |
5190 | } | |
5191 | } | |
5192 | if (_argo1) { | |
5193 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5194 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5196 | return NULL; | |
5197 | } | |
5198 | } | |
5199 | { | |
5200 | wxPy_BEGIN_ALLOW_THREADS; | |
5201 | wxWindow_SetCaret(_arg0,_arg1); | |
5202 | ||
5203 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5204 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5205 | } Py_INCREF(Py_None); |
5206 | _resultobj = Py_None; | |
5207 | return _resultobj; | |
5208 | } | |
5209 | ||
5210 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5211 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5212 | PyObject * _resultobj; | |
5213 | wxCaret * _result; | |
5214 | wxWindow * _arg0; | |
5215 | PyObject * _argo0 = 0; | |
5216 | char *_kwnames[] = { "self", NULL }; | |
5217 | char _ptemp[128]; | |
5218 | ||
5219 | self = self; | |
5220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5221 | return NULL; | |
5222 | if (_argo0) { | |
5223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5226 | return NULL; | |
5227 | } | |
5228 | } | |
5229 | { | |
5230 | wxPy_BEGIN_ALLOW_THREADS; | |
5231 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); | |
5232 | ||
5233 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5234 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5235 | } if (_result) { |
5236 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5237 | _resultobj = Py_BuildValue("s",_ptemp); | |
5238 | } else { | |
5239 | Py_INCREF(Py_None); | |
5240 | _resultobj = Py_None; | |
5241 | } | |
5242 | return _resultobj; | |
5243 | } | |
5244 | ||
8ab979d7 RD |
5245 | static void *SwigwxPanelTowxWindow(void *ptr) { |
5246 | wxPanel *src; | |
5247 | wxWindow *dest; | |
5248 | src = (wxPanel *) ptr; | |
5249 | dest = (wxWindow *) src; | |
5250 | return (void *) dest; | |
5251 | } | |
5252 | ||
5253 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
5254 | wxPanel *src; | |
5255 | wxEvtHandler *dest; | |
5256 | src = (wxPanel *) ptr; | |
5257 | dest = (wxEvtHandler *) src; | |
5258 | return (void *) dest; | |
5259 | } | |
5260 | ||
9416aa89 RD |
5261 | static void *SwigwxPanelTowxObject(void *ptr) { |
5262 | wxPanel *src; | |
5263 | wxObject *dest; | |
5264 | src = (wxPanel *) ptr; | |
5265 | dest = (wxObject *) src; | |
5266 | return (void *) dest; | |
5267 | } | |
5268 | ||
8ab979d7 | 5269 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 5270 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5271 | PyObject * _resultobj; |
5272 | wxPanel * _result; | |
5273 | wxWindow * _arg0; | |
5274 | wxWindowID _arg1; | |
e508a2b6 RD |
5275 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5276 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5277 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
5278 | char * _arg5 = (char *) "panel"; | |
5279 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5280 | wxPoint temp; |
5281 | PyObject * _obj2 = 0; | |
5282 | wxSize temp0; | |
5283 | PyObject * _obj3 = 0; | |
efc5f224 | 5284 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5285 | char _ptemp[128]; |
5286 | ||
5287 | self = self; | |
2f90df85 | 5288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5289 | return NULL; |
1d99702e RD |
5290 | if (_argo0) { |
5291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
5294 | return NULL; | |
5295 | } | |
5296 | } | |
2f90df85 RD |
5297 | if (_obj2) |
5298 | { | |
5299 | _arg2 = &temp; | |
5300 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5301 | return NULL; |
2f90df85 RD |
5302 | } |
5303 | if (_obj3) | |
5304 | { | |
5305 | _arg3 = &temp0; | |
5306 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5307 | return NULL; |
2f90df85 | 5308 | } |
cf694132 RD |
5309 | { |
5310 | wxPy_BEGIN_ALLOW_THREADS; | |
5311 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5312 | ||
5313 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5314 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5315 | } if (_result) { |
5316 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5317 | _resultobj = Py_BuildValue("s",_ptemp); | |
5318 | } else { | |
5319 | Py_INCREF(Py_None); | |
5320 | _resultobj = Py_None; | |
5321 | } | |
8ab979d7 RD |
5322 | return _resultobj; |
5323 | } | |
5324 | ||
5325 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
efc5f224 | 5326 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5327 | PyObject * _resultobj; |
5328 | wxPanel * _arg0; | |
1d99702e | 5329 | PyObject * _argo0 = 0; |
efc5f224 | 5330 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5331 | |
5332 | self = self; | |
efc5f224 | 5333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 5334 | return NULL; |
1d99702e RD |
5335 | if (_argo0) { |
5336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
5338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
5339 | return NULL; | |
5340 | } | |
5341 | } | |
cf694132 RD |
5342 | { |
5343 | wxPy_BEGIN_ALLOW_THREADS; | |
5344 | wxPanel_InitDialog(_arg0); | |
5345 | ||
5346 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5347 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5348 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5349 | _resultobj = Py_None; |
5350 | return _resultobj; | |
5351 | } | |
5352 | ||
bb0054cd | 5353 | #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
efc5f224 | 5354 | static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5355 | PyObject * _resultobj; |
5356 | wxButton * _result; | |
5357 | wxPanel * _arg0; | |
1d99702e | 5358 | PyObject * _argo0 = 0; |
efc5f224 | 5359 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5360 | |
5361 | self = self; | |
efc5f224 | 5362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0)) |
bb0054cd | 5363 | return NULL; |
1d99702e RD |
5364 | if (_argo0) { |
5365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p."); |
5368 | return NULL; | |
5369 | } | |
5370 | } | |
5371 | { | |
5372 | wxPy_BEGIN_ALLOW_THREADS; | |
5373 | _result = (wxButton *)wxPanel_GetDefaultItem(_arg0); | |
5374 | ||
5375 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5376 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5377 | }{ _resultobj = wxPyMake_wxObject(_result); } |
bb0054cd RD |
5378 | return _resultobj; |
5379 | } | |
5380 | ||
5381 | #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
efc5f224 | 5382 | static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5383 | PyObject * _resultobj; |
5384 | wxPanel * _arg0; | |
5385 | wxButton * _arg1; | |
1d99702e RD |
5386 | PyObject * _argo0 = 0; |
5387 | PyObject * _argo1 = 0; | |
efc5f224 | 5388 | char *_kwnames[] = { "self","btn", NULL }; |
bb0054cd RD |
5389 | |
5390 | self = self; | |
efc5f224 | 5391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 5392 | return NULL; |
1d99702e RD |
5393 | if (_argo0) { |
5394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p."); |
5397 | return NULL; | |
5398 | } | |
5399 | } | |
1d99702e RD |
5400 | if (_argo1) { |
5401 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5402 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
bb0054cd RD |
5403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p."); |
5404 | return NULL; | |
5405 | } | |
5406 | } | |
5407 | { | |
5408 | wxPy_BEGIN_ALLOW_THREADS; | |
5409 | wxPanel_SetDefaultItem(_arg0,_arg1); | |
5410 | ||
5411 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5412 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
5413 | } Py_INCREF(Py_None); |
5414 | _resultobj = Py_None; | |
5415 | return _resultobj; | |
5416 | } | |
5417 | ||
8ab979d7 RD |
5418 | static void *SwigwxDialogTowxPanel(void *ptr) { |
5419 | wxDialog *src; | |
5420 | wxPanel *dest; | |
5421 | src = (wxDialog *) ptr; | |
5422 | dest = (wxPanel *) src; | |
5423 | return (void *) dest; | |
5424 | } | |
5425 | ||
5426 | static void *SwigwxDialogTowxWindow(void *ptr) { | |
5427 | wxDialog *src; | |
5428 | wxWindow *dest; | |
5429 | src = (wxDialog *) ptr; | |
5430 | dest = (wxWindow *) src; | |
5431 | return (void *) dest; | |
5432 | } | |
5433 | ||
5434 | static void *SwigwxDialogTowxEvtHandler(void *ptr) { | |
5435 | wxDialog *src; | |
5436 | wxEvtHandler *dest; | |
5437 | src = (wxDialog *) ptr; | |
5438 | dest = (wxEvtHandler *) src; | |
5439 | return (void *) dest; | |
5440 | } | |
5441 | ||
9416aa89 RD |
5442 | static void *SwigwxDialogTowxObject(void *ptr) { |
5443 | wxDialog *src; | |
5444 | wxObject *dest; | |
5445 | src = (wxDialog *) ptr; | |
5446 | dest = (wxObject *) src; | |
5447 | return (void *) dest; | |
5448 | } | |
5449 | ||
8ab979d7 | 5450 | #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 5451 | static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5452 | PyObject * _resultobj; |
5453 | wxDialog * _result; | |
5454 | wxWindow * _arg0; | |
5455 | wxWindowID _arg1; | |
5456 | wxString * _arg2; | |
e508a2b6 RD |
5457 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
5458 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5459 | long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE; |
5460 | char * _arg6 = (char *) "dialogBox"; | |
5461 | PyObject * _argo0 = 0; | |
8ab979d7 | 5462 | PyObject * _obj2 = 0; |
2f90df85 RD |
5463 | wxPoint temp; |
5464 | PyObject * _obj3 = 0; | |
5465 | wxSize temp0; | |
5466 | PyObject * _obj4 = 0; | |
efc5f224 | 5467 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; |
8ab979d7 RD |
5468 | char _ptemp[128]; |
5469 | ||
5470 | self = self; | |
2f90df85 | 5471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 5472 | return NULL; |
1d99702e RD |
5473 | if (_argo0) { |
5474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p."); |
5477 | return NULL; | |
5478 | } | |
5479 | } | |
5480 | { | |
185d7c3e RD |
5481 | #if PYTHON_API_VERSION >= 1009 |
5482 | char* tmpPtr; int tmpSize; | |
5483 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 5484 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5485 | return NULL; |
5486 | } | |
5487 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5488 | return NULL; | |
5489 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5490 | #else | |
8ab979d7 RD |
5491 | if (!PyString_Check(_obj2)) { |
5492 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5493 | return NULL; | |
5494 | } | |
185d7c3e RD |
5495 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
5496 | #endif | |
8ab979d7 | 5497 | } |
2f90df85 RD |
5498 | if (_obj3) |
5499 | { | |
5500 | _arg3 = &temp; | |
5501 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 5502 | return NULL; |
2f90df85 RD |
5503 | } |
5504 | if (_obj4) | |
5505 | { | |
5506 | _arg4 = &temp0; | |
5507 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 5508 | return NULL; |
2f90df85 | 5509 | } |
cf694132 RD |
5510 | { |
5511 | wxPy_BEGIN_ALLOW_THREADS; | |
5512 | _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
5513 | ||
5514 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5515 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5516 | } if (_result) { |
5517 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); | |
5518 | _resultobj = Py_BuildValue("s",_ptemp); | |
5519 | } else { | |
5520 | Py_INCREF(Py_None); | |
5521 | _resultobj = Py_None; | |
5522 | } | |
8ab979d7 RD |
5523 | { |
5524 | if (_obj2) | |
5525 | delete _arg2; | |
5526 | } | |
5527 | return _resultobj; | |
5528 | } | |
5529 | ||
5530 | #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 5531 | static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5532 | PyObject * _resultobj; |
5533 | wxDialog * _arg0; | |
1d99702e RD |
5534 | int _arg1 = (int ) wxBOTH; |
5535 | PyObject * _argo0 = 0; | |
efc5f224 | 5536 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
5537 | |
5538 | self = self; | |
efc5f224 | 5539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5540 | return NULL; |
1d99702e RD |
5541 | if (_argo0) { |
5542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p."); |
5545 | return NULL; | |
5546 | } | |
5547 | } | |
cf694132 RD |
5548 | { |
5549 | wxPy_BEGIN_ALLOW_THREADS; | |
5550 | wxDialog_Centre(_arg0,_arg1); | |
5551 | ||
5552 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5553 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5554 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5555 | _resultobj = Py_None; |
5556 | return _resultobj; | |
5557 | } | |
5558 | ||
5559 | #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0)) | |
efc5f224 | 5560 | static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5561 | PyObject * _resultobj; |
5562 | wxDialog * _arg0; | |
5563 | int _arg1; | |
1d99702e | 5564 | PyObject * _argo0 = 0; |
efc5f224 | 5565 | char *_kwnames[] = { "self","retCode", NULL }; |
8ab979d7 RD |
5566 | |
5567 | self = self; | |
efc5f224 | 5568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5569 | return NULL; |
1d99702e RD |
5570 | if (_argo0) { |
5571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p."); |
5574 | return NULL; | |
5575 | } | |
5576 | } | |
cf694132 RD |
5577 | { |
5578 | wxPy_BEGIN_ALLOW_THREADS; | |
5579 | wxDialog_EndModal(_arg0,_arg1); | |
5580 | ||
5581 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5582 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5583 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5584 | _resultobj = Py_None; |
5585 | return _resultobj; | |
5586 | } | |
5587 | ||
5588 | #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
efc5f224 | 5589 | static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5590 | PyObject * _resultobj; |
5591 | wxString * _result; | |
5592 | wxDialog * _arg0; | |
1d99702e | 5593 | PyObject * _argo0 = 0; |
efc5f224 | 5594 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5595 | |
5596 | self = self; | |
efc5f224 | 5597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 5598 | return NULL; |
1d99702e RD |
5599 | if (_argo0) { |
5600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p."); |
5603 | return NULL; | |
5604 | } | |
5605 | } | |
8ab979d7 | 5606 | { |
cf694132 RD |
5607 | wxPy_BEGIN_ALLOW_THREADS; |
5608 | _result = new wxString (wxDialog_GetTitle(_arg0)); | |
5609 | ||
5610 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5611 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5612 | }{ |
eec92d76 | 5613 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
5614 | } |
5615 | { | |
5616 | delete _result; | |
5617 | } | |
5618 | return _resultobj; | |
5619 | } | |
5620 | ||
5621 | #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0)) | |
efc5f224 | 5622 | static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5623 | PyObject * _resultobj; |
5624 | wxDialog * _arg0; | |
5625 | bool _arg1; | |
1d99702e | 5626 | PyObject * _argo0 = 0; |
8ab979d7 | 5627 | int tempbool1; |
efc5f224 | 5628 | char *_kwnames[] = { "self","iconize", NULL }; |
8ab979d7 RD |
5629 | |
5630 | self = self; | |
efc5f224 | 5631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5632 | return NULL; |
1d99702e RD |
5633 | if (_argo0) { |
5634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p."); |
5637 | return NULL; | |
5638 | } | |
5639 | } | |
5640 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5641 | { |
5642 | wxPy_BEGIN_ALLOW_THREADS; | |
5643 | wxDialog_Iconize(_arg0,_arg1); | |
5644 | ||
5645 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5646 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5647 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5648 | _resultobj = Py_None; |
5649 | return _resultobj; | |
5650 | } | |
5651 | ||
5652 | #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized()) | |
efc5f224 | 5653 | static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5654 | PyObject * _resultobj; |
5655 | bool _result; | |
5656 | wxDialog * _arg0; | |
1d99702e | 5657 | PyObject * _argo0 = 0; |
efc5f224 | 5658 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5659 | |
5660 | self = self; | |
efc5f224 | 5661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0)) |
8ab979d7 | 5662 | return NULL; |
1d99702e RD |
5663 | if (_argo0) { |
5664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p."); |
5667 | return NULL; | |
5668 | } | |
5669 | } | |
cf694132 RD |
5670 | { |
5671 | wxPy_BEGIN_ALLOW_THREADS; | |
5672 | _result = (bool )wxDialog_IsIconized(_arg0); | |
5673 | ||
5674 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5675 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5676 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5677 | return _resultobj; |
5678 | } | |
5679 | ||
5680 | #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0)) | |
efc5f224 | 5681 | static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5682 | PyObject * _resultobj; |
5683 | wxDialog * _arg0; | |
5684 | bool _arg1; | |
1d99702e | 5685 | PyObject * _argo0 = 0; |
8ab979d7 | 5686 | int tempbool1; |
efc5f224 | 5687 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
5688 | |
5689 | self = self; | |
efc5f224 | 5690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5691 | return NULL; |
1d99702e RD |
5692 | if (_argo0) { |
5693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p."); |
5696 | return NULL; | |
5697 | } | |
5698 | } | |
5699 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5700 | { |
5701 | wxPy_BEGIN_ALLOW_THREADS; | |
5702 | wxDialog_SetModal(_arg0,_arg1); | |
5703 | ||
5704 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5705 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5706 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5707 | _resultobj = Py_None; |
5708 | return _resultobj; | |
5709 | } | |
5710 | ||
5711 | #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal()) | |
efc5f224 | 5712 | static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5713 | PyObject * _resultobj; |
5714 | bool _result; | |
5715 | wxDialog * _arg0; | |
1d99702e | 5716 | PyObject * _argo0 = 0; |
efc5f224 | 5717 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5718 | |
5719 | self = self; | |
efc5f224 | 5720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0)) |
8ab979d7 | 5721 | return NULL; |
1d99702e RD |
5722 | if (_argo0) { |
5723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p."); |
5726 | return NULL; | |
5727 | } | |
5728 | } | |
cf694132 RD |
5729 | { |
5730 | wxPy_BEGIN_ALLOW_THREADS; | |
5731 | _result = (bool )wxDialog_IsModal(_arg0); | |
5732 | ||
5733 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5734 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5735 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5736 | return _resultobj; |
5737 | } | |
5738 | ||
5739 | #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 5740 | static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5741 | PyObject * _resultobj; |
5742 | wxDialog * _arg0; | |
5743 | wxString * _arg1; | |
1d99702e | 5744 | PyObject * _argo0 = 0; |
8ab979d7 | 5745 | PyObject * _obj1 = 0; |
efc5f224 | 5746 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
5747 | |
5748 | self = self; | |
efc5f224 | 5749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5750 | return NULL; |
1d99702e RD |
5751 | if (_argo0) { |
5752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p."); |
5755 | return NULL; | |
5756 | } | |
5757 | } | |
5758 | { | |
185d7c3e RD |
5759 | #if PYTHON_API_VERSION >= 1009 |
5760 | char* tmpPtr; int tmpSize; | |
5761 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5762 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5763 | return NULL; |
5764 | } | |
5765 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5766 | return NULL; | |
5767 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5768 | #else | |
8ab979d7 RD |
5769 | if (!PyString_Check(_obj1)) { |
5770 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5771 | return NULL; | |
5772 | } | |
185d7c3e RD |
5773 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5774 | #endif | |
8ab979d7 | 5775 | } |
cf694132 RD |
5776 | { |
5777 | wxPy_BEGIN_ALLOW_THREADS; | |
5778 | wxDialog_SetTitle(_arg0,*_arg1); | |
5779 | ||
5780 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5781 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5782 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5783 | _resultobj = Py_None; |
5784 | { | |
5785 | if (_obj1) | |
5786 | delete _arg1; | |
5787 | } | |
5788 | return _resultobj; | |
5789 | } | |
5790 | ||
5791 | #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 5792 | static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5793 | PyObject * _resultobj; |
5794 | bool _result; | |
5795 | wxDialog * _arg0; | |
5796 | bool _arg1; | |
1d99702e | 5797 | PyObject * _argo0 = 0; |
8ab979d7 | 5798 | int tempbool1; |
efc5f224 | 5799 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
5800 | |
5801 | self = self; | |
efc5f224 | 5802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5803 | return NULL; |
1d99702e RD |
5804 | if (_argo0) { |
5805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p."); |
5808 | return NULL; | |
5809 | } | |
5810 | } | |
5811 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
5812 | { |
5813 | wxPy_BEGIN_ALLOW_THREADS; | |
5814 | _result = (bool )wxDialog_Show(_arg0,_arg1); | |
5815 | ||
5816 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5817 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5818 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5819 | return _resultobj; |
5820 | } | |
5821 | ||
5822 | #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
efc5f224 | 5823 | static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5824 | PyObject * _resultobj; |
5825 | int _result; | |
5826 | wxDialog * _arg0; | |
1d99702e | 5827 | PyObject * _argo0 = 0; |
efc5f224 | 5828 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5829 | |
5830 | self = self; | |
efc5f224 | 5831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 5832 | return NULL; |
1d99702e RD |
5833 | if (_argo0) { |
5834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
8ab979d7 RD |
5836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p."); |
5837 | return NULL; | |
5838 | } | |
5839 | } | |
cf694132 RD |
5840 | { |
5841 | wxPy_BEGIN_ALLOW_THREADS; | |
5842 | _result = (int )wxDialog_ShowModal(_arg0); | |
5843 | ||
5844 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5845 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5846 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5847 | return _resultobj; |
5848 | } | |
5849 | ||
bb0054cd | 5850 | #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode()) |
efc5f224 | 5851 | static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5852 | PyObject * _resultobj; |
5853 | int _result; | |
5854 | wxDialog * _arg0; | |
1d99702e | 5855 | PyObject * _argo0 = 0; |
efc5f224 | 5856 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5857 | |
5858 | self = self; | |
efc5f224 | 5859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0)) |
bb0054cd | 5860 | return NULL; |
1d99702e RD |
5861 | if (_argo0) { |
5862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
5864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p."); |
5865 | return NULL; | |
5866 | } | |
5867 | } | |
5868 | { | |
5869 | wxPy_BEGIN_ALLOW_THREADS; | |
5870 | _result = (int )wxDialog_GetReturnCode(_arg0); | |
5871 | ||
5872 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5873 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
5874 | } _resultobj = Py_BuildValue("i",_result); |
5875 | return _resultobj; | |
5876 | } | |
5877 | ||
5878 | #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0)) | |
efc5f224 | 5879 | static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5880 | PyObject * _resultobj; |
5881 | wxDialog * _arg0; | |
5882 | int _arg1; | |
1d99702e | 5883 | PyObject * _argo0 = 0; |
efc5f224 | 5884 | char *_kwnames[] = { "self","retCode", NULL }; |
bb0054cd RD |
5885 | |
5886 | self = self; | |
efc5f224 | 5887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 5888 | return NULL; |
1d99702e RD |
5889 | if (_argo0) { |
5890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
bb0054cd RD |
5892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p."); |
5893 | return NULL; | |
5894 | } | |
5895 | } | |
5896 | { | |
5897 | wxPy_BEGIN_ALLOW_THREADS; | |
5898 | wxDialog_SetReturnCode(_arg0,_arg1); | |
5899 | ||
5900 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5901 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
5902 | } Py_INCREF(Py_None); |
5903 | _resultobj = Py_None; | |
5904 | return _resultobj; | |
5905 | } | |
5906 | ||
f3d9dc1d RD |
5907 | #define wxDialog_CreateTextSizer(_swigobj,_swigarg0) (_swigobj->CreateTextSizer(_swigarg0)) |
5908 | static PyObject *_wrap_wxDialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5909 | PyObject * _resultobj; | |
5910 | wxSizer * _result; | |
5911 | wxDialog * _arg0; | |
5912 | wxString * _arg1; | |
5913 | PyObject * _argo0 = 0; | |
5914 | PyObject * _obj1 = 0; | |
5915 | char *_kwnames[] = { "self","message", NULL }; | |
f3d9dc1d RD |
5916 | |
5917 | self = self; | |
5918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_CreateTextSizer",_kwnames,&_argo0,&_obj1)) | |
5919 | return NULL; | |
5920 | if (_argo0) { | |
5921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateTextSizer. Expected _wxDialog_p."); | |
5924 | return NULL; | |
5925 | } | |
5926 | } | |
5927 | { | |
5928 | #if PYTHON_API_VERSION >= 1009 | |
5929 | char* tmpPtr; int tmpSize; | |
5930 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5931 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
f3d9dc1d RD |
5932 | return NULL; |
5933 | } | |
5934 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5935 | return NULL; | |
5936 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5937 | #else | |
5938 | if (!PyString_Check(_obj1)) { | |
5939 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5940 | return NULL; | |
5941 | } | |
5942 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5943 | #endif | |
5944 | } | |
5945 | { | |
5946 | wxPy_BEGIN_ALLOW_THREADS; | |
5947 | _result = (wxSizer *)wxDialog_CreateTextSizer(_arg0,*_arg1); | |
5948 | ||
5949 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5950 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5951 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f3d9dc1d RD |
5952 | { |
5953 | if (_obj1) | |
5954 | delete _arg1; | |
5955 | } | |
5956 | return _resultobj; | |
5957 | } | |
5958 | ||
5959 | #define wxDialog_CreateButtonSizer(_swigobj,_swigarg0) (_swigobj->CreateButtonSizer(_swigarg0)) | |
5960 | static PyObject *_wrap_wxDialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5961 | PyObject * _resultobj; | |
5962 | wxSizer * _result; | |
5963 | wxDialog * _arg0; | |
5964 | long _arg1; | |
5965 | PyObject * _argo0 = 0; | |
5966 | char *_kwnames[] = { "self","flags", NULL }; | |
f3d9dc1d RD |
5967 | |
5968 | self = self; | |
5969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDialog_CreateButtonSizer",_kwnames,&_argo0,&_arg1)) | |
5970 | return NULL; | |
5971 | if (_argo0) { | |
5972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateButtonSizer. Expected _wxDialog_p."); | |
5975 | return NULL; | |
5976 | } | |
5977 | } | |
5978 | { | |
5979 | wxPy_BEGIN_ALLOW_THREADS; | |
5980 | _result = (wxSizer *)wxDialog_CreateButtonSizer(_arg0,_arg1); | |
5981 | ||
5982 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5983 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5984 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f3d9dc1d RD |
5985 | return _resultobj; |
5986 | } | |
5987 | ||
bb0054cd RD |
5988 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
5989 | wxScrolledWindow *src; | |
5990 | wxPanel *dest; | |
5991 | src = (wxScrolledWindow *) ptr; | |
5992 | dest = (wxPanel *) src; | |
5993 | return (void *) dest; | |
5994 | } | |
5995 | ||
8ab979d7 RD |
5996 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
5997 | wxScrolledWindow *src; | |
5998 | wxWindow *dest; | |
5999 | src = (wxScrolledWindow *) ptr; | |
6000 | dest = (wxWindow *) src; | |
6001 | return (void *) dest; | |
6002 | } | |
6003 | ||
6004 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
6005 | wxScrolledWindow *src; | |
6006 | wxEvtHandler *dest; | |
6007 | src = (wxScrolledWindow *) ptr; | |
6008 | dest = (wxEvtHandler *) src; | |
6009 | return (void *) dest; | |
6010 | } | |
6011 | ||
9416aa89 RD |
6012 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
6013 | wxScrolledWindow *src; | |
6014 | wxObject *dest; | |
6015 | src = (wxScrolledWindow *) ptr; | |
6016 | dest = (wxObject *) src; | |
6017 | return (void *) dest; | |
6018 | } | |
6019 | ||
8ab979d7 | 6020 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6021 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6022 | PyObject * _resultobj; |
6023 | wxScrolledWindow * _result; | |
6024 | wxWindow * _arg0; | |
1d99702e | 6025 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
6026 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6027 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
6028 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
6029 | char * _arg5 = (char *) "scrolledWindow"; | |
6030 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6031 | wxPoint temp; |
6032 | PyObject * _obj2 = 0; | |
6033 | wxSize temp0; | |
6034 | PyObject * _obj3 = 0; | |
efc5f224 | 6035 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6036 | char _ptemp[128]; |
6037 | ||
6038 | self = self; | |
2f90df85 | 6039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 6040 | return NULL; |
1d99702e RD |
6041 | if (_argo0) { |
6042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
6045 | return NULL; | |
6046 | } | |
6047 | } | |
2f90df85 RD |
6048 | if (_obj2) |
6049 | { | |
6050 | _arg2 = &temp; | |
6051 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6052 | return NULL; |
2f90df85 RD |
6053 | } |
6054 | if (_obj3) | |
6055 | { | |
6056 | _arg3 = &temp0; | |
6057 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6058 | return NULL; |
2f90df85 | 6059 | } |
cf694132 RD |
6060 | { |
6061 | wxPy_BEGIN_ALLOW_THREADS; | |
6062 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
6063 | ||
6064 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6065 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6066 | } if (_result) { |
6067 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6068 | _resultobj = Py_BuildValue("s",_ptemp); | |
6069 | } else { | |
6070 | Py_INCREF(Py_None); | |
6071 | _resultobj = Py_None; | |
6072 | } | |
8ab979d7 RD |
6073 | return _resultobj; |
6074 | } | |
6075 | ||
6076 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) | |
efc5f224 | 6077 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6078 | PyObject * _resultobj; |
6079 | wxScrolledWindow * _arg0; | |
6080 | bool _arg1; | |
6081 | bool _arg2; | |
1d99702e | 6082 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6083 | int tempbool1; |
6084 | int tempbool2; | |
efc5f224 | 6085 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
6086 | |
6087 | self = self; | |
efc5f224 | 6088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 6089 | return NULL; |
1d99702e RD |
6090 | if (_argo0) { |
6091 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6092 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
6094 | return NULL; | |
6095 | } | |
6096 | } | |
6097 | _arg1 = (bool ) tempbool1; | |
6098 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6099 | { |
6100 | wxPy_BEGIN_ALLOW_THREADS; | |
6101 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); | |
6102 | ||
6103 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6104 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6105 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6106 | _resultobj = Py_None; |
6107 | return _resultobj; | |
6108 | } | |
6109 | ||
b7e72427 RD |
6110 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
6111 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6112 | PyObject * _resultobj; | |
6113 | int _result; | |
6114 | wxScrolledWindow * _arg0; | |
6115 | int _arg1; | |
6116 | PyObject * _argo0 = 0; | |
6117 | char *_kwnames[] = { "self","orient", NULL }; | |
6118 | ||
6119 | self = self; | |
6120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6121 | return NULL; | |
6122 | if (_argo0) { | |
6123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6126 | return NULL; | |
6127 | } | |
6128 | } | |
6129 | { | |
6130 | wxPy_BEGIN_ALLOW_THREADS; | |
6131 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); | |
6132 | ||
6133 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6134 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6135 | } _resultobj = Py_BuildValue("i",_result); |
6136 | return _resultobj; | |
6137 | } | |
6138 | ||
8ab979d7 | 6139 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 6140 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6141 | PyObject * _resultobj; |
6142 | wxScrolledWindow * _arg0; | |
6143 | int * _arg1; | |
6144 | int temp; | |
6145 | int * _arg2; | |
6146 | int temp0; | |
1d99702e | 6147 | PyObject * _argo0 = 0; |
efc5f224 | 6148 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6149 | |
6150 | self = self; | |
6151 | { | |
6152 | _arg1 = &temp; | |
6153 | } | |
6154 | { | |
6155 | _arg2 = &temp0; | |
6156 | } | |
efc5f224 | 6157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 6158 | return NULL; |
1d99702e RD |
6159 | if (_argo0) { |
6160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
6163 | return NULL; | |
6164 | } | |
6165 | } | |
cf694132 RD |
6166 | { |
6167 | wxPy_BEGIN_ALLOW_THREADS; | |
6168 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); | |
6169 | ||
6170 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6171 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6172 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6173 | _resultobj = Py_None; |
6174 | { | |
6175 | PyObject *o; | |
6176 | o = PyInt_FromLong((long) (*_arg1)); | |
6177 | _resultobj = t_output_helper(_resultobj, o); | |
6178 | } | |
6179 | { | |
6180 | PyObject *o; | |
6181 | o = PyInt_FromLong((long) (*_arg2)); | |
6182 | _resultobj = t_output_helper(_resultobj, o); | |
6183 | } | |
6184 | return _resultobj; | |
6185 | } | |
6186 | ||
b7e72427 RD |
6187 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
6188 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6189 | PyObject * _resultobj; | |
6190 | wxWindow * _result; | |
6191 | wxScrolledWindow * _arg0; | |
6192 | PyObject * _argo0 = 0; | |
6193 | char *_kwnames[] = { "self", NULL }; | |
b7e72427 RD |
6194 | |
6195 | self = self; | |
6196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6197 | return NULL; | |
6198 | if (_argo0) { | |
6199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6202 | return NULL; | |
6203 | } | |
6204 | } | |
6205 | { | |
6206 | wxPy_BEGIN_ALLOW_THREADS; | |
6207 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); | |
6208 | ||
6209 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6210 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6211 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b7e72427 RD |
6212 | return _resultobj; |
6213 | } | |
6214 | ||
8ab979d7 | 6215 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) |
efc5f224 | 6216 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6217 | PyObject * _resultobj; |
6218 | wxScrolledWindow * _arg0; | |
6219 | int * _arg1; | |
6220 | int temp; | |
6221 | int * _arg2; | |
6222 | int temp0; | |
1d99702e | 6223 | PyObject * _argo0 = 0; |
efc5f224 | 6224 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6225 | |
6226 | self = self; | |
6227 | { | |
6228 | _arg1 = &temp; | |
6229 | } | |
6230 | { | |
6231 | _arg2 = &temp0; | |
6232 | } | |
efc5f224 | 6233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
8ab979d7 | 6234 | return NULL; |
1d99702e RD |
6235 | if (_argo0) { |
6236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
6239 | return NULL; | |
6240 | } | |
6241 | } | |
cf694132 RD |
6242 | { |
6243 | wxPy_BEGIN_ALLOW_THREADS; | |
6244 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); | |
6245 | ||
6246 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6247 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6248 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6249 | _resultobj = Py_None; |
6250 | { | |
6251 | PyObject *o; | |
6252 | o = PyInt_FromLong((long) (*_arg1)); | |
6253 | _resultobj = t_output_helper(_resultobj, o); | |
6254 | } | |
6255 | { | |
6256 | PyObject *o; | |
6257 | o = PyInt_FromLong((long) (*_arg2)); | |
6258 | _resultobj = t_output_helper(_resultobj, o); | |
6259 | } | |
6260 | return _resultobj; | |
6261 | } | |
6262 | ||
6263 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
efc5f224 | 6264 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6265 | PyObject * _resultobj; |
6266 | bool _result; | |
6267 | wxScrolledWindow * _arg0; | |
1d99702e | 6268 | PyObject * _argo0 = 0; |
efc5f224 | 6269 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6270 | |
6271 | self = self; | |
efc5f224 | 6272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 6273 | return NULL; |
1d99702e RD |
6274 | if (_argo0) { |
6275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
6278 | return NULL; | |
6279 | } | |
6280 | } | |
cf694132 RD |
6281 | { |
6282 | wxPy_BEGIN_ALLOW_THREADS; | |
6283 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); | |
6284 | ||
6285 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6286 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6287 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6288 | return _resultobj; |
6289 | } | |
6290 | ||
6291 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 6292 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6293 | PyObject * _resultobj; |
6294 | wxScrolledWindow * _arg0; | |
6295 | wxDC * _arg1; | |
1d99702e RD |
6296 | PyObject * _argo0 = 0; |
6297 | PyObject * _argo1 = 0; | |
efc5f224 | 6298 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
6299 | |
6300 | self = self; | |
efc5f224 | 6301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6302 | return NULL; |
1d99702e RD |
6303 | if (_argo0) { |
6304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
6307 | return NULL; | |
6308 | } | |
6309 | } | |
1d99702e RD |
6310 | if (_argo1) { |
6311 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6312 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
6313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
6314 | return NULL; | |
6315 | } | |
6316 | } | |
cf694132 RD |
6317 | { |
6318 | wxPy_BEGIN_ALLOW_THREADS; | |
6319 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); | |
6320 | ||
6321 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6322 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6323 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6324 | _resultobj = Py_None; |
6325 | return _resultobj; | |
6326 | } | |
6327 | ||
6328 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 6329 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6330 | PyObject * _resultobj; |
6331 | wxScrolledWindow * _arg0; | |
6332 | int _arg1; | |
6333 | int _arg2; | |
1d99702e | 6334 | PyObject * _argo0 = 0; |
efc5f224 | 6335 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6336 | |
6337 | self = self; | |
efc5f224 | 6338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6339 | return NULL; |
1d99702e RD |
6340 | if (_argo0) { |
6341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
6344 | return NULL; | |
6345 | } | |
6346 | } | |
cf694132 RD |
6347 | { |
6348 | wxPy_BEGIN_ALLOW_THREADS; | |
6349 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); | |
6350 | ||
6351 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6352 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6353 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6354 | _resultobj = Py_None; |
6355 | return _resultobj; | |
6356 | } | |
6357 | ||
f6bcfd97 | 6358 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6359 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6360 | PyObject * _resultobj; |
6361 | wxScrolledWindow * _arg0; | |
6362 | int _arg1; | |
6363 | int _arg2; | |
6364 | int _arg3; | |
6365 | int _arg4; | |
1d99702e RD |
6366 | int _arg5 = (int ) 0; |
6367 | int _arg6 = (int ) 0; | |
f6bcfd97 | 6368 | int _arg7 = (int ) FALSE; |
1d99702e | 6369 | PyObject * _argo0 = 0; |
f6bcfd97 | 6370 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
6371 | |
6372 | self = self; | |
f6bcfd97 | 6373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 6374 | return NULL; |
1d99702e RD |
6375 | if (_argo0) { |
6376 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6377 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
6379 | return NULL; | |
6380 | } | |
6381 | } | |
cf694132 RD |
6382 | { |
6383 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6384 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 RD |
6385 | |
6386 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6387 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6388 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6389 | _resultobj = Py_None; |
6390 | return _resultobj; | |
6391 | } | |
6392 | ||
b7e72427 RD |
6393 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
6394 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6395 | PyObject * _resultobj; | |
6396 | wxScrolledWindow * _arg0; | |
6397 | int _arg1; | |
6398 | int _arg2; | |
6399 | PyObject * _argo0 = 0; | |
6400 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6401 | ||
6402 | self = self; | |
6403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6404 | return NULL; | |
6405 | if (_argo0) { | |
6406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6409 | return NULL; | |
6410 | } | |
6411 | } | |
6412 | { | |
6413 | wxPy_BEGIN_ALLOW_THREADS; | |
6414 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); | |
6415 | ||
6416 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6417 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6418 | } Py_INCREF(Py_None); |
6419 | _resultobj = Py_None; | |
6420 | return _resultobj; | |
6421 | } | |
6422 | ||
eb715945 RD |
6423 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
6424 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6425 | PyObject * _resultobj; | |
6426 | wxScrolledWindow * _arg0; | |
6427 | wxWindow * _arg1; | |
6428 | PyObject * _argo0 = 0; | |
6429 | PyObject * _argo1 = 0; | |
6430 | char *_kwnames[] = { "self","window", NULL }; | |
6431 | ||
6432 | self = self; | |
6433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6434 | return NULL; | |
6435 | if (_argo0) { | |
6436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6439 | return NULL; | |
6440 | } | |
6441 | } | |
6442 | if (_argo1) { | |
6443 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6444 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6446 | return NULL; | |
6447 | } | |
6448 | } | |
6449 | { | |
6450 | wxPy_BEGIN_ALLOW_THREADS; | |
6451 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); | |
6452 | ||
6453 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6454 | if (PyErr_Occurred()) return NULL; |
eb715945 RD |
6455 | } Py_INCREF(Py_None); |
6456 | _resultobj = Py_None; | |
6457 | return _resultobj; | |
6458 | } | |
6459 | ||
4c9993c3 RD |
6460 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
6461 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6462 | PyObject * _resultobj; | |
6463 | wxScrolledWindow * _arg0; | |
6464 | int * _arg1; | |
6465 | int temp; | |
6466 | int * _arg2; | |
6467 | int temp0; | |
6468 | PyObject * _argo0 = 0; | |
6469 | char *_kwnames[] = { "self", NULL }; | |
6470 | ||
6471 | self = self; | |
6472 | { | |
6473 | _arg1 = &temp; | |
6474 | } | |
6475 | { | |
6476 | _arg2 = &temp0; | |
6477 | } | |
6478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6479 | return NULL; | |
6480 | if (_argo0) { | |
6481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6484 | return NULL; | |
6485 | } | |
6486 | } | |
6487 | { | |
6488 | wxPy_BEGIN_ALLOW_THREADS; | |
6489 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); | |
6490 | ||
6491 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6492 | if (PyErr_Occurred()) return NULL; |
4c9993c3 RD |
6493 | } Py_INCREF(Py_None); |
6494 | _resultobj = Py_None; | |
6495 | { | |
6496 | PyObject *o; | |
6497 | o = PyInt_FromLong((long) (*_arg1)); | |
6498 | _resultobj = t_output_helper(_resultobj, o); | |
6499 | } | |
6500 | { | |
6501 | PyObject *o; | |
6502 | o = PyInt_FromLong((long) (*_arg2)); | |
6503 | _resultobj = t_output_helper(_resultobj, o); | |
6504 | } | |
6505 | return _resultobj; | |
6506 | } | |
6507 | ||
8ab979d7 | 6508 | #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1)) |
efc5f224 | 6509 | static PyObject *_wrap_wxScrolledWindow_ViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6510 | PyObject * _resultobj; |
6511 | wxScrolledWindow * _arg0; | |
6512 | int * _arg1; | |
6513 | int temp; | |
6514 | int * _arg2; | |
6515 | int temp0; | |
1d99702e | 6516 | PyObject * _argo0 = 0; |
efc5f224 | 6517 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6518 | |
6519 | self = self; | |
6520 | { | |
6521 | _arg1 = &temp; | |
6522 | } | |
6523 | { | |
6524 | _arg2 = &temp0; | |
6525 | } | |
efc5f224 | 6526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_ViewStart",_kwnames,&_argo0)) |
8ab979d7 | 6527 | return NULL; |
1d99702e RD |
6528 | if (_argo0) { |
6529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p."); |
6532 | return NULL; | |
6533 | } | |
6534 | } | |
cf694132 RD |
6535 | { |
6536 | wxPy_BEGIN_ALLOW_THREADS; | |
6537 | wxScrolledWindow_ViewStart(_arg0,_arg1,_arg2); | |
6538 | ||
6539 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6540 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6541 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6542 | _resultobj = Py_None; |
6543 | { | |
6544 | PyObject *o; | |
6545 | o = PyInt_FromLong((long) (*_arg1)); | |
6546 | _resultobj = t_output_helper(_resultobj, o); | |
6547 | } | |
6548 | { | |
6549 | PyObject *o; | |
6550 | o = PyInt_FromLong((long) (*_arg2)); | |
6551 | _resultobj = t_output_helper(_resultobj, o); | |
6552 | } | |
6553 | return _resultobj; | |
6554 | } | |
6555 | ||
9d8bd15f RD |
6556 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6557 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6558 | PyObject * _resultobj; | |
6559 | wxScrolledWindow * _arg0; | |
6560 | int _arg1; | |
6561 | int _arg2; | |
6562 | int * _arg3; | |
6563 | int temp; | |
6564 | int * _arg4; | |
6565 | int temp0; | |
6566 | PyObject * _argo0 = 0; | |
6567 | char *_kwnames[] = { "self","x","y", NULL }; | |
6568 | ||
6569 | self = self; | |
6570 | { | |
6571 | _arg3 = &temp; | |
6572 | } | |
6573 | { | |
6574 | _arg4 = &temp0; | |
6575 | } | |
6576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6577 | return NULL; | |
6578 | if (_argo0) { | |
6579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
6582 | return NULL; | |
6583 | } | |
6584 | } | |
6585 | { | |
6586 | wxPy_BEGIN_ALLOW_THREADS; | |
6587 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6588 | ||
6589 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6590 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6591 | } Py_INCREF(Py_None); |
6592 | _resultobj = Py_None; | |
6593 | { | |
6594 | PyObject *o; | |
6595 | o = PyInt_FromLong((long) (*_arg3)); | |
6596 | _resultobj = t_output_helper(_resultobj, o); | |
6597 | } | |
6598 | { | |
6599 | PyObject *o; | |
6600 | o = PyInt_FromLong((long) (*_arg4)); | |
6601 | _resultobj = t_output_helper(_resultobj, o); | |
6602 | } | |
6603 | return _resultobj; | |
6604 | } | |
6605 | ||
6606 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6607 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6608 | PyObject * _resultobj; | |
6609 | wxScrolledWindow * _arg0; | |
6610 | int _arg1; | |
6611 | int _arg2; | |
6612 | int * _arg3; | |
6613 | int temp; | |
6614 | int * _arg4; | |
6615 | int temp0; | |
6616 | PyObject * _argo0 = 0; | |
6617 | char *_kwnames[] = { "self","x","y", NULL }; | |
6618 | ||
6619 | self = self; | |
6620 | { | |
6621 | _arg3 = &temp; | |
6622 | } | |
6623 | { | |
6624 | _arg4 = &temp0; | |
6625 | } | |
6626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6627 | return NULL; | |
6628 | if (_argo0) { | |
6629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
6632 | return NULL; | |
6633 | } | |
6634 | } | |
6635 | { | |
6636 | wxPy_BEGIN_ALLOW_THREADS; | |
6637 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6638 | ||
6639 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6640 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6641 | } Py_INCREF(Py_None); |
6642 | _resultobj = Py_None; | |
6643 | { | |
6644 | PyObject *o; | |
6645 | o = PyInt_FromLong((long) (*_arg3)); | |
6646 | _resultobj = t_output_helper(_resultobj, o); | |
6647 | } | |
6648 | { | |
6649 | PyObject *o; | |
6650 | o = PyInt_FromLong((long) (*_arg4)); | |
6651 | _resultobj = t_output_helper(_resultobj, o); | |
6652 | } | |
6653 | return _resultobj; | |
6654 | } | |
6655 | ||
d1679124 RD |
6656 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
6657 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6658 | PyObject * _resultobj; | |
6659 | wxScrolledWindow * _arg0; | |
6660 | double _arg1; | |
6661 | double _arg2; | |
6662 | PyObject * _argo0 = 0; | |
6663 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
6664 | ||
6665 | self = self; | |
6666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6667 | return NULL; | |
6668 | if (_argo0) { | |
6669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
6672 | return NULL; | |
6673 | } | |
6674 | } | |
6675 | { | |
6676 | wxPy_BEGIN_ALLOW_THREADS; | |
6677 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); | |
6678 | ||
6679 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6680 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6681 | } Py_INCREF(Py_None); |
6682 | _resultobj = Py_None; | |
6683 | return _resultobj; | |
6684 | } | |
6685 | ||
6686 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
6687 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6688 | PyObject * _resultobj; | |
6689 | double _result; | |
6690 | wxScrolledWindow * _arg0; | |
6691 | PyObject * _argo0 = 0; | |
6692 | char *_kwnames[] = { "self", NULL }; | |
6693 | ||
6694 | self = self; | |
6695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
6696 | return NULL; | |
6697 | if (_argo0) { | |
6698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
6701 | return NULL; | |
6702 | } | |
6703 | } | |
6704 | { | |
6705 | wxPy_BEGIN_ALLOW_THREADS; | |
6706 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); | |
6707 | ||
6708 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6709 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6710 | } _resultobj = Py_BuildValue("d",_result); |
6711 | return _resultobj; | |
6712 | } | |
6713 | ||
6714 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
6715 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6716 | PyObject * _resultobj; | |
6717 | double _result; | |
6718 | wxScrolledWindow * _arg0; | |
6719 | PyObject * _argo0 = 0; | |
6720 | char *_kwnames[] = { "self", NULL }; | |
6721 | ||
6722 | self = self; | |
6723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
6724 | return NULL; | |
6725 | if (_argo0) { | |
6726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
6729 | return NULL; | |
6730 | } | |
6731 | } | |
6732 | { | |
6733 | wxPy_BEGIN_ALLOW_THREADS; | |
6734 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); | |
6735 | ||
6736 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6737 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6738 | } _resultobj = Py_BuildValue("d",_result); |
6739 | return _resultobj; | |
6740 | } | |
6741 | ||
6742 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
6743 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6744 | PyObject * _resultobj; | |
6745 | wxScrolledWindow * _arg0; | |
6746 | PyObject * _argo0 = 0; | |
6747 | char *_kwnames[] = { "self", NULL }; | |
6748 | ||
6749 | self = self; | |
6750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
6751 | return NULL; | |
6752 | if (_argo0) { | |
6753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
6756 | return NULL; | |
6757 | } | |
6758 | } | |
6759 | { | |
6760 | wxPy_BEGIN_ALLOW_THREADS; | |
6761 | wxScrolledWindow_AdjustScrollbars(_arg0); | |
6762 | ||
6763 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6764 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6765 | } Py_INCREF(Py_None); |
6766 | _resultobj = Py_None; | |
6767 | return _resultobj; | |
6768 | } | |
6769 | ||
8ab979d7 RD |
6770 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
6771 | wxMenu *src; | |
6772 | wxEvtHandler *dest; | |
6773 | src = (wxMenu *) ptr; | |
6774 | dest = (wxEvtHandler *) src; | |
6775 | return (void *) dest; | |
6776 | } | |
6777 | ||
9416aa89 RD |
6778 | static void *SwigwxMenuTowxObject(void *ptr) { |
6779 | wxMenu *src; | |
6780 | wxObject *dest; | |
6781 | src = (wxMenu *) ptr; | |
6782 | dest = (wxObject *) src; | |
6783 | return (void *) dest; | |
6784 | } | |
6785 | ||
8bf5d46e | 6786 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) |
efc5f224 | 6787 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6788 | PyObject * _resultobj; |
6789 | wxMenu * _result; | |
1d99702e RD |
6790 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
6791 | long _arg1 = (long ) 0; | |
8ab979d7 | 6792 | PyObject * _obj0 = 0; |
efc5f224 | 6793 | char *_kwnames[] = { "title","style", NULL }; |
8ab979d7 RD |
6794 | char _ptemp[128]; |
6795 | ||
6796 | self = self; | |
efc5f224 | 6797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
8ab979d7 RD |
6798 | return NULL; |
6799 | if (_obj0) | |
6800 | { | |
185d7c3e RD |
6801 | #if PYTHON_API_VERSION >= 1009 |
6802 | char* tmpPtr; int tmpSize; | |
6803 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 6804 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6805 | return NULL; |
6806 | } | |
6807 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
6808 | return NULL; | |
6809 | _arg0 = new wxString(tmpPtr, tmpSize); | |
6810 | #else | |
8ab979d7 RD |
6811 | if (!PyString_Check(_obj0)) { |
6812 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6813 | return NULL; | |
6814 | } | |
185d7c3e RD |
6815 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
6816 | #endif | |
8ab979d7 | 6817 | } |
cf694132 RD |
6818 | { |
6819 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 6820 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
cf694132 RD |
6821 | |
6822 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6823 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6824 | } if (_result) { |
6825 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
6826 | _resultobj = Py_BuildValue("s",_ptemp); | |
6827 | } else { | |
6828 | Py_INCREF(Py_None); | |
6829 | _resultobj = Py_None; | |
6830 | } | |
8ab979d7 RD |
6831 | { |
6832 | if (_obj0) | |
6833 | delete _arg0; | |
6834 | } | |
6835 | return _resultobj; | |
6836 | } | |
6837 | ||
6838 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6839 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6840 | PyObject * _resultobj; |
6841 | wxMenu * _arg0; | |
6842 | int _arg1; | |
6843 | wxString * _arg2; | |
1d99702e | 6844 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; |
926bb76c | 6845 | int _arg4 = (int ) FALSE; |
1d99702e | 6846 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6847 | PyObject * _obj2 = 0; |
6848 | PyObject * _obj3 = 0; | |
efc5f224 | 6849 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; |
8ab979d7 RD |
6850 | |
6851 | self = self; | |
926bb76c | 6852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
8ab979d7 | 6853 | return NULL; |
1d99702e RD |
6854 | if (_argo0) { |
6855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); |
6858 | return NULL; | |
6859 | } | |
6860 | } | |
6861 | { | |
185d7c3e RD |
6862 | #if PYTHON_API_VERSION >= 1009 |
6863 | char* tmpPtr; int tmpSize; | |
6864 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 6865 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6866 | return NULL; |
6867 | } | |
6868 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6869 | return NULL; | |
6870 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6871 | #else | |
8ab979d7 RD |
6872 | if (!PyString_Check(_obj2)) { |
6873 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6874 | return NULL; | |
6875 | } | |
185d7c3e RD |
6876 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6877 | #endif | |
8ab979d7 RD |
6878 | } |
6879 | if (_obj3) | |
6880 | { | |
185d7c3e RD |
6881 | #if PYTHON_API_VERSION >= 1009 |
6882 | char* tmpPtr; int tmpSize; | |
6883 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 6884 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6885 | return NULL; |
6886 | } | |
6887 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6888 | return NULL; | |
6889 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6890 | #else | |
8ab979d7 RD |
6891 | if (!PyString_Check(_obj3)) { |
6892 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6893 | return NULL; | |
6894 | } | |
185d7c3e RD |
6895 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
6896 | #endif | |
8ab979d7 | 6897 | } |
cf694132 RD |
6898 | { |
6899 | wxPy_BEGIN_ALLOW_THREADS; | |
6900 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
6901 | ||
6902 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6903 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6904 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6905 | _resultobj = Py_None; |
6906 | { | |
6907 | if (_obj2) | |
6908 | delete _arg2; | |
6909 | } | |
6910 | { | |
6911 | if (_obj3) | |
6912 | delete _arg3; | |
6913 | } | |
6914 | return _resultobj; | |
6915 | } | |
6916 | ||
6917 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6918 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6919 | PyObject * _resultobj; |
6920 | wxMenu * _arg0; | |
6921 | int _arg1; | |
6922 | wxString * _arg2; | |
6923 | wxMenu * _arg3; | |
1d99702e RD |
6924 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; |
6925 | PyObject * _argo0 = 0; | |
8ab979d7 | 6926 | PyObject * _obj2 = 0; |
1d99702e | 6927 | PyObject * _argo3 = 0; |
8ab979d7 | 6928 | PyObject * _obj4 = 0; |
efc5f224 | 6929 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; |
8ab979d7 RD |
6930 | |
6931 | self = self; | |
efc5f224 | 6932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 6933 | return NULL; |
1d99702e RD |
6934 | if (_argo0) { |
6935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
6938 | return NULL; | |
6939 | } | |
6940 | } | |
6941 | { | |
185d7c3e RD |
6942 | #if PYTHON_API_VERSION >= 1009 |
6943 | char* tmpPtr; int tmpSize; | |
6944 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 6945 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6946 | return NULL; |
6947 | } | |
6948 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6949 | return NULL; | |
6950 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6951 | #else | |
8ab979d7 RD |
6952 | if (!PyString_Check(_obj2)) { |
6953 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6954 | return NULL; | |
6955 | } | |
185d7c3e RD |
6956 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6957 | #endif | |
8ab979d7 | 6958 | } |
1d99702e RD |
6959 | if (_argo3) { |
6960 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
6961 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8ab979d7 RD |
6962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
6963 | return NULL; | |
6964 | } | |
6965 | } | |
6966 | if (_obj4) | |
6967 | { | |
185d7c3e RD |
6968 | #if PYTHON_API_VERSION >= 1009 |
6969 | char* tmpPtr; int tmpSize; | |
6970 | if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) { | |
794c5cb1 | 6971 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6972 | return NULL; |
6973 | } | |
6974 | if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1) | |
6975 | return NULL; | |
6976 | _arg4 = new wxString(tmpPtr, tmpSize); | |
6977 | #else | |
8ab979d7 RD |
6978 | if (!PyString_Check(_obj4)) { |
6979 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6980 | return NULL; | |
6981 | } | |
185d7c3e RD |
6982 | _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4)); |
6983 | #endif | |
8ab979d7 | 6984 | } |
cf694132 RD |
6985 | { |
6986 | wxPy_BEGIN_ALLOW_THREADS; | |
6987 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
6988 | ||
6989 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6990 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6991 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6992 | _resultobj = Py_None; |
6993 | { | |
6994 | if (_obj2) | |
6995 | delete _arg2; | |
6996 | } | |
6997 | { | |
6998 | if (_obj4) | |
6999 | delete _arg4; | |
7000 | } | |
7001 | return _resultobj; | |
7002 | } | |
7003 | ||
af309447 | 7004 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
efc5f224 | 7005 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
7006 | PyObject * _resultobj; |
7007 | wxMenu * _arg0; | |
7008 | wxMenuItem * _arg1; | |
1d99702e RD |
7009 | PyObject * _argo0 = 0; |
7010 | PyObject * _argo1 = 0; | |
efc5f224 | 7011 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
7012 | |
7013 | self = self; | |
efc5f224 | 7014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 7015 | return NULL; |
1d99702e RD |
7016 | if (_argo0) { |
7017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
af309447 RD |
7019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); |
7020 | return NULL; | |
7021 | } | |
7022 | } | |
1d99702e RD |
7023 | if (_argo1) { |
7024 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7025 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
af309447 RD |
7026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); |
7027 | return NULL; | |
7028 | } | |
7029 | } | |
cf694132 RD |
7030 | { |
7031 | wxPy_BEGIN_ALLOW_THREADS; | |
7032 | wxMenu_AppendItem(_arg0,_arg1); | |
7033 | ||
7034 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7035 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7036 | } Py_INCREF(Py_None); |
af309447 RD |
7037 | _resultobj = Py_None; |
7038 | return _resultobj; | |
7039 | } | |
7040 | ||
8ab979d7 | 7041 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
efc5f224 | 7042 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7043 | PyObject * _resultobj; |
7044 | wxMenu * _arg0; | |
1d99702e | 7045 | PyObject * _argo0 = 0; |
efc5f224 | 7046 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7047 | |
7048 | self = self; | |
efc5f224 | 7049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
8ab979d7 | 7050 | return NULL; |
1d99702e RD |
7051 | if (_argo0) { |
7052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
7055 | return NULL; | |
7056 | } | |
7057 | } | |
cf694132 RD |
7058 | { |
7059 | wxPy_BEGIN_ALLOW_THREADS; | |
7060 | wxMenu_AppendSeparator(_arg0); | |
7061 | ||
7062 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7063 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7064 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7065 | _resultobj = Py_None; |
7066 | return _resultobj; | |
7067 | } | |
7068 | ||
7069 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 7070 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7071 | PyObject * _resultobj; |
7072 | wxMenu * _arg0; | |
1d99702e | 7073 | PyObject * _argo0 = 0; |
efc5f224 | 7074 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7075 | |
7076 | self = self; | |
efc5f224 | 7077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 7078 | return NULL; |
1d99702e RD |
7079 | if (_argo0) { |
7080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
7083 | return NULL; | |
7084 | } | |
7085 | } | |
cf694132 RD |
7086 | { |
7087 | wxPy_BEGIN_ALLOW_THREADS; | |
7088 | wxMenu_Break(_arg0); | |
7089 | ||
7090 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7091 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7092 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7093 | _resultobj = Py_None; |
7094 | return _resultobj; | |
7095 | } | |
7096 | ||
7097 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 7098 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7099 | PyObject * _resultobj; |
7100 | wxMenu * _arg0; | |
7101 | int _arg1; | |
7102 | bool _arg2; | |
1d99702e | 7103 | PyObject * _argo0 = 0; |
8ab979d7 | 7104 | int tempbool2; |
efc5f224 | 7105 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
7106 | |
7107 | self = self; | |
efc5f224 | 7108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7109 | return NULL; |
1d99702e RD |
7110 | if (_argo0) { |
7111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
7114 | return NULL; | |
7115 | } | |
7116 | } | |
7117 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
7118 | { |
7119 | wxPy_BEGIN_ALLOW_THREADS; | |
7120 | wxMenu_Check(_arg0,_arg1,_arg2); | |
7121 | ||
7122 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7123 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7124 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7125 | _resultobj = Py_None; |
7126 | return _resultobj; | |
7127 | } | |
7128 | ||
b1462dfa RD |
7129 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
7130 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7131 | PyObject * _resultobj; | |
7132 | bool _result; | |
7133 | wxMenu * _arg0; | |
7134 | int _arg1; | |
7135 | PyObject * _argo0 = 0; | |
7136 | char *_kwnames[] = { "self","id", NULL }; | |
7137 | ||
7138 | self = self; | |
7139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
7140 | return NULL; | |
7141 | if (_argo0) { | |
7142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
7145 | return NULL; | |
7146 | } | |
7147 | } | |
7148 | { | |
7149 | wxPy_BEGIN_ALLOW_THREADS; | |
7150 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
7151 | ||
7152 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7153 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7154 | } _resultobj = Py_BuildValue("i",_result); |
7155 | return _resultobj; | |
7156 | } | |
7157 | ||
8ab979d7 | 7158 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 7159 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7160 | PyObject * _resultobj; |
7161 | wxMenu * _arg0; | |
7162 | int _arg1; | |
7163 | bool _arg2; | |
1d99702e | 7164 | PyObject * _argo0 = 0; |
8ab979d7 | 7165 | int tempbool2; |
efc5f224 | 7166 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
7167 | |
7168 | self = self; | |
efc5f224 | 7169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7170 | return NULL; |
1d99702e RD |
7171 | if (_argo0) { |
7172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
7175 | return NULL; | |
7176 | } | |
7177 | } | |
7178 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
7179 | { |
7180 | wxPy_BEGIN_ALLOW_THREADS; | |
7181 | wxMenu_Enable(_arg0,_arg1,_arg2); | |
7182 | ||
7183 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7184 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7185 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7186 | _resultobj = Py_None; |
7187 | return _resultobj; | |
7188 | } | |
7189 | ||
b1462dfa RD |
7190 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
7191 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7192 | PyObject * _resultobj; | |
7193 | bool _result; | |
7194 | wxMenu * _arg0; | |
7195 | int _arg1; | |
7196 | PyObject * _argo0 = 0; | |
7197 | char *_kwnames[] = { "self","id", NULL }; | |
7198 | ||
7199 | self = self; | |
7200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
7201 | return NULL; | |
7202 | if (_argo0) { | |
7203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
7206 | return NULL; | |
7207 | } | |
7208 | } | |
7209 | { | |
7210 | wxPy_BEGIN_ALLOW_THREADS; | |
7211 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); | |
7212 | ||
7213 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7214 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7215 | } _resultobj = Py_BuildValue("i",_result); |
7216 | return _resultobj; | |
7217 | } | |
7218 | ||
8ab979d7 | 7219 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 7220 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7221 | PyObject * _resultobj; |
7222 | int _result; | |
7223 | wxMenu * _arg0; | |
7224 | wxString * _arg1; | |
1d99702e | 7225 | PyObject * _argo0 = 0; |
8ab979d7 | 7226 | PyObject * _obj1 = 0; |
efc5f224 | 7227 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
7228 | |
7229 | self = self; | |
efc5f224 | 7230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7231 | return NULL; |
1d99702e RD |
7232 | if (_argo0) { |
7233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
7236 | return NULL; | |
7237 | } | |
7238 | } | |
7239 | { | |
185d7c3e RD |
7240 | #if PYTHON_API_VERSION >= 1009 |
7241 | char* tmpPtr; int tmpSize; | |
7242 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7243 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7244 | return NULL; |
7245 | } | |
7246 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7247 | return NULL; | |
7248 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7249 | #else | |
8ab979d7 RD |
7250 | if (!PyString_Check(_obj1)) { |
7251 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7252 | return NULL; | |
7253 | } | |
185d7c3e RD |
7254 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7255 | #endif | |
8ab979d7 | 7256 | } |
cf694132 RD |
7257 | { |
7258 | wxPy_BEGIN_ALLOW_THREADS; | |
7259 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); | |
7260 | ||
7261 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7262 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7263 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7264 | { |
7265 | if (_obj1) | |
7266 | delete _arg1; | |
7267 | } | |
7268 | return _resultobj; | |
7269 | } | |
7270 | ||
b1462dfa RD |
7271 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
7272 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7273 | PyObject * _resultobj; | |
7274 | wxMenuItem * _result; | |
7275 | wxMenu * _arg0; | |
7276 | int _arg1; | |
7277 | PyObject * _argo0 = 0; | |
7278 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
7279 | |
7280 | self = self; | |
7281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
7282 | return NULL; | |
7283 | if (_argo0) { | |
7284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
7287 | return NULL; | |
7288 | } | |
7289 | } | |
7290 | { | |
7291 | wxPy_BEGIN_ALLOW_THREADS; | |
7292 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); | |
7293 | ||
7294 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7295 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7296 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
7297 | return _resultobj; |
7298 | } | |
7299 | ||
8ab979d7 | 7300 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 7301 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7302 | PyObject * _resultobj; |
7303 | wxString * _result; | |
7304 | wxMenu * _arg0; | |
1d99702e | 7305 | PyObject * _argo0 = 0; |
efc5f224 | 7306 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7307 | |
7308 | self = self; | |
efc5f224 | 7309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 7310 | return NULL; |
1d99702e RD |
7311 | if (_argo0) { |
7312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
7315 | return NULL; | |
7316 | } | |
7317 | } | |
8ab979d7 | 7318 | { |
cf694132 RD |
7319 | wxPy_BEGIN_ALLOW_THREADS; |
7320 | _result = new wxString (wxMenu_GetTitle(_arg0)); | |
7321 | ||
7322 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7323 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7324 | }{ |
eec92d76 | 7325 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7326 | } |
7327 | { | |
7328 | delete _result; | |
7329 | } | |
7330 | return _resultobj; | |
7331 | } | |
7332 | ||
7333 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 7334 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7335 | PyObject * _resultobj; |
7336 | wxMenu * _arg0; | |
7337 | wxString * _arg1; | |
1d99702e | 7338 | PyObject * _argo0 = 0; |
8ab979d7 | 7339 | PyObject * _obj1 = 0; |
efc5f224 | 7340 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
7341 | |
7342 | self = self; | |
efc5f224 | 7343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7344 | return NULL; |
1d99702e RD |
7345 | if (_argo0) { |
7346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
7349 | return NULL; | |
7350 | } | |
7351 | } | |
7352 | { | |
185d7c3e RD |
7353 | #if PYTHON_API_VERSION >= 1009 |
7354 | char* tmpPtr; int tmpSize; | |
7355 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7356 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7357 | return NULL; |
7358 | } | |
7359 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7360 | return NULL; | |
7361 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7362 | #else | |
8ab979d7 RD |
7363 | if (!PyString_Check(_obj1)) { |
7364 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7365 | return NULL; | |
7366 | } | |
185d7c3e RD |
7367 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7368 | #endif | |
8ab979d7 | 7369 | } |
cf694132 RD |
7370 | { |
7371 | wxPy_BEGIN_ALLOW_THREADS; | |
7372 | wxMenu_SetTitle(_arg0,*_arg1); | |
7373 | ||
7374 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7375 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7376 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7377 | _resultobj = Py_None; |
7378 | { | |
7379 | if (_obj1) | |
7380 | delete _arg1; | |
7381 | } | |
7382 | return _resultobj; | |
7383 | } | |
7384 | ||
b1462dfa RD |
7385 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
7386 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7387 | PyObject * _resultobj; |
b1462dfa | 7388 | wxString * _result; |
8ab979d7 RD |
7389 | wxMenu * _arg0; |
7390 | int _arg1; | |
1d99702e | 7391 | PyObject * _argo0 = 0; |
efc5f224 | 7392 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7393 | |
7394 | self = self; | |
b1462dfa | 7395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7396 | return NULL; |
1d99702e RD |
7397 | if (_argo0) { |
7398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7401 | return NULL; |
7402 | } | |
7403 | } | |
cf694132 RD |
7404 | { |
7405 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7406 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 RD |
7407 | |
7408 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7409 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7410 | }{ |
eec92d76 | 7411 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
7412 | } |
7413 | { | |
7414 | delete _result; | |
7415 | } | |
8ab979d7 RD |
7416 | return _resultobj; |
7417 | } | |
7418 | ||
b1462dfa RD |
7419 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
7420 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7421 | PyObject * _resultobj; |
8ab979d7 RD |
7422 | wxMenu * _arg0; |
7423 | int _arg1; | |
b1462dfa | 7424 | wxString * _arg2; |
1d99702e | 7425 | PyObject * _argo0 = 0; |
b1462dfa RD |
7426 | PyObject * _obj2 = 0; |
7427 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
7428 | |
7429 | self = self; | |
b1462dfa | 7430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7431 | return NULL; |
1d99702e RD |
7432 | if (_argo0) { |
7433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7436 | return NULL; |
7437 | } | |
7438 | } | |
b1462dfa | 7439 | { |
185d7c3e RD |
7440 | #if PYTHON_API_VERSION >= 1009 |
7441 | char* tmpPtr; int tmpSize; | |
7442 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7443 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7444 | return NULL; |
7445 | } | |
7446 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7447 | return NULL; | |
7448 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7449 | #else | |
b1462dfa RD |
7450 | if (!PyString_Check(_obj2)) { |
7451 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7452 | return NULL; | |
7453 | } | |
185d7c3e RD |
7454 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7455 | #endif | |
b1462dfa | 7456 | } |
8ab979d7 | 7457 | { |
cf694132 | 7458 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7459 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
7460 | |
7461 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7462 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7463 | } Py_INCREF(Py_None); |
7464 | _resultobj = Py_None; | |
8ab979d7 | 7465 | { |
b1462dfa RD |
7466 | if (_obj2) |
7467 | delete _arg2; | |
8ab979d7 RD |
7468 | } |
7469 | return _resultobj; | |
7470 | } | |
7471 | ||
b1462dfa RD |
7472 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
7473 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7474 | PyObject * _resultobj; |
7475 | wxString * _result; | |
7476 | wxMenu * _arg0; | |
7477 | int _arg1; | |
1d99702e | 7478 | PyObject * _argo0 = 0; |
efc5f224 | 7479 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7480 | |
7481 | self = self; | |
b1462dfa | 7482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7483 | return NULL; |
1d99702e RD |
7484 | if (_argo0) { |
7485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
7488 | return NULL; |
7489 | } | |
7490 | } | |
8ab979d7 | 7491 | { |
cf694132 | 7492 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7493 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
7494 | |
7495 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7496 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7497 | }{ |
eec92d76 | 7498 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7499 | } |
7500 | { | |
7501 | delete _result; | |
7502 | } | |
7503 | return _resultobj; | |
7504 | } | |
7505 | ||
7506 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 7507 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7508 | PyObject * _resultobj; |
7509 | wxMenu * _arg0; | |
7510 | int _arg1; | |
7511 | wxString * _arg2; | |
1d99702e | 7512 | PyObject * _argo0 = 0; |
8ab979d7 | 7513 | PyObject * _obj2 = 0; |
efc5f224 | 7514 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
7515 | |
7516 | self = self; | |
efc5f224 | 7517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7518 | return NULL; |
1d99702e RD |
7519 | if (_argo0) { |
7520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
7523 | return NULL; | |
7524 | } | |
7525 | } | |
7526 | { | |
185d7c3e RD |
7527 | #if PYTHON_API_VERSION >= 1009 |
7528 | char* tmpPtr; int tmpSize; | |
7529 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7530 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7531 | return NULL; |
7532 | } | |
7533 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7534 | return NULL; | |
7535 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7536 | #else | |
8ab979d7 RD |
7537 | if (!PyString_Check(_obj2)) { |
7538 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7539 | return NULL; | |
7540 | } | |
185d7c3e RD |
7541 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7542 | #endif | |
8ab979d7 | 7543 | } |
cf694132 RD |
7544 | { |
7545 | wxPy_BEGIN_ALLOW_THREADS; | |
7546 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); | |
7547 | ||
7548 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7549 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7550 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7551 | _resultobj = Py_None; |
7552 | { | |
7553 | if (_obj2) | |
7554 | delete _arg2; | |
7555 | } | |
7556 | return _resultobj; | |
7557 | } | |
7558 | ||
b1462dfa RD |
7559 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
7560 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7561 | PyObject * _resultobj; |
8ab979d7 | 7562 | wxMenu * _arg0; |
b1462dfa | 7563 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 7564 | PyObject * _argo0 = 0; |
b1462dfa RD |
7565 | PyObject * _argo1 = 0; |
7566 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
7567 | |
7568 | self = self; | |
b1462dfa | 7569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7570 | return NULL; |
1d99702e RD |
7571 | if (_argo0) { |
7572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
7574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
7575 | return NULL; | |
7576 | } | |
7577 | } | |
7578 | if (_argo1) { | |
7579 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7580 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
7582 | return NULL; |
7583 | } | |
7584 | } | |
cf694132 RD |
7585 | { |
7586 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7587 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 RD |
7588 | |
7589 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7590 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7591 | } Py_INCREF(Py_None); |
7592 | _resultobj = Py_None; | |
8ab979d7 RD |
7593 | return _resultobj; |
7594 | } | |
7595 | ||
b1462dfa RD |
7596 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7597 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7598 | PyObject * _resultobj; |
7599 | bool _result; | |
7600 | wxMenu * _arg0; | |
7601 | int _arg1; | |
1d99702e | 7602 | PyObject * _argo0 = 0; |
efc5f224 | 7603 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7604 | |
7605 | self = self; | |
b1462dfa | 7606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7607 | return NULL; |
1d99702e RD |
7608 | if (_argo0) { |
7609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
7612 | return NULL; |
7613 | } | |
7614 | } | |
cf694132 RD |
7615 | { |
7616 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7617 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 RD |
7618 | |
7619 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7620 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7621 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7622 | return _resultobj; |
7623 | } | |
7624 | ||
b1462dfa RD |
7625 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7626 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7627 | PyObject * _resultobj; |
b1462dfa | 7628 | bool _result; |
8ab979d7 | 7629 | wxMenu * _arg0; |
b1462dfa | 7630 | wxMenuItem * _arg1; |
1d99702e | 7631 | PyObject * _argo0 = 0; |
b1462dfa RD |
7632 | PyObject * _argo1 = 0; |
7633 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7634 | |
7635 | self = self; | |
b1462dfa | 7636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7637 | return NULL; |
1d99702e RD |
7638 | if (_argo0) { |
7639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
7642 | return NULL; |
7643 | } | |
7644 | } | |
b1462dfa RD |
7645 | if (_argo1) { |
7646 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7647 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7649 | return NULL; |
b1462dfa | 7650 | } |
8ab979d7 | 7651 | } |
cf694132 RD |
7652 | { |
7653 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7654 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 RD |
7655 | |
7656 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7657 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7658 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7659 | return _resultobj; |
7660 | } | |
7661 | ||
b1462dfa RD |
7662 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
7663 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7664 | PyObject * _resultobj; |
b1462dfa | 7665 | bool _result; |
8bf5d46e | 7666 | wxMenu * _arg0; |
b1462dfa RD |
7667 | size_t _arg1; |
7668 | wxMenuItem * _arg2; | |
1d99702e | 7669 | PyObject * _argo0 = 0; |
b1462dfa RD |
7670 | PyObject * _argo2 = 0; |
7671 | char *_kwnames[] = { "self","pos","item", NULL }; | |
8ab979d7 RD |
7672 | |
7673 | self = self; | |
b1462dfa | 7674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 7675 | return NULL; |
1d99702e RD |
7676 | if (_argo0) { |
7677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); |
8bf5d46e RD |
7680 | return NULL; |
7681 | } | |
7682 | } | |
b1462dfa RD |
7683 | if (_argo2) { |
7684 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7685 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7687 | return NULL; |
7688 | } | |
7689 | } | |
cf694132 RD |
7690 | { |
7691 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7692 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); |
cf694132 RD |
7693 | |
7694 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7695 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7696 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7697 | return _resultobj; |
7698 | } | |
7699 | ||
b1462dfa RD |
7700 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7701 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 7702 | PyObject * _resultobj; |
b1462dfa | 7703 | wxMenuItem * _result; |
efc5f224 | 7704 | wxMenu * _arg0; |
b1462dfa | 7705 | int _arg1; |
efc5f224 | 7706 | PyObject * _argo0 = 0; |
b1462dfa | 7707 | char *_kwnames[] = { "self","id", NULL }; |
efc5f224 RD |
7708 | |
7709 | self = self; | |
b1462dfa | 7710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
7711 | return NULL; |
7712 | if (_argo0) { | |
7713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
7716 | return NULL; |
7717 | } | |
7718 | } | |
7719 | { | |
7720 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7721 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 RD |
7722 | |
7723 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7724 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7725 | }{ _resultobj = wxPyMake_wxObject(_result); } |
efc5f224 RD |
7726 | return _resultobj; |
7727 | } | |
7728 | ||
b1462dfa RD |
7729 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7730 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7731 | PyObject * _resultobj; |
b1462dfa RD |
7732 | wxMenuItem * _result; |
7733 | wxMenu * _arg0; | |
7734 | wxMenuItem * _arg1; | |
7735 | PyObject * _argo0 = 0; | |
7736 | PyObject * _argo1 = 0; | |
7737 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7738 | |
7739 | self = self; | |
b1462dfa RD |
7740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
7741 | return NULL; | |
7742 | if (_argo0) { | |
7743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
7746 | return NULL; | |
7747 | } | |
7748 | } | |
7749 | if (_argo1) { | |
7750 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7751 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7753 | return NULL; |
b1462dfa RD |
7754 | } |
7755 | } | |
cf694132 RD |
7756 | { |
7757 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7758 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 RD |
7759 | |
7760 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7761 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7762 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
7763 | return _resultobj; |
7764 | } | |
7765 | ||
eb715945 | 7766 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 7767 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7768 | PyObject * _resultobj; |
b1462dfa | 7769 | wxMenu * _arg0; |
1d99702e | 7770 | PyObject * _argo0 = 0; |
b1462dfa | 7771 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7772 | |
7773 | self = self; | |
b1462dfa | 7774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 7775 | return NULL; |
1d99702e RD |
7776 | if (_argo0) { |
7777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
7780 | return NULL; |
7781 | } | |
7782 | } | |
cf694132 RD |
7783 | { |
7784 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7785 | wxMenu_Destroy(_arg0); |
cf694132 RD |
7786 | |
7787 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7788 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7789 | } Py_INCREF(Py_None); |
8ab979d7 | 7790 | _resultobj = Py_None; |
8ab979d7 RD |
7791 | return _resultobj; |
7792 | } | |
7793 | ||
b1462dfa RD |
7794 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7795 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7796 | PyObject * _resultobj; |
b1462dfa RD |
7797 | bool _result; |
7798 | wxMenu * _arg0; | |
8ab979d7 | 7799 | int _arg1; |
1d99702e | 7800 | PyObject * _argo0 = 0; |
b1462dfa | 7801 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7802 | |
7803 | self = self; | |
b1462dfa | 7804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7805 | return NULL; |
1d99702e RD |
7806 | if (_argo0) { |
7807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
7810 | return NULL; |
7811 | } | |
7812 | } | |
cf694132 RD |
7813 | { |
7814 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7815 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 RD |
7816 | |
7817 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7818 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7819 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7820 | return _resultobj; |
7821 | } | |
7822 | ||
b1462dfa RD |
7823 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7824 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7825 | PyObject * _resultobj; |
b1462dfa RD |
7826 | bool _result; |
7827 | wxMenu * _arg0; | |
7828 | wxMenuItem * _arg1; | |
1d99702e | 7829 | PyObject * _argo0 = 0; |
b1462dfa RD |
7830 | PyObject * _argo1 = 0; |
7831 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7832 | |
7833 | self = self; | |
b1462dfa | 7834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7835 | return NULL; |
1d99702e RD |
7836 | if (_argo0) { |
7837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
7840 | return NULL; | |
7841 | } | |
7842 | } | |
7843 | if (_argo1) { | |
7844 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7845 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7847 | return NULL; |
7848 | } | |
7849 | } | |
cf694132 RD |
7850 | { |
7851 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7852 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 RD |
7853 | |
7854 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7855 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7856 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7857 | return _resultobj; |
7858 | } | |
7859 | ||
b1462dfa RD |
7860 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
7861 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7862 | PyObject * _resultobj; |
b1462dfa RD |
7863 | size_t _result; |
7864 | wxMenu * _arg0; | |
1d99702e | 7865 | PyObject * _argo0 = 0; |
b1462dfa | 7866 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7867 | |
7868 | self = self; | |
b1462dfa | 7869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 7870 | return NULL; |
1d99702e RD |
7871 | if (_argo0) { |
7872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
7875 | return NULL; |
7876 | } | |
7877 | } | |
cf694132 RD |
7878 | { |
7879 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7880 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 RD |
7881 | |
7882 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7883 | if (PyErr_Occurred()) return NULL; |
2abc0a0f | 7884 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7885 | return _resultobj; |
7886 | } | |
7887 | ||
b1462dfa RD |
7888 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
7889 | wxMenuItemList& list = self->GetMenuItems(); | |
7890 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
7891 | } | |
7892 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7893 | PyObject * _resultobj; |
b1462dfa RD |
7894 | PyObject * _result; |
7895 | wxMenu * _arg0; | |
1d99702e | 7896 | PyObject * _argo0 = 0; |
b1462dfa | 7897 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7898 | |
7899 | self = self; | |
b1462dfa | 7900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 7901 | return NULL; |
1d99702e RD |
7902 | if (_argo0) { |
7903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
7906 | return NULL; |
7907 | } | |
7908 | } | |
cf694132 RD |
7909 | { |
7910 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7911 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 RD |
7912 | |
7913 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7914 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7915 | }{ |
7916 | _resultobj = _result; | |
7917 | } | |
8ab979d7 RD |
7918 | return _resultobj; |
7919 | } | |
7920 | ||
b1462dfa RD |
7921 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
7922 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7923 | PyObject * _resultobj; |
b1462dfa RD |
7924 | wxMenu * _arg0; |
7925 | wxEvtHandler * _arg1; | |
1d99702e | 7926 | PyObject * _argo0 = 0; |
b1462dfa RD |
7927 | PyObject * _argo1 = 0; |
7928 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
7929 | |
7930 | self = self; | |
b1462dfa | 7931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7932 | return NULL; |
1d99702e RD |
7933 | if (_argo0) { |
7934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7937 | return NULL; |
7938 | } | |
7939 | } | |
b1462dfa RD |
7940 | if (_argo1) { |
7941 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7942 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 7944 | return NULL; |
b1462dfa | 7945 | } |
8ab979d7 | 7946 | } |
cf694132 RD |
7947 | { |
7948 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7949 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 RD |
7950 | |
7951 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7952 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7953 | } Py_INCREF(Py_None); |
7954 | _resultobj = Py_None; | |
8ab979d7 RD |
7955 | return _resultobj; |
7956 | } | |
7957 | ||
b1462dfa RD |
7958 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
7959 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7960 | PyObject * _resultobj; |
b1462dfa RD |
7961 | wxEvtHandler * _result; |
7962 | wxMenu * _arg0; | |
1d99702e | 7963 | PyObject * _argo0 = 0; |
b1462dfa | 7964 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7965 | |
7966 | self = self; | |
b1462dfa | 7967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 7968 | return NULL; |
1d99702e RD |
7969 | if (_argo0) { |
7970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7973 | return NULL; |
7974 | } | |
7975 | } | |
cf694132 RD |
7976 | { |
7977 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7978 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 RD |
7979 | |
7980 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7981 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7982 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
7983 | return _resultobj; |
7984 | } | |
7985 | ||
b1462dfa RD |
7986 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
7987 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 7988 | PyObject * _resultobj; |
b1462dfa RD |
7989 | wxMenu * _arg0; |
7990 | wxWindow * _arg1; | |
2f90df85 | 7991 | PyObject * _argo0 = 0; |
b1462dfa RD |
7992 | PyObject * _argo1 = 0; |
7993 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
7994 | |
7995 | self = self; | |
b1462dfa | 7996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
7997 | return NULL; |
7998 | if (_argo0) { | |
7999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
8002 | return NULL; |
8003 | } | |
8004 | } | |
b1462dfa RD |
8005 | if (_argo1) { |
8006 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8007 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 8009 | return NULL; |
b1462dfa | 8010 | } |
2f90df85 | 8011 | } |
2f90df85 RD |
8012 | { |
8013 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8014 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 RD |
8015 | |
8016 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8017 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
8018 | } Py_INCREF(Py_None); |
8019 | _resultobj = Py_None; | |
2f90df85 RD |
8020 | return _resultobj; |
8021 | } | |
8022 | ||
b1462dfa RD |
8023 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
8024 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8025 | PyObject * _resultobj; |
b1462dfa RD |
8026 | wxWindow * _result; |
8027 | wxMenu * _arg0; | |
1d99702e | 8028 | PyObject * _argo0 = 0; |
b1462dfa | 8029 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8030 | |
8031 | self = self; | |
b1462dfa | 8032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 8033 | return NULL; |
1d99702e RD |
8034 | if (_argo0) { |
8035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
8038 | return NULL; |
8039 | } | |
8040 | } | |
cf694132 RD |
8041 | { |
8042 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8043 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 RD |
8044 | |
8045 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8046 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8047 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8048 | return _resultobj; |
8049 | } | |
8050 | ||
b1462dfa RD |
8051 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
8052 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8053 | PyObject * _resultobj; |
b1462dfa RD |
8054 | long _result; |
8055 | wxMenu * _arg0; | |
1d99702e | 8056 | PyObject * _argo0 = 0; |
b1462dfa | 8057 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8058 | |
8059 | self = self; | |
b1462dfa | 8060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 8061 | return NULL; |
1d99702e RD |
8062 | if (_argo0) { |
8063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
8066 | return NULL; |
8067 | } | |
8068 | } | |
8ab979d7 | 8069 | { |
cf694132 | 8070 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8071 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 RD |
8072 | |
8073 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8074 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8075 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8076 | return _resultobj; |
8077 | } | |
8078 | ||
b1462dfa RD |
8079 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
8080 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8081 | PyObject * _resultobj; |
b1462dfa RD |
8082 | bool _result; |
8083 | wxMenu * _arg0; | |
1d99702e | 8084 | PyObject * _argo0 = 0; |
b1462dfa | 8085 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8086 | |
8087 | self = self; | |
b1462dfa | 8088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 8089 | return NULL; |
1d99702e RD |
8090 | if (_argo0) { |
8091 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8092 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
8094 | return NULL; |
8095 | } | |
8096 | } | |
8ab979d7 | 8097 | { |
cf694132 | 8098 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8099 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 RD |
8100 | |
8101 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8102 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8103 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8104 | return _resultobj; |
8105 | } | |
8106 | ||
b1462dfa RD |
8107 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
8108 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8109 | PyObject * _resultobj; |
b1462dfa RD |
8110 | wxMenu * _arg0; |
8111 | wxMenu * _arg1; | |
1d99702e | 8112 | PyObject * _argo0 = 0; |
b1462dfa RD |
8113 | PyObject * _argo1 = 0; |
8114 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
8115 | |
8116 | self = self; | |
b1462dfa | 8117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8118 | return NULL; |
1d99702e RD |
8119 | if (_argo0) { |
8120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8123 | return NULL; |
8124 | } | |
8125 | } | |
b1462dfa RD |
8126 | if (_argo1) { |
8127 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8128 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 8130 | return NULL; |
b1462dfa | 8131 | } |
8ab979d7 | 8132 | } |
cf694132 RD |
8133 | { |
8134 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8135 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 RD |
8136 | |
8137 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8138 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8139 | } Py_INCREF(Py_None); |
8ab979d7 | 8140 | _resultobj = Py_None; |
8ab979d7 RD |
8141 | return _resultobj; |
8142 | } | |
8143 | ||
b1462dfa RD |
8144 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
8145 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8146 | PyObject * _resultobj; |
b1462dfa RD |
8147 | wxMenu * _result; |
8148 | wxMenu * _arg0; | |
1d99702e | 8149 | PyObject * _argo0 = 0; |
b1462dfa | 8150 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8151 | |
8152 | self = self; | |
b1462dfa | 8153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 8154 | return NULL; |
1d99702e RD |
8155 | if (_argo0) { |
8156 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8157 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8159 | return NULL; |
8160 | } | |
8161 | } | |
8ab979d7 | 8162 | { |
cf694132 | 8163 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8164 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 RD |
8165 | |
8166 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8167 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8168 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8169 | return _resultobj; |
8ab979d7 | 8170 | } |
b1462dfa RD |
8171 | |
8172 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
8173 | wxMenuBar *src; | |
8174 | wxWindow *dest; | |
8175 | src = (wxMenuBar *) ptr; | |
8176 | dest = (wxWindow *) src; | |
8177 | return (void *) dest; | |
8178 | } | |
8179 | ||
8180 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
8181 | wxMenuBar *src; | |
8182 | wxEvtHandler *dest; | |
8183 | src = (wxMenuBar *) ptr; | |
8184 | dest = (wxEvtHandler *) src; | |
8185 | return (void *) dest; | |
8ab979d7 | 8186 | } |
b1462dfa | 8187 | |
9416aa89 RD |
8188 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
8189 | wxMenuBar *src; | |
8190 | wxObject *dest; | |
8191 | src = (wxMenuBar *) ptr; | |
8192 | dest = (wxObject *) src; | |
8193 | return (void *) dest; | |
8194 | } | |
8195 | ||
c368d904 | 8196 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
8197 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8198 | PyObject * _resultobj; | |
8199 | wxMenuBar * _result; | |
c368d904 RD |
8200 | long _arg0 = (long ) 0; |
8201 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
8202 | char _ptemp[128]; |
8203 | ||
8204 | self = self; | |
c368d904 | 8205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
8206 | return NULL; |
8207 | { | |
8208 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 8209 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa RD |
8210 | |
8211 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8212 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8213 | } if (_result) { |
8214 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
8215 | _resultobj = Py_BuildValue("s",_ptemp); | |
8216 | } else { | |
8217 | Py_INCREF(Py_None); | |
8218 | _resultobj = Py_None; | |
8219 | } | |
8ab979d7 RD |
8220 | return _resultobj; |
8221 | } | |
8222 | ||
b1462dfa RD |
8223 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
8224 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8225 | PyObject * _resultobj; |
b1462dfa | 8226 | bool _result; |
8ab979d7 | 8227 | wxMenuBar * _arg0; |
b1462dfa | 8228 | wxMenu * _arg1; |
8ab979d7 | 8229 | wxString * _arg2; |
1d99702e | 8230 | PyObject * _argo0 = 0; |
b1462dfa | 8231 | PyObject * _argo1 = 0; |
8ab979d7 | 8232 | PyObject * _obj2 = 0; |
b1462dfa | 8233 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
8234 | |
8235 | self = self; | |
b1462dfa | 8236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8237 | return NULL; |
1d99702e RD |
8238 | if (_argo0) { |
8239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
8242 | return NULL; | |
8243 | } | |
8244 | } | |
8245 | if (_argo1) { | |
8246 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8247 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
8249 | return NULL; |
8250 | } | |
8251 | } | |
8252 | { | |
185d7c3e RD |
8253 | #if PYTHON_API_VERSION >= 1009 |
8254 | char* tmpPtr; int tmpSize; | |
8255 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8256 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8257 | return NULL; |
8258 | } | |
8259 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8260 | return NULL; | |
8261 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8262 | #else | |
8ab979d7 RD |
8263 | if (!PyString_Check(_obj2)) { |
8264 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8265 | return NULL; | |
8266 | } | |
185d7c3e RD |
8267 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8268 | #endif | |
8ab979d7 | 8269 | } |
cf694132 RD |
8270 | { |
8271 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8272 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 RD |
8273 | |
8274 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8275 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8276 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8277 | { |
8278 | if (_obj2) | |
8279 | delete _arg2; | |
8280 | } | |
8281 | return _resultobj; | |
8282 | } | |
8283 | ||
b1462dfa RD |
8284 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
8285 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8286 | PyObject * _resultobj; |
b1462dfa | 8287 | bool _result; |
8ab979d7 | 8288 | wxMenuBar * _arg0; |
b1462dfa RD |
8289 | size_t _arg1; |
8290 | wxMenu * _arg2; | |
8291 | wxString * _arg3; | |
1d99702e | 8292 | PyObject * _argo0 = 0; |
b1462dfa RD |
8293 | PyObject * _argo2 = 0; |
8294 | PyObject * _obj3 = 0; | |
8295 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
8296 | |
8297 | self = self; | |
b1462dfa | 8298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 8299 | return NULL; |
1d99702e RD |
8300 | if (_argo0) { |
8301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
8304 | return NULL; | |
8305 | } | |
8306 | } | |
8307 | if (_argo2) { | |
8308 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8309 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
8311 | return NULL; |
8312 | } | |
8313 | } | |
b1462dfa | 8314 | { |
185d7c3e RD |
8315 | #if PYTHON_API_VERSION >= 1009 |
8316 | char* tmpPtr; int tmpSize; | |
8317 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 8318 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8319 | return NULL; |
8320 | } | |
8321 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8322 | return NULL; | |
8323 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8324 | #else | |
b1462dfa RD |
8325 | if (!PyString_Check(_obj3)) { |
8326 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8327 | return NULL; | |
8328 | } | |
185d7c3e RD |
8329 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8330 | #endif | |
b1462dfa | 8331 | } |
cf694132 RD |
8332 | { |
8333 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8334 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 RD |
8335 | |
8336 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8337 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8338 | } _resultobj = Py_BuildValue("i",_result); |
b1462dfa RD |
8339 | { |
8340 | if (_obj3) | |
8341 | delete _arg3; | |
8342 | } | |
8ab979d7 RD |
8343 | return _resultobj; |
8344 | } | |
8345 | ||
b1462dfa RD |
8346 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
8347 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8348 | PyObject * _resultobj; |
b1462dfa | 8349 | size_t _result; |
8ab979d7 | 8350 | wxMenuBar * _arg0; |
1d99702e | 8351 | PyObject * _argo0 = 0; |
b1462dfa | 8352 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8353 | |
8354 | self = self; | |
b1462dfa | 8355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 8356 | return NULL; |
1d99702e RD |
8357 | if (_argo0) { |
8358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
8361 | return NULL; |
8362 | } | |
8363 | } | |
cf694132 RD |
8364 | { |
8365 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8366 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 RD |
8367 | |
8368 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8369 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8370 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8371 | return _resultobj; |
8372 | } | |
8373 | ||
b1462dfa RD |
8374 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
8375 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 8376 | PyObject * _resultobj; |
b1462dfa | 8377 | wxMenu * _result; |
06c0fba4 | 8378 | wxMenuBar * _arg0; |
b1462dfa | 8379 | size_t _arg1; |
06c0fba4 | 8380 | PyObject * _argo0 = 0; |
b1462dfa | 8381 | char *_kwnames[] = { "self","pos", NULL }; |
06c0fba4 RD |
8382 | |
8383 | self = self; | |
b1462dfa | 8384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
8385 | return NULL; |
8386 | if (_argo0) { | |
8387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
8390 | return NULL; |
8391 | } | |
8392 | } | |
8393 | { | |
8394 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8395 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 RD |
8396 | |
8397 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8398 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8399 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
8400 | return _resultobj; |
8401 | } | |
8402 | ||
2abc0a0f RD |
8403 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
8404 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8405 | PyObject * _resultobj; | |
8406 | wxMenu * _result; | |
8407 | wxMenuBar * _arg0; | |
8408 | size_t _arg1; | |
8409 | wxMenu * _arg2; | |
8410 | wxString * _arg3; | |
8411 | PyObject * _argo0 = 0; | |
8412 | PyObject * _argo2 = 0; | |
8413 | PyObject * _obj3 = 0; | |
8414 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
2abc0a0f RD |
8415 | |
8416 | self = self; | |
8417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
8418 | return NULL; | |
8419 | if (_argo0) { | |
8420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
8423 | return NULL; | |
8424 | } | |
8425 | } | |
8426 | if (_argo2) { | |
8427 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8428 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
8430 | return NULL; | |
8431 | } | |
8432 | } | |
8433 | { | |
185d7c3e RD |
8434 | #if PYTHON_API_VERSION >= 1009 |
8435 | char* tmpPtr; int tmpSize; | |
8436 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 8437 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8438 | return NULL; |
8439 | } | |
8440 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8441 | return NULL; | |
8442 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8443 | #else | |
2abc0a0f RD |
8444 | if (!PyString_Check(_obj3)) { |
8445 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8446 | return NULL; | |
8447 | } | |
185d7c3e RD |
8448 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8449 | #endif | |
2abc0a0f RD |
8450 | } |
8451 | { | |
8452 | wxPy_BEGIN_ALLOW_THREADS; | |
8453 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); | |
8454 | ||
8455 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8456 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8457 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8458 | { |
8459 | if (_obj3) | |
8460 | delete _arg3; | |
8461 | } | |
8462 | return _resultobj; | |
8463 | } | |
8464 | ||
8465 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8466 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8467 | PyObject * _resultobj; | |
8468 | wxMenu * _result; | |
8469 | wxMenuBar * _arg0; | |
8470 | size_t _arg1; | |
8471 | PyObject * _argo0 = 0; | |
8472 | char *_kwnames[] = { "self","pos", NULL }; | |
2abc0a0f RD |
8473 | |
8474 | self = self; | |
8475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
8476 | return NULL; | |
8477 | if (_argo0) { | |
8478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
8481 | return NULL; | |
8482 | } | |
8483 | } | |
8484 | { | |
8485 | wxPy_BEGIN_ALLOW_THREADS; | |
8486 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); | |
8487 | ||
8488 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8489 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8490 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8491 | return _resultobj; |
8492 | } | |
8493 | ||
b1462dfa RD |
8494 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
8495 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8496 | PyObject * _resultobj; |
b1462dfa RD |
8497 | wxMenuBar * _arg0; |
8498 | size_t _arg1; | |
8499 | bool _arg2; | |
8500 | PyObject * _argo0 = 0; | |
8501 | int tempbool2; | |
8502 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
8503 | ||
8504 | self = self; | |
8505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8506 | return NULL; | |
8507 | if (_argo0) { | |
8508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
8511 | return NULL; | |
8512 | } | |
8513 | } | |
8514 | _arg2 = (bool ) tempbool2; | |
8515 | { | |
8516 | wxPy_BEGIN_ALLOW_THREADS; | |
8517 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | |
8518 | ||
8519 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8520 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8521 | } Py_INCREF(Py_None); |
8522 | _resultobj = Py_None; | |
8523 | return _resultobj; | |
8524 | } | |
8525 | ||
8526 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
8527 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8528 | PyObject * _resultobj; | |
8529 | wxMenuBar * _arg0; | |
8530 | size_t _arg1; | |
8531 | wxString * _arg2; | |
1d99702e | 8532 | PyObject * _argo0 = 0; |
cf694132 | 8533 | PyObject * _obj2 = 0; |
b1462dfa | 8534 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
8535 | |
8536 | self = self; | |
b1462dfa | 8537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 8538 | return NULL; |
1d99702e RD |
8539 | if (_argo0) { |
8540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
8543 | return NULL; |
8544 | } | |
8545 | } | |
cf694132 | 8546 | { |
185d7c3e RD |
8547 | #if PYTHON_API_VERSION >= 1009 |
8548 | char* tmpPtr; int tmpSize; | |
8549 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8550 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8551 | return NULL; |
8552 | } | |
8553 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8554 | return NULL; | |
8555 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8556 | #else | |
cf694132 RD |
8557 | if (!PyString_Check(_obj2)) { |
8558 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8559 | return NULL; | |
8560 | } | |
185d7c3e RD |
8561 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8562 | #endif | |
cf694132 | 8563 | } |
cf694132 | 8564 | { |
b1462dfa RD |
8565 | wxPy_BEGIN_ALLOW_THREADS; |
8566 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | |
8567 | ||
8568 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8569 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8570 | } Py_INCREF(Py_None); |
8571 | _resultobj = Py_None; | |
8572 | { | |
8573 | if (_obj2) | |
8574 | delete _arg2; | |
8575 | } | |
8576 | return _resultobj; | |
8577 | } | |
8578 | ||
8579 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
8580 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8581 | PyObject * _resultobj; | |
8582 | wxString * _result; | |
8583 | wxMenuBar * _arg0; | |
8584 | size_t _arg1; | |
8585 | PyObject * _argo0 = 0; | |
8586 | char *_kwnames[] = { "self","pos", NULL }; | |
8587 | ||
8588 | self = self; | |
8589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
8590 | return NULL; | |
8591 | if (_argo0) { | |
8592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
8595 | return NULL; | |
8596 | } | |
8597 | } | |
8598 | { | |
8599 | wxPy_BEGIN_ALLOW_THREADS; | |
8600 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | |
8601 | ||
8602 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8603 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8604 | }{ |
eec92d76 | 8605 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8606 | } |
8607 | { | |
8608 | delete _result; | |
8609 | } | |
8610 | return _resultobj; | |
8611 | } | |
8612 | ||
8613 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) | |
8614 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8615 | PyObject * _resultobj; | |
8616 | int _result; | |
8617 | wxMenuBar * _arg0; | |
8618 | wxString * _arg1; | |
8619 | wxString * _arg2; | |
8620 | PyObject * _argo0 = 0; | |
8621 | PyObject * _obj1 = 0; | |
8622 | PyObject * _obj2 = 0; | |
8623 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
8624 | ||
8625 | self = self; | |
8626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8627 | return NULL; | |
8628 | if (_argo0) { | |
8629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
8632 | return NULL; | |
8633 | } | |
8634 | } | |
8635 | { | |
185d7c3e RD |
8636 | #if PYTHON_API_VERSION >= 1009 |
8637 | char* tmpPtr; int tmpSize; | |
8638 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 8639 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8640 | return NULL; |
8641 | } | |
8642 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8643 | return NULL; | |
8644 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8645 | #else | |
b1462dfa | 8646 | if (!PyString_Check(_obj1)) { |
cf694132 RD |
8647 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
8648 | return NULL; | |
8649 | } | |
185d7c3e RD |
8650 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8651 | #endif | |
cf694132 | 8652 | } |
b1462dfa | 8653 | { |
185d7c3e RD |
8654 | #if PYTHON_API_VERSION >= 1009 |
8655 | char* tmpPtr; int tmpSize; | |
8656 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8657 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8658 | return NULL; |
8659 | } | |
8660 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8661 | return NULL; | |
8662 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8663 | #else | |
b1462dfa RD |
8664 | if (!PyString_Check(_obj2)) { |
8665 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8666 | return NULL; | |
8667 | } | |
185d7c3e RD |
8668 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8669 | #endif | |
b1462dfa RD |
8670 | } |
8671 | { | |
8672 | wxPy_BEGIN_ALLOW_THREADS; | |
8673 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); | |
8674 | ||
8675 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8676 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8677 | } _resultobj = Py_BuildValue("i",_result); |
8678 | { | |
8679 | if (_obj1) | |
8680 | delete _arg1; | |
8681 | } | |
8682 | { | |
8683 | if (_obj2) | |
8684 | delete _arg2; | |
8685 | } | |
8686 | return _resultobj; | |
8687 | } | |
8688 | ||
8689 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8690 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8691 | PyObject * _resultobj; | |
8692 | wxMenuItem * _result; | |
8693 | wxMenuBar * _arg0; | |
8694 | int _arg1; | |
8695 | PyObject * _argo0 = 0; | |
8696 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
8697 | |
8698 | self = self; | |
8699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8700 | return NULL; | |
8701 | if (_argo0) { | |
8702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
8705 | return NULL; |
8706 | } | |
8707 | } | |
8708 | { | |
8709 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8710 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 RD |
8711 | |
8712 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8713 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8714 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8715 | return _resultobj; |
cf694132 | 8716 | } |
b1462dfa RD |
8717 | |
8718 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8719 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8720 | PyObject * _resultobj; | |
8721 | wxMenuBar * _arg0; | |
8722 | int _arg1; | |
8723 | bool _arg2; | |
8724 | PyObject * _argo0 = 0; | |
8725 | int tempbool2; | |
8726 | char *_kwnames[] = { "self","id","enable", NULL }; | |
8727 | ||
8728 | self = self; | |
8729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8730 | return NULL; | |
8731 | if (_argo0) { | |
8732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
8735 | return NULL; | |
8736 | } | |
8737 | } | |
8738 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8739 | { |
b1462dfa RD |
8740 | wxPy_BEGIN_ALLOW_THREADS; |
8741 | wxMenuBar_Enable(_arg0,_arg1,_arg2); | |
8742 | ||
8743 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8744 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8745 | } Py_INCREF(Py_None); |
8746 | _resultobj = Py_None; | |
8747 | return _resultobj; | |
cf694132 | 8748 | } |
b1462dfa RD |
8749 | |
8750 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
8751 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8752 | PyObject * _resultobj; | |
8753 | wxMenuBar * _arg0; | |
8754 | int _arg1; | |
8755 | bool _arg2; | |
8756 | PyObject * _argo0 = 0; | |
8757 | int tempbool2; | |
8758 | char *_kwnames[] = { "self","id","check", NULL }; | |
8759 | ||
8760 | self = self; | |
8761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8762 | return NULL; | |
8763 | if (_argo0) { | |
8764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
8767 | return NULL; | |
8768 | } | |
8769 | } | |
8770 | _arg2 = (bool ) tempbool2; | |
8771 | { | |
8772 | wxPy_BEGIN_ALLOW_THREADS; | |
8773 | wxMenuBar_Check(_arg0,_arg1,_arg2); | |
8774 | ||
8775 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8776 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8777 | } Py_INCREF(Py_None); |
8778 | _resultobj = Py_None; | |
cf694132 RD |
8779 | return _resultobj; |
8780 | } | |
8781 | ||
b1462dfa RD |
8782 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8783 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8784 | PyObject * _resultobj; |
8785 | bool _result; | |
b1462dfa RD |
8786 | wxMenuBar * _arg0; |
8787 | int _arg1; | |
1d99702e | 8788 | PyObject * _argo0 = 0; |
b1462dfa | 8789 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8790 | |
8791 | self = self; | |
b1462dfa | 8792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8793 | return NULL; |
1d99702e RD |
8794 | if (_argo0) { |
8795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8798 | return NULL; |
8799 | } | |
8800 | } | |
cf694132 RD |
8801 | { |
8802 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8803 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 RD |
8804 | |
8805 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8806 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8807 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8808 | return _resultobj; |
8809 | } | |
8810 | ||
b1462dfa RD |
8811 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8812 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8813 | PyObject * _resultobj; |
8814 | bool _result; | |
b1462dfa RD |
8815 | wxMenuBar * _arg0; |
8816 | int _arg1; | |
1d99702e | 8817 | PyObject * _argo0 = 0; |
b1462dfa | 8818 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8819 | |
8820 | self = self; | |
b1462dfa | 8821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8822 | return NULL; |
1d99702e RD |
8823 | if (_argo0) { |
8824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8827 | return NULL; |
8828 | } | |
8829 | } | |
cf694132 RD |
8830 | { |
8831 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8832 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 RD |
8833 | |
8834 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8835 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8836 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8837 | return _resultobj; |
8838 | } | |
8839 | ||
b1462dfa RD |
8840 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
8841 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8842 | PyObject * _resultobj; |
b1462dfa RD |
8843 | wxMenuBar * _arg0; |
8844 | int _arg1; | |
8845 | wxString * _arg2; | |
1d99702e | 8846 | PyObject * _argo0 = 0; |
b1462dfa RD |
8847 | PyObject * _obj2 = 0; |
8848 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
8849 | |
8850 | self = self; | |
b1462dfa | 8851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8852 | return NULL; |
1d99702e RD |
8853 | if (_argo0) { |
8854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8857 | return NULL; |
8858 | } | |
8859 | } | |
b1462dfa | 8860 | { |
185d7c3e RD |
8861 | #if PYTHON_API_VERSION >= 1009 |
8862 | char* tmpPtr; int tmpSize; | |
8863 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8864 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8865 | return NULL; |
8866 | } | |
8867 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8868 | return NULL; | |
8869 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8870 | #else | |
b1462dfa RD |
8871 | if (!PyString_Check(_obj2)) { |
8872 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8873 | return NULL; | |
8874 | } | |
185d7c3e RD |
8875 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8876 | #endif | |
b1462dfa | 8877 | } |
cf694132 RD |
8878 | { |
8879 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8880 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
8881 | |
8882 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8883 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8884 | } Py_INCREF(Py_None); |
8885 | _resultobj = Py_None; | |
8886 | { | |
8887 | if (_obj2) | |
8888 | delete _arg2; | |
8889 | } | |
8ab979d7 RD |
8890 | return _resultobj; |
8891 | } | |
8892 | ||
b1462dfa RD |
8893 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
8894 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8895 | PyObject * _resultobj; |
b1462dfa RD |
8896 | wxString * _result; |
8897 | wxMenuBar * _arg0; | |
8898 | int _arg1; | |
1d99702e | 8899 | PyObject * _argo0 = 0; |
b1462dfa | 8900 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8901 | |
8902 | self = self; | |
b1462dfa | 8903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8904 | return NULL; |
1d99702e RD |
8905 | if (_argo0) { |
8906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
8909 | return NULL; | |
8910 | } | |
8911 | } | |
8912 | { | |
8913 | wxPy_BEGIN_ALLOW_THREADS; | |
8914 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | |
8915 | ||
8916 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8917 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8918 | }{ |
eec92d76 | 8919 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8920 | } |
8921 | { | |
8922 | delete _result; | |
8923 | } | |
8924 | return _resultobj; | |
8925 | } | |
8926 | ||
8927 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
8928 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8929 | PyObject * _resultobj; | |
8930 | wxMenuBar * _arg0; | |
8931 | int _arg1; | |
8932 | wxString * _arg2; | |
8933 | PyObject * _argo0 = 0; | |
8934 | PyObject * _obj2 = 0; | |
8935 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
8936 | ||
8937 | self = self; | |
8938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8939 | return NULL; | |
8940 | if (_argo0) { | |
8941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
8944 | return NULL; | |
8945 | } | |
8946 | } | |
8947 | { | |
185d7c3e RD |
8948 | #if PYTHON_API_VERSION >= 1009 |
8949 | char* tmpPtr; int tmpSize; | |
8950 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8951 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8952 | return NULL; |
8953 | } | |
8954 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8955 | return NULL; | |
8956 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8957 | #else | |
b1462dfa RD |
8958 | if (!PyString_Check(_obj2)) { |
8959 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8960 | return NULL; | |
8961 | } | |
185d7c3e RD |
8962 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8963 | #endif | |
b1462dfa RD |
8964 | } |
8965 | { | |
8966 | wxPy_BEGIN_ALLOW_THREADS; | |
8967 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | |
8968 | ||
8969 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8970 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8971 | } Py_INCREF(Py_None); |
8972 | _resultobj = Py_None; | |
8973 | { | |
8974 | if (_obj2) | |
8975 | delete _arg2; | |
8976 | } | |
8977 | return _resultobj; | |
8978 | } | |
8979 | ||
8980 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
8981 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8982 | PyObject * _resultobj; | |
8983 | wxString * _result; | |
8984 | wxMenuBar * _arg0; | |
8985 | int _arg1; | |
8986 | PyObject * _argo0 = 0; | |
8987 | char *_kwnames[] = { "self","id", NULL }; | |
8988 | ||
8989 | self = self; | |
8990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
8991 | return NULL; | |
8992 | if (_argo0) { | |
8993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8996 | return NULL; |
8997 | } | |
8998 | } | |
cf694132 RD |
8999 | { |
9000 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9001 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
9002 | |
9003 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9004 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9005 | }{ |
eec92d76 | 9006 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
9007 | } |
9008 | { | |
9009 | delete _result; | |
9010 | } | |
8ab979d7 RD |
9011 | return _resultobj; |
9012 | } | |
9013 | ||
9416aa89 RD |
9014 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
9015 | wxMenuItem *src; | |
9016 | wxObject *dest; | |
9017 | src = (wxMenuItem *) ptr; | |
9018 | dest = (wxObject *) src; | |
9019 | return (void *) dest; | |
9020 | } | |
9021 | ||
b1462dfa RD |
9022 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
9023 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9024 | PyObject * _resultobj; |
b1462dfa RD |
9025 | wxMenuItem * _result; |
9026 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 9027 | int _arg1 = (int ) wxID_SEPARATOR; |
b1462dfa RD |
9028 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; |
9029 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
9030 | bool _arg4 = (bool ) FALSE; | |
9031 | wxMenu * _arg5 = (wxMenu *) NULL; | |
1d99702e | 9032 | PyObject * _argo0 = 0; |
b1462dfa RD |
9033 | PyObject * _obj2 = 0; |
9034 | PyObject * _obj3 = 0; | |
9035 | int tempbool4 = (int) FALSE; | |
9036 | PyObject * _argo5 = 0; | |
9037 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
9038 | char _ptemp[128]; | |
8ab979d7 RD |
9039 | |
9040 | self = self; | |
b1462dfa | 9041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) |
8ab979d7 | 9042 | return NULL; |
1d99702e RD |
9043 | if (_argo0) { |
9044 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9045 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
9047 | return NULL; | |
9048 | } | |
9049 | } | |
9050 | if (_obj2) | |
9051 | { | |
185d7c3e RD |
9052 | #if PYTHON_API_VERSION >= 1009 |
9053 | char* tmpPtr; int tmpSize; | |
9054 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 9055 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9056 | return NULL; |
9057 | } | |
9058 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9059 | return NULL; | |
9060 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9061 | #else | |
b1462dfa RD |
9062 | if (!PyString_Check(_obj2)) { |
9063 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9064 | return NULL; | |
9065 | } | |
185d7c3e RD |
9066 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9067 | #endif | |
b1462dfa RD |
9068 | } |
9069 | if (_obj3) | |
9070 | { | |
185d7c3e RD |
9071 | #if PYTHON_API_VERSION >= 1009 |
9072 | char* tmpPtr; int tmpSize; | |
9073 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 9074 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9075 | return NULL; |
9076 | } | |
9077 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
9078 | return NULL; | |
9079 | _arg3 = new wxString(tmpPtr, tmpSize); | |
9080 | #else | |
b1462dfa RD |
9081 | if (!PyString_Check(_obj3)) { |
9082 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9083 | return NULL; | |
9084 | } | |
185d7c3e RD |
9085 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
9086 | #endif | |
b1462dfa RD |
9087 | } |
9088 | _arg4 = (bool ) tempbool4; | |
9089 | if (_argo5) { | |
9090 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
9091 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
9092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
9093 | return NULL; |
9094 | } | |
9095 | } | |
cf694132 RD |
9096 | { |
9097 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9098 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 RD |
9099 | |
9100 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9101 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9102 | } if (_result) { |
9103 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
9104 | _resultobj = Py_BuildValue("s",_ptemp); | |
9105 | } else { | |
9106 | Py_INCREF(Py_None); | |
9107 | _resultobj = Py_None; | |
9108 | } | |
9109 | { | |
9110 | if (_obj2) | |
9111 | delete _arg2; | |
9112 | } | |
9113 | { | |
9114 | if (_obj3) | |
9115 | delete _arg3; | |
9116 | } | |
8ab979d7 RD |
9117 | return _resultobj; |
9118 | } | |
9119 | ||
b1462dfa RD |
9120 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
9121 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9122 | PyObject * _resultobj; |
b1462dfa | 9123 | wxMenu * _result; |
8ab979d7 | 9124 | wxMenuItem * _arg0; |
1d99702e | 9125 | PyObject * _argo0 = 0; |
efc5f224 | 9126 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9127 | |
9128 | self = self; | |
b1462dfa | 9129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 9130 | return NULL; |
1d99702e RD |
9131 | if (_argo0) { |
9132 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9133 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9134 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9135 | return NULL; |
9136 | } | |
9137 | } | |
cf694132 RD |
9138 | { |
9139 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9140 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 RD |
9141 | |
9142 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9143 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9144 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9145 | return _resultobj; |
9146 | } | |
9147 | ||
2abc0a0f RD |
9148 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
9149 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9150 | PyObject * _resultobj; |
9151 | wxMenuItem * _arg0; | |
2abc0a0f | 9152 | int _arg1; |
1d99702e | 9153 | PyObject * _argo0 = 0; |
2abc0a0f | 9154 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9155 | |
9156 | self = self; | |
2abc0a0f | 9157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9158 | return NULL; |
1d99702e RD |
9159 | if (_argo0) { |
9160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 9162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9163 | return NULL; |
9164 | } | |
9165 | } | |
cf694132 RD |
9166 | { |
9167 | wxPy_BEGIN_ALLOW_THREADS; | |
2abc0a0f | 9168 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 RD |
9169 | |
9170 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9171 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9172 | } Py_INCREF(Py_None); |
8ab979d7 | 9173 | _resultobj = Py_None; |
8ab979d7 RD |
9174 | return _resultobj; |
9175 | } | |
9176 | ||
b1462dfa RD |
9177 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
9178 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9179 | PyObject * _resultobj; |
b1462dfa | 9180 | int _result; |
8ab979d7 | 9181 | wxMenuItem * _arg0; |
1d99702e | 9182 | PyObject * _argo0 = 0; |
efc5f224 | 9183 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9184 | |
9185 | self = self; | |
b1462dfa | 9186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 9187 | return NULL; |
1d99702e RD |
9188 | if (_argo0) { |
9189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9192 | return NULL; |
9193 | } | |
9194 | } | |
8ab979d7 | 9195 | { |
cf694132 | 9196 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 9197 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 RD |
9198 | |
9199 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9200 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9201 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9202 | return _resultobj; |
9203 | } | |
9204 | ||
b1462dfa RD |
9205 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
9206 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9207 | PyObject * _resultobj; |
b1462dfa | 9208 | bool _result; |
8ab979d7 | 9209 | wxMenuItem * _arg0; |
1d99702e | 9210 | PyObject * _argo0 = 0; |
efc5f224 | 9211 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9212 | |
9213 | self = self; | |
b1462dfa | 9214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 9215 | return NULL; |
1d99702e RD |
9216 | if (_argo0) { |
9217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9220 | return NULL; |
9221 | } | |
9222 | } | |
8ab979d7 | 9223 | { |
cf694132 | 9224 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 9225 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 RD |
9226 | |
9227 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9228 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9229 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9230 | return _resultobj; |
9231 | } | |
9232 | ||
b1462dfa RD |
9233 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
9234 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9235 | PyObject * _resultobj; |
9236 | wxMenuItem * _arg0; | |
9237 | wxString * _arg1; | |
1d99702e | 9238 | PyObject * _argo0 = 0; |
8ab979d7 | 9239 | PyObject * _obj1 = 0; |
b1462dfa | 9240 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
9241 | |
9242 | self = self; | |
b1462dfa | 9243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9244 | return NULL; |
1d99702e RD |
9245 | if (_argo0) { |
9246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9249 | return NULL; |
9250 | } | |
9251 | } | |
9252 | { | |
185d7c3e RD |
9253 | #if PYTHON_API_VERSION >= 1009 |
9254 | char* tmpPtr; int tmpSize; | |
9255 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9256 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9257 | return NULL; |
9258 | } | |
9259 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9260 | return NULL; | |
9261 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9262 | #else | |
8ab979d7 RD |
9263 | if (!PyString_Check(_obj1)) { |
9264 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9265 | return NULL; | |
9266 | } | |
185d7c3e RD |
9267 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9268 | #endif | |
8ab979d7 | 9269 | } |
cf694132 RD |
9270 | { |
9271 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9272 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 RD |
9273 | |
9274 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9275 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9276 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9277 | _resultobj = Py_None; |
9278 | { | |
9279 | if (_obj1) | |
9280 | delete _arg1; | |
9281 | } | |
9282 | return _resultobj; | |
9283 | } | |
9284 | ||
b1462dfa RD |
9285 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
9286 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9287 | PyObject * _resultobj; |
b1462dfa | 9288 | wxString * _result; |
8ab979d7 | 9289 | wxMenuItem * _arg0; |
1d99702e | 9290 | PyObject * _argo0 = 0; |
b1462dfa | 9291 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9292 | |
9293 | self = self; | |
b1462dfa | 9294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 9295 | return NULL; |
1d99702e RD |
9296 | if (_argo0) { |
9297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9300 | return NULL; |
9301 | } | |
9302 | } | |
cf694132 RD |
9303 | { |
9304 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9305 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 RD |
9306 | |
9307 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9308 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9309 | }{ |
eec92d76 | 9310 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 | 9311 | } |
cf694132 | 9312 | { |
b1462dfa RD |
9313 | delete _result; |
9314 | } | |
cf694132 RD |
9315 | return _resultobj; |
9316 | } | |
9317 | ||
b1462dfa RD |
9318 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
9319 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9320 | PyObject * _resultobj; |
b1462dfa | 9321 | wxString * _result; |
cf694132 | 9322 | wxMenuItem * _arg0; |
1d99702e | 9323 | PyObject * _argo0 = 0; |
efc5f224 | 9324 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9325 | |
9326 | self = self; | |
b1462dfa | 9327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 9328 | return NULL; |
1d99702e RD |
9329 | if (_argo0) { |
9330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
9333 | return NULL; |
9334 | } | |
9335 | } | |
9336 | { | |
9337 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9338 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
9339 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9340 | |
9341 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9342 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9343 | }{ |
eec92d76 | 9344 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
cf694132 | 9345 | } |
cf694132 RD |
9346 | return _resultobj; |
9347 | } | |
9348 | ||
b1462dfa RD |
9349 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
9350 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9351 | PyObject * _resultobj; |
cf694132 | 9352 | wxMenuItem * _arg0; |
b1462dfa | 9353 | bool _arg1; |
1d99702e | 9354 | PyObject * _argo0 = 0; |
b1462dfa RD |
9355 | int tempbool1; |
9356 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
9357 | |
9358 | self = self; | |
b1462dfa | 9359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9360 | return NULL; |
1d99702e RD |
9361 | if (_argo0) { |
9362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9365 | return NULL; |
9366 | } | |
9367 | } | |
b1462dfa | 9368 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9369 | { |
9370 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9371 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 RD |
9372 | |
9373 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9374 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9375 | } Py_INCREF(Py_None); |
9376 | _resultobj = Py_None; | |
cf694132 RD |
9377 | return _resultobj; |
9378 | } | |
9379 | ||
b1462dfa RD |
9380 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
9381 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9382 | PyObject * _resultobj; |
b1462dfa | 9383 | bool _result; |
cf694132 | 9384 | wxMenuItem * _arg0; |
1d99702e | 9385 | PyObject * _argo0 = 0; |
efc5f224 | 9386 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9387 | |
9388 | self = self; | |
b1462dfa | 9389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 9390 | return NULL; |
1d99702e RD |
9391 | if (_argo0) { |
9392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9395 | return NULL; |
9396 | } | |
9397 | } | |
9398 | { | |
9399 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9400 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 RD |
9401 | |
9402 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9403 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9404 | } _resultobj = Py_BuildValue("i",_result); |
9405 | return _resultobj; | |
9406 | } | |
9407 | ||
b1462dfa RD |
9408 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
9409 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9410 | PyObject * _resultobj; |
b1462dfa | 9411 | bool _result; |
cf694132 | 9412 | wxMenuItem * _arg0; |
1d99702e | 9413 | PyObject * _argo0 = 0; |
efc5f224 | 9414 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9415 | |
9416 | self = self; | |
b1462dfa | 9417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 9418 | return NULL; |
1d99702e RD |
9419 | if (_argo0) { |
9420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9423 | return NULL; |
9424 | } | |
9425 | } | |
9426 | { | |
9427 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9428 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 RD |
9429 | |
9430 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9431 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9432 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9433 | return _resultobj; |
9434 | } | |
9435 | ||
b1462dfa RD |
9436 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
9437 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9438 | PyObject * _resultobj; |
9439 | wxMenuItem * _arg0; | |
b1462dfa | 9440 | wxMenu * _arg1; |
1d99702e RD |
9441 | PyObject * _argo0 = 0; |
9442 | PyObject * _argo1 = 0; | |
b1462dfa | 9443 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
9444 | |
9445 | self = self; | |
b1462dfa | 9446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 9447 | return NULL; |
1d99702e RD |
9448 | if (_argo0) { |
9449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9452 | return NULL; |
9453 | } | |
9454 | } | |
1d99702e RD |
9455 | if (_argo1) { |
9456 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9457 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
9458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
9459 | return NULL; |
9460 | } | |
9461 | } | |
9462 | { | |
9463 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9464 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 RD |
9465 | |
9466 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9467 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9468 | } Py_INCREF(Py_None); |
9469 | _resultobj = Py_None; | |
9470 | return _resultobj; | |
9471 | } | |
9472 | ||
b1462dfa RD |
9473 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
9474 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9475 | PyObject * _resultobj; |
b1462dfa | 9476 | wxMenu * _result; |
cf694132 | 9477 | wxMenuItem * _arg0; |
1d99702e | 9478 | PyObject * _argo0 = 0; |
b1462dfa | 9479 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9480 | |
9481 | self = self; | |
b1462dfa | 9482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 9483 | return NULL; |
1d99702e RD |
9484 | if (_argo0) { |
9485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9488 | return NULL; |
9489 | } | |
9490 | } | |
b1462dfa RD |
9491 | { |
9492 | wxPy_BEGIN_ALLOW_THREADS; | |
9493 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); | |
9494 | ||
9495 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9496 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9497 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
9498 | return _resultobj; |
9499 | } | |
9500 | ||
9501 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
9502 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9503 | PyObject * _resultobj; | |
9504 | wxMenuItem * _arg0; | |
9505 | bool _arg1 = (bool ) TRUE; | |
9506 | PyObject * _argo0 = 0; | |
9507 | int tempbool1 = (int) TRUE; | |
9508 | char *_kwnames[] = { "self","enable", NULL }; | |
9509 | ||
9510 | self = self; | |
9511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
9512 | return NULL; | |
9513 | if (_argo0) { | |
9514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
9517 | return NULL; |
9518 | } | |
9519 | } | |
b1462dfa | 9520 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9521 | { |
9522 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9523 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 RD |
9524 | |
9525 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9526 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9527 | } Py_INCREF(Py_None); |
9528 | _resultobj = Py_None; | |
9529 | return _resultobj; | |
9530 | } | |
9531 | ||
b1462dfa RD |
9532 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
9533 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9534 | PyObject * _resultobj; |
b1462dfa | 9535 | bool _result; |
cf694132 | 9536 | wxMenuItem * _arg0; |
1d99702e | 9537 | PyObject * _argo0 = 0; |
b1462dfa | 9538 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9539 | |
9540 | self = self; | |
b1462dfa | 9541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 9542 | return NULL; |
1d99702e RD |
9543 | if (_argo0) { |
9544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
9547 | return NULL; |
9548 | } | |
9549 | } | |
9550 | { | |
9551 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9552 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 RD |
9553 | |
9554 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9555 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9556 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9557 | return _resultobj; |
9558 | } | |
9559 | ||
b1462dfa RD |
9560 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
9561 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9562 | PyObject * _resultobj; |
9563 | wxMenuItem * _arg0; | |
b1462dfa | 9564 | bool _arg1 = (bool ) TRUE; |
1d99702e | 9565 | PyObject * _argo0 = 0; |
b1462dfa RD |
9566 | int tempbool1 = (int) TRUE; |
9567 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
9568 | |
9569 | self = self; | |
b1462dfa | 9570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9571 | return NULL; |
1d99702e RD |
9572 | if (_argo0) { |
9573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
9576 | return NULL; |
9577 | } | |
9578 | } | |
b1462dfa | 9579 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9580 | { |
9581 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9582 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 RD |
9583 | |
9584 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9585 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9586 | } Py_INCREF(Py_None); |
9587 | _resultobj = Py_None; | |
9588 | return _resultobj; | |
9589 | } | |
9590 | ||
b1462dfa RD |
9591 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
9592 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9593 | PyObject * _resultobj; |
b1462dfa | 9594 | bool _result; |
2abc0a0f | 9595 | wxMenuItem * _arg0; |
2abc0a0f | 9596 | PyObject * _argo0 = 0; |
b1462dfa | 9597 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
9598 | |
9599 | self = self; | |
b1462dfa | 9600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
9601 | return NULL; |
9602 | if (_argo0) { | |
9603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9606 | return NULL; |
9607 | } | |
9608 | } | |
2abc0a0f RD |
9609 | { |
9610 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9611 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f RD |
9612 | |
9613 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9614 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9615 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
9616 | return _resultobj; |
9617 | } | |
9618 | ||
b1462dfa RD |
9619 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
9620 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9621 | PyObject * _resultobj; |
2abc0a0f RD |
9622 | wxMenuItem * _arg0; |
9623 | PyObject * _argo0 = 0; | |
9624 | char *_kwnames[] = { "self", NULL }; | |
9625 | ||
9626 | self = self; | |
b1462dfa | 9627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
9628 | return NULL; |
9629 | if (_argo0) { | |
9630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9633 | return NULL; |
9634 | } | |
9635 | } | |
9636 | { | |
9637 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9638 | wxMenuItem_Toggle(_arg0); |
2abc0a0f RD |
9639 | |
9640 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9641 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9642 | } Py_INCREF(Py_None); |
9643 | _resultobj = Py_None; | |
2abc0a0f RD |
9644 | return _resultobj; |
9645 | } | |
9646 | ||
b1462dfa RD |
9647 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
9648 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9649 | PyObject * _resultobj; |
9650 | wxMenuItem * _arg0; | |
b1462dfa | 9651 | wxString * _arg1; |
1d99702e | 9652 | PyObject * _argo0 = 0; |
b1462dfa RD |
9653 | PyObject * _obj1 = 0; |
9654 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
9655 | |
9656 | self = self; | |
b1462dfa | 9657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 9658 | return NULL; |
1d99702e RD |
9659 | if (_argo0) { |
9660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
9663 | return NULL; |
9664 | } | |
9665 | } | |
b1462dfa | 9666 | { |
185d7c3e RD |
9667 | #if PYTHON_API_VERSION >= 1009 |
9668 | char* tmpPtr; int tmpSize; | |
9669 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9670 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9671 | return NULL; |
9672 | } | |
9673 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9674 | return NULL; | |
9675 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9676 | #else | |
b1462dfa RD |
9677 | if (!PyString_Check(_obj1)) { |
9678 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
cf694132 | 9679 | return NULL; |
cf694132 | 9680 | } |
185d7c3e RD |
9681 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9682 | #endif | |
b1462dfa | 9683 | } |
cf694132 RD |
9684 | { |
9685 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9686 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 RD |
9687 | |
9688 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9689 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9690 | } Py_INCREF(Py_None); |
8ab979d7 | 9691 | _resultobj = Py_None; |
b1462dfa RD |
9692 | { |
9693 | if (_obj1) | |
9694 | delete _arg1; | |
9695 | } | |
8ab979d7 RD |
9696 | return _resultobj; |
9697 | } | |
9698 | ||
b1462dfa RD |
9699 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
9700 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 9701 | PyObject * _resultobj; |
b1462dfa | 9702 | wxString * _result; |
be4d9c1f | 9703 | wxMenuItem * _arg0; |
1d99702e | 9704 | PyObject * _argo0 = 0; |
efc5f224 | 9705 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
9706 | |
9707 | self = self; | |
b1462dfa | 9708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 9709 | return NULL; |
1d99702e RD |
9710 | if (_argo0) { |
9711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
9714 | return NULL; |
9715 | } | |
9716 | } | |
cf694132 RD |
9717 | { |
9718 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9719 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
9720 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9721 | |
9722 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9723 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9724 | }{ |
eec92d76 | 9725 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa | 9726 | } |
be4d9c1f RD |
9727 | return _resultobj; |
9728 | } | |
9729 | ||
b1462dfa RD |
9730 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
9731 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9732 | PyObject * _resultobj; |
b1462dfa | 9733 | wxAcceleratorEntry * _result; |
2abc0a0f | 9734 | wxMenuItem * _arg0; |
2abc0a0f | 9735 | PyObject * _argo0 = 0; |
b1462dfa RD |
9736 | char *_kwnames[] = { "self", NULL }; |
9737 | char _ptemp[128]; | |
2abc0a0f RD |
9738 | |
9739 | self = self; | |
b1462dfa | 9740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
9741 | return NULL; |
9742 | if (_argo0) { | |
9743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9746 | return NULL; |
9747 | } | |
9748 | } | |
2abc0a0f RD |
9749 | { |
9750 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9751 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f RD |
9752 | |
9753 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9754 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9755 | } if (_result) { |
9756 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
9757 | _resultobj = Py_BuildValue("s",_ptemp); | |
9758 | } else { | |
9759 | Py_INCREF(Py_None); | |
9760 | _resultobj = Py_None; | |
9761 | } | |
2abc0a0f RD |
9762 | return _resultobj; |
9763 | } | |
9764 | ||
b1462dfa RD |
9765 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
9766 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
9767 | PyObject * _resultobj; |
9768 | wxMenuItem * _arg0; | |
b1462dfa | 9769 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
9770 | PyObject * _argo0 = 0; |
9771 | PyObject * _argo1 = 0; | |
b1462dfa | 9772 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
9773 | |
9774 | self = self; | |
b1462dfa | 9775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
9776 | return NULL; |
9777 | if (_argo0) { | |
9778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9781 | return NULL; |
9782 | } | |
9783 | } | |
9784 | if (_argo1) { | |
9785 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9786 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
9787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
9788 | return NULL; |
9789 | } | |
9790 | } | |
9791 | { | |
9792 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9793 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f RD |
9794 | |
9795 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9796 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
9797 | } Py_INCREF(Py_None); |
9798 | _resultobj = Py_None; | |
9799 | return _resultobj; | |
9800 | } | |
9801 | ||
1b62f00d RD |
9802 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
9803 | PyObject * _resultobj; | |
9804 | wxString * _result; | |
9805 | wxString * _arg0; | |
9806 | PyObject * _obj0 = 0; | |
9807 | char *_kwnames[] = { "text", NULL }; | |
9808 | ||
9809 | self = self; | |
9810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
9811 | return NULL; | |
9812 | { | |
9813 | #if PYTHON_API_VERSION >= 1009 | |
9814 | char* tmpPtr; int tmpSize; | |
9815 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 9816 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1b62f00d RD |
9817 | return NULL; |
9818 | } | |
9819 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
9820 | return NULL; | |
9821 | _arg0 = new wxString(tmpPtr, tmpSize); | |
9822 | #else | |
9823 | if (!PyString_Check(_obj0)) { | |
9824 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9825 | return NULL; | |
9826 | } | |
9827 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
9828 | #endif | |
9829 | } | |
9830 | { | |
9831 | wxPy_BEGIN_ALLOW_THREADS; | |
9832 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); | |
9833 | ||
9834 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9835 | if (PyErr_Occurred()) return NULL; |
1b62f00d RD |
9836 | }{ |
9837 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9838 | } | |
9839 | { | |
9840 | if (_obj0) | |
9841 | delete _arg0; | |
9842 | } | |
9843 | { | |
9844 | delete _result; | |
9845 | } | |
9846 | return _resultobj; | |
9847 | } | |
9848 | ||
f3d9dc1d RD |
9849 | #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
9850 | static PyObject *_wrap_wxMenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9851 | PyObject * _resultobj; | |
9852 | wxMenuItem * _arg0; | |
9853 | wxFont * _arg1; | |
9854 | PyObject * _argo0 = 0; | |
9855 | PyObject * _argo1 = 0; | |
9856 | char *_kwnames[] = { "self","font", NULL }; | |
9857 | ||
9858 | self = self; | |
9859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
9860 | return NULL; | |
9861 | if (_argo0) { | |
9862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p."); | |
9865 | return NULL; | |
9866 | } | |
9867 | } | |
9868 | if (_argo1) { | |
9869 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9870 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
9871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p."); | |
9872 | return NULL; | |
9873 | } | |
9874 | } | |
9875 | { | |
9876 | wxPy_BEGIN_ALLOW_THREADS; | |
9877 | wxMenuItem_SetFont(_arg0,*_arg1); | |
9878 | ||
9879 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9880 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
9881 | } Py_INCREF(Py_None); |
9882 | _resultobj = Py_None; | |
9883 | return _resultobj; | |
9884 | } | |
9885 | ||
9886 | #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
9887 | static PyObject *_wrap_wxMenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9888 | PyObject * _resultobj; | |
9889 | wxFont * _result; | |
9890 | wxMenuItem * _arg0; | |
9891 | PyObject * _argo0 = 0; | |
9892 | char *_kwnames[] = { "self", NULL }; | |
9893 | char _ptemp[128]; | |
9894 | ||
9895 | self = self; | |
9896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetFont",_kwnames,&_argo0)) | |
9897 | return NULL; | |
9898 | if (_argo0) { | |
9899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p."); | |
9902 | return NULL; | |
9903 | } | |
9904 | } | |
9905 | { | |
9906 | wxPy_BEGIN_ALLOW_THREADS; | |
9907 | wxFont & _result_ref = wxMenuItem_GetFont(_arg0); | |
9908 | _result = (wxFont *) &_result_ref; | |
9909 | ||
9910 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9911 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
9912 | } if (_result) { |
9913 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
9914 | _resultobj = Py_BuildValue("s",_ptemp); | |
9915 | } else { | |
9916 | Py_INCREF(Py_None); | |
9917 | _resultobj = Py_None; | |
9918 | } | |
9919 | return _resultobj; | |
9920 | } | |
9921 | ||
9922 | #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
9923 | static PyObject *_wrap_wxMenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9924 | PyObject * _resultobj; | |
9925 | wxMenuItem * _arg0; | |
9926 | wxColour * _arg1; | |
9927 | PyObject * _argo0 = 0; | |
9928 | wxColour temp; | |
9929 | PyObject * _obj1 = 0; | |
9930 | char *_kwnames[] = { "self","colText", NULL }; | |
9931 | ||
9932 | self = self; | |
9933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
9934 | return NULL; | |
9935 | if (_argo0) { | |
9936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p."); | |
9939 | return NULL; | |
9940 | } | |
9941 | } | |
9942 | { | |
9943 | _arg1 = &temp; | |
9944 | if (! wxColour_helper(_obj1, &_arg1)) | |
9945 | return NULL; | |
9946 | } | |
9947 | { | |
9948 | wxPy_BEGIN_ALLOW_THREADS; | |
9949 | wxMenuItem_SetTextColour(_arg0,*_arg1); | |
9950 | ||
9951 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9952 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
9953 | } Py_INCREF(Py_None); |
9954 | _resultobj = Py_None; | |
9955 | return _resultobj; | |
9956 | } | |
9957 | ||
9958 | #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
9959 | static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9960 | PyObject * _resultobj; | |
9961 | wxColour * _result; | |
9962 | wxMenuItem * _arg0; | |
9963 | PyObject * _argo0 = 0; | |
9964 | char *_kwnames[] = { "self", NULL }; | |
9965 | char _ptemp[128]; | |
9966 | ||
9967 | self = self; | |
9968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetTextColour",_kwnames,&_argo0)) | |
9969 | return NULL; | |
9970 | if (_argo0) { | |
9971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p."); | |
9974 | return NULL; | |
9975 | } | |
9976 | } | |
9977 | { | |
9978 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 9979 | _result = new wxColour (wxMenuItem_GetTextColour(_arg0)); |
f3d9dc1d RD |
9980 | |
9981 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9982 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
9983 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
9984 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
9985 | return _resultobj; |
9986 | } | |
9987 | ||
9988 | #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
9989 | static PyObject *_wrap_wxMenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9990 | PyObject * _resultobj; | |
9991 | wxMenuItem * _arg0; | |
9992 | wxColour * _arg1; | |
9993 | PyObject * _argo0 = 0; | |
9994 | wxColour temp; | |
9995 | PyObject * _obj1 = 0; | |
9996 | char *_kwnames[] = { "self","colBack", NULL }; | |
9997 | ||
9998 | self = self; | |
9999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
10000 | return NULL; | |
10001 | if (_argo0) { | |
10002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p."); | |
10005 | return NULL; | |
10006 | } | |
10007 | } | |
10008 | { | |
10009 | _arg1 = &temp; | |
10010 | if (! wxColour_helper(_obj1, &_arg1)) | |
10011 | return NULL; | |
10012 | } | |
10013 | { | |
10014 | wxPy_BEGIN_ALLOW_THREADS; | |
10015 | wxMenuItem_SetBackgroundColour(_arg0,*_arg1); | |
10016 | ||
10017 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10018 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10019 | } Py_INCREF(Py_None); |
10020 | _resultobj = Py_None; | |
10021 | return _resultobj; | |
10022 | } | |
10023 | ||
10024 | #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
10025 | static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10026 | PyObject * _resultobj; | |
10027 | wxColour * _result; | |
10028 | wxMenuItem * _arg0; | |
10029 | PyObject * _argo0 = 0; | |
10030 | char *_kwnames[] = { "self", NULL }; | |
10031 | char _ptemp[128]; | |
10032 | ||
10033 | self = self; | |
10034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBackgroundColour",_kwnames,&_argo0)) | |
10035 | return NULL; | |
10036 | if (_argo0) { | |
10037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p."); | |
10040 | return NULL; | |
10041 | } | |
10042 | } | |
10043 | { | |
10044 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 10045 | _result = new wxColour (wxMenuItem_GetBackgroundColour(_arg0)); |
f3d9dc1d RD |
10046 | |
10047 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10048 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
10049 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
10050 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10051 | return _resultobj; |
10052 | } | |
10053 | ||
10054 | #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1)) | |
10055 | static PyObject *_wrap_wxMenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10056 | PyObject * _resultobj; | |
10057 | wxMenuItem * _arg0; | |
10058 | wxBitmap * _arg1; | |
10059 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
10060 | PyObject * _argo0 = 0; | |
10061 | PyObject * _argo1 = 0; | |
10062 | PyObject * _argo2 = 0; | |
10063 | char *_kwnames[] = { "self","bmpChecked","bmpUnchecked", NULL }; | |
10064 | ||
10065 | self = self; | |
10066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxMenuItem_SetBitmaps",_kwnames,&_argo0,&_argo1,&_argo2)) | |
10067 | return NULL; | |
10068 | if (_argo0) { | |
10069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p."); | |
10072 | return NULL; | |
10073 | } | |
10074 | } | |
10075 | if (_argo1) { | |
10076 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10077 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
10079 | return NULL; | |
10080 | } | |
10081 | } | |
10082 | if (_argo2) { | |
10083 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10084 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
10085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
10086 | return NULL; | |
10087 | } | |
10088 | } | |
10089 | { | |
10090 | wxPy_BEGIN_ALLOW_THREADS; | |
10091 | wxMenuItem_SetBitmaps(_arg0,*_arg1,*_arg2); | |
10092 | ||
10093 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10094 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10095 | } Py_INCREF(Py_None); |
10096 | _resultobj = Py_None; | |
10097 | return _resultobj; | |
10098 | } | |
10099 | ||
10100 | #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
10101 | static PyObject *_wrap_wxMenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10102 | PyObject * _resultobj; | |
10103 | wxMenuItem * _arg0; | |
10104 | wxBitmap * _arg1; | |
10105 | PyObject * _argo0 = 0; | |
10106 | PyObject * _argo1 = 0; | |
10107 | char *_kwnames[] = { "self","bmpChecked", NULL }; | |
10108 | ||
10109 | self = self; | |
10110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
10111 | return NULL; | |
10112 | if (_argo0) { | |
10113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p."); | |
10116 | return NULL; | |
10117 | } | |
10118 | } | |
10119 | if (_argo1) { | |
10120 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10121 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p."); | |
10123 | return NULL; | |
10124 | } | |
10125 | } | |
10126 | { | |
10127 | wxPy_BEGIN_ALLOW_THREADS; | |
10128 | wxMenuItem_SetBitmap(_arg0,*_arg1); | |
10129 | ||
10130 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10131 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10132 | } Py_INCREF(Py_None); |
10133 | _resultobj = Py_None; | |
10134 | return _resultobj; | |
10135 | } | |
10136 | ||
10137 | #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0)) | |
10138 | static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10139 | PyObject * _resultobj; | |
10140 | wxBitmap * _result; | |
10141 | wxMenuItem * _arg0; | |
10142 | bool _arg1 = (bool ) TRUE; | |
10143 | PyObject * _argo0 = 0; | |
10144 | int tempbool1 = (int) TRUE; | |
10145 | char *_kwnames[] = { "self","bChecked", NULL }; | |
10146 | char _ptemp[128]; | |
10147 | ||
10148 | self = self; | |
10149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_GetBitmap",_kwnames,&_argo0,&tempbool1)) | |
10150 | return NULL; | |
10151 | if (_argo0) { | |
10152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p."); | |
10155 | return NULL; | |
10156 | } | |
10157 | } | |
10158 | _arg1 = (bool ) tempbool1; | |
10159 | { | |
10160 | wxPy_BEGIN_ALLOW_THREADS; | |
10161 | const wxBitmap & _result_ref = wxMenuItem_GetBitmap(_arg0,_arg1); | |
10162 | _result = (wxBitmap *) &_result_ref; | |
10163 | ||
10164 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10165 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10166 | } if (_result) { |
10167 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
10168 | _resultobj = Py_BuildValue("s",_ptemp); | |
10169 | } else { | |
10170 | Py_INCREF(Py_None); | |
10171 | _resultobj = Py_None; | |
10172 | } | |
10173 | return _resultobj; | |
10174 | } | |
10175 | ||
10176 | #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0)) | |
10177 | static PyObject *_wrap_wxMenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10178 | PyObject * _resultobj; | |
10179 | wxMenuItem * _arg0; | |
10180 | int _arg1; | |
10181 | PyObject * _argo0 = 0; | |
10182 | char *_kwnames[] = { "self","nWidth", NULL }; | |
10183 | ||
10184 | self = self; | |
10185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetMarginWidth",_kwnames,&_argo0,&_arg1)) | |
10186 | return NULL; | |
10187 | if (_argo0) { | |
10188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p."); | |
10191 | return NULL; | |
10192 | } | |
10193 | } | |
10194 | { | |
10195 | wxPy_BEGIN_ALLOW_THREADS; | |
10196 | wxMenuItem_SetMarginWidth(_arg0,_arg1); | |
10197 | ||
10198 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10199 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10200 | } Py_INCREF(Py_None); |
10201 | _resultobj = Py_None; | |
10202 | return _resultobj; | |
10203 | } | |
10204 | ||
10205 | #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth()) | |
10206 | static PyObject *_wrap_wxMenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10207 | PyObject * _resultobj; | |
10208 | int _result; | |
10209 | wxMenuItem * _arg0; | |
10210 | PyObject * _argo0 = 0; | |
10211 | char *_kwnames[] = { "self", NULL }; | |
10212 | ||
10213 | self = self; | |
10214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMarginWidth",_kwnames,&_argo0)) | |
10215 | return NULL; | |
10216 | if (_argo0) { | |
10217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p."); | |
10220 | return NULL; | |
10221 | } | |
10222 | } | |
10223 | { | |
10224 | wxPy_BEGIN_ALLOW_THREADS; | |
10225 | _result = (int )wxMenuItem_GetMarginWidth(_arg0); | |
10226 | ||
10227 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10228 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10229 | } _resultobj = Py_BuildValue("i",_result); |
10230 | return _resultobj; | |
10231 | } | |
10232 | ||
10233 | static PyObject *_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10234 | PyObject * _resultobj; | |
10235 | int _result; | |
10236 | char *_kwnames[] = { NULL }; | |
10237 | ||
10238 | self = self; | |
10239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMenuItem_GetDefaultMarginWidth",_kwnames)) | |
10240 | return NULL; | |
10241 | { | |
10242 | wxPy_BEGIN_ALLOW_THREADS; | |
10243 | _result = (int )wxMenuItem::GetDefaultMarginWidth(); | |
10244 | ||
10245 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10246 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10247 | } _resultobj = Py_BuildValue("i",_result); |
10248 | return _resultobj; | |
10249 | } | |
10250 | ||
10251 | #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn()) | |
10252 | static PyObject *_wrap_wxMenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10253 | PyObject * _resultobj; | |
10254 | bool _result; | |
10255 | wxMenuItem * _arg0; | |
10256 | PyObject * _argo0 = 0; | |
10257 | char *_kwnames[] = { "self", NULL }; | |
10258 | ||
10259 | self = self; | |
10260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsOwnerDrawn",_kwnames,&_argo0)) | |
10261 | return NULL; | |
10262 | if (_argo0) { | |
10263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p."); | |
10266 | return NULL; | |
10267 | } | |
10268 | } | |
10269 | { | |
10270 | wxPy_BEGIN_ALLOW_THREADS; | |
10271 | _result = (bool )wxMenuItem_IsOwnerDrawn(_arg0); | |
10272 | ||
10273 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10274 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10275 | } _resultobj = Py_BuildValue("i",_result); |
10276 | return _resultobj; | |
10277 | } | |
10278 | ||
10279 | #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn()) | |
10280 | static PyObject *_wrap_wxMenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10281 | PyObject * _resultobj; | |
10282 | wxMenuItem * _arg0; | |
10283 | PyObject * _argo0 = 0; | |
10284 | char *_kwnames[] = { "self", NULL }; | |
10285 | ||
10286 | self = self; | |
10287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_ResetOwnerDrawn",_kwnames,&_argo0)) | |
10288 | return NULL; | |
10289 | if (_argo0) { | |
10290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p."); | |
10293 | return NULL; | |
10294 | } | |
10295 | } | |
10296 | { | |
10297 | wxPy_BEGIN_ALLOW_THREADS; | |
10298 | wxMenuItem_ResetOwnerDrawn(_arg0); | |
10299 | ||
10300 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10301 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10302 | } Py_INCREF(Py_None); |
10303 | _resultobj = Py_None; | |
10304 | return _resultobj; | |
10305 | } | |
10306 | ||
8ab979d7 | 10307 | static PyMethodDef windowscMethods[] = { |
f3d9dc1d RD |
10308 | { "wxMenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, |
10309 | { "wxMenuItem_IsOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
10310 | { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10311 | { "wxMenuItem_GetMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10312 | { "wxMenuItem_SetMarginWidth", (PyCFunction) _wrap_wxMenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10313 | { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10314 | { "wxMenuItem_SetBitmap", (PyCFunction) _wrap_wxMenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10315 | { "wxMenuItem_SetBitmaps", (PyCFunction) _wrap_wxMenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
10316 | { "wxMenuItem_GetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10317 | { "wxMenuItem_SetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10318 | { "wxMenuItem_GetTextColour", (PyCFunction) _wrap_wxMenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10319 | { "wxMenuItem_SetTextColour", (PyCFunction) _wrap_wxMenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10320 | { "wxMenuItem_GetFont", (PyCFunction) _wrap_wxMenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10321 | { "wxMenuItem_SetFont", (PyCFunction) _wrap_wxMenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 10322 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10323 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
10324 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
10325 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10326 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10327 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10328 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10329 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10330 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10331 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10332 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10333 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 10334 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10335 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10336 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
10337 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10338 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10339 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10340 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10341 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
10342 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10343 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10344 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10345 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10346 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
10347 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10348 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
10349 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10350 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10351 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10352 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
10353 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
10354 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
10355 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
10356 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
10357 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
10358 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10359 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
10360 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
10361 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
10362 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10363 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
10364 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10365 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
10366 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
10367 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
10368 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10369 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10370 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10371 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10372 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10373 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
10374 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10375 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
10376 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10377 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10378 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
10379 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10380 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
10381 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10382 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10383 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10384 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10385 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10386 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
10387 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10388 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
10389 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 10390 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10391 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10392 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10393 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10394 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10395 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
10396 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
10397 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
10398 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
10399 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
10400 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
10401 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
d1679124 RD |
10402 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10403 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
10404 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
10405 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f RD |
10406 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, |
10407 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10408 | { "wxScrolledWindow_ViewStart", (PyCFunction) _wrap_wxScrolledWindow_ViewStart, METH_VARARGS | METH_KEYWORDS }, |
4c9993c3 | 10409 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10410 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10411 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10412 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10413 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
10414 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
10415 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
10416 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10417 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10418 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10419 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10420 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
10421 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
f3d9dc1d RD |
10422 | { "wxDialog_CreateButtonSizer", (PyCFunction) _wrap_wxDialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS }, |
10423 | { "wxDialog_CreateTextSizer", (PyCFunction) _wrap_wxDialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10424 | { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, |
10425 | { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
10426 | { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
10427 | { "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS }, | |
10428 | { "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10429 | { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
10430 | { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS }, | |
10431 | { "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
10432 | { "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
10433 | { "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10434 | { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
10435 | { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS }, | |
10436 | { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS }, | |
10437 | { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
10438 | { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
10439 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
10440 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
10441 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
10442 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 10443 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10444 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
10445 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10446 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
10447 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10448 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10449 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10450 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
10451 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
10452 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
10453 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10454 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10455 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10456 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10457 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10458 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10459 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
10460 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
10461 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
10462 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
10463 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10464 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
83b18bab | 10465 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 10466 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10467 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
10468 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10469 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
10470 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
dbbb98cd | 10471 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10472 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
10473 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
10474 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
10475 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10476 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
10477 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
10478 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10479 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10480 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10481 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10482 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10483 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10484 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10485 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 10486 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10487 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
10488 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
10489 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
10490 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
10491 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
10492 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10493 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10494 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, |
10495 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
10496 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
10497 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
10498 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10499 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
10500 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10501 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
10502 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10503 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
10504 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
10505 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
10506 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
10507 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
10508 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
10509 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
10510 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
10511 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
10512 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10513 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10514 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
10515 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10516 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
10517 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10518 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
10519 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
10520 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10521 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10522 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10523 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10524 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10525 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
10526 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10527 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
10528 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
10529 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10530 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10531 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
10532 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
10533 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10534 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10535 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 10536 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10537 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
10538 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10539 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 10540 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10541 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10542 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10543 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10544 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
10545 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10546 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10547 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
10548 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
10549 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
10550 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
10551 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
10552 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 10553 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10554 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, |
10555 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
10556 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
10557 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
10558 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
3ca6a5f0 BP |
10559 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
10560 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10561 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
10562 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
10563 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
10564 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
10565 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
10566 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10567 | { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10568 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
9416aa89 RD |
10569 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
10570 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10571 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
10572 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10573 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
10574 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 10575 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10576 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
10577 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
10578 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10579 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
10580 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10581 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10582 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10583 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10584 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 10585 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
a1df7a95 RD |
10586 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
10587 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
10588 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10589 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, |
10590 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
10591 | { NULL, NULL } |
10592 | }; | |
1d99702e RD |
10593 | #ifdef __cplusplus |
10594 | } | |
10595 | #endif | |
10596 | /* | |
10597 | * This table is used by the pointer type-checker | |
10598 | */ | |
10599 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 10600 | { "_signed_long","_long",0}, |
b1462dfa | 10601 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
10602 | { "_wxPrintQuality","_int",0}, |
10603 | { "_wxPrintQuality","_signed_int",0}, | |
10604 | { "_wxPrintQuality","_unsigned_int",0}, | |
10605 | { "_wxPrintQuality","_wxWindowID",0}, | |
10606 | { "_wxPrintQuality","_uint",0}, | |
10607 | { "_wxPrintQuality","_EBool",0}, | |
10608 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10609 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 10610 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
10611 | { "_long","_unsigned_long",0}, |
10612 | { "_long","_signed_long",0}, | |
b1462dfa | 10613 | { "_size_t","_wxCoord",0}, |
1d99702e | 10614 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10615 | { "_size_t","_time_t",0}, |
1d99702e RD |
10616 | { "_size_t","_unsigned_int",0}, |
10617 | { "_size_t","_int",0}, | |
10618 | { "_size_t","_wxWindowID",0}, | |
10619 | { "_size_t","_uint",0}, | |
1d99702e | 10620 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
1d99702e | 10621 | { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, |
b1462dfa | 10622 | { "_uint","_wxCoord",0}, |
1d99702e | 10623 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10624 | { "_uint","_time_t",0}, |
1d99702e RD |
10625 | { "_uint","_size_t",0}, |
10626 | { "_uint","_unsigned_int",0}, | |
10627 | { "_uint","_int",0}, | |
10628 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10629 | { "_wxChar","_char",0}, |
f6bcfd97 | 10630 | { "_char","_wxChar",0}, |
b1462dfa | 10631 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10632 | { "_EBool","_wxPrintQuality",0}, |
10633 | { "_EBool","_signed_int",0}, | |
10634 | { "_EBool","_int",0}, | |
10635 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 10636 | { "_unsigned_long","_long",0}, |
b1462dfa | 10637 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10638 | { "_signed_int","_wxPrintQuality",0}, |
10639 | { "_signed_int","_EBool",0}, | |
10640 | { "_signed_int","_wxWindowID",0}, | |
10641 | { "_signed_int","_int",0}, | |
1d99702e RD |
10642 | { "_WXTYPE","_short",0}, |
10643 | { "_WXTYPE","_signed_short",0}, | |
10644 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
10645 | { "_unsigned_short","_WXTYPE",0}, |
10646 | { "_unsigned_short","_short",0}, | |
9416aa89 | 10647 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, |
9416aa89 | 10648 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, |
9416aa89 | 10649 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, |
9416aa89 | 10650 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, |
9416aa89 | 10651 | { "_wxObject","_wxDialog",SwigwxDialogTowxObject}, |
9416aa89 | 10652 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, |
9416aa89 | 10653 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, |
9416aa89 | 10654 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, |
9416aa89 | 10655 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, |
9416aa89 | 10656 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, |
1d99702e RD |
10657 | { "_signed_short","_WXTYPE",0}, |
10658 | { "_signed_short","_short",0}, | |
1d99702e | 10659 | { "_unsigned_char","_byte",0}, |
b1462dfa | 10660 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10661 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10662 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10663 | { "_unsigned_int","_size_t",0}, |
10664 | { "_unsigned_int","_uint",0}, | |
10665 | { "_unsigned_int","_wxWindowID",0}, | |
10666 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
10667 | { "_short","_WXTYPE",0}, |
10668 | { "_short","_unsigned_short",0}, | |
10669 | { "_short","_signed_short",0}, | |
b1462dfa | 10670 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10671 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10672 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10673 | { "_wxWindowID","_size_t",0}, |
10674 | { "_wxWindowID","_EBool",0}, | |
10675 | { "_wxWindowID","_uint",0}, | |
10676 | { "_wxWindowID","_int",0}, | |
10677 | { "_wxWindowID","_signed_int",0}, | |
10678 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10679 | { "_int","_wxCoord",0}, |
1d99702e | 10680 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10681 | { "_int","_time_t",0}, |
1d99702e RD |
10682 | { "_int","_size_t",0}, |
10683 | { "_int","_EBool",0}, | |
10684 | { "_int","_uint",0}, | |
10685 | { "_int","_wxWindowID",0}, | |
10686 | { "_int","_unsigned_int",0}, | |
10687 | { "_int","_signed_int",0}, | |
c368d904 RD |
10688 | { "_time_t","_wxCoord",0}, |
10689 | { "_time_t","_wxPrintQuality",0}, | |
10690 | { "_time_t","_unsigned_int",0}, | |
10691 | { "_time_t","_int",0}, | |
10692 | { "_time_t","_wxWindowID",0}, | |
10693 | { "_time_t","_uint",0}, | |
10694 | { "_time_t","_size_t",0}, | |
2f90df85 | 10695 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
b1462dfa RD |
10696 | { "_wxCoord","_int",0}, |
10697 | { "_wxCoord","_signed_int",0}, | |
10698 | { "_wxCoord","_unsigned_int",0}, | |
10699 | { "_wxCoord","_wxWindowID",0}, | |
10700 | { "_wxCoord","_uint",0}, | |
10701 | { "_wxCoord","_EBool",0}, | |
10702 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10703 | { "_wxCoord","_time_t",0}, |
b1462dfa | 10704 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 10705 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
1d99702e | 10706 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, |
1d99702e | 10707 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, |
1d99702e | 10708 | { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, |
1d99702e | 10709 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, |
1d99702e | 10710 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, |
2f90df85 | 10711 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
2f90df85 | 10712 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, |
b1462dfa | 10713 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, |
1d99702e | 10714 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
1d99702e | 10715 | { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, |
1d99702e | 10716 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, |
1d99702e RD |
10717 | {0,0,0}}; |
10718 | ||
8ab979d7 RD |
10719 | static PyObject *SWIG_globals; |
10720 | #ifdef __cplusplus | |
10721 | extern "C" | |
10722 | #endif | |
1d99702e | 10723 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
10724 | PyObject *m, *d; |
10725 | SWIG_globals = SWIG_newvarlink(); | |
10726 | m = Py_InitModule("windowsc", windowscMethods); | |
10727 | d = PyModule_GetDict(m); | |
1d99702e RD |
10728 | { |
10729 | int i; | |
10730 | for (i = 0; _swig_mapping[i].n1; i++) | |
10731 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10732 | } | |
8ab979d7 | 10733 | } |