]>
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 | ||
19a97bd6 | 106 | wxObject* Clone() const { |
694759cf RD |
107 | wxPyValidator* ptr = NULL; |
108 | wxPyValidator* self = (wxPyValidator*)this; | |
2f90df85 | 109 | |
19a97bd6 | 110 | wxPyTState* state = wxPyBeginBlockThreads(); |
694759cf RD |
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 | 118 | } |
19a97bd6 RD |
119 | wxPyEndBlockThreads(state); |
120 | ||
694759cf RD |
121 | // This is very dangerous!!! But is the only way I could find |
122 | // to squash a memory leak. Currently it is okay, but if the | |
123 | // validator architecture in wxWindows ever changes, problems | |
124 | // could arise. | |
125 | delete self; | |
694759cf RD |
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 | 143 | |
2f90df85 RD |
144 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { |
145 | wxWindow* win = new wxWindow; | |
146 | win->SetHWND(hWnd); | |
147 | win->SubclassWin(hWnd); | |
148 | return win; | |
149 | } | |
150 | #ifdef __cplusplus | |
151 | extern "C" { | |
152 | #endif | |
2f90df85 RD |
153 | static PyObject *_wrap_wxWindow_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { |
154 | PyObject * _resultobj; | |
155 | wxWindow * _result; | |
156 | unsigned long _arg0; | |
157 | char *_kwnames[] = { "hWnd", NULL }; | |
2f90df85 RD |
158 | |
159 | self = self; | |
160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxWindow_FromHWND",_kwnames,&_arg0)) | |
161 | return NULL; | |
162 | { | |
163 | wxPy_BEGIN_ALLOW_THREADS; | |
164 | _result = (wxWindow *)wxWindow_FromHWND(_arg0); | |
165 | ||
166 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 167 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 168 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
169 | return _resultobj; |
170 | } | |
171 | ||
9416aa89 RD |
172 | static void *SwigwxEvtHandlerTowxObject(void *ptr) { |
173 | wxEvtHandler *src; | |
174 | wxObject *dest; | |
175 | src = (wxEvtHandler *) ptr; | |
176 | dest = (wxObject *) src; | |
177 | return (void *) dest; | |
178 | } | |
179 | ||
c368d904 RD |
180 | #define new_wxEvtHandler() (new wxEvtHandler()) |
181 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
182 | PyObject * _resultobj; | |
183 | wxEvtHandler * _result; | |
184 | char *_kwnames[] = { NULL }; | |
185 | char _ptemp[128]; | |
186 | ||
187 | self = self; | |
188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
189 | return NULL; | |
190 | { | |
191 | wxPy_BEGIN_ALLOW_THREADS; | |
192 | _result = (wxEvtHandler *)new_wxEvtHandler(); | |
193 | ||
194 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 195 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
196 | } if (_result) { |
197 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
198 | _resultobj = Py_BuildValue("s",_ptemp); | |
199 | } else { | |
200 | Py_INCREF(Py_None); | |
201 | _resultobj = Py_None; | |
202 | } | |
203 | return _resultobj; | |
204 | } | |
205 | ||
2f90df85 RD |
206 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
207 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
208 | PyObject * _resultobj; | |
209 | bool _result; | |
210 | wxEvtHandler * _arg0; | |
211 | wxEvent * _arg1; | |
212 | PyObject * _argo0 = 0; | |
213 | PyObject * _argo1 = 0; | |
214 | char *_kwnames[] = { "self","event", NULL }; | |
215 | ||
216 | self = self; | |
217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
218 | return NULL; | |
219 | if (_argo0) { | |
220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
223 | return NULL; | |
224 | } | |
225 | } | |
226 | if (_argo1) { | |
227 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
228 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
230 | return NULL; | |
231 | } | |
232 | } | |
233 | { | |
234 | wxPy_BEGIN_ALLOW_THREADS; | |
235 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); | |
236 | ||
237 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 238 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
239 | } _resultobj = Py_BuildValue("i",_result); |
240 | return _resultobj; | |
241 | } | |
242 | ||
f6bcfd97 BP |
243 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
244 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
245 | PyObject * _resultobj; | |
246 | wxEvtHandler * _arg0; | |
247 | wxEvent * _arg1; | |
248 | PyObject * _argo0 = 0; | |
249 | PyObject * _argo1 = 0; | |
250 | char *_kwnames[] = { "self","event", NULL }; | |
251 | ||
252 | self = self; | |
253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
254 | return NULL; | |
255 | if (_argo0) { | |
256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
259 | return NULL; | |
260 | } | |
261 | } | |
262 | if (_argo1) { | |
263 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
264 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
266 | return NULL; | |
267 | } | |
268 | } | |
269 | { | |
270 | wxPy_BEGIN_ALLOW_THREADS; | |
271 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); | |
272 | ||
273 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 274 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
275 | } Py_INCREF(Py_None); |
276 | _resultobj = Py_None; | |
277 | return _resultobj; | |
278 | } | |
279 | ||
2f90df85 RD |
280 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
281 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
282 | PyObject * _resultobj; | |
283 | bool _result; | |
284 | wxEvtHandler * _arg0; | |
285 | PyObject * _argo0 = 0; | |
286 | char *_kwnames[] = { "self", NULL }; | |
287 | ||
288 | self = self; | |
289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
290 | return NULL; | |
291 | if (_argo0) { | |
292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
295 | return NULL; | |
296 | } | |
297 | } | |
298 | { | |
299 | wxPy_BEGIN_ALLOW_THREADS; | |
300 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); | |
301 | ||
302 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 303 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
304 | } _resultobj = Py_BuildValue("i",_result); |
305 | return _resultobj; | |
306 | } | |
307 | ||
308 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
309 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
310 | PyObject * _resultobj; | |
311 | wxEvtHandler * _arg0; | |
312 | bool _arg1; | |
313 | PyObject * _argo0 = 0; | |
314 | int tempbool1; | |
315 | char *_kwnames[] = { "self","enabled", NULL }; | |
316 | ||
317 | self = self; | |
318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
319 | return NULL; | |
320 | if (_argo0) { | |
321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
324 | return NULL; | |
325 | } | |
326 | } | |
327 | _arg1 = (bool ) tempbool1; | |
328 | { | |
329 | wxPy_BEGIN_ALLOW_THREADS; | |
330 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); | |
331 | ||
332 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 333 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
334 | } Py_INCREF(Py_None); |
335 | _resultobj = Py_None; | |
336 | return _resultobj; | |
337 | } | |
338 | ||
339 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
340 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
341 | PyObject * _resultobj; | |
342 | wxEvtHandler * _result; | |
343 | wxEvtHandler * _arg0; | |
344 | PyObject * _argo0 = 0; | |
345 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
346 | |
347 | self = self; | |
348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
349 | return NULL; | |
350 | if (_argo0) { | |
351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
354 | return NULL; | |
355 | } | |
356 | } | |
357 | { | |
358 | wxPy_BEGIN_ALLOW_THREADS; | |
359 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); | |
360 | ||
361 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 362 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 363 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
364 | return _resultobj; |
365 | } | |
366 | ||
367 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
368 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
369 | PyObject * _resultobj; | |
370 | wxEvtHandler * _result; | |
371 | wxEvtHandler * _arg0; | |
372 | PyObject * _argo0 = 0; | |
373 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
374 | |
375 | self = self; | |
376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
377 | return NULL; | |
378 | if (_argo0) { | |
379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
382 | return NULL; | |
383 | } | |
384 | } | |
385 | { | |
386 | wxPy_BEGIN_ALLOW_THREADS; | |
387 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); | |
388 | ||
389 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 390 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 391 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
392 | return _resultobj; |
393 | } | |
394 | ||
395 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
396 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
397 | PyObject * _resultobj; | |
398 | wxEvtHandler * _arg0; | |
399 | wxEvtHandler * _arg1; | |
400 | PyObject * _argo0 = 0; | |
401 | PyObject * _argo1 = 0; | |
402 | char *_kwnames[] = { "self","handler", NULL }; | |
403 | ||
404 | self = self; | |
405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
406 | return NULL; | |
407 | if (_argo0) { | |
408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
411 | return NULL; | |
412 | } | |
413 | } | |
414 | if (_argo1) { | |
415 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
416 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
418 | return NULL; | |
419 | } | |
420 | } | |
421 | { | |
422 | wxPy_BEGIN_ALLOW_THREADS; | |
423 | wxEvtHandler_SetNextHandler(_arg0,_arg1); | |
424 | ||
425 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 426 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
427 | } Py_INCREF(Py_None); |
428 | _resultobj = Py_None; | |
429 | return _resultobj; | |
430 | } | |
431 | ||
432 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
433 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
434 | PyObject * _resultobj; | |
435 | wxEvtHandler * _arg0; | |
436 | wxEvtHandler * _arg1; | |
437 | PyObject * _argo0 = 0; | |
438 | PyObject * _argo1 = 0; | |
439 | char *_kwnames[] = { "self","handler", NULL }; | |
440 | ||
441 | self = self; | |
442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
443 | return NULL; | |
444 | if (_argo0) { | |
445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
448 | return NULL; | |
449 | } | |
450 | } | |
451 | if (_argo1) { | |
452 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
453 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
455 | return NULL; | |
456 | } | |
457 | } | |
458 | { | |
459 | wxPy_BEGIN_ALLOW_THREADS; | |
460 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); | |
461 | ||
462 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 463 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
464 | } Py_INCREF(Py_None); |
465 | _resultobj = Py_None; | |
466 | return _resultobj; | |
467 | } | |
468 | ||
469 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
470 | if (PyCallable_Check(func)) { | |
471 | self->Connect(id, lastId, eventType, | |
472 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
473 | new wxPyCallback(func)); | |
474 | } | |
475 | } | |
476 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
477 | PyObject * _resultobj; | |
478 | wxEvtHandler * _arg0; | |
479 | int _arg1; | |
480 | int _arg2; | |
481 | int _arg3; | |
482 | PyObject * _arg4; | |
483 | PyObject * _argo0 = 0; | |
484 | PyObject * _obj4 = 0; | |
485 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
486 | ||
487 | self = self; | |
488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
489 | return NULL; | |
490 | if (_argo0) { | |
491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
494 | return NULL; | |
495 | } | |
496 | } | |
497 | { | |
498 | _arg4 = _obj4; | |
499 | } | |
500 | { | |
501 | wxPy_BEGIN_ALLOW_THREADS; | |
502 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
503 | ||
504 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 505 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
506 | } Py_INCREF(Py_None); |
507 | _resultobj = Py_None; | |
508 | return _resultobj; | |
509 | } | |
510 | ||
6999b0d8 RD |
511 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
512 | return self->Disconnect(id, lastId, eventType, | |
513 | (wxObjectEventFunction) | |
514 | &wxPyCallback::EventThunker); | |
515 | } | |
516 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
517 | PyObject * _resultobj; | |
518 | bool _result; | |
519 | wxEvtHandler * _arg0; | |
520 | int _arg1; | |
521 | int _arg2 = (int ) -1; | |
522 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
523 | PyObject * _argo0 = 0; | |
524 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
525 | ||
526 | self = self; | |
527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
528 | return NULL; | |
529 | if (_argo0) { | |
530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
533 | return NULL; | |
534 | } | |
535 | } | |
536 | { | |
537 | wxPy_BEGIN_ALLOW_THREADS; | |
538 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); | |
539 | ||
540 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 541 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
542 | } _resultobj = Py_BuildValue("i",_result); |
543 | return _resultobj; | |
544 | } | |
545 | ||
2f90df85 RD |
546 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
547 | wxValidator *src; | |
548 | wxEvtHandler *dest; | |
549 | src = (wxValidator *) ptr; | |
550 | dest = (wxEvtHandler *) src; | |
551 | return (void *) dest; | |
552 | } | |
553 | ||
9416aa89 RD |
554 | static void *SwigwxValidatorTowxObject(void *ptr) { |
555 | wxValidator *src; | |
556 | wxObject *dest; | |
557 | src = (wxValidator *) ptr; | |
558 | dest = (wxObject *) src; | |
559 | return (void *) dest; | |
560 | } | |
561 | ||
2f90df85 RD |
562 | #define new_wxValidator() (new wxValidator()) |
563 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
564 | PyObject * _resultobj; | |
565 | wxValidator * _result; | |
566 | char *_kwnames[] = { NULL }; | |
567 | char _ptemp[128]; | |
568 | ||
569 | self = self; | |
570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
571 | return NULL; | |
572 | { | |
573 | wxPy_BEGIN_ALLOW_THREADS; | |
574 | _result = (wxValidator *)new_wxValidator(); | |
575 | ||
576 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 577 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
578 | } if (_result) { |
579 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
580 | _resultobj = Py_BuildValue("s",_ptemp); | |
581 | } else { | |
582 | Py_INCREF(Py_None); | |
583 | _resultobj = Py_None; | |
584 | } | |
585 | return _resultobj; | |
af309447 | 586 | } |
2f90df85 RD |
587 | |
588 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
589 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 590 | PyObject * _resultobj; |
2f90df85 RD |
591 | wxValidator * _result; |
592 | wxValidator * _arg0; | |
593 | PyObject * _argo0 = 0; | |
594 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
595 | |
596 | self = self; | |
2f90df85 RD |
597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
598 | return NULL; | |
599 | if (_argo0) { | |
600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 603 | return NULL; |
2f90df85 RD |
604 | } |
605 | } | |
cf694132 RD |
606 | { |
607 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 608 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 RD |
609 | |
610 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 611 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 612 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
613 | return _resultobj; |
614 | } | |
615 | ||
2f90df85 RD |
616 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
617 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
618 | PyObject * _resultobj; |
619 | wxWindow * _result; | |
2f90df85 RD |
620 | wxValidator * _arg0; |
621 | PyObject * _argo0 = 0; | |
622 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
623 | |
624 | self = self; | |
2f90df85 RD |
625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
626 | return NULL; | |
627 | if (_argo0) { | |
628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 631 | return NULL; |
2f90df85 RD |
632 | } |
633 | } | |
cf694132 RD |
634 | { |
635 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 636 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 RD |
637 | |
638 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 639 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 640 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
641 | return _resultobj; |
642 | } | |
643 | ||
2f90df85 RD |
644 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
645 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 646 | PyObject * _resultobj; |
2f90df85 RD |
647 | wxValidator * _arg0; |
648 | wxWindow * _arg1; | |
1d99702e RD |
649 | PyObject * _argo0 = 0; |
650 | PyObject * _argo1 = 0; | |
2f90df85 | 651 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
652 | |
653 | self = self; | |
2f90df85 | 654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 655 | return NULL; |
1d99702e RD |
656 | if (_argo0) { |
657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
660 | return NULL; |
661 | } | |
662 | } | |
1d99702e RD |
663 | if (_argo1) { |
664 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
665 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
667 | return NULL; |
668 | } | |
669 | } | |
670 | { | |
671 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 672 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 RD |
673 | |
674 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 675 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
676 | } Py_INCREF(Py_None); |
677 | _resultobj = Py_None; | |
cf694132 RD |
678 | return _resultobj; |
679 | } | |
680 | ||
9416aa89 RD |
681 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { |
682 | PyObject * _resultobj; | |
683 | bool _result; | |
684 | char *_kwnames[] = { NULL }; | |
685 | ||
686 | self = self; | |
687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
688 | return NULL; | |
689 | { | |
690 | wxPy_BEGIN_ALLOW_THREADS; | |
691 | _result = (bool )wxValidator::IsSilent(); | |
692 | ||
693 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 694 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
695 | } _resultobj = Py_BuildValue("i",_result); |
696 | return _resultobj; | |
697 | } | |
698 | ||
699 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
700 | PyObject * _resultobj; | |
701 | int _arg0 = (int ) TRUE; | |
702 | char *_kwnames[] = { "doIt", NULL }; | |
703 | ||
704 | self = self; | |
705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
706 | return NULL; | |
707 | { | |
708 | wxPy_BEGIN_ALLOW_THREADS; | |
709 | wxValidator::SetBellOnError(_arg0); | |
710 | ||
711 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 712 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
713 | } Py_INCREF(Py_None); |
714 | _resultobj = Py_None; | |
715 | return _resultobj; | |
716 | } | |
717 | ||
2f90df85 RD |
718 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
719 | wxPyValidator *src; | |
720 | wxValidator *dest; | |
721 | src = (wxPyValidator *) ptr; | |
722 | dest = (wxValidator *) src; | |
723 | return (void *) dest; | |
724 | } | |
725 | ||
726 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
727 | wxPyValidator *src; | |
728 | wxEvtHandler *dest; | |
729 | src = (wxPyValidator *) ptr; | |
730 | dest = (wxEvtHandler *) src; | |
731 | return (void *) dest; | |
732 | } | |
733 | ||
9416aa89 RD |
734 | static void *SwigwxPyValidatorTowxObject(void *ptr) { |
735 | wxPyValidator *src; | |
736 | wxObject *dest; | |
737 | src = (wxPyValidator *) ptr; | |
738 | dest = (wxObject *) src; | |
739 | return (void *) dest; | |
740 | } | |
741 | ||
2f90df85 RD |
742 | #define new_wxPyValidator() (new wxPyValidator()) |
743 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
744 | PyObject * _resultobj; | |
745 | wxPyValidator * _result; | |
746 | char *_kwnames[] = { NULL }; | |
747 | char _ptemp[128]; | |
748 | ||
749 | self = self; | |
750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
751 | return NULL; | |
752 | { | |
753 | wxPy_BEGIN_ALLOW_THREADS; | |
754 | _result = (wxPyValidator *)new_wxPyValidator(); | |
755 | ||
756 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 757 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
758 | } if (_result) { |
759 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
760 | _resultobj = Py_BuildValue("s",_ptemp); | |
761 | } else { | |
762 | Py_INCREF(Py_None); | |
763 | _resultobj = Py_None; | |
764 | } | |
765 | return _resultobj; | |
766 | } | |
767 | ||
f6bcfd97 | 768 | #define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setSelf(_swigarg0,_swigarg1,_swigarg2)) |
2f90df85 | 769 | static PyObject *_wrap_wxPyValidator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 770 | PyObject * _resultobj; |
2f90df85 RD |
771 | wxPyValidator * _arg0; |
772 | PyObject * _arg1; | |
f6bcfd97 BP |
773 | PyObject * _arg2; |
774 | int _arg3 = (int ) TRUE; | |
1d99702e | 775 | PyObject * _argo0 = 0; |
2f90df85 | 776 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
777 | PyObject * _obj2 = 0; |
778 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
779 | |
780 | self = self; | |
f6bcfd97 | 781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setSelf",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 782 | return NULL; |
1d99702e RD |
783 | if (_argo0) { |
784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setSelf. Expected _wxPyValidator_p."); | |
8ab979d7 RD |
787 | return NULL; |
788 | } | |
789 | } | |
790 | { | |
2f90df85 | 791 | _arg1 = _obj1; |
8ab979d7 | 792 | } |
f6bcfd97 BP |
793 | { |
794 | _arg2 = _obj2; | |
795 | } | |
cf694132 RD |
796 | { |
797 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 798 | wxPyValidator__setSelf(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
799 | |
800 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 801 | if (PyErr_Occurred()) return NULL; |
cf694132 | 802 | } Py_INCREF(Py_None); |
8ab979d7 RD |
803 | _resultobj = Py_None; |
804 | return _resultobj; | |
805 | } | |
806 | ||
807 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
808 | wxWindow *src; | |
809 | wxEvtHandler *dest; | |
810 | src = (wxWindow *) ptr; | |
811 | dest = (wxEvtHandler *) src; | |
812 | return (void *) dest; | |
813 | } | |
814 | ||
9416aa89 RD |
815 | static void *SwigwxWindowTowxObject(void *ptr) { |
816 | wxWindow *src; | |
817 | wxObject *dest; | |
818 | src = (wxWindow *) ptr; | |
819 | dest = (wxObject *) src; | |
820 | return (void *) dest; | |
821 | } | |
822 | ||
8ab979d7 | 823 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 824 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
825 | PyObject * _resultobj; |
826 | wxWindow * _result; | |
827 | wxWindow * _arg0; | |
828 | wxWindowID _arg1; | |
e508a2b6 RD |
829 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
830 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
831 | long _arg4 = (long ) 0; |
832 | char * _arg5 = (char *) "panel"; | |
833 | PyObject * _argo0 = 0; | |
2f90df85 RD |
834 | wxPoint temp; |
835 | PyObject * _obj2 = 0; | |
836 | wxSize temp0; | |
837 | PyObject * _obj3 = 0; | |
efc5f224 | 838 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
839 | char _ptemp[128]; |
840 | ||
841 | self = self; | |
2f90df85 | 842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 843 | return NULL; |
1d99702e RD |
844 | if (_argo0) { |
845 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
846 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
848 | return NULL; | |
849 | } | |
850 | } | |
2f90df85 RD |
851 | if (_obj2) |
852 | { | |
853 | _arg2 = &temp; | |
854 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 855 | return NULL; |
2f90df85 RD |
856 | } |
857 | if (_obj3) | |
858 | { | |
859 | _arg3 = &temp0; | |
860 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 861 | return NULL; |
2f90df85 | 862 | } |
cf694132 RD |
863 | { |
864 | wxPy_BEGIN_ALLOW_THREADS; | |
865 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
866 | ||
867 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 868 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
869 | } if (_result) { |
870 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
871 | _resultobj = Py_BuildValue("s",_ptemp); | |
872 | } else { | |
873 | Py_INCREF(Py_None); | |
874 | _resultobj = Py_None; | |
875 | } | |
8ab979d7 RD |
876 | return _resultobj; |
877 | } | |
878 | ||
09f3d4e6 RD |
879 | #define new_wxPreWindow() (new wxWindow()) |
880 | static PyObject *_wrap_new_wxPreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
881 | PyObject * _resultobj; | |
882 | wxWindow * _result; | |
883 | char *_kwnames[] = { NULL }; | |
884 | char _ptemp[128]; | |
885 | ||
886 | self = self; | |
887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreWindow",_kwnames)) | |
888 | return NULL; | |
889 | { | |
890 | wxPy_BEGIN_ALLOW_THREADS; | |
891 | _result = (wxWindow *)new_wxPreWindow(); | |
892 | ||
893 | wxPy_END_ALLOW_THREADS; | |
894 | if (PyErr_Occurred()) return NULL; | |
895 | } if (_result) { | |
896 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
897 | _resultobj = Py_BuildValue("s",_ptemp); | |
898 | } else { | |
899 | Py_INCREF(Py_None); | |
900 | _resultobj = Py_None; | |
901 | } | |
902 | return _resultobj; | |
903 | } | |
904 | ||
905 | #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
906 | static PyObject *_wrap_wxWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
907 | PyObject * _resultobj; | |
908 | bool _result; | |
909 | wxWindow * _arg0; | |
910 | wxWindow * _arg1; | |
911 | wxWindowID _arg2; | |
912 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
913 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
914 | long _arg5 = (long ) 0; | |
915 | char * _arg6 = (char *) "panel"; | |
916 | PyObject * _argo0 = 0; | |
917 | PyObject * _argo1 = 0; | |
918 | wxPoint temp; | |
919 | PyObject * _obj3 = 0; | |
920 | wxSize temp0; | |
921 | PyObject * _obj4 = 0; | |
922 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
923 | ||
924 | self = self; | |
925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
926 | return NULL; | |
927 | if (_argo0) { | |
928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p."); | |
931 | return NULL; | |
932 | } | |
933 | } | |
934 | if (_argo1) { | |
935 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
936 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p."); | |
938 | return NULL; | |
939 | } | |
940 | } | |
941 | if (_obj3) | |
942 | { | |
943 | _arg3 = &temp; | |
944 | if (! wxPoint_helper(_obj3, &_arg3)) | |
945 | return NULL; | |
946 | } | |
947 | if (_obj4) | |
948 | { | |
949 | _arg4 = &temp0; | |
950 | if (! wxSize_helper(_obj4, &_arg4)) | |
951 | return NULL; | |
952 | } | |
953 | { | |
954 | wxPy_BEGIN_ALLOW_THREADS; | |
955 | _result = (bool )wxWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
956 | ||
957 | wxPy_END_ALLOW_THREADS; | |
958 | if (PyErr_Occurred()) return NULL; | |
959 | } _resultobj = Py_BuildValue("i",_result); | |
960 | return _resultobj; | |
961 | } | |
962 | ||
8ab979d7 | 963 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) |
efc5f224 | 964 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
965 | PyObject * _resultobj; |
966 | wxWindow * _arg0; | |
1d99702e | 967 | PyObject * _argo0 = 0; |
efc5f224 | 968 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
969 | |
970 | self = self; | |
efc5f224 | 971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) |
8ab979d7 | 972 | return NULL; |
1d99702e RD |
973 | if (_argo0) { |
974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); |
977 | return NULL; | |
978 | } | |
979 | } | |
cf694132 RD |
980 | { |
981 | wxPy_BEGIN_ALLOW_THREADS; | |
982 | wxWindow_CaptureMouse(_arg0); | |
983 | ||
984 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 985 | if (PyErr_Occurred()) return NULL; |
cf694132 | 986 | } Py_INCREF(Py_None); |
8ab979d7 RD |
987 | _resultobj = Py_None; |
988 | return _resultobj; | |
989 | } | |
990 | ||
991 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
efc5f224 | 992 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
993 | PyObject * _resultobj; |
994 | wxWindow * _arg0; | |
1d99702e RD |
995 | int _arg1 = (int ) wxBOTH; |
996 | PyObject * _argo0 = 0; | |
efc5f224 | 997 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
998 | |
999 | self = self; | |
efc5f224 | 1000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1001 | return NULL; |
1d99702e RD |
1002 | if (_argo0) { |
1003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
1006 | return NULL; | |
1007 | } | |
1008 | } | |
cf694132 RD |
1009 | { |
1010 | wxPy_BEGIN_ALLOW_THREADS; | |
1011 | wxWindow_Center(_arg0,_arg1); | |
1012 | ||
1013 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1014 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1015 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1016 | _resultobj = Py_None; |
1017 | return _resultobj; | |
1018 | } | |
1019 | ||
1020 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 1021 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1022 | PyObject * _resultobj; |
1023 | wxWindow * _arg0; | |
1d99702e RD |
1024 | int _arg1 = (int ) wxBOTH; |
1025 | PyObject * _argo0 = 0; | |
efc5f224 | 1026 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1027 | |
1028 | self = self; | |
efc5f224 | 1029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1030 | return NULL; |
1d99702e RD |
1031 | if (_argo0) { |
1032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
1035 | return NULL; | |
1036 | } | |
1037 | } | |
cf694132 RD |
1038 | { |
1039 | wxPy_BEGIN_ALLOW_THREADS; | |
1040 | wxWindow_Centre(_arg0,_arg1); | |
1041 | ||
1042 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1043 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1044 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1045 | _resultobj = Py_None; |
1046 | return _resultobj; | |
1047 | } | |
1048 | ||
bb0054cd | 1049 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 1050 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1051 | PyObject * _resultobj; |
1052 | wxWindow * _arg0; | |
1d99702e RD |
1053 | int _arg1 = (int ) wxBOTH; |
1054 | PyObject * _argo0 = 0; | |
efc5f224 | 1055 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1056 | |
1057 | self = self; | |
efc5f224 | 1058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1059 | return NULL; |
1d99702e RD |
1060 | if (_argo0) { |
1061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
1064 | return NULL; | |
1065 | } | |
1066 | } | |
1067 | { | |
1068 | wxPy_BEGIN_ALLOW_THREADS; | |
1069 | wxWindow_CentreOnParent(_arg0,_arg1); | |
1070 | ||
1071 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1072 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1073 | } Py_INCREF(Py_None); |
1074 | _resultobj = Py_None; | |
1075 | return _resultobj; | |
1076 | } | |
1077 | ||
1078 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 1079 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1080 | PyObject * _resultobj; |
1081 | wxWindow * _arg0; | |
1d99702e RD |
1082 | int _arg1 = (int ) wxBOTH; |
1083 | PyObject * _argo0 = 0; | |
efc5f224 | 1084 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1085 | |
1086 | self = self; | |
efc5f224 | 1087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1088 | return NULL; |
1d99702e RD |
1089 | if (_argo0) { |
1090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
1093 | return NULL; | |
1094 | } | |
1095 | } | |
1096 | { | |
1097 | wxPy_BEGIN_ALLOW_THREADS; | |
1098 | wxWindow_CenterOnParent(_arg0,_arg1); | |
1099 | ||
1100 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1101 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1102 | } Py_INCREF(Py_None); |
1103 | _resultobj = Py_None; | |
1104 | return _resultobj; | |
1105 | } | |
1106 | ||
3ca6a5f0 BP |
1107 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
1108 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1109 | PyObject * _resultobj; | |
1110 | wxWindow * _arg0; | |
1111 | int _arg1 = (int ) wxBOTH; | |
1112 | PyObject * _argo0 = 0; | |
1113 | char *_kwnames[] = { "self","direction", NULL }; | |
1114 | ||
1115 | self = self; | |
1116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1117 | return NULL; | |
1118 | if (_argo0) { | |
1119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1122 | return NULL; | |
1123 | } | |
1124 | } | |
1125 | { | |
1126 | wxPy_BEGIN_ALLOW_THREADS; | |
1127 | wxWindow_CentreOnScreen(_arg0,_arg1); | |
1128 | ||
1129 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1130 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1131 | } Py_INCREF(Py_None); |
1132 | _resultobj = Py_None; | |
1133 | return _resultobj; | |
1134 | } | |
1135 | ||
1136 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1137 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1138 | PyObject * _resultobj; | |
1139 | wxWindow * _arg0; | |
1140 | int _arg1 = (int ) wxBOTH; | |
1141 | PyObject * _argo0 = 0; | |
1142 | char *_kwnames[] = { "self","direction", NULL }; | |
1143 | ||
1144 | self = self; | |
1145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1146 | return NULL; | |
1147 | if (_argo0) { | |
1148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1151 | return NULL; | |
1152 | } | |
1153 | } | |
1154 | { | |
1155 | wxPy_BEGIN_ALLOW_THREADS; | |
1156 | wxWindow_CenterOnScreen(_arg0,_arg1); | |
1157 | ||
1158 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1159 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1160 | } Py_INCREF(Py_None); |
1161 | _resultobj = Py_None; | |
1162 | return _resultobj; | |
1163 | } | |
1164 | ||
d56cebe7 RD |
1165 | #define wxWindow_Clear(_swigobj) (_swigobj->Clear()) |
1166 | static PyObject *_wrap_wxWindow_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1167 | PyObject * _resultobj; | |
1168 | wxWindow * _arg0; | |
1169 | PyObject * _argo0 = 0; | |
1170 | char *_kwnames[] = { "self", NULL }; | |
1171 | ||
1172 | self = self; | |
1173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Clear",_kwnames,&_argo0)) | |
1174 | return NULL; | |
1175 | if (_argo0) { | |
1176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p."); | |
1179 | return NULL; | |
1180 | } | |
1181 | } | |
1182 | { | |
1183 | wxPy_BEGIN_ALLOW_THREADS; | |
1184 | wxWindow_Clear(_arg0); | |
1185 | ||
1186 | wxPy_END_ALLOW_THREADS; | |
1187 | if (PyErr_Occurred()) return NULL; | |
1188 | } Py_INCREF(Py_None); | |
1189 | _resultobj = Py_None; | |
1190 | return _resultobj; | |
1191 | } | |
1192 | ||
af309447 | 1193 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1194 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1195 | PyObject * _resultobj; |
1196 | wxWindow * _arg0; | |
1197 | int * _arg1; | |
1198 | int * _arg2; | |
1d99702e | 1199 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1200 | int temp; |
1201 | PyObject * _obj1 = 0; | |
1202 | int temp0; | |
1203 | PyObject * _obj2 = 0; | |
efc5f224 | 1204 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1205 | |
1206 | self = self; | |
efc5f224 | 1207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1208 | return NULL; |
1d99702e RD |
1209 | if (_argo0) { |
1210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1213 | return NULL; |
1214 | } | |
1215 | } | |
1216 | { | |
1217 | temp = (int) PyInt_AsLong(_obj1); | |
1218 | _arg1 = &temp; | |
1219 | } | |
1220 | { | |
1221 | temp0 = (int) PyInt_AsLong(_obj2); | |
1222 | _arg2 = &temp0; | |
1223 | } | |
cf694132 RD |
1224 | { |
1225 | wxPy_BEGIN_ALLOW_THREADS; | |
1226 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); | |
1227 | ||
1228 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1229 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1230 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1231 | _resultobj = Py_None; |
1232 | { | |
1233 | PyObject *o; | |
1234 | o = PyInt_FromLong((long) (*_arg1)); | |
1235 | _resultobj = t_output_helper(_resultobj, o); | |
1236 | } | |
1237 | { | |
1238 | PyObject *o; | |
1239 | o = PyInt_FromLong((long) (*_arg2)); | |
1240 | _resultobj = t_output_helper(_resultobj, o); | |
1241 | } | |
1242 | return _resultobj; | |
1243 | } | |
1244 | ||
af309447 | 1245 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1246 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1247 | PyObject * _resultobj; |
1248 | wxPoint * _result; | |
1249 | wxWindow * _arg0; | |
1250 | wxPoint * _arg1; | |
1d99702e | 1251 | PyObject * _argo0 = 0; |
2f90df85 RD |
1252 | wxPoint temp; |
1253 | PyObject * _obj1 = 0; | |
efc5f224 | 1254 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1255 | char _ptemp[128]; |
1256 | ||
1257 | self = self; | |
2f90df85 | 1258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1259 | return NULL; |
1d99702e RD |
1260 | if (_argo0) { |
1261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1264 | return NULL; | |
1265 | } | |
1266 | } | |
2f90df85 RD |
1267 | { |
1268 | _arg1 = &temp; | |
1269 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1270 | return NULL; |
2f90df85 | 1271 | } |
cf694132 RD |
1272 | { |
1273 | wxPy_BEGIN_ALLOW_THREADS; | |
1274 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); | |
1275 | ||
1276 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1277 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1278 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
1279 | _resultobj = Py_BuildValue("s",_ptemp); |
1280 | return _resultobj; | |
1281 | } | |
1282 | ||
8ab979d7 | 1283 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1284 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1285 | PyObject * _resultobj; |
1286 | bool _result; | |
1287 | wxWindow * _arg0; | |
1d99702e RD |
1288 | int _arg1 = (int ) FALSE; |
1289 | PyObject * _argo0 = 0; | |
efc5f224 | 1290 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1291 | |
1292 | self = self; | |
efc5f224 | 1293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1294 | return NULL; |
1d99702e RD |
1295 | if (_argo0) { |
1296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1299 | return NULL; | |
1300 | } | |
1301 | } | |
cf694132 RD |
1302 | { |
1303 | wxPy_BEGIN_ALLOW_THREADS; | |
1304 | _result = (bool )wxWindow_Close(_arg0,_arg1); | |
1305 | ||
1306 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1307 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1308 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1309 | return _resultobj; |
1310 | } | |
1311 | ||
1312 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1313 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1314 | PyObject * _resultobj; |
1315 | bool _result; | |
1316 | wxWindow * _arg0; | |
1d99702e | 1317 | PyObject * _argo0 = 0; |
efc5f224 | 1318 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1319 | |
1320 | self = self; | |
efc5f224 | 1321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1322 | return NULL; |
1d99702e RD |
1323 | if (_argo0) { |
1324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1327 | return NULL; | |
1328 | } | |
1329 | } | |
cf694132 RD |
1330 | { |
1331 | wxPy_BEGIN_ALLOW_THREADS; | |
1332 | _result = (bool )wxWindow_Destroy(_arg0); | |
1333 | ||
1334 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1335 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1336 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1337 | return _resultobj; |
1338 | } | |
1339 | ||
1340 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1341 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1342 | PyObject * _resultobj; |
1343 | wxWindow * _arg0; | |
1d99702e | 1344 | PyObject * _argo0 = 0; |
efc5f224 | 1345 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1346 | |
1347 | self = self; | |
efc5f224 | 1348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1349 | return NULL; |
1d99702e RD |
1350 | if (_argo0) { |
1351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1354 | return NULL; | |
1355 | } | |
1356 | } | |
cf694132 RD |
1357 | { |
1358 | wxPy_BEGIN_ALLOW_THREADS; | |
1359 | wxWindow_DestroyChildren(_arg0); | |
1360 | ||
1361 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1362 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1363 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1364 | _resultobj = Py_None; |
1365 | return _resultobj; | |
1366 | } | |
1367 | ||
ac346f50 RD |
1368 | #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted()) |
1369 | static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1370 | PyObject * _resultobj; | |
1371 | bool _result; | |
1372 | wxWindow * _arg0; | |
1373 | PyObject * _argo0 = 0; | |
1374 | char *_kwnames[] = { "self", NULL }; | |
1375 | ||
1376 | self = self; | |
1377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0)) | |
1378 | return NULL; | |
1379 | if (_argo0) { | |
1380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p."); | |
1383 | return NULL; | |
1384 | } | |
1385 | } | |
1386 | { | |
1387 | wxPy_BEGIN_ALLOW_THREADS; | |
1388 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); | |
1389 | ||
1390 | wxPy_END_ALLOW_THREADS; | |
1391 | if (PyErr_Occurred()) return NULL; | |
1392 | } _resultobj = Py_BuildValue("i",_result); | |
1393 | return _resultobj; | |
1394 | } | |
1395 | ||
8ab979d7 | 1396 | #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0)) |
efc5f224 | 1397 | static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1398 | PyObject * _resultobj; |
1399 | wxWindow * _arg0; | |
1400 | bool _arg1; | |
1d99702e | 1401 | PyObject * _argo0 = 0; |
8ab979d7 | 1402 | int tempbool1; |
efc5f224 | 1403 | char *_kwnames[] = { "self","accept", NULL }; |
8ab979d7 RD |
1404 | |
1405 | self = self; | |
efc5f224 | 1406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1407 | return NULL; |
1d99702e RD |
1408 | if (_argo0) { |
1409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p."); |
1412 | return NULL; | |
1413 | } | |
1414 | } | |
1415 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1416 | { |
1417 | wxPy_BEGIN_ALLOW_THREADS; | |
1418 | wxWindow_DragAcceptFiles(_arg0,_arg1); | |
1419 | ||
1420 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1421 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1422 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1423 | _resultobj = Py_None; |
1424 | return _resultobj; | |
1425 | } | |
1426 | ||
1427 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
efc5f224 | 1428 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1429 | PyObject * _resultobj; |
1430 | wxWindow * _arg0; | |
1431 | bool _arg1; | |
1d99702e | 1432 | PyObject * _argo0 = 0; |
8ab979d7 | 1433 | int tempbool1; |
efc5f224 | 1434 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1435 | |
1436 | self = self; | |
efc5f224 | 1437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1438 | return NULL; |
1d99702e RD |
1439 | if (_argo0) { |
1440 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1441 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1443 | return NULL; | |
1444 | } | |
1445 | } | |
1446 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1447 | { |
1448 | wxPy_BEGIN_ALLOW_THREADS; | |
1449 | wxWindow_Enable(_arg0,_arg1); | |
1450 | ||
1451 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1452 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1453 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1454 | _resultobj = Py_None; |
1455 | return _resultobj; | |
1456 | } | |
1457 | ||
af309447 | 1458 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1459 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1460 | PyObject * _resultobj; |
1461 | wxWindow * _result; | |
1462 | wxWindow * _arg0; | |
1463 | long _arg1; | |
1d99702e | 1464 | PyObject * _argo0 = 0; |
efc5f224 | 1465 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1466 | |
1467 | self = self; | |
efc5f224 | 1468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1469 | return NULL; |
1d99702e RD |
1470 | if (_argo0) { |
1471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1474 | return NULL; |
1475 | } | |
1476 | } | |
cf694132 RD |
1477 | { |
1478 | wxPy_BEGIN_ALLOW_THREADS; | |
1479 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); | |
1480 | ||
1481 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1482 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1483 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1484 | return _resultobj; |
1485 | } | |
1486 | ||
1487 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1488 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1489 | PyObject * _resultobj; |
1490 | wxWindow * _result; | |
1491 | wxWindow * _arg0; | |
1492 | wxString * _arg1; | |
1d99702e | 1493 | PyObject * _argo0 = 0; |
8ab979d7 | 1494 | PyObject * _obj1 = 0; |
efc5f224 | 1495 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1496 | |
1497 | self = self; | |
efc5f224 | 1498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1499 | return NULL; |
1d99702e RD |
1500 | if (_argo0) { |
1501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1504 | return NULL; | |
1505 | } | |
1506 | } | |
1507 | { | |
185d7c3e RD |
1508 | #if PYTHON_API_VERSION >= 1009 |
1509 | char* tmpPtr; int tmpSize; | |
1510 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1511 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1512 | return NULL; |
1513 | } | |
1514 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1515 | return NULL; | |
1516 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1517 | #else | |
8ab979d7 RD |
1518 | if (!PyString_Check(_obj1)) { |
1519 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1520 | return NULL; | |
1521 | } | |
185d7c3e RD |
1522 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1523 | #endif | |
8ab979d7 | 1524 | } |
cf694132 RD |
1525 | { |
1526 | wxPy_BEGIN_ALLOW_THREADS; | |
1527 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); | |
1528 | ||
1529 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1530 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1531 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1532 | { |
1533 | if (_obj1) | |
1534 | delete _arg1; | |
1535 | } | |
1536 | return _resultobj; | |
1537 | } | |
1538 | ||
1539 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1540 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1541 | PyObject * _resultobj; |
1542 | wxWindow * _arg0; | |
1d99702e | 1543 | PyObject * _argo0 = 0; |
efc5f224 | 1544 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1545 | |
1546 | self = self; | |
efc5f224 | 1547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1548 | return NULL; |
1d99702e RD |
1549 | if (_argo0) { |
1550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1553 | return NULL; | |
1554 | } | |
1555 | } | |
cf694132 RD |
1556 | { |
1557 | wxPy_BEGIN_ALLOW_THREADS; | |
1558 | wxWindow_Fit(_arg0); | |
1559 | ||
1560 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1561 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1562 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1563 | _resultobj = Py_None; |
1564 | return _resultobj; | |
1565 | } | |
1566 | ||
1567 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
efc5f224 | 1568 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1569 | PyObject * _resultobj; |
1570 | wxColour * _result; | |
1571 | wxWindow * _arg0; | |
1d99702e | 1572 | PyObject * _argo0 = 0; |
efc5f224 | 1573 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1574 | char _ptemp[128]; |
1575 | ||
1576 | self = self; | |
efc5f224 | 1577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1578 | return NULL; |
1d99702e RD |
1579 | if (_argo0) { |
1580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1583 | return NULL; | |
1584 | } | |
1585 | } | |
cf694132 RD |
1586 | { |
1587 | wxPy_BEGIN_ALLOW_THREADS; | |
1588 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); | |
1589 | ||
1590 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1591 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1592 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1593 | _resultobj = Py_BuildValue("s",_ptemp); |
1594 | return _resultobj; | |
1595 | } | |
1596 | ||
d426c97e RD |
1597 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1598 | wxWindowList& list = self->GetChildren(); | |
1599 | return wxPy_ConvertList(&list, "wxWindow"); | |
1600 | } | |
1601 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1602 | PyObject * _resultobj; | |
1603 | PyObject * _result; | |
1604 | wxWindow * _arg0; | |
1605 | PyObject * _argo0 = 0; | |
1606 | char *_kwnames[] = { "self", NULL }; | |
1607 | ||
1608 | self = self; | |
1609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1610 | return NULL; | |
1611 | if (_argo0) { | |
1612 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1613 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1615 | return NULL; | |
1616 | } | |
1617 | } | |
1618 | { | |
1619 | wxPy_BEGIN_ALLOW_THREADS; | |
1620 | _result = (PyObject *)wxWindow_GetChildren(_arg0); | |
1621 | ||
1622 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1623 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
1624 | }{ |
1625 | _resultobj = _result; | |
1626 | } | |
1627 | return _resultobj; | |
1628 | } | |
1629 | ||
8ab979d7 | 1630 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1631 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1632 | PyObject * _resultobj; |
1633 | int _result; | |
1634 | wxWindow * _arg0; | |
1d99702e | 1635 | PyObject * _argo0 = 0; |
efc5f224 | 1636 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1637 | |
1638 | self = self; | |
efc5f224 | 1639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1640 | return NULL; |
1d99702e RD |
1641 | if (_argo0) { |
1642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1645 | return NULL; | |
1646 | } | |
1647 | } | |
cf694132 RD |
1648 | { |
1649 | wxPy_BEGIN_ALLOW_THREADS; | |
1650 | _result = (int )wxWindow_GetCharHeight(_arg0); | |
1651 | ||
1652 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1653 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1654 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1655 | return _resultobj; |
1656 | } | |
1657 | ||
1658 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1659 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1660 | PyObject * _resultobj; |
1661 | int _result; | |
1662 | wxWindow * _arg0; | |
1d99702e | 1663 | PyObject * _argo0 = 0; |
efc5f224 | 1664 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1665 | |
1666 | self = self; | |
efc5f224 | 1667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1668 | return NULL; |
1d99702e RD |
1669 | if (_argo0) { |
1670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1673 | return NULL; | |
1674 | } | |
1675 | } | |
cf694132 RD |
1676 | { |
1677 | wxPy_BEGIN_ALLOW_THREADS; | |
1678 | _result = (int )wxWindow_GetCharWidth(_arg0); | |
1679 | ||
1680 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1681 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1682 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1683 | return _resultobj; |
1684 | } | |
1685 | ||
b8b8dda7 | 1686 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1687 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1688 | PyObject * _resultobj; |
1689 | wxWindow * _arg0; | |
1690 | int * _arg1; | |
1691 | int temp; | |
1692 | int * _arg2; | |
1693 | int temp0; | |
1d99702e | 1694 | PyObject * _argo0 = 0; |
efc5f224 | 1695 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1696 | |
1697 | self = self; | |
1698 | { | |
1699 | _arg1 = &temp; | |
1700 | } | |
1701 | { | |
1702 | _arg2 = &temp0; | |
1703 | } | |
efc5f224 | 1704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1705 | return NULL; |
1d99702e RD |
1706 | if (_argo0) { |
1707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1710 | return NULL; |
1711 | } | |
1712 | } | |
cf694132 RD |
1713 | { |
1714 | wxPy_BEGIN_ALLOW_THREADS; | |
1715 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); | |
1716 | ||
1717 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1718 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1719 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1720 | _resultobj = Py_None; |
1721 | { | |
1722 | PyObject *o; | |
1723 | o = PyInt_FromLong((long) (*_arg1)); | |
1724 | _resultobj = t_output_helper(_resultobj, o); | |
1725 | } | |
1726 | { | |
1727 | PyObject *o; | |
1728 | o = PyInt_FromLong((long) (*_arg2)); | |
1729 | _resultobj = t_output_helper(_resultobj, o); | |
1730 | } | |
1731 | return _resultobj; | |
1732 | } | |
1733 | ||
b8b8dda7 | 1734 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1735 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1736 | PyObject * _resultobj; |
1737 | wxSize * _result; | |
1738 | wxWindow * _arg0; | |
1d99702e | 1739 | PyObject * _argo0 = 0; |
efc5f224 | 1740 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1741 | char _ptemp[128]; |
1742 | ||
1743 | self = self; | |
efc5f224 | 1744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1745 | return NULL; |
1d99702e RD |
1746 | if (_argo0) { |
1747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1750 | return NULL; | |
1751 | } | |
1752 | } | |
cf694132 RD |
1753 | { |
1754 | wxPy_BEGIN_ALLOW_THREADS; | |
1755 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); | |
1756 | ||
1757 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1758 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1759 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
1760 | _resultobj = Py_BuildValue("s",_ptemp); |
1761 | return _resultobj; | |
1762 | } | |
1763 | ||
8ab979d7 | 1764 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1765 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1766 | PyObject * _resultobj; |
1767 | wxLayoutConstraints * _result; | |
1768 | wxWindow * _arg0; | |
1d99702e | 1769 | PyObject * _argo0 = 0; |
efc5f224 | 1770 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1771 | char _ptemp[128]; |
1772 | ||
1773 | self = self; | |
efc5f224 | 1774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1775 | return NULL; |
1d99702e RD |
1776 | if (_argo0) { |
1777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1780 | return NULL; | |
1781 | } | |
1782 | } | |
cf694132 RD |
1783 | { |
1784 | wxPy_BEGIN_ALLOW_THREADS; | |
1785 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); | |
1786 | ||
1787 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1788 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1789 | } if (_result) { |
1790 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1791 | _resultobj = Py_BuildValue("s",_ptemp); | |
1792 | } else { | |
1793 | Py_INCREF(Py_None); | |
1794 | _resultobj = Py_None; | |
1795 | } | |
8ab979d7 RD |
1796 | return _resultobj; |
1797 | } | |
1798 | ||
1afc06c2 RD |
1799 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1800 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1801 | PyObject * _resultobj; | |
1802 | wxEvtHandler * _result; | |
1803 | wxWindow * _arg0; | |
1804 | PyObject * _argo0 = 0; | |
1805 | char *_kwnames[] = { "self", NULL }; | |
1afc06c2 RD |
1806 | |
1807 | self = self; | |
1808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1809 | return NULL; | |
1810 | if (_argo0) { | |
1811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1814 | return NULL; | |
1815 | } | |
1816 | } | |
1817 | { | |
1818 | wxPy_BEGIN_ALLOW_THREADS; | |
1819 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); | |
1820 | ||
1821 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1822 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1823 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
1824 | return _resultobj; |
1825 | } | |
1826 | ||
8ab979d7 | 1827 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 1828 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1829 | PyObject * _resultobj; |
1830 | wxFont * _result; | |
1831 | wxWindow * _arg0; | |
1d99702e | 1832 | PyObject * _argo0 = 0; |
efc5f224 | 1833 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1834 | char _ptemp[128]; |
1835 | ||
1836 | self = self; | |
efc5f224 | 1837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 1838 | return NULL; |
1d99702e RD |
1839 | if (_argo0) { |
1840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
1843 | return NULL; | |
1844 | } | |
1845 | } | |
cf694132 RD |
1846 | { |
1847 | wxPy_BEGIN_ALLOW_THREADS; | |
1848 | wxFont & _result_ref = wxWindow_GetFont(_arg0); | |
b8b8dda7 | 1849 | _result = (wxFont *) &_result_ref; |
cf694132 RD |
1850 | |
1851 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1852 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1853 | } if (_result) { |
1854 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
1855 | _resultobj = Py_BuildValue("s",_ptemp); | |
1856 | } else { | |
1857 | Py_INCREF(Py_None); | |
1858 | _resultobj = Py_None; | |
1859 | } | |
8ab979d7 RD |
1860 | return _resultobj; |
1861 | } | |
1862 | ||
1863 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 1864 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1865 | PyObject * _resultobj; |
1866 | wxColour * _result; | |
1867 | wxWindow * _arg0; | |
1d99702e | 1868 | PyObject * _argo0 = 0; |
efc5f224 | 1869 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1870 | char _ptemp[128]; |
1871 | ||
1872 | self = self; | |
efc5f224 | 1873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1874 | return NULL; |
1d99702e RD |
1875 | if (_argo0) { |
1876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
1879 | return NULL; | |
1880 | } | |
1881 | } | |
cf694132 RD |
1882 | { |
1883 | wxPy_BEGIN_ALLOW_THREADS; | |
1884 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); | |
1885 | ||
1886 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1887 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1888 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1889 | _resultobj = Py_BuildValue("s",_ptemp); |
1890 | return _resultobj; | |
1891 | } | |
1892 | ||
1893 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 1894 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1895 | PyObject * _resultobj; |
1896 | wxWindow * _result; | |
1897 | wxWindow * _arg0; | |
1d99702e | 1898 | PyObject * _argo0 = 0; |
efc5f224 | 1899 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1900 | |
1901 | self = self; | |
efc5f224 | 1902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 1903 | return NULL; |
1d99702e RD |
1904 | if (_argo0) { |
1905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
1908 | return NULL; | |
1909 | } | |
1910 | } | |
cf694132 RD |
1911 | { |
1912 | wxPy_BEGIN_ALLOW_THREADS; | |
1913 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); | |
1914 | ||
1915 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1916 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1917 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1918 | return _resultobj; |
1919 | } | |
1920 | ||
2abc0a0f | 1921 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 1922 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
1923 | } |
1924 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1925 | PyObject * _resultobj; | |
1926 | long _result; | |
1927 | wxWindow * _arg0; | |
1928 | PyObject * _argo0 = 0; | |
1929 | char *_kwnames[] = { "self", NULL }; | |
1930 | ||
1931 | self = self; | |
1932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
1933 | return NULL; | |
1934 | if (_argo0) { | |
1935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
1938 | return NULL; | |
1939 | } | |
1940 | } | |
1941 | { | |
1942 | wxPy_BEGIN_ALLOW_THREADS; | |
1943 | _result = (long )wxWindow_GetHandle(_arg0); | |
1944 | ||
1945 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1946 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
1947 | } _resultobj = Py_BuildValue("l",_result); |
1948 | return _resultobj; | |
1949 | } | |
1950 | ||
8ab979d7 | 1951 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 1952 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1953 | PyObject * _resultobj; |
1954 | int _result; | |
1955 | wxWindow * _arg0; | |
1d99702e | 1956 | PyObject * _argo0 = 0; |
efc5f224 | 1957 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1958 | |
1959 | self = self; | |
efc5f224 | 1960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 1961 | return NULL; |
1d99702e RD |
1962 | if (_argo0) { |
1963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
1966 | return NULL; | |
1967 | } | |
1968 | } | |
cf694132 RD |
1969 | { |
1970 | wxPy_BEGIN_ALLOW_THREADS; | |
1971 | _result = (int )wxWindow_GetId(_arg0); | |
1972 | ||
1973 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1974 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1975 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1976 | return _resultobj; |
1977 | } | |
1978 | ||
8ab979d7 | 1979 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 1980 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1981 | PyObject * _resultobj; |
1982 | wxString * _result; | |
1983 | wxWindow * _arg0; | |
1d99702e | 1984 | PyObject * _argo0 = 0; |
efc5f224 | 1985 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1986 | |
1987 | self = self; | |
efc5f224 | 1988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 1989 | return NULL; |
1d99702e RD |
1990 | if (_argo0) { |
1991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
1994 | return NULL; | |
1995 | } | |
1996 | } | |
8ab979d7 | 1997 | { |
cf694132 RD |
1998 | wxPy_BEGIN_ALLOW_THREADS; |
1999 | _result = new wxString (wxWindow_GetLabel(_arg0)); | |
2000 | ||
2001 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2002 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2003 | }{ |
eec92d76 | 2004 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2005 | } |
2006 | { | |
2007 | delete _result; | |
2008 | } | |
2009 | return _resultobj; | |
2010 | } | |
2011 | ||
bb0054cd | 2012 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 2013 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2014 | PyObject * _resultobj; |
2015 | wxWindow * _arg0; | |
2016 | wxString * _arg1; | |
1d99702e | 2017 | PyObject * _argo0 = 0; |
bb0054cd | 2018 | PyObject * _obj1 = 0; |
efc5f224 | 2019 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
2020 | |
2021 | self = self; | |
efc5f224 | 2022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 2023 | return NULL; |
1d99702e RD |
2024 | if (_argo0) { |
2025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
2028 | return NULL; | |
2029 | } | |
2030 | } | |
2031 | { | |
185d7c3e RD |
2032 | #if PYTHON_API_VERSION >= 1009 |
2033 | char* tmpPtr; int tmpSize; | |
2034 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2035 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2036 | return NULL; |
2037 | } | |
2038 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2039 | return NULL; | |
2040 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2041 | #else | |
bb0054cd RD |
2042 | if (!PyString_Check(_obj1)) { |
2043 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2044 | return NULL; | |
2045 | } | |
185d7c3e RD |
2046 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2047 | #endif | |
bb0054cd RD |
2048 | } |
2049 | { | |
2050 | wxPy_BEGIN_ALLOW_THREADS; | |
2051 | wxWindow_SetLabel(_arg0,*_arg1); | |
2052 | ||
2053 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2054 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2055 | } Py_INCREF(Py_None); |
2056 | _resultobj = Py_None; | |
2057 | { | |
2058 | if (_obj1) | |
2059 | delete _arg1; | |
2060 | } | |
2061 | return _resultobj; | |
2062 | } | |
2063 | ||
8ab979d7 | 2064 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2065 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2066 | PyObject * _resultobj; |
2067 | wxString * _result; | |
2068 | wxWindow * _arg0; | |
1d99702e | 2069 | PyObject * _argo0 = 0; |
efc5f224 | 2070 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2071 | |
2072 | self = self; | |
efc5f224 | 2073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2074 | return NULL; |
1d99702e RD |
2075 | if (_argo0) { |
2076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2079 | return NULL; | |
2080 | } | |
2081 | } | |
8ab979d7 | 2082 | { |
cf694132 RD |
2083 | wxPy_BEGIN_ALLOW_THREADS; |
2084 | _result = new wxString (wxWindow_GetName(_arg0)); | |
2085 | ||
2086 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2087 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2088 | }{ |
eec92d76 | 2089 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2090 | } |
2091 | { | |
2092 | delete _result; | |
2093 | } | |
2094 | return _resultobj; | |
2095 | } | |
2096 | ||
2097 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2098 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2099 | PyObject * _resultobj; |
2100 | wxWindow * _result; | |
2101 | wxWindow * _arg0; | |
1d99702e | 2102 | PyObject * _argo0 = 0; |
efc5f224 | 2103 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2104 | |
2105 | self = self; | |
efc5f224 | 2106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2107 | return NULL; |
1d99702e RD |
2108 | if (_argo0) { |
2109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2112 | return NULL; | |
2113 | } | |
2114 | } | |
cf694132 RD |
2115 | { |
2116 | wxPy_BEGIN_ALLOW_THREADS; | |
2117 | _result = (wxWindow *)wxWindow_GetParent(_arg0); | |
2118 | ||
2119 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2120 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2121 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2122 | return _resultobj; |
2123 | } | |
2124 | ||
b8b8dda7 | 2125 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2126 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2127 | PyObject * _resultobj; |
2128 | wxWindow * _arg0; | |
2129 | int * _arg1; | |
2130 | int temp; | |
2131 | int * _arg2; | |
2132 | int temp0; | |
1d99702e | 2133 | PyObject * _argo0 = 0; |
efc5f224 | 2134 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2135 | |
2136 | self = self; | |
2137 | { | |
2138 | _arg1 = &temp; | |
2139 | } | |
2140 | { | |
2141 | _arg2 = &temp0; | |
2142 | } | |
efc5f224 | 2143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2144 | return NULL; |
1d99702e RD |
2145 | if (_argo0) { |
2146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2149 | return NULL; | |
2150 | } | |
2151 | } | |
cf694132 RD |
2152 | { |
2153 | wxPy_BEGIN_ALLOW_THREADS; | |
2154 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); | |
2155 | ||
2156 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2157 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2158 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
2159 | _resultobj = Py_None; |
2160 | { | |
2161 | PyObject *o; | |
2162 | o = PyInt_FromLong((long) (*_arg1)); | |
2163 | _resultobj = t_output_helper(_resultobj, o); | |
2164 | } | |
2165 | { | |
2166 | PyObject *o; | |
2167 | o = PyInt_FromLong((long) (*_arg2)); | |
2168 | _resultobj = t_output_helper(_resultobj, o); | |
2169 | } | |
2170 | return _resultobj; | |
2171 | } | |
2172 | ||
2173 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2174 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2175 | PyObject * _resultobj; |
2176 | wxPoint * _result; | |
2177 | wxWindow * _arg0; | |
1d99702e | 2178 | PyObject * _argo0 = 0; |
efc5f224 | 2179 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2180 | char _ptemp[128]; |
2181 | ||
2182 | self = self; | |
efc5f224 | 2183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2184 | return NULL; |
1d99702e RD |
2185 | if (_argo0) { |
2186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2189 | return NULL; | |
2190 | } | |
2191 | } | |
cf694132 RD |
2192 | { |
2193 | wxPy_BEGIN_ALLOW_THREADS; | |
2194 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); | |
2195 | ||
2196 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2197 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2198 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
2199 | _resultobj = Py_BuildValue("s",_ptemp); |
2200 | return _resultobj; | |
2201 | } | |
2202 | ||
2203 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2204 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2205 | PyObject * _resultobj; |
2206 | wxRect * _result; | |
2207 | wxWindow * _arg0; | |
1d99702e | 2208 | PyObject * _argo0 = 0; |
efc5f224 | 2209 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2210 | char _ptemp[128]; |
2211 | ||
2212 | self = self; | |
efc5f224 | 2213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2214 | return NULL; |
1d99702e RD |
2215 | if (_argo0) { |
2216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2219 | return NULL; | |
2220 | } | |
2221 | } | |
cf694132 RD |
2222 | { |
2223 | wxPy_BEGIN_ALLOW_THREADS; | |
2224 | _result = new wxRect (wxWindow_GetRect(_arg0)); | |
2225 | ||
2226 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2227 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2228 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
b8b8dda7 RD |
2229 | _resultobj = Py_BuildValue("s",_ptemp); |
2230 | return _resultobj; | |
2231 | } | |
2232 | ||
8ab979d7 | 2233 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2234 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2235 | PyObject * _resultobj; |
2236 | int _result; | |
2237 | wxWindow * _arg0; | |
2238 | int _arg1; | |
1d99702e | 2239 | PyObject * _argo0 = 0; |
efc5f224 | 2240 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2241 | |
2242 | self = self; | |
efc5f224 | 2243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2244 | return NULL; |
1d99702e RD |
2245 | if (_argo0) { |
2246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2249 | return NULL; | |
2250 | } | |
2251 | } | |
cf694132 RD |
2252 | { |
2253 | wxPy_BEGIN_ALLOW_THREADS; | |
2254 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); | |
2255 | ||
2256 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2257 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2258 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2259 | return _resultobj; |
2260 | } | |
2261 | ||
2262 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2263 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2264 | PyObject * _resultobj; |
2265 | int _result; | |
2266 | wxWindow * _arg0; | |
2267 | int _arg1; | |
1d99702e | 2268 | PyObject * _argo0 = 0; |
efc5f224 | 2269 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2270 | |
2271 | self = self; | |
efc5f224 | 2272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2273 | return NULL; |
1d99702e RD |
2274 | if (_argo0) { |
2275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2278 | return NULL; | |
2279 | } | |
2280 | } | |
cf694132 RD |
2281 | { |
2282 | wxPy_BEGIN_ALLOW_THREADS; | |
2283 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); | |
2284 | ||
2285 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2286 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2287 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2288 | return _resultobj; |
2289 | } | |
2290 | ||
2291 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2292 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2293 | PyObject * _resultobj; |
2294 | int _result; | |
2295 | wxWindow * _arg0; | |
2296 | int _arg1; | |
1d99702e | 2297 | PyObject * _argo0 = 0; |
efc5f224 | 2298 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2299 | |
2300 | self = self; | |
efc5f224 | 2301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2302 | return NULL; |
1d99702e RD |
2303 | if (_argo0) { |
2304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2307 | return NULL; | |
2308 | } | |
2309 | } | |
cf694132 RD |
2310 | { |
2311 | wxPy_BEGIN_ALLOW_THREADS; | |
2312 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); | |
2313 | ||
2314 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2315 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2316 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2317 | return _resultobj; |
2318 | } | |
2319 | ||
b8b8dda7 | 2320 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2321 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2322 | PyObject * _resultobj; |
2323 | wxWindow * _arg0; | |
2324 | int * _arg1; | |
2325 | int temp; | |
2326 | int * _arg2; | |
2327 | int temp0; | |
1d99702e | 2328 | PyObject * _argo0 = 0; |
efc5f224 | 2329 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2330 | |
2331 | self = self; | |
2332 | { | |
2333 | _arg1 = &temp; | |
2334 | } | |
2335 | { | |
2336 | _arg2 = &temp0; | |
2337 | } | |
efc5f224 | 2338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2339 | return NULL; |
1d99702e RD |
2340 | if (_argo0) { |
2341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2344 | return NULL; |
2345 | } | |
2346 | } | |
cf694132 RD |
2347 | { |
2348 | wxPy_BEGIN_ALLOW_THREADS; | |
2349 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); | |
2350 | ||
2351 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2352 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2353 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2354 | _resultobj = Py_None; |
2355 | { | |
2356 | PyObject *o; | |
2357 | o = PyInt_FromLong((long) (*_arg1)); | |
2358 | _resultobj = t_output_helper(_resultobj, o); | |
2359 | } | |
2360 | { | |
2361 | PyObject *o; | |
2362 | o = PyInt_FromLong((long) (*_arg2)); | |
2363 | _resultobj = t_output_helper(_resultobj, o); | |
2364 | } | |
2365 | return _resultobj; | |
2366 | } | |
2367 | ||
b8b8dda7 | 2368 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2369 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2370 | PyObject * _resultobj; |
2371 | wxSize * _result; | |
2372 | wxWindow * _arg0; | |
1d99702e | 2373 | PyObject * _argo0 = 0; |
efc5f224 | 2374 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2375 | char _ptemp[128]; |
2376 | ||
2377 | self = self; | |
efc5f224 | 2378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2379 | return NULL; |
1d99702e RD |
2380 | if (_argo0) { |
2381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2384 | return NULL; | |
2385 | } | |
2386 | } | |
cf694132 RD |
2387 | { |
2388 | wxPy_BEGIN_ALLOW_THREADS; | |
2389 | _result = new wxSize (wxWindow_GetSize(_arg0)); | |
2390 | ||
2391 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2392 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2393 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
2394 | _resultobj = Py_BuildValue("s",_ptemp); |
2395 | return _resultobj; | |
2396 | } | |
2397 | ||
8ab979d7 | 2398 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2399 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2400 | PyObject * _resultobj; |
2401 | wxWindow * _arg0; | |
2402 | wxString * _arg1; | |
2403 | int * _arg2; | |
2404 | int temp; | |
2405 | int * _arg3; | |
2406 | int temp0; | |
1d99702e | 2407 | PyObject * _argo0 = 0; |
8ab979d7 | 2408 | PyObject * _obj1 = 0; |
efc5f224 | 2409 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2410 | |
2411 | self = self; | |
2412 | { | |
2413 | _arg2 = &temp; | |
2414 | } | |
2415 | { | |
2416 | _arg3 = &temp0; | |
2417 | } | |
efc5f224 | 2418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2419 | return NULL; |
1d99702e RD |
2420 | if (_argo0) { |
2421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2424 | return NULL; | |
2425 | } | |
2426 | } | |
2427 | { | |
185d7c3e RD |
2428 | #if PYTHON_API_VERSION >= 1009 |
2429 | char* tmpPtr; int tmpSize; | |
2430 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2431 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2432 | return NULL; |
2433 | } | |
2434 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2435 | return NULL; | |
2436 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2437 | #else | |
8ab979d7 RD |
2438 | if (!PyString_Check(_obj1)) { |
2439 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2440 | return NULL; | |
2441 | } | |
185d7c3e RD |
2442 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2443 | #endif | |
8ab979d7 | 2444 | } |
cf694132 RD |
2445 | { |
2446 | wxPy_BEGIN_ALLOW_THREADS; | |
2447 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
2448 | ||
2449 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2450 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2451 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2452 | _resultobj = Py_None; |
2453 | { | |
2454 | PyObject *o; | |
2455 | o = PyInt_FromLong((long) (*_arg2)); | |
2456 | _resultobj = t_output_helper(_resultobj, o); | |
2457 | } | |
2458 | { | |
2459 | PyObject *o; | |
2460 | o = PyInt_FromLong((long) (*_arg3)); | |
2461 | _resultobj = t_output_helper(_resultobj, o); | |
2462 | } | |
2463 | { | |
2464 | if (_obj1) | |
2465 | delete _arg1; | |
2466 | } | |
2467 | return _resultobj; | |
2468 | } | |
2469 | ||
af309447 | 2470 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2471 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2472 | PyObject * _resultobj; |
2473 | wxWindow * _arg0; | |
2474 | wxString * _arg1; | |
2475 | int * _arg2; | |
2476 | int temp; | |
2477 | int * _arg3; | |
2478 | int temp0; | |
2479 | int * _arg4; | |
2480 | int temp1; | |
2481 | int * _arg5; | |
2482 | int temp2; | |
1d99702e RD |
2483 | wxFont * _arg6 = (wxFont *) NULL; |
2484 | PyObject * _argo0 = 0; | |
af309447 | 2485 | PyObject * _obj1 = 0; |
1d99702e | 2486 | PyObject * _argo6 = 0; |
efc5f224 | 2487 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2488 | |
2489 | self = self; | |
2490 | { | |
2491 | _arg2 = &temp; | |
2492 | } | |
2493 | { | |
2494 | _arg3 = &temp0; | |
2495 | } | |
2496 | { | |
2497 | _arg4 = &temp1; | |
2498 | } | |
2499 | { | |
2500 | _arg5 = &temp2; | |
2501 | } | |
efc5f224 | 2502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2503 | return NULL; |
1d99702e RD |
2504 | if (_argo0) { |
2505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2508 | return NULL; | |
2509 | } | |
2510 | } | |
2511 | { | |
185d7c3e RD |
2512 | #if PYTHON_API_VERSION >= 1009 |
2513 | char* tmpPtr; int tmpSize; | |
2514 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2515 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2516 | return NULL; |
2517 | } | |
2518 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2519 | return NULL; | |
2520 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2521 | #else | |
af309447 RD |
2522 | if (!PyString_Check(_obj1)) { |
2523 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2524 | return NULL; | |
2525 | } | |
185d7c3e RD |
2526 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2527 | #endif | |
af309447 | 2528 | } |
1d99702e RD |
2529 | if (_argo6) { |
2530 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2531 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2533 | return NULL; | |
2534 | } | |
2535 | } | |
cf694132 RD |
2536 | { |
2537 | wxPy_BEGIN_ALLOW_THREADS; | |
2538 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2539 | ||
2540 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2541 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2542 | } Py_INCREF(Py_None); |
af309447 RD |
2543 | _resultobj = Py_None; |
2544 | { | |
2545 | PyObject *o; | |
2546 | o = PyInt_FromLong((long) (*_arg2)); | |
2547 | _resultobj = t_output_helper(_resultobj, o); | |
2548 | } | |
2549 | { | |
2550 | PyObject *o; | |
2551 | o = PyInt_FromLong((long) (*_arg3)); | |
2552 | _resultobj = t_output_helper(_resultobj, o); | |
2553 | } | |
2554 | { | |
2555 | PyObject *o; | |
2556 | o = PyInt_FromLong((long) (*_arg4)); | |
2557 | _resultobj = t_output_helper(_resultobj, o); | |
2558 | } | |
2559 | { | |
2560 | PyObject *o; | |
2561 | o = PyInt_FromLong((long) (*_arg5)); | |
2562 | _resultobj = t_output_helper(_resultobj, o); | |
2563 | } | |
2564 | { | |
2565 | if (_obj1) | |
2566 | delete _arg1; | |
2567 | } | |
2568 | return _resultobj; | |
2569 | } | |
2570 | ||
8ab979d7 | 2571 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2572 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2573 | PyObject * _resultobj; |
2574 | wxString * _result; | |
2575 | wxWindow * _arg0; | |
1d99702e | 2576 | PyObject * _argo0 = 0; |
efc5f224 | 2577 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2578 | |
2579 | self = self; | |
efc5f224 | 2580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2581 | return NULL; |
1d99702e RD |
2582 | if (_argo0) { |
2583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2586 | return NULL; | |
2587 | } | |
2588 | } | |
8ab979d7 | 2589 | { |
cf694132 RD |
2590 | wxPy_BEGIN_ALLOW_THREADS; |
2591 | _result = new wxString (wxWindow_GetTitle(_arg0)); | |
2592 | ||
2593 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2594 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2595 | }{ |
eec92d76 | 2596 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2597 | } |
2598 | { | |
2599 | delete _result; | |
2600 | } | |
2601 | return _resultobj; | |
2602 | } | |
2603 | ||
8bf5d46e | 2604 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2605 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2606 | PyObject * _resultobj; |
2607 | wxRegion * _result; | |
2608 | wxWindow * _arg0; | |
1d99702e | 2609 | PyObject * _argo0 = 0; |
efc5f224 | 2610 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2611 | char _ptemp[128]; |
2612 | ||
2613 | self = self; | |
efc5f224 | 2614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2615 | return NULL; |
1d99702e RD |
2616 | if (_argo0) { |
2617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2620 | return NULL; | |
2621 | } | |
2622 | } | |
2623 | { | |
2624 | wxPy_BEGIN_ALLOW_THREADS; | |
2625 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); | |
2626 | ||
2627 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2628 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
2629 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); |
2630 | _resultobj = Py_BuildValue("s",_ptemp); | |
2631 | return _resultobj; | |
2632 | } | |
2633 | ||
8ab979d7 | 2634 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2635 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2636 | PyObject * _resultobj; |
2637 | long _result; | |
2638 | wxWindow * _arg0; | |
1d99702e | 2639 | PyObject * _argo0 = 0; |
efc5f224 | 2640 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2641 | |
2642 | self = self; | |
efc5f224 | 2643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2644 | return NULL; |
1d99702e RD |
2645 | if (_argo0) { |
2646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2649 | return NULL; | |
2650 | } | |
2651 | } | |
cf694132 RD |
2652 | { |
2653 | wxPy_BEGIN_ALLOW_THREADS; | |
2654 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); | |
2655 | ||
2656 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2657 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2658 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2659 | return _resultobj; |
2660 | } | |
2661 | ||
f6bcfd97 BP |
2662 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2663 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2664 | PyObject * _resultobj; | |
2665 | wxWindow * _arg0; | |
2666 | long _arg1; | |
2667 | PyObject * _argo0 = 0; | |
2668 | char *_kwnames[] = { "self","style", NULL }; | |
2669 | ||
2670 | self = self; | |
2671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2672 | return NULL; | |
2673 | if (_argo0) { | |
2674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2677 | return NULL; | |
2678 | } | |
2679 | } | |
2680 | { | |
2681 | wxPy_BEGIN_ALLOW_THREADS; | |
2682 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); | |
2683 | ||
2684 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2685 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2686 | } Py_INCREF(Py_None); |
2687 | _resultobj = Py_None; | |
2688 | return _resultobj; | |
2689 | } | |
2690 | ||
2691 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2692 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2693 | PyObject * _resultobj; | |
2694 | wxWindow * _arg0; | |
2695 | long _arg1; | |
2696 | PyObject * _argo0 = 0; | |
2697 | char *_kwnames[] = { "self","style", NULL }; | |
2698 | ||
2699 | self = self; | |
2700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2701 | return NULL; | |
2702 | if (_argo0) { | |
2703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2706 | return NULL; | |
2707 | } | |
2708 | } | |
2709 | { | |
2710 | wxPy_BEGIN_ALLOW_THREADS; | |
2711 | wxWindow_SetWindowStyle(_arg0,_arg1); | |
2712 | ||
2713 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2714 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2715 | } Py_INCREF(Py_None); |
2716 | _resultobj = Py_None; | |
2717 | return _resultobj; | |
2718 | } | |
2719 | ||
bb0054cd | 2720 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2721 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2722 | PyObject * _resultobj; |
2723 | bool _result; | |
2724 | wxWindow * _arg0; | |
1d99702e | 2725 | PyObject * _argo0 = 0; |
efc5f224 | 2726 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2727 | |
2728 | self = self; | |
efc5f224 | 2729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2730 | return NULL; |
1d99702e RD |
2731 | if (_argo0) { |
2732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2735 | return NULL; | |
2736 | } | |
2737 | } | |
2738 | { | |
2739 | wxPy_BEGIN_ALLOW_THREADS; | |
2740 | _result = (bool )wxWindow_Hide(_arg0); | |
2741 | ||
2742 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2743 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2744 | } _resultobj = Py_BuildValue("i",_result); |
2745 | return _resultobj; | |
2746 | } | |
2747 | ||
8ab979d7 | 2748 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2749 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2750 | PyObject * _resultobj; |
2751 | wxWindow * _arg0; | |
1d99702e | 2752 | PyObject * _argo0 = 0; |
efc5f224 | 2753 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2754 | |
2755 | self = self; | |
efc5f224 | 2756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2757 | return NULL; |
1d99702e RD |
2758 | if (_argo0) { |
2759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2762 | return NULL; | |
2763 | } | |
2764 | } | |
cf694132 RD |
2765 | { |
2766 | wxPy_BEGIN_ALLOW_THREADS; | |
2767 | wxWindow_InitDialog(_arg0); | |
2768 | ||
2769 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2770 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2771 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2772 | _resultobj = Py_None; |
2773 | return _resultobj; | |
2774 | } | |
2775 | ||
2776 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 2777 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2778 | PyObject * _resultobj; |
2779 | bool _result; | |
2780 | wxWindow * _arg0; | |
1d99702e | 2781 | PyObject * _argo0 = 0; |
efc5f224 | 2782 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2783 | |
2784 | self = self; | |
efc5f224 | 2785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 2786 | return NULL; |
1d99702e RD |
2787 | if (_argo0) { |
2788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2791 | return NULL; | |
2792 | } | |
2793 | } | |
cf694132 RD |
2794 | { |
2795 | wxPy_BEGIN_ALLOW_THREADS; | |
2796 | _result = (bool )wxWindow_IsEnabled(_arg0); | |
2797 | ||
2798 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2799 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2800 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2801 | return _resultobj; |
2802 | } | |
2803 | ||
1b55cabf RD |
2804 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2805 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2806 | PyObject * _resultobj; | |
2807 | bool _result; | |
2808 | wxWindow * _arg0; | |
2809 | int _arg1; | |
2810 | int _arg2; | |
2811 | int _arg3 = (int ) 0; | |
2812 | int _arg4 = (int ) 0; | |
2813 | PyObject * _argo0 = 0; | |
2814 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2815 | ||
2816 | self = self; | |
2817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2818 | return NULL; | |
2819 | if (_argo0) { | |
2820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2823 | return NULL; | |
2824 | } | |
2825 | } | |
2826 | { | |
2827 | wxPy_BEGIN_ALLOW_THREADS; | |
2828 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2829 | ||
2830 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2831 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2832 | } _resultobj = Py_BuildValue("i",_result); |
2833 | return _resultobj; | |
2834 | } | |
2835 | ||
2836 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2837 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2838 | PyObject * _resultobj; | |
2839 | bool _result; | |
2840 | wxWindow * _arg0; | |
2841 | wxPoint * _arg1; | |
2842 | PyObject * _argo0 = 0; | |
2843 | wxPoint temp; | |
2844 | PyObject * _obj1 = 0; | |
2845 | char *_kwnames[] = { "self","pt", NULL }; | |
2846 | ||
2847 | self = self; | |
2848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2849 | return NULL; | |
2850 | if (_argo0) { | |
2851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2854 | return NULL; | |
2855 | } | |
2856 | } | |
2857 | { | |
2858 | _arg1 = &temp; | |
2859 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2860 | return NULL; | |
2861 | } | |
2862 | { | |
2863 | wxPy_BEGIN_ALLOW_THREADS; | |
2864 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); | |
2865 | ||
2866 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2867 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2868 | } _resultobj = Py_BuildValue("i",_result); |
2869 | return _resultobj; | |
2870 | } | |
2871 | ||
2872 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2873 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2874 | PyObject * _resultobj; | |
2875 | bool _result; | |
2876 | wxWindow * _arg0; | |
2877 | wxRect * _arg1; | |
2878 | PyObject * _argo0 = 0; | |
2879 | wxRect temp; | |
2880 | PyObject * _obj1 = 0; | |
2881 | char *_kwnames[] = { "self","rect", NULL }; | |
2882 | ||
2883 | self = self; | |
2884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
2885 | return NULL; | |
2886 | if (_argo0) { | |
2887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
2890 | return NULL; | |
2891 | } | |
2892 | } | |
2893 | { | |
2894 | _arg1 = &temp; | |
2895 | if (! wxRect_helper(_obj1, &_arg1)) | |
2896 | return NULL; | |
2897 | } | |
2898 | { | |
2899 | wxPy_BEGIN_ALLOW_THREADS; | |
2900 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); | |
2901 | ||
2902 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2903 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2904 | } _resultobj = Py_BuildValue("i",_result); |
2905 | return _resultobj; | |
2906 | } | |
2907 | ||
8ab979d7 | 2908 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 2909 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2910 | PyObject * _resultobj; |
2911 | bool _result; | |
2912 | wxWindow * _arg0; | |
1d99702e | 2913 | PyObject * _argo0 = 0; |
efc5f224 | 2914 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2915 | |
2916 | self = self; | |
efc5f224 | 2917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 2918 | return NULL; |
1d99702e RD |
2919 | if (_argo0) { |
2920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
2923 | return NULL; | |
2924 | } | |
2925 | } | |
cf694132 RD |
2926 | { |
2927 | wxPy_BEGIN_ALLOW_THREADS; | |
2928 | _result = (bool )wxWindow_IsRetained(_arg0); | |
2929 | ||
2930 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2931 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2932 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2933 | return _resultobj; |
2934 | } | |
2935 | ||
2936 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 2937 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2938 | PyObject * _resultobj; |
2939 | bool _result; | |
2940 | wxWindow * _arg0; | |
1d99702e | 2941 | PyObject * _argo0 = 0; |
efc5f224 | 2942 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2943 | |
2944 | self = self; | |
efc5f224 | 2945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 2946 | return NULL; |
1d99702e RD |
2947 | if (_argo0) { |
2948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
2951 | return NULL; | |
2952 | } | |
2953 | } | |
cf694132 RD |
2954 | { |
2955 | wxPy_BEGIN_ALLOW_THREADS; | |
2956 | _result = (bool )wxWindow_IsShown(_arg0); | |
2957 | ||
2958 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2959 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2960 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2961 | return _resultobj; |
2962 | } | |
2963 | ||
bb0054cd | 2964 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 2965 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2966 | PyObject * _resultobj; |
2967 | bool _result; | |
2968 | wxWindow * _arg0; | |
1d99702e | 2969 | PyObject * _argo0 = 0; |
efc5f224 | 2970 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2971 | |
2972 | self = self; | |
efc5f224 | 2973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 2974 | return NULL; |
1d99702e RD |
2975 | if (_argo0) { |
2976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
2979 | return NULL; | |
2980 | } | |
2981 | } | |
2982 | { | |
2983 | wxPy_BEGIN_ALLOW_THREADS; | |
2984 | _result = (bool )wxWindow_IsTopLevel(_arg0); | |
2985 | ||
2986 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2987 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2988 | } _resultobj = Py_BuildValue("i",_result); |
2989 | return _resultobj; | |
2990 | } | |
2991 | ||
8ab979d7 | 2992 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 2993 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2994 | PyObject * _resultobj; |
2995 | wxWindow * _arg0; | |
1d99702e | 2996 | PyObject * _argo0 = 0; |
efc5f224 | 2997 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2998 | |
2999 | self = self; | |
efc5f224 | 3000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 3001 | return NULL; |
1d99702e RD |
3002 | if (_argo0) { |
3003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
3006 | return NULL; | |
3007 | } | |
3008 | } | |
cf694132 RD |
3009 | { |
3010 | wxPy_BEGIN_ALLOW_THREADS; | |
3011 | wxWindow_Layout(_arg0); | |
3012 | ||
3013 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3014 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3015 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3016 | _resultobj = Py_None; |
3017 | return _resultobj; | |
3018 | } | |
3019 | ||
3020 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3021 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3022 | PyObject * _resultobj; |
3023 | bool _result; | |
3024 | wxWindow * _arg0; | |
3025 | wxWindow * _arg1; | |
3026 | wxString * _arg2; | |
1d99702e RD |
3027 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
3028 | PyObject * _argo0 = 0; | |
3029 | PyObject * _argo1 = 0; | |
8ab979d7 | 3030 | PyObject * _obj2 = 0; |
1d99702e | 3031 | PyObject * _argo3 = 0; |
efc5f224 | 3032 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
8ab979d7 RD |
3033 | |
3034 | self = self; | |
efc5f224 | 3035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
8ab979d7 | 3036 | return NULL; |
1d99702e RD |
3037 | if (_argo0) { |
3038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3041 | return NULL; | |
3042 | } | |
3043 | } | |
1d99702e RD |
3044 | if (_argo1) { |
3045 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3046 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
3047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3048 | return NULL; | |
3049 | } | |
3050 | } | |
3051 | { | |
185d7c3e RD |
3052 | #if PYTHON_API_VERSION >= 1009 |
3053 | char* tmpPtr; int tmpSize; | |
3054 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 3055 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
3056 | return NULL; |
3057 | } | |
3058 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3059 | return NULL; | |
3060 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3061 | #else | |
8ab979d7 RD |
3062 | if (!PyString_Check(_obj2)) { |
3063 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3064 | return NULL; | |
3065 | } | |
185d7c3e RD |
3066 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3067 | #endif | |
8ab979d7 | 3068 | } |
1d99702e RD |
3069 | if (_argo3) { |
3070 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3071 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
8ab979d7 RD |
3072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
3073 | return NULL; | |
3074 | } | |
3075 | } | |
cf694132 RD |
3076 | { |
3077 | wxPy_BEGIN_ALLOW_THREADS; | |
3078 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); | |
3079 | ||
3080 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3081 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3082 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3083 | { |
3084 | if (_obj2) | |
3085 | delete _arg2; | |
3086 | } | |
3087 | return _resultobj; | |
3088 | } | |
3089 | ||
3090 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
efc5f224 | 3091 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3092 | PyObject * _resultobj; |
3093 | wxWindow * _arg0; | |
1d99702e | 3094 | PyObject * _argo0 = 0; |
efc5f224 | 3095 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3096 | |
3097 | self = self; | |
efc5f224 | 3098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3099 | return NULL; |
1d99702e RD |
3100 | if (_argo0) { |
3101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3104 | return NULL; | |
3105 | } | |
3106 | } | |
cf694132 RD |
3107 | { |
3108 | wxPy_BEGIN_ALLOW_THREADS; | |
3109 | wxWindow_Lower(_arg0); | |
3110 | ||
3111 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3112 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3113 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3114 | _resultobj = Py_None; |
3115 | return _resultobj; | |
3116 | } | |
3117 | ||
3118 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3119 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3120 | PyObject * _resultobj; |
3121 | wxWindow * _arg0; | |
900d9886 | 3122 | bool _arg1 = (bool ) TRUE; |
1d99702e | 3123 | PyObject * _argo0 = 0; |
900d9886 | 3124 | int tempbool1 = (int) TRUE; |
efc5f224 | 3125 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3126 | |
3127 | self = self; | |
900d9886 | 3128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3129 | return NULL; |
1d99702e RD |
3130 | if (_argo0) { |
3131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3134 | return NULL; | |
3135 | } | |
3136 | } | |
3137 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3138 | { |
3139 | wxPy_BEGIN_ALLOW_THREADS; | |
3140 | wxWindow_MakeModal(_arg0,_arg1); | |
3141 | ||
3142 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3143 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3144 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3145 | _resultobj = Py_None; |
3146 | return _resultobj; | |
3147 | } | |
3148 | ||
af309447 | 3149 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3150 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3151 | PyObject * _resultobj; |
3152 | wxWindow * _arg0; | |
3153 | int _arg1; | |
3154 | int _arg2; | |
1d99702e | 3155 | PyObject * _argo0 = 0; |
efc5f224 | 3156 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3157 | |
3158 | self = self; | |
efc5f224 | 3159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 3160 | return NULL; |
1d99702e RD |
3161 | if (_argo0) { |
3162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3165 | return NULL; | |
3166 | } | |
3167 | } | |
cf694132 RD |
3168 | { |
3169 | wxPy_BEGIN_ALLOW_THREADS; | |
3170 | wxWindow_MoveXY(_arg0,_arg1,_arg2); | |
3171 | ||
3172 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3173 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3174 | } Py_INCREF(Py_None); |
af309447 RD |
3175 | _resultobj = Py_None; |
3176 | return _resultobj; | |
3177 | } | |
3178 | ||
3179 | #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
efc5f224 | 3180 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3181 | PyObject * _resultobj; |
3182 | wxWindow * _arg0; | |
3183 | wxPoint * _arg1; | |
1d99702e | 3184 | PyObject * _argo0 = 0; |
2f90df85 RD |
3185 | wxPoint temp; |
3186 | PyObject * _obj1 = 0; | |
efc5f224 | 3187 | char *_kwnames[] = { "self","point", NULL }; |
af309447 RD |
3188 | |
3189 | self = self; | |
2f90df85 | 3190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3191 | return NULL; |
1d99702e RD |
3192 | if (_argo0) { |
3193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3196 | return NULL; | |
3197 | } | |
3198 | } | |
2f90df85 RD |
3199 | { |
3200 | _arg1 = &temp; | |
3201 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3202 | return NULL; |
2f90df85 | 3203 | } |
cf694132 RD |
3204 | { |
3205 | wxPy_BEGIN_ALLOW_THREADS; | |
3206 | wxWindow_Move(_arg0,*_arg1); | |
3207 | ||
3208 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3209 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3210 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3211 | _resultobj = Py_None; |
3212 | return _resultobj; | |
3213 | } | |
3214 | ||
1afc06c2 RD |
3215 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3216 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3217 | PyObject * _resultobj; | |
3218 | wxEvtHandler * _result; | |
3219 | wxWindow * _arg0; | |
3220 | bool _arg1 = (bool ) FALSE; | |
3221 | PyObject * _argo0 = 0; | |
3222 | int tempbool1 = (int) FALSE; | |
3223 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
1afc06c2 RD |
3224 | |
3225 | self = self; | |
3226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3227 | return NULL; | |
3228 | if (_argo0) { | |
3229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3232 | return NULL; | |
3233 | } | |
3234 | } | |
3235 | _arg1 = (bool ) tempbool1; | |
3236 | { | |
3237 | wxPy_BEGIN_ALLOW_THREADS; | |
3238 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); | |
3239 | ||
3240 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3241 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 3242 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
3243 | return _resultobj; |
3244 | } | |
3245 | ||
3246 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3247 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3248 | PyObject * _resultobj; | |
3249 | wxWindow * _arg0; | |
3250 | wxEvtHandler * _arg1; | |
3251 | PyObject * _argo0 = 0; | |
3252 | PyObject * _argo1 = 0; | |
3253 | char *_kwnames[] = { "self","handler", NULL }; | |
3254 | ||
3255 | self = self; | |
3256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3257 | return NULL; | |
3258 | if (_argo0) { | |
3259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3262 | return NULL; | |
3263 | } | |
3264 | } | |
3265 | if (_argo1) { | |
3266 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3267 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3269 | return NULL; | |
3270 | } | |
3271 | } | |
3272 | { | |
3273 | wxPy_BEGIN_ALLOW_THREADS; | |
3274 | wxWindow_PushEventHandler(_arg0,_arg1); | |
3275 | ||
3276 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3277 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
3278 | } Py_INCREF(Py_None); |
3279 | _resultobj = Py_None; | |
3280 | return _resultobj; | |
3281 | } | |
3282 | ||
8bf5d46e | 3283 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3284 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3285 | PyObject * _resultobj; |
3286 | bool _result; | |
3287 | wxWindow * _arg0; | |
3288 | wxMenu * _arg1; | |
3289 | int _arg2; | |
3290 | int _arg3; | |
1d99702e RD |
3291 | PyObject * _argo0 = 0; |
3292 | PyObject * _argo1 = 0; | |
efc5f224 | 3293 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3294 | |
3295 | self = self; | |
efc5f224 | 3296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3297 | return NULL; |
1d99702e RD |
3298 | if (_argo0) { |
3299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3302 | return NULL; | |
3303 | } | |
3304 | } | |
1d99702e RD |
3305 | if (_argo1) { |
3306 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3307 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3309 | return NULL; | |
3310 | } | |
3311 | } | |
3312 | { | |
3313 | wxPy_BEGIN_ALLOW_THREADS; | |
3314 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); | |
3315 | ||
3316 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3317 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
3318 | } _resultobj = Py_BuildValue("i",_result); |
3319 | return _resultobj; | |
3320 | } | |
3321 | ||
3322 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3323 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3324 | PyObject * _resultobj; |
3325 | bool _result; | |
3326 | wxWindow * _arg0; | |
3327 | wxMenu * _arg1; | |
3328 | wxPoint * _arg2; | |
1d99702e RD |
3329 | PyObject * _argo0 = 0; |
3330 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3331 | wxPoint temp; |
3332 | PyObject * _obj2 = 0; | |
efc5f224 | 3333 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3334 | |
3335 | self = self; | |
2f90df85 | 3336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3337 | return NULL; |
1d99702e RD |
3338 | if (_argo0) { |
3339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3342 | return NULL; | |
3343 | } | |
3344 | } | |
1d99702e RD |
3345 | if (_argo1) { |
3346 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3347 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3349 | return NULL; | |
3350 | } | |
3351 | } | |
2f90df85 RD |
3352 | { |
3353 | _arg2 = &temp; | |
3354 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3355 | return NULL; |
2f90df85 | 3356 | } |
cf694132 RD |
3357 | { |
3358 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 3359 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 RD |
3360 | |
3361 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3362 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3363 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3364 | return _resultobj; |
3365 | } | |
3366 | ||
3367 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3368 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3369 | PyObject * _resultobj; |
3370 | wxWindow * _arg0; | |
1d99702e | 3371 | PyObject * _argo0 = 0; |
efc5f224 | 3372 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3373 | |
3374 | self = self; | |
efc5f224 | 3375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3376 | return NULL; |
1d99702e RD |
3377 | if (_argo0) { |
3378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3381 | return NULL; | |
3382 | } | |
3383 | } | |
cf694132 RD |
3384 | { |
3385 | wxPy_BEGIN_ALLOW_THREADS; | |
3386 | wxWindow_Raise(_arg0); | |
3387 | ||
3388 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3389 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3390 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3391 | _resultobj = Py_None; |
3392 | return _resultobj; | |
3393 | } | |
3394 | ||
3395 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3396 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3397 | PyObject * _resultobj; |
3398 | wxWindow * _arg0; | |
1d99702e RD |
3399 | bool _arg1 = (bool ) TRUE; |
3400 | wxRect * _arg2 = (wxRect *) NULL; | |
3401 | PyObject * _argo0 = 0; | |
3402 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3403 | wxRect temp; |
3404 | PyObject * _obj2 = 0; | |
efc5f224 | 3405 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3406 | |
3407 | self = self; | |
2f90df85 | 3408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3409 | return NULL; |
1d99702e RD |
3410 | if (_argo0) { |
3411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3414 | return NULL; | |
3415 | } | |
3416 | } | |
3417 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3418 | if (_obj2) |
3419 | { | |
3420 | _arg2 = &temp; | |
3421 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3422 | return NULL; |
2f90df85 | 3423 | } |
cf694132 RD |
3424 | { |
3425 | wxPy_BEGIN_ALLOW_THREADS; | |
3426 | wxWindow_Refresh(_arg0,_arg1,_arg2); | |
3427 | ||
3428 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3429 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3430 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3431 | _resultobj = Py_None; |
3432 | return _resultobj; | |
3433 | } | |
3434 | ||
09f3d4e6 RD |
3435 | #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0)) |
3436 | static PyObject *_wrap_wxWindow_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3437 | PyObject * _resultobj; | |
3438 | wxWindow * _arg0; | |
3439 | wxRect * _arg1; | |
3440 | PyObject * _argo0 = 0; | |
3441 | wxRect temp; | |
3442 | PyObject * _obj1 = 0; | |
3443 | char *_kwnames[] = { "self","rect", NULL }; | |
3444 | ||
3445 | self = self; | |
3446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RefreshRect",_kwnames,&_argo0,&_obj1)) | |
3447 | return NULL; | |
3448 | if (_argo0) { | |
3449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p."); | |
3452 | return NULL; | |
3453 | } | |
3454 | } | |
3455 | { | |
3456 | _arg1 = &temp; | |
3457 | if (! wxRect_helper(_obj1, &_arg1)) | |
3458 | return NULL; | |
3459 | } | |
3460 | { | |
3461 | wxPy_BEGIN_ALLOW_THREADS; | |
3462 | wxWindow_RefreshRect(_arg0,*_arg1); | |
3463 | ||
3464 | wxPy_END_ALLOW_THREADS; | |
3465 | if (PyErr_Occurred()) return NULL; | |
3466 | } Py_INCREF(Py_None); | |
3467 | _resultobj = Py_None; | |
3468 | return _resultobj; | |
3469 | } | |
3470 | ||
8ab979d7 | 3471 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) |
efc5f224 | 3472 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3473 | PyObject * _resultobj; |
3474 | wxWindow * _arg0; | |
1d99702e | 3475 | PyObject * _argo0 = 0; |
efc5f224 | 3476 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3477 | |
3478 | self = self; | |
efc5f224 | 3479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
8ab979d7 | 3480 | return NULL; |
1d99702e RD |
3481 | if (_argo0) { |
3482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); |
3485 | return NULL; | |
3486 | } | |
3487 | } | |
cf694132 RD |
3488 | { |
3489 | wxPy_BEGIN_ALLOW_THREADS; | |
3490 | wxWindow_ReleaseMouse(_arg0); | |
3491 | ||
3492 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3493 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3494 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3495 | _resultobj = Py_None; |
3496 | return _resultobj; | |
3497 | } | |
3498 | ||
b7e72427 RD |
3499 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3500 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3501 | PyObject * _resultobj; | |
3502 | wxWindow * _arg0; | |
3503 | wxWindow * _arg1; | |
3504 | PyObject * _argo0 = 0; | |
3505 | PyObject * _argo1 = 0; | |
3506 | char *_kwnames[] = { "self","child", NULL }; | |
3507 | ||
3508 | self = self; | |
3509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3510 | return NULL; | |
3511 | if (_argo0) { | |
3512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3515 | return NULL; | |
3516 | } | |
3517 | } | |
3518 | if (_argo1) { | |
3519 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3520 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3522 | return NULL; | |
3523 | } | |
3524 | } | |
3525 | { | |
3526 | wxPy_BEGIN_ALLOW_THREADS; | |
3527 | wxWindow_RemoveChild(_arg0,_arg1); | |
3528 | ||
3529 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3530 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
3531 | } Py_INCREF(Py_None); |
3532 | _resultobj = Py_None; | |
3533 | return _resultobj; | |
3534 | } | |
3535 | ||
bb0054cd | 3536 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3537 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3538 | PyObject * _resultobj; |
3539 | bool _result; | |
3540 | wxWindow * _arg0; | |
3541 | wxWindow * _arg1; | |
1d99702e RD |
3542 | PyObject * _argo0 = 0; |
3543 | PyObject * _argo1 = 0; | |
efc5f224 | 3544 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3545 | |
3546 | self = self; | |
efc5f224 | 3547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3548 | return NULL; |
1d99702e RD |
3549 | if (_argo0) { |
3550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3553 | return NULL; | |
3554 | } | |
3555 | } | |
1d99702e RD |
3556 | if (_argo1) { |
3557 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3558 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3560 | return NULL; | |
3561 | } | |
3562 | } | |
3563 | { | |
3564 | wxPy_BEGIN_ALLOW_THREADS; | |
3565 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); | |
3566 | ||
3567 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3568 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3569 | } _resultobj = Py_BuildValue("i",_result); |
3570 | return _resultobj; | |
3571 | } | |
3572 | ||
af309447 | 3573 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3574 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3575 | PyObject * _resultobj; |
3576 | wxWindow * _arg0; | |
3577 | int * _arg1; | |
3578 | int * _arg2; | |
1d99702e | 3579 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3580 | int temp; |
3581 | PyObject * _obj1 = 0; | |
3582 | int temp0; | |
3583 | PyObject * _obj2 = 0; | |
efc5f224 | 3584 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3585 | |
3586 | self = self; | |
efc5f224 | 3587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3588 | return NULL; |
1d99702e RD |
3589 | if (_argo0) { |
3590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3593 | return NULL; |
3594 | } | |
3595 | } | |
3596 | { | |
3597 | temp = (int) PyInt_AsLong(_obj1); | |
3598 | _arg1 = &temp; | |
3599 | } | |
3600 | { | |
3601 | temp0 = (int) PyInt_AsLong(_obj2); | |
3602 | _arg2 = &temp0; | |
3603 | } | |
cf694132 RD |
3604 | { |
3605 | wxPy_BEGIN_ALLOW_THREADS; | |
3606 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); | |
3607 | ||
3608 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3609 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3610 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3611 | _resultobj = Py_None; |
3612 | { | |
3613 | PyObject *o; | |
3614 | o = PyInt_FromLong((long) (*_arg1)); | |
3615 | _resultobj = t_output_helper(_resultobj, o); | |
3616 | } | |
3617 | { | |
3618 | PyObject *o; | |
3619 | o = PyInt_FromLong((long) (*_arg2)); | |
3620 | _resultobj = t_output_helper(_resultobj, o); | |
3621 | } | |
3622 | return _resultobj; | |
3623 | } | |
3624 | ||
af309447 | 3625 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3626 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3627 | PyObject * _resultobj; |
3628 | wxPoint * _result; | |
3629 | wxWindow * _arg0; | |
3630 | wxPoint * _arg1; | |
1d99702e | 3631 | PyObject * _argo0 = 0; |
2f90df85 RD |
3632 | wxPoint temp; |
3633 | PyObject * _obj1 = 0; | |
efc5f224 | 3634 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3635 | char _ptemp[128]; |
3636 | ||
3637 | self = self; | |
2f90df85 | 3638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3639 | return NULL; |
1d99702e RD |
3640 | if (_argo0) { |
3641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3644 | return NULL; | |
3645 | } | |
3646 | } | |
2f90df85 RD |
3647 | { |
3648 | _arg1 = &temp; | |
3649 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3650 | return NULL; |
2f90df85 | 3651 | } |
cf694132 RD |
3652 | { |
3653 | wxPy_BEGIN_ALLOW_THREADS; | |
3654 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); | |
3655 | ||
3656 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3657 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3658 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
3659 | _resultobj = Py_BuildValue("s",_ptemp); |
3660 | return _resultobj; | |
3661 | } | |
3662 | ||
8ab979d7 | 3663 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3664 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3665 | PyObject * _resultobj; |
3666 | wxWindow * _arg0; | |
3667 | int _arg1; | |
3668 | int _arg2; | |
1d99702e RD |
3669 | wxRect * _arg3 = (wxRect *) NULL; |
3670 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3671 | wxRect temp; |
3672 | PyObject * _obj3 = 0; | |
efc5f224 | 3673 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3674 | |
3675 | self = self; | |
2f90df85 | 3676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3677 | return NULL; |
1d99702e RD |
3678 | if (_argo0) { |
3679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3682 | return NULL; | |
3683 | } | |
3684 | } | |
2f90df85 RD |
3685 | if (_obj3) |
3686 | { | |
3687 | _arg3 = &temp; | |
3688 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3689 | return NULL; |
2f90df85 | 3690 | } |
cf694132 RD |
3691 | { |
3692 | wxPy_BEGIN_ALLOW_THREADS; | |
3693 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); | |
3694 | ||
3695 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3696 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3697 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3698 | _resultobj = Py_None; |
3699 | return _resultobj; | |
3700 | } | |
3701 | ||
3702 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) | |
efc5f224 | 3703 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3704 | PyObject * _resultobj; |
3705 | wxWindow * _arg0; | |
3706 | bool _arg1; | |
1d99702e | 3707 | PyObject * _argo0 = 0; |
8ab979d7 | 3708 | int tempbool1; |
efc5f224 | 3709 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3710 | |
3711 | self = self; | |
efc5f224 | 3712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3713 | return NULL; |
1d99702e RD |
3714 | if (_argo0) { |
3715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3718 | return NULL; | |
3719 | } | |
3720 | } | |
3721 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3722 | { |
3723 | wxPy_BEGIN_ALLOW_THREADS; | |
3724 | wxWindow_SetAutoLayout(_arg0,_arg1); | |
3725 | ||
3726 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3727 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3728 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3729 | _resultobj = Py_None; |
3730 | return _resultobj; | |
3731 | } | |
3732 | ||
9d8bd15f RD |
3733 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3734 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3735 | PyObject * _resultobj; | |
3736 | bool _result; | |
3737 | wxWindow * _arg0; | |
3738 | PyObject * _argo0 = 0; | |
3739 | char *_kwnames[] = { "self", NULL }; | |
3740 | ||
3741 | self = self; | |
3742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3743 | return NULL; | |
3744 | if (_argo0) { | |
3745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3748 | return NULL; | |
3749 | } | |
3750 | } | |
3751 | { | |
3752 | wxPy_BEGIN_ALLOW_THREADS; | |
3753 | _result = (bool )wxWindow_GetAutoLayout(_arg0); | |
3754 | ||
3755 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3756 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
3757 | } _resultobj = Py_BuildValue("i",_result); |
3758 | return _resultobj; | |
3759 | } | |
3760 | ||
8ab979d7 | 3761 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3762 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3763 | PyObject * _resultobj; |
3764 | wxWindow * _arg0; | |
3765 | wxColour * _arg1; | |
1d99702e | 3766 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3767 | wxColour temp; |
3768 | PyObject * _obj1 = 0; | |
efc5f224 | 3769 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3770 | |
3771 | self = self; | |
f6bcfd97 | 3772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3773 | return NULL; |
1d99702e RD |
3774 | if (_argo0) { |
3775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3778 | return NULL; | |
3779 | } | |
3780 | } | |
f6bcfd97 BP |
3781 | { |
3782 | _arg1 = &temp; | |
3783 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3784 | return NULL; |
f6bcfd97 | 3785 | } |
cf694132 RD |
3786 | { |
3787 | wxPy_BEGIN_ALLOW_THREADS; | |
3788 | wxWindow_SetBackgroundColour(_arg0,*_arg1); | |
3789 | ||
3790 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3791 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3792 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3793 | _resultobj = Py_None; |
3794 | return _resultobj; | |
3795 | } | |
3796 | ||
3797 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 3798 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3799 | PyObject * _resultobj; |
3800 | wxWindow * _arg0; | |
3801 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
3802 | PyObject * _argo0 = 0; |
3803 | PyObject * _argo1 = 0; | |
efc5f224 | 3804 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
3805 | |
3806 | self = self; | |
efc5f224 | 3807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3808 | return NULL; |
1d99702e RD |
3809 | if (_argo0) { |
3810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3813 | return NULL; | |
3814 | } | |
3815 | } | |
1d99702e RD |
3816 | if (_argo1) { |
3817 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3818 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
3819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3820 | return NULL; | |
3821 | } | |
3822 | } | |
cf694132 RD |
3823 | { |
3824 | wxPy_BEGIN_ALLOW_THREADS; | |
3825 | wxWindow_SetConstraints(_arg0,_arg1); | |
3826 | ||
3827 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3828 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3829 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3830 | _resultobj = Py_None; |
3831 | return _resultobj; | |
3832 | } | |
3833 | ||
2f90df85 RD |
3834 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
3835 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3836 | PyObject * _resultobj; | |
3837 | wxWindow * _arg0; | |
3838 | wxLayoutConstraints * _arg1; | |
3839 | PyObject * _argo0 = 0; | |
3840 | PyObject * _argo1 = 0; | |
3841 | char *_kwnames[] = { "self","constraints", NULL }; | |
3842 | ||
3843 | self = self; | |
3844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3845 | return NULL; | |
3846 | if (_argo0) { | |
3847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3850 | return NULL; | |
3851 | } | |
3852 | } | |
3853 | if (_argo1) { | |
3854 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3855 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3857 | return NULL; | |
3858 | } | |
3859 | } | |
3860 | { | |
3861 | wxPy_BEGIN_ALLOW_THREADS; | |
3862 | wxWindow_UnsetConstraints(_arg0,_arg1); | |
3863 | ||
3864 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3865 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
3866 | } Py_INCREF(Py_None); |
3867 | _resultobj = Py_None; | |
3868 | return _resultobj; | |
3869 | } | |
3870 | ||
8ab979d7 | 3871 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 3872 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3873 | PyObject * _resultobj; |
3874 | wxWindow * _arg0; | |
1d99702e | 3875 | PyObject * _argo0 = 0; |
efc5f224 | 3876 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3877 | |
3878 | self = self; | |
efc5f224 | 3879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 3880 | return NULL; |
1d99702e RD |
3881 | if (_argo0) { |
3882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
3885 | return NULL; | |
3886 | } | |
3887 | } | |
cf694132 RD |
3888 | { |
3889 | wxPy_BEGIN_ALLOW_THREADS; | |
3890 | wxWindow_SetFocus(_arg0); | |
3891 | ||
3892 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3893 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3894 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3895 | _resultobj = Py_None; |
3896 | return _resultobj; | |
3897 | } | |
3898 | ||
2f90df85 RD |
3899 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
3900 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3901 | PyObject * _resultobj; | |
3902 | bool _result; | |
3903 | wxWindow * _arg0; | |
3904 | PyObject * _argo0 = 0; | |
3905 | char *_kwnames[] = { "self", NULL }; | |
3906 | ||
3907 | self = self; | |
3908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3909 | return NULL; | |
3910 | if (_argo0) { | |
3911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3914 | return NULL; | |
3915 | } | |
3916 | } | |
3917 | { | |
3918 | wxPy_BEGIN_ALLOW_THREADS; | |
3919 | _result = (bool )wxWindow_AcceptsFocus(_arg0); | |
3920 | ||
3921 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3922 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
3923 | } _resultobj = Py_BuildValue("i",_result); |
3924 | return _resultobj; | |
3925 | } | |
3926 | ||
8ab979d7 | 3927 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 3928 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3929 | PyObject * _resultobj; |
3930 | wxWindow * _arg0; | |
3931 | wxFont * _arg1; | |
1d99702e RD |
3932 | PyObject * _argo0 = 0; |
3933 | PyObject * _argo1 = 0; | |
efc5f224 | 3934 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
3935 | |
3936 | self = self; | |
efc5f224 | 3937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3938 | return NULL; |
1d99702e RD |
3939 | if (_argo0) { |
3940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
3943 | return NULL; | |
3944 | } | |
3945 | } | |
1d99702e RD |
3946 | if (_argo1) { |
3947 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3948 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
3949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
3950 | return NULL; | |
3951 | } | |
3952 | } | |
cf694132 RD |
3953 | { |
3954 | wxPy_BEGIN_ALLOW_THREADS; | |
3955 | wxWindow_SetFont(_arg0,*_arg1); | |
3956 | ||
3957 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3958 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3959 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3960 | _resultobj = Py_None; |
3961 | return _resultobj; | |
3962 | } | |
3963 | ||
3964 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 3965 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3966 | PyObject * _resultobj; |
3967 | wxWindow * _arg0; | |
3968 | wxColour * _arg1; | |
1d99702e | 3969 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3970 | wxColour temp; |
3971 | PyObject * _obj1 = 0; | |
efc5f224 | 3972 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3973 | |
3974 | self = self; | |
f6bcfd97 | 3975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3976 | return NULL; |
1d99702e RD |
3977 | if (_argo0) { |
3978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
3981 | return NULL; | |
3982 | } | |
3983 | } | |
f6bcfd97 BP |
3984 | { |
3985 | _arg1 = &temp; | |
3986 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3987 | return NULL; |
f6bcfd97 | 3988 | } |
cf694132 RD |
3989 | { |
3990 | wxPy_BEGIN_ALLOW_THREADS; | |
3991 | wxWindow_SetForegroundColour(_arg0,*_arg1); | |
3992 | ||
3993 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3994 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3995 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3996 | _resultobj = Py_None; |
3997 | return _resultobj; | |
3998 | } | |
3999 | ||
4000 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 4001 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4002 | PyObject * _resultobj; |
4003 | wxWindow * _arg0; | |
4004 | int _arg1; | |
1d99702e | 4005 | PyObject * _argo0 = 0; |
efc5f224 | 4006 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
4007 | |
4008 | self = self; | |
efc5f224 | 4009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4010 | return NULL; |
1d99702e RD |
4011 | if (_argo0) { |
4012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
4015 | return NULL; | |
4016 | } | |
4017 | } | |
cf694132 RD |
4018 | { |
4019 | wxPy_BEGIN_ALLOW_THREADS; | |
4020 | wxWindow_SetId(_arg0,_arg1); | |
4021 | ||
4022 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4023 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4024 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4025 | _resultobj = Py_None; |
4026 | return _resultobj; | |
4027 | } | |
4028 | ||
4029 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 4030 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4031 | PyObject * _resultobj; |
4032 | wxWindow * _arg0; | |
4033 | wxString * _arg1; | |
1d99702e | 4034 | PyObject * _argo0 = 0; |
8ab979d7 | 4035 | PyObject * _obj1 = 0; |
efc5f224 | 4036 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
4037 | |
4038 | self = self; | |
efc5f224 | 4039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4040 | return NULL; |
1d99702e RD |
4041 | if (_argo0) { |
4042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
4045 | return NULL; | |
4046 | } | |
4047 | } | |
4048 | { | |
185d7c3e RD |
4049 | #if PYTHON_API_VERSION >= 1009 |
4050 | char* tmpPtr; int tmpSize; | |
4051 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4052 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4053 | return NULL; |
4054 | } | |
4055 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4056 | return NULL; | |
4057 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4058 | #else | |
8ab979d7 RD |
4059 | if (!PyString_Check(_obj1)) { |
4060 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4061 | return NULL; | |
4062 | } | |
185d7c3e RD |
4063 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4064 | #endif | |
8ab979d7 | 4065 | } |
cf694132 RD |
4066 | { |
4067 | wxPy_BEGIN_ALLOW_THREADS; | |
4068 | wxWindow_SetName(_arg0,*_arg1); | |
4069 | ||
4070 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4071 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4072 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4073 | _resultobj = Py_None; |
4074 | { | |
4075 | if (_obj1) | |
4076 | delete _arg1; | |
4077 | } | |
4078 | return _resultobj; | |
4079 | } | |
4080 | ||
8ab979d7 | 4081 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4082 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4083 | PyObject * _resultobj; |
4084 | wxWindow * _arg0; | |
4085 | int _arg1; | |
4086 | int _arg2; | |
4087 | int _arg3; | |
4088 | int _arg4; | |
eb715945 | 4089 | int _arg5 = (int ) TRUE; |
1d99702e | 4090 | PyObject * _argo0 = 0; |
efc5f224 | 4091 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4092 | |
4093 | self = self; | |
eb715945 | 4094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4095 | return NULL; |
1d99702e RD |
4096 | if (_argo0) { |
4097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4100 | return NULL; | |
4101 | } | |
4102 | } | |
cf694132 RD |
4103 | { |
4104 | wxPy_BEGIN_ALLOW_THREADS; | |
4105 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4106 | ||
4107 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4108 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4109 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4110 | _resultobj = Py_None; |
4111 | return _resultobj; | |
4112 | } | |
4113 | ||
4114 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4115 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4116 | PyObject * _resultobj; |
4117 | wxWindow * _arg0; | |
4118 | int _arg1; | |
4119 | int _arg2; | |
1d99702e RD |
4120 | bool _arg3 = (bool ) TRUE; |
4121 | PyObject * _argo0 = 0; | |
4122 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4123 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4124 | |
4125 | self = self; | |
efc5f224 | 4126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4127 | return NULL; |
1d99702e RD |
4128 | if (_argo0) { |
4129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4132 | return NULL; | |
4133 | } | |
4134 | } | |
4135 | _arg3 = (bool ) tempbool3; | |
cf694132 RD |
4136 | { |
4137 | wxPy_BEGIN_ALLOW_THREADS; | |
4138 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); | |
4139 | ||
4140 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4141 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4142 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4143 | _resultobj = Py_None; |
4144 | return _resultobj; | |
4145 | } | |
4146 | ||
4147 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4148 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4149 | PyObject * _resultobj; |
4150 | wxWindow * _arg0; | |
4151 | int _arg1; | |
4152 | int _arg2; | |
4153 | int _arg3; | |
4154 | int _arg4; | |
1d99702e RD |
4155 | int _arg5 = (int ) wxSIZE_AUTO; |
4156 | PyObject * _argo0 = 0; | |
efc5f224 | 4157 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4158 | |
4159 | self = self; | |
efc5f224 | 4160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4161 | return NULL; |
1d99702e RD |
4162 | if (_argo0) { |
4163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4166 | return NULL; | |
4167 | } | |
4168 | } | |
cf694132 RD |
4169 | { |
4170 | wxPy_BEGIN_ALLOW_THREADS; | |
4171 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4172 | ||
4173 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4174 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4175 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4176 | _resultobj = Py_None; |
4177 | return _resultobj; | |
4178 | } | |
4179 | ||
4180 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4181 | self->SetSize(size); |
8ab979d7 | 4182 | } |
efc5f224 | 4183 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4184 | PyObject * _resultobj; |
4185 | wxWindow * _arg0; | |
4186 | wxSize * _arg1; | |
1d99702e | 4187 | PyObject * _argo0 = 0; |
2f90df85 RD |
4188 | wxSize temp; |
4189 | PyObject * _obj1 = 0; | |
efc5f224 | 4190 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4191 | |
4192 | self = self; | |
2f90df85 | 4193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4194 | return NULL; |
1d99702e RD |
4195 | if (_argo0) { |
4196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4199 | return NULL; | |
4200 | } | |
4201 | } | |
2f90df85 RD |
4202 | { |
4203 | _arg1 = &temp; | |
4204 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4205 | return NULL; |
2f90df85 | 4206 | } |
cf694132 RD |
4207 | { |
4208 | wxPy_BEGIN_ALLOW_THREADS; | |
4209 | wxWindow_SetSize(_arg0,*_arg1); | |
4210 | ||
4211 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4212 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4213 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4214 | _resultobj = Py_None; |
4215 | return _resultobj; | |
4216 | } | |
4217 | ||
4218 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) { | |
b7e72427 | 4219 | self->Move(pos); |
8ab979d7 | 4220 | } |
efc5f224 | 4221 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4222 | PyObject * _resultobj; |
4223 | wxWindow * _arg0; | |
4224 | wxPoint * _arg1; | |
1d99702e | 4225 | PyObject * _argo0 = 0; |
2f90df85 RD |
4226 | wxPoint temp; |
4227 | PyObject * _obj1 = 0; | |
efc5f224 | 4228 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
4229 | |
4230 | self = self; | |
2f90df85 | 4231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4232 | return NULL; |
1d99702e RD |
4233 | if (_argo0) { |
4234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4237 | return NULL; | |
4238 | } | |
4239 | } | |
2f90df85 RD |
4240 | { |
4241 | _arg1 = &temp; | |
4242 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4243 | return NULL; |
2f90df85 | 4244 | } |
cf694132 RD |
4245 | { |
4246 | wxPy_BEGIN_ALLOW_THREADS; | |
4247 | wxWindow_SetPosition(_arg0,*_arg1); | |
4248 | ||
4249 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4250 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4251 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4252 | _resultobj = Py_None; |
4253 | return _resultobj; | |
4254 | } | |
4255 | ||
dbbb98cd RD |
4256 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4257 | self->SetSize(rect, sizeFlags); | |
4258 | } | |
4259 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4260 | PyObject * _resultobj; | |
4261 | wxWindow * _arg0; | |
4262 | wxRect * _arg1; | |
4263 | int _arg2 = (int ) wxSIZE_AUTO; | |
4264 | PyObject * _argo0 = 0; | |
4265 | wxRect temp; | |
4266 | PyObject * _obj1 = 0; | |
4267 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4268 | ||
4269 | self = self; | |
4270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4271 | return NULL; | |
4272 | if (_argo0) { | |
4273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4276 | return NULL; | |
4277 | } | |
4278 | } | |
4279 | { | |
4280 | _arg1 = &temp; | |
4281 | if (! wxRect_helper(_obj1, &_arg1)) | |
4282 | return NULL; | |
4283 | } | |
4284 | { | |
4285 | wxPy_BEGIN_ALLOW_THREADS; | |
4286 | wxWindow_SetRect(_arg0,*_arg1,_arg2); | |
4287 | ||
4288 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4289 | if (PyErr_Occurred()) return NULL; |
dbbb98cd RD |
4290 | } Py_INCREF(Py_None); |
4291 | _resultobj = Py_None; | |
4292 | return _resultobj; | |
4293 | } | |
4294 | ||
8ab979d7 | 4295 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4296 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4297 | PyObject * _resultobj; |
4298 | wxWindow * _arg0; | |
1d99702e RD |
4299 | int _arg1 = (int ) -1; |
4300 | int _arg2 = (int ) -1; | |
4301 | int _arg3 = (int ) -1; | |
4302 | int _arg4 = (int ) -1; | |
4303 | int _arg5 = (int ) -1; | |
4304 | int _arg6 = (int ) -1; | |
4305 | PyObject * _argo0 = 0; | |
efc5f224 | 4306 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4307 | |
4308 | self = self; | |
efc5f224 | 4309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4310 | return NULL; |
1d99702e RD |
4311 | if (_argo0) { |
4312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4315 | return NULL; | |
4316 | } | |
4317 | } | |
cf694132 RD |
4318 | { |
4319 | wxPy_BEGIN_ALLOW_THREADS; | |
4320 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
4321 | ||
4322 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4323 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4324 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4325 | _resultobj = Py_None; |
4326 | return _resultobj; | |
4327 | } | |
4328 | ||
af309447 | 4329 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4330 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4331 | PyObject * _resultobj; |
4332 | wxWindow * _arg0; | |
4333 | int _arg1; | |
4334 | int _arg2; | |
1d99702e | 4335 | PyObject * _argo0 = 0; |
efc5f224 | 4336 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4337 | |
4338 | self = self; | |
efc5f224 | 4339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4340 | return NULL; |
1d99702e RD |
4341 | if (_argo0) { |
4342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4345 | return NULL; | |
4346 | } | |
4347 | } | |
cf694132 RD |
4348 | { |
4349 | wxPy_BEGIN_ALLOW_THREADS; | |
4350 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); | |
4351 | ||
4352 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4353 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4354 | } Py_INCREF(Py_None); |
af309447 RD |
4355 | _resultobj = Py_None; |
4356 | return _resultobj; | |
4357 | } | |
4358 | ||
4359 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4360 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4361 | PyObject * _resultobj; |
4362 | wxWindow * _arg0; | |
4363 | wxSize * _arg1; | |
1d99702e | 4364 | PyObject * _argo0 = 0; |
2f90df85 RD |
4365 | wxSize temp; |
4366 | PyObject * _obj1 = 0; | |
efc5f224 | 4367 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4368 | |
4369 | self = self; | |
2f90df85 | 4370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4371 | return NULL; |
1d99702e RD |
4372 | if (_argo0) { |
4373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4376 | return NULL; | |
4377 | } | |
4378 | } | |
2f90df85 RD |
4379 | { |
4380 | _arg1 = &temp; | |
4381 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4382 | return NULL; |
2f90df85 | 4383 | } |
cf694132 RD |
4384 | { |
4385 | wxPy_BEGIN_ALLOW_THREADS; | |
4386 | wxWindow_SetClientSize(_arg0,*_arg1); | |
4387 | ||
4388 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4389 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4390 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4391 | _resultobj = Py_None; |
4392 | return _resultobj; | |
4393 | } | |
4394 | ||
4395 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4396 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4397 | PyObject * _resultobj; |
4398 | wxWindow * _arg0; | |
4399 | wxCursor * _arg1; | |
1d99702e RD |
4400 | PyObject * _argo0 = 0; |
4401 | PyObject * _argo1 = 0; | |
efc5f224 | 4402 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4403 | |
4404 | self = self; | |
efc5f224 | 4405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4406 | return NULL; |
1d99702e RD |
4407 | if (_argo0) { |
4408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4411 | return NULL; | |
4412 | } | |
4413 | } | |
1d99702e RD |
4414 | if (_argo1) { |
4415 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4416 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4418 | return NULL; | |
4419 | } | |
4420 | } | |
cf694132 RD |
4421 | { |
4422 | wxPy_BEGIN_ALLOW_THREADS; | |
4423 | wxWindow_SetCursor(_arg0,*_arg1); | |
4424 | ||
4425 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4426 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4427 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4428 | _resultobj = Py_None; |
4429 | return _resultobj; | |
4430 | } | |
4431 | ||
1afc06c2 RD |
4432 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4433 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4434 | PyObject * _resultobj; | |
4435 | wxWindow * _arg0; | |
4436 | wxEvtHandler * _arg1; | |
4437 | PyObject * _argo0 = 0; | |
4438 | PyObject * _argo1 = 0; | |
4439 | char *_kwnames[] = { "self","handler", NULL }; | |
4440 | ||
4441 | self = self; | |
4442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4443 | return NULL; | |
4444 | if (_argo0) { | |
4445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4448 | return NULL; | |
4449 | } | |
4450 | } | |
4451 | if (_argo1) { | |
4452 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4453 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4455 | return NULL; | |
4456 | } | |
4457 | } | |
4458 | { | |
4459 | wxPy_BEGIN_ALLOW_THREADS; | |
4460 | wxWindow_SetEventHandler(_arg0,_arg1); | |
4461 | ||
4462 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4463 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
4464 | } Py_INCREF(Py_None); |
4465 | _resultobj = Py_None; | |
4466 | return _resultobj; | |
4467 | } | |
4468 | ||
83b18bab RD |
4469 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
4470 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4471 | PyObject * _resultobj; | |
4472 | wxWindow * _arg0; | |
4473 | long _arg1; | |
4474 | PyObject * _argo0 = 0; | |
4475 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4476 | ||
4477 | self = self; | |
4478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4479 | return NULL; | |
4480 | if (_argo0) { | |
4481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4484 | return NULL; | |
4485 | } | |
4486 | } | |
4487 | { | |
4488 | wxPy_BEGIN_ALLOW_THREADS; | |
4489 | wxWindow_SetExtraStyle(_arg0,_arg1); | |
4490 | ||
4491 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4492 | if (PyErr_Occurred()) return NULL; |
83b18bab RD |
4493 | } Py_INCREF(Py_None); |
4494 | _resultobj = Py_None; | |
4495 | return _resultobj; | |
4496 | } | |
4497 | ||
8ab979d7 | 4498 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4499 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4500 | PyObject * _resultobj; |
4501 | wxWindow * _arg0; | |
4502 | wxString * _arg1; | |
1d99702e | 4503 | PyObject * _argo0 = 0; |
8ab979d7 | 4504 | PyObject * _obj1 = 0; |
efc5f224 | 4505 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4506 | |
4507 | self = self; | |
efc5f224 | 4508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4509 | return NULL; |
1d99702e RD |
4510 | if (_argo0) { |
4511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4514 | return NULL; | |
4515 | } | |
4516 | } | |
4517 | { | |
185d7c3e RD |
4518 | #if PYTHON_API_VERSION >= 1009 |
4519 | char* tmpPtr; int tmpSize; | |
4520 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4521 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4522 | return NULL; |
4523 | } | |
4524 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4525 | return NULL; | |
4526 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4527 | #else | |
8ab979d7 RD |
4528 | if (!PyString_Check(_obj1)) { |
4529 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4530 | return NULL; | |
4531 | } | |
185d7c3e RD |
4532 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4533 | #endif | |
8ab979d7 | 4534 | } |
cf694132 RD |
4535 | { |
4536 | wxPy_BEGIN_ALLOW_THREADS; | |
4537 | wxWindow_SetTitle(_arg0,*_arg1); | |
4538 | ||
4539 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4540 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4541 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4542 | _resultobj = Py_None; |
4543 | { | |
4544 | if (_obj1) | |
4545 | delete _arg1; | |
4546 | } | |
4547 | return _resultobj; | |
4548 | } | |
4549 | ||
4550 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4551 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4552 | PyObject * _resultobj; |
4553 | bool _result; | |
4554 | wxWindow * _arg0; | |
4555 | bool _arg1; | |
1d99702e | 4556 | PyObject * _argo0 = 0; |
8ab979d7 | 4557 | int tempbool1; |
efc5f224 | 4558 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4559 | |
4560 | self = self; | |
efc5f224 | 4561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4562 | return NULL; |
1d99702e RD |
4563 | if (_argo0) { |
4564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
4567 | return NULL; | |
4568 | } | |
4569 | } | |
4570 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
4571 | { |
4572 | wxPy_BEGIN_ALLOW_THREADS; | |
4573 | _result = (bool )wxWindow_Show(_arg0,_arg1); | |
4574 | ||
4575 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4576 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4577 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4578 | return _resultobj; |
4579 | } | |
4580 | ||
4581 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4582 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4583 | PyObject * _resultobj; |
4584 | bool _result; | |
4585 | wxWindow * _arg0; | |
1d99702e | 4586 | PyObject * _argo0 = 0; |
efc5f224 | 4587 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4588 | |
4589 | self = self; | |
efc5f224 | 4590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4591 | return NULL; |
1d99702e RD |
4592 | if (_argo0) { |
4593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4596 | return NULL; | |
4597 | } | |
4598 | } | |
cf694132 RD |
4599 | { |
4600 | wxPy_BEGIN_ALLOW_THREADS; | |
4601 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); | |
4602 | ||
4603 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4604 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4605 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4606 | return _resultobj; |
4607 | } | |
4608 | ||
4609 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4610 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4611 | PyObject * _resultobj; |
4612 | bool _result; | |
4613 | wxWindow * _arg0; | |
1d99702e | 4614 | PyObject * _argo0 = 0; |
efc5f224 | 4615 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4616 | |
4617 | self = self; | |
efc5f224 | 4618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4619 | return NULL; |
1d99702e RD |
4620 | if (_argo0) { |
4621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4624 | return NULL; | |
4625 | } | |
4626 | } | |
cf694132 RD |
4627 | { |
4628 | wxPy_BEGIN_ALLOW_THREADS; | |
4629 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); | |
4630 | ||
4631 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4632 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4633 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4634 | return _resultobj; |
4635 | } | |
4636 | ||
4637 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) | |
efc5f224 | 4638 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4639 | PyObject * _resultobj; |
4640 | bool _result; | |
4641 | wxWindow * _arg0; | |
1d99702e | 4642 | PyObject * _argo0 = 0; |
efc5f224 | 4643 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4644 | |
4645 | self = self; | |
efc5f224 | 4646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 4647 | return NULL; |
1d99702e RD |
4648 | if (_argo0) { |
4649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
4652 | return NULL; | |
4653 | } | |
4654 | } | |
cf694132 RD |
4655 | { |
4656 | wxPy_BEGIN_ALLOW_THREADS; | |
4657 | _result = (bool )wxWindow_Validate(_arg0); | |
4658 | ||
4659 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4660 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4661 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4662 | return _resultobj; |
4663 | } | |
4664 | ||
4665 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
efc5f224 | 4666 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4667 | PyObject * _resultobj; |
4668 | wxWindow * _arg0; | |
4669 | int _arg1; | |
4670 | int _arg2; | |
1d99702e | 4671 | PyObject * _argo0 = 0; |
efc5f224 | 4672 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
4673 | |
4674 | self = self; | |
efc5f224 | 4675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4676 | return NULL; |
1d99702e RD |
4677 | if (_argo0) { |
4678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); |
4681 | return NULL; | |
4682 | } | |
4683 | } | |
cf694132 RD |
4684 | { |
4685 | wxPy_BEGIN_ALLOW_THREADS; | |
4686 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
4687 | ||
4688 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4689 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4690 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4691 | _resultobj = Py_None; |
4692 | return _resultobj; | |
4693 | } | |
4694 | ||
b8b8dda7 | 4695 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 4696 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4697 | PyObject * _resultobj; |
4698 | wxPoint * _result; | |
4699 | wxWindow * _arg0; | |
4700 | wxPoint * _arg1; | |
1d99702e | 4701 | PyObject * _argo0 = 0; |
2f90df85 RD |
4702 | wxPoint temp; |
4703 | PyObject * _obj1 = 0; | |
efc5f224 | 4704 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4705 | char _ptemp[128]; |
4706 | ||
4707 | self = self; | |
2f90df85 | 4708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4709 | return NULL; |
1d99702e RD |
4710 | if (_argo0) { |
4711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
4714 | return NULL; | |
4715 | } | |
4716 | } | |
2f90df85 RD |
4717 | { |
4718 | _arg1 = &temp; | |
4719 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4720 | return NULL; |
2f90df85 | 4721 | } |
cf694132 RD |
4722 | { |
4723 | wxPy_BEGIN_ALLOW_THREADS; | |
4724 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); | |
4725 | ||
4726 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4727 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4728 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4729 | _resultobj = Py_BuildValue("s",_ptemp); |
4730 | return _resultobj; | |
4731 | } | |
4732 | ||
4733 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 4734 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4735 | PyObject * _resultobj; |
4736 | wxSize * _result; | |
4737 | wxWindow * _arg0; | |
4738 | wxSize * _arg1; | |
1d99702e | 4739 | PyObject * _argo0 = 0; |
2f90df85 RD |
4740 | wxSize temp; |
4741 | PyObject * _obj1 = 0; | |
efc5f224 | 4742 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4743 | char _ptemp[128]; |
4744 | ||
4745 | self = self; | |
2f90df85 | 4746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4747 | return NULL; |
1d99702e RD |
4748 | if (_argo0) { |
4749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
4752 | return NULL; | |
4753 | } | |
4754 | } | |
2f90df85 RD |
4755 | { |
4756 | _arg1 = &temp; | |
4757 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4758 | return NULL; |
2f90df85 | 4759 | } |
cf694132 RD |
4760 | { |
4761 | wxPy_BEGIN_ALLOW_THREADS; | |
4762 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); | |
4763 | ||
4764 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4765 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4766 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4767 | _resultobj = Py_BuildValue("s",_ptemp); |
4768 | return _resultobj; | |
4769 | } | |
4770 | ||
4771 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4772 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4773 | PyObject * _resultobj; |
4774 | wxPoint * _result; | |
4775 | wxWindow * _arg0; | |
4776 | wxPoint * _arg1; | |
1d99702e | 4777 | PyObject * _argo0 = 0; |
2f90df85 RD |
4778 | wxPoint temp; |
4779 | PyObject * _obj1 = 0; | |
efc5f224 | 4780 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4781 | char _ptemp[128]; |
4782 | ||
4783 | self = self; | |
2f90df85 | 4784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4785 | return NULL; |
1d99702e RD |
4786 | if (_argo0) { |
4787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
4790 | return NULL; | |
4791 | } | |
4792 | } | |
2f90df85 RD |
4793 | { |
4794 | _arg1 = &temp; | |
4795 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4796 | return NULL; |
2f90df85 | 4797 | } |
cf694132 RD |
4798 | { |
4799 | wxPy_BEGIN_ALLOW_THREADS; | |
4800 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); | |
4801 | ||
4802 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4803 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4804 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4805 | _resultobj = Py_BuildValue("s",_ptemp); |
4806 | return _resultobj; | |
4807 | } | |
4808 | ||
4809 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4810 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4811 | PyObject * _resultobj; |
4812 | wxSize * _result; | |
4813 | wxWindow * _arg0; | |
4814 | wxSize * _arg1; | |
1d99702e | 4815 | PyObject * _argo0 = 0; |
2f90df85 RD |
4816 | wxSize temp; |
4817 | PyObject * _obj1 = 0; | |
efc5f224 | 4818 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4819 | char _ptemp[128]; |
4820 | ||
4821 | self = self; | |
2f90df85 | 4822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4823 | return NULL; |
1d99702e RD |
4824 | if (_argo0) { |
4825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
4828 | return NULL; | |
4829 | } | |
4830 | } | |
2f90df85 RD |
4831 | { |
4832 | _arg1 = &temp; | |
4833 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4834 | return NULL; |
2f90df85 | 4835 | } |
cf694132 RD |
4836 | { |
4837 | wxPy_BEGIN_ALLOW_THREADS; | |
4838 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); | |
4839 | ||
4840 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4841 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4842 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4843 | _resultobj = Py_BuildValue("s",_ptemp); |
4844 | return _resultobj; | |
4845 | } | |
4846 | ||
af309447 | 4847 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 4848 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4849 | PyObject * _resultobj; |
4850 | wxWindow * _arg0; | |
4851 | wxString * _arg1; | |
1d99702e | 4852 | PyObject * _argo0 = 0; |
af309447 | 4853 | PyObject * _obj1 = 0; |
efc5f224 | 4854 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
4855 | |
4856 | self = self; | |
efc5f224 | 4857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 4858 | return NULL; |
1d99702e RD |
4859 | if (_argo0) { |
4860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
4863 | return NULL; | |
4864 | } | |
4865 | } | |
4866 | { | |
185d7c3e RD |
4867 | #if PYTHON_API_VERSION >= 1009 |
4868 | char* tmpPtr; int tmpSize; | |
4869 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4870 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4871 | return NULL; |
4872 | } | |
4873 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4874 | return NULL; | |
4875 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4876 | #else | |
af309447 RD |
4877 | if (!PyString_Check(_obj1)) { |
4878 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4879 | return NULL; | |
4880 | } | |
185d7c3e RD |
4881 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4882 | #endif | |
af309447 | 4883 | } |
cf694132 RD |
4884 | { |
4885 | wxPy_BEGIN_ALLOW_THREADS; | |
4886 | wxWindow_SetToolTipString(_arg0,*_arg1); | |
4887 | ||
4888 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4889 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4890 | } Py_INCREF(Py_None); |
af309447 RD |
4891 | _resultobj = Py_None; |
4892 | { | |
4893 | if (_obj1) | |
4894 | delete _arg1; | |
4895 | } | |
4896 | return _resultobj; | |
4897 | } | |
4898 | ||
4899 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 4900 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4901 | PyObject * _resultobj; |
4902 | wxWindow * _arg0; | |
4903 | wxToolTip * _arg1; | |
1d99702e RD |
4904 | PyObject * _argo0 = 0; |
4905 | PyObject * _argo1 = 0; | |
efc5f224 | 4906 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
4907 | |
4908 | self = self; | |
efc5f224 | 4909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 4910 | return NULL; |
1d99702e RD |
4911 | if (_argo0) { |
4912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
4915 | return NULL; | |
4916 | } | |
4917 | } | |
1d99702e RD |
4918 | if (_argo1) { |
4919 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4920 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
4921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
4922 | return NULL; | |
4923 | } | |
4924 | } | |
cf694132 RD |
4925 | { |
4926 | wxPy_BEGIN_ALLOW_THREADS; | |
4927 | wxWindow_SetToolTip(_arg0,_arg1); | |
4928 | ||
4929 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4930 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4931 | } Py_INCREF(Py_None); |
af309447 RD |
4932 | _resultobj = Py_None; |
4933 | return _resultobj; | |
4934 | } | |
4935 | ||
4936 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 4937 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4938 | PyObject * _resultobj; |
4939 | wxToolTip * _result; | |
4940 | wxWindow * _arg0; | |
1d99702e | 4941 | PyObject * _argo0 = 0; |
efc5f224 | 4942 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
4943 | |
4944 | self = self; | |
efc5f224 | 4945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 4946 | return NULL; |
1d99702e RD |
4947 | if (_argo0) { |
4948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
4951 | return NULL; | |
4952 | } | |
4953 | } | |
cf694132 RD |
4954 | { |
4955 | wxPy_BEGIN_ALLOW_THREADS; | |
4956 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); | |
4957 | ||
4958 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4959 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 4960 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
4961 | return _resultobj; |
4962 | } | |
4963 | ||
2f90df85 RD |
4964 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) |
4965 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4966 | PyObject * _resultobj; | |
4967 | wxWindow * _arg0; | |
4968 | wxSizer * _arg1; | |
4969 | PyObject * _argo0 = 0; | |
4970 | PyObject * _argo1 = 0; | |
4971 | char *_kwnames[] = { "self","sizer", NULL }; | |
4972 | ||
4973 | self = self; | |
4974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
4975 | return NULL; | |
4976 | if (_argo0) { | |
4977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
4980 | return NULL; | |
4981 | } | |
4982 | } | |
4983 | if (_argo1) { | |
4984 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4985 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
4986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
4987 | return NULL; | |
4988 | } | |
4989 | } | |
4990 | { | |
4991 | wxPy_BEGIN_ALLOW_THREADS; | |
4992 | wxWindow_SetSizer(_arg0,_arg1); | |
4993 | ||
4994 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4995 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4996 | } Py_INCREF(Py_None); |
4997 | _resultobj = Py_None; | |
4998 | return _resultobj; | |
4999 | } | |
5000 | ||
f6bcfd97 BP |
5001 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
5002 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5003 | PyObject * _resultobj; | |
5004 | wxSizer * _result; | |
5005 | wxWindow * _arg0; | |
5006 | PyObject * _argo0 = 0; | |
5007 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
5008 | |
5009 | self = self; | |
5010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
5011 | return NULL; | |
5012 | if (_argo0) { | |
5013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
5016 | return NULL; | |
5017 | } | |
5018 | } | |
5019 | { | |
5020 | wxPy_BEGIN_ALLOW_THREADS; | |
5021 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); | |
5022 | ||
5023 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5024 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5025 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
5026 | return _resultobj; |
5027 | } | |
5028 | ||
2f90df85 RD |
5029 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
5030 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5031 | PyObject * _resultobj; | |
5032 | wxValidator * _result; | |
5033 | wxWindow * _arg0; | |
5034 | PyObject * _argo0 = 0; | |
5035 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
5036 | |
5037 | self = self; | |
5038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
5039 | return NULL; | |
5040 | if (_argo0) { | |
5041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
5044 | return NULL; | |
5045 | } | |
5046 | } | |
5047 | { | |
5048 | wxPy_BEGIN_ALLOW_THREADS; | |
5049 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); | |
5050 | ||
5051 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5052 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5053 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
5054 | return _resultobj; |
5055 | } | |
5056 | ||
5057 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5058 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5059 | PyObject * _resultobj; | |
5060 | wxWindow * _arg0; | |
5061 | wxValidator * _arg1; | |
5062 | PyObject * _argo0 = 0; | |
5063 | PyObject * _argo1 = 0; | |
5064 | char *_kwnames[] = { "self","validator", NULL }; | |
5065 | ||
5066 | self = self; | |
5067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
5068 | return NULL; | |
5069 | if (_argo0) { | |
5070 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5071 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5073 | return NULL; | |
5074 | } | |
5075 | } | |
5076 | if (_argo1) { | |
5077 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5078 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
5079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5080 | return NULL; | |
5081 | } | |
5082 | } | |
5083 | { | |
5084 | wxPy_BEGIN_ALLOW_THREADS; | |
5085 | wxWindow_SetValidator(_arg0,*_arg1); | |
5086 | ||
5087 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5088 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5089 | } Py_INCREF(Py_None); |
5090 | _resultobj = Py_None; | |
5091 | return _resultobj; | |
5092 | } | |
5093 | ||
b1462dfa RD |
5094 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5095 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5096 | PyObject * _resultobj; | |
5097 | wxWindow * _arg0; | |
5098 | wxDropTarget * _arg1; | |
5099 | PyObject * _argo0 = 0; | |
5100 | PyObject * _argo1 = 0; | |
5101 | char *_kwnames[] = { "self","target", NULL }; | |
5102 | ||
5103 | self = self; | |
5104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5105 | return NULL; | |
5106 | if (_argo0) { | |
5107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5110 | return NULL; | |
5111 | } | |
5112 | } | |
5113 | if (_argo1) { | |
5114 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5115 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5117 | return NULL; | |
5118 | } | |
5119 | } | |
5120 | { | |
5121 | wxPy_BEGIN_ALLOW_THREADS; | |
5122 | wxWindow_SetDropTarget(_arg0,_arg1); | |
5123 | ||
5124 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5125 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5126 | } Py_INCREF(Py_None); |
5127 | _resultobj = Py_None; | |
5128 | return _resultobj; | |
5129 | } | |
5130 | ||
5131 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5132 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5133 | PyObject * _resultobj; | |
5134 | wxDropTarget * _result; | |
5135 | wxWindow * _arg0; | |
5136 | PyObject * _argo0 = 0; | |
5137 | char *_kwnames[] = { "self", NULL }; | |
5138 | char _ptemp[128]; | |
5139 | ||
5140 | self = self; | |
5141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5142 | return NULL; | |
5143 | if (_argo0) { | |
5144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5147 | return NULL; | |
5148 | } | |
5149 | } | |
5150 | { | |
5151 | wxPy_BEGIN_ALLOW_THREADS; | |
5152 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); | |
5153 | ||
5154 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5155 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5156 | } if (_result) { |
5157 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5158 | _resultobj = Py_BuildValue("s",_ptemp); | |
5159 | } else { | |
5160 | Py_INCREF(Py_None); | |
5161 | _resultobj = Py_None; | |
5162 | } | |
5163 | return _resultobj; | |
5164 | } | |
5165 | ||
694759cf RD |
5166 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5167 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5168 | PyObject * _resultobj; | |
5169 | wxSize * _result; | |
5170 | wxWindow * _arg0; | |
5171 | PyObject * _argo0 = 0; | |
5172 | char *_kwnames[] = { "self", NULL }; | |
5173 | char _ptemp[128]; | |
5174 | ||
5175 | self = self; | |
5176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5177 | return NULL; | |
5178 | if (_argo0) { | |
5179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5182 | return NULL; | |
5183 | } | |
5184 | } | |
5185 | { | |
5186 | wxPy_BEGIN_ALLOW_THREADS; | |
5187 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); | |
5188 | ||
5189 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5190 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5191 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5192 | _resultobj = Py_BuildValue("s",_ptemp); | |
5193 | return _resultobj; | |
5194 | } | |
5195 | ||
a1df7a95 RD |
5196 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5197 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5198 | PyObject * _resultobj; | |
5199 | wxWindow * _arg0; | |
5200 | wxCaret * _arg1; | |
5201 | PyObject * _argo0 = 0; | |
5202 | PyObject * _argo1 = 0; | |
5203 | char *_kwnames[] = { "self","caret", NULL }; | |
5204 | ||
5205 | self = self; | |
5206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5207 | return NULL; | |
5208 | if (_argo0) { | |
5209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5212 | return NULL; | |
5213 | } | |
5214 | } | |
5215 | if (_argo1) { | |
5216 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5217 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5219 | return NULL; | |
5220 | } | |
5221 | } | |
5222 | { | |
5223 | wxPy_BEGIN_ALLOW_THREADS; | |
5224 | wxWindow_SetCaret(_arg0,_arg1); | |
5225 | ||
5226 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5227 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5228 | } Py_INCREF(Py_None); |
5229 | _resultobj = Py_None; | |
5230 | return _resultobj; | |
5231 | } | |
5232 | ||
5233 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5234 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5235 | PyObject * _resultobj; | |
5236 | wxCaret * _result; | |
5237 | wxWindow * _arg0; | |
5238 | PyObject * _argo0 = 0; | |
5239 | char *_kwnames[] = { "self", NULL }; | |
5240 | char _ptemp[128]; | |
5241 | ||
5242 | self = self; | |
5243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5244 | return NULL; | |
5245 | if (_argo0) { | |
5246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5249 | return NULL; | |
5250 | } | |
5251 | } | |
5252 | { | |
5253 | wxPy_BEGIN_ALLOW_THREADS; | |
5254 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); | |
5255 | ||
5256 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5257 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5258 | } if (_result) { |
5259 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5260 | _resultobj = Py_BuildValue("s",_ptemp); | |
5261 | } else { | |
5262 | Py_INCREF(Py_None); | |
5263 | _resultobj = Py_None; | |
5264 | } | |
5265 | return _resultobj; | |
5266 | } | |
5267 | ||
3a0958b1 RD |
5268 | #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze()) |
5269 | static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5270 | PyObject * _resultobj; | |
5271 | wxWindow * _arg0; | |
5272 | PyObject * _argo0 = 0; | |
5273 | char *_kwnames[] = { "self", NULL }; | |
5274 | ||
5275 | self = self; | |
5276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0)) | |
5277 | return NULL; | |
5278 | if (_argo0) { | |
5279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p."); | |
5282 | return NULL; | |
5283 | } | |
5284 | } | |
5285 | { | |
5286 | wxPy_BEGIN_ALLOW_THREADS; | |
5287 | wxWindow_Freeze(_arg0); | |
5288 | ||
5289 | wxPy_END_ALLOW_THREADS; | |
5290 | if (PyErr_Occurred()) return NULL; | |
5291 | } Py_INCREF(Py_None); | |
5292 | _resultobj = Py_None; | |
5293 | return _resultobj; | |
5294 | } | |
5295 | ||
5296 | #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw()) | |
5297 | static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5298 | PyObject * _resultobj; | |
5299 | wxWindow * _arg0; | |
5300 | PyObject * _argo0 = 0; | |
5301 | char *_kwnames[] = { "self", NULL }; | |
5302 | ||
5303 | self = self; | |
5304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0)) | |
5305 | return NULL; | |
5306 | if (_argo0) { | |
5307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p."); | |
5310 | return NULL; | |
5311 | } | |
5312 | } | |
5313 | { | |
5314 | wxPy_BEGIN_ALLOW_THREADS; | |
5315 | wxWindow_Thaw(_arg0); | |
5316 | ||
5317 | wxPy_END_ALLOW_THREADS; | |
5318 | if (PyErr_Occurred()) return NULL; | |
5319 | } Py_INCREF(Py_None); | |
5320 | _resultobj = Py_None; | |
5321 | return _resultobj; | |
5322 | } | |
5323 | ||
09f3d4e6 RD |
5324 | #define wxWindow_Update(_swigobj) (_swigobj->Update()) |
5325 | static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5326 | PyObject * _resultobj; | |
5327 | wxWindow * _arg0; | |
5328 | PyObject * _argo0 = 0; | |
5329 | char *_kwnames[] = { "self", NULL }; | |
5330 | ||
5331 | self = self; | |
5332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0)) | |
5333 | return NULL; | |
5334 | if (_argo0) { | |
5335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p."); | |
5338 | return NULL; | |
5339 | } | |
5340 | } | |
5341 | { | |
5342 | wxPy_BEGIN_ALLOW_THREADS; | |
5343 | wxWindow_Update(_arg0); | |
5344 | ||
5345 | wxPy_END_ALLOW_THREADS; | |
5346 | if (PyErr_Occurred()) return NULL; | |
5347 | } Py_INCREF(Py_None); | |
5348 | _resultobj = Py_None; | |
5349 | return _resultobj; | |
5350 | } | |
5351 | ||
4f3449b4 RD |
5352 | #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText()) |
5353 | static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5354 | PyObject * _resultobj; | |
5355 | wxString * _result; | |
5356 | wxWindow * _arg0; | |
5357 | PyObject * _argo0 = 0; | |
5358 | char *_kwnames[] = { "self", NULL }; | |
5359 | ||
5360 | self = self; | |
5361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0)) | |
5362 | return NULL; | |
5363 | if (_argo0) { | |
5364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p."); | |
5367 | return NULL; | |
5368 | } | |
5369 | } | |
5370 | { | |
5371 | wxPy_BEGIN_ALLOW_THREADS; | |
5372 | _result = new wxString (wxWindow_GetHelpText(_arg0)); | |
5373 | ||
5374 | wxPy_END_ALLOW_THREADS; | |
5375 | if (PyErr_Occurred()) return NULL; | |
5376 | }{ | |
5377 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5378 | } | |
5379 | { | |
5380 | delete _result; | |
5381 | } | |
5382 | return _resultobj; | |
5383 | } | |
5384 | ||
5385 | #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0)) | |
5386 | static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5387 | PyObject * _resultobj; | |
5388 | wxWindow * _arg0; | |
5389 | wxString * _arg1; | |
5390 | PyObject * _argo0 = 0; | |
5391 | PyObject * _obj1 = 0; | |
5392 | char *_kwnames[] = { "self","helpText", NULL }; | |
5393 | ||
5394 | self = self; | |
5395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1)) | |
5396 | return NULL; | |
5397 | if (_argo0) { | |
5398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p."); | |
5401 | return NULL; | |
5402 | } | |
5403 | } | |
5404 | { | |
5405 | #if PYTHON_API_VERSION >= 1009 | |
5406 | char* tmpPtr; int tmpSize; | |
5407 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5408 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5409 | return NULL; | |
5410 | } | |
5411 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5412 | return NULL; | |
5413 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5414 | #else | |
5415 | if (!PyString_Check(_obj1)) { | |
5416 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5417 | return NULL; | |
5418 | } | |
5419 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5420 | #endif | |
5421 | } | |
5422 | { | |
5423 | wxPy_BEGIN_ALLOW_THREADS; | |
5424 | wxWindow_SetHelpText(_arg0,*_arg1); | |
5425 | ||
5426 | wxPy_END_ALLOW_THREADS; | |
5427 | if (PyErr_Occurred()) return NULL; | |
5428 | } Py_INCREF(Py_None); | |
5429 | _resultobj = Py_None; | |
5430 | { | |
5431 | if (_obj1) | |
5432 | delete _arg1; | |
5433 | } | |
5434 | return _resultobj; | |
5435 | } | |
5436 | ||
c7e7022c RD |
5437 | #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0)) |
5438 | static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5439 | PyObject * _resultobj; | |
5440 | bool _result; | |
5441 | wxWindow * _arg0; | |
5442 | int _arg1; | |
5443 | PyObject * _argo0 = 0; | |
5444 | char *_kwnames[] = { "self","lines", NULL }; | |
5445 | ||
5446 | self = self; | |
5447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1)) | |
5448 | return NULL; | |
5449 | if (_argo0) { | |
5450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p."); | |
5453 | return NULL; | |
5454 | } | |
5455 | } | |
5456 | { | |
5457 | wxPy_BEGIN_ALLOW_THREADS; | |
5458 | _result = (bool )wxWindow_ScrollLines(_arg0,_arg1); | |
5459 | ||
5460 | wxPy_END_ALLOW_THREADS; | |
5461 | if (PyErr_Occurred()) return NULL; | |
5462 | } _resultobj = Py_BuildValue("i",_result); | |
5463 | return _resultobj; | |
5464 | } | |
5465 | ||
5466 | #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0)) | |
5467 | static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5468 | PyObject * _resultobj; | |
5469 | bool _result; | |
5470 | wxWindow * _arg0; | |
5471 | int _arg1; | |
5472 | PyObject * _argo0 = 0; | |
5473 | char *_kwnames[] = { "self","pages", NULL }; | |
5474 | ||
5475 | self = self; | |
5476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1)) | |
5477 | return NULL; | |
5478 | if (_argo0) { | |
5479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p."); | |
5482 | return NULL; | |
5483 | } | |
5484 | } | |
5485 | { | |
5486 | wxPy_BEGIN_ALLOW_THREADS; | |
5487 | _result = (bool )wxWindow_ScrollPages(_arg0,_arg1); | |
5488 | ||
5489 | wxPy_END_ALLOW_THREADS; | |
5490 | if (PyErr_Occurred()) return NULL; | |
5491 | } _resultobj = Py_BuildValue("i",_result); | |
5492 | return _resultobj; | |
5493 | } | |
5494 | ||
5495 | #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp()) | |
5496 | static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5497 | PyObject * _resultobj; | |
5498 | bool _result; | |
5499 | wxWindow * _arg0; | |
5500 | PyObject * _argo0 = 0; | |
5501 | char *_kwnames[] = { "self", NULL }; | |
5502 | ||
5503 | self = self; | |
5504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0)) | |
5505 | return NULL; | |
5506 | if (_argo0) { | |
5507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p."); | |
5510 | return NULL; | |
5511 | } | |
5512 | } | |
5513 | { | |
5514 | wxPy_BEGIN_ALLOW_THREADS; | |
5515 | _result = (bool )wxWindow_LineUp(_arg0); | |
5516 | ||
5517 | wxPy_END_ALLOW_THREADS; | |
5518 | if (PyErr_Occurred()) return NULL; | |
5519 | } _resultobj = Py_BuildValue("i",_result); | |
5520 | return _resultobj; | |
5521 | } | |
5522 | ||
5523 | #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown()) | |
5524 | static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5525 | PyObject * _resultobj; | |
5526 | bool _result; | |
5527 | wxWindow * _arg0; | |
5528 | PyObject * _argo0 = 0; | |
5529 | char *_kwnames[] = { "self", NULL }; | |
5530 | ||
5531 | self = self; | |
5532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0)) | |
5533 | return NULL; | |
5534 | if (_argo0) { | |
5535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p."); | |
5538 | return NULL; | |
5539 | } | |
5540 | } | |
5541 | { | |
5542 | wxPy_BEGIN_ALLOW_THREADS; | |
5543 | _result = (bool )wxWindow_LineDown(_arg0); | |
5544 | ||
5545 | wxPy_END_ALLOW_THREADS; | |
5546 | if (PyErr_Occurred()) return NULL; | |
5547 | } _resultobj = Py_BuildValue("i",_result); | |
5548 | return _resultobj; | |
5549 | } | |
5550 | ||
5551 | #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp()) | |
5552 | static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5553 | PyObject * _resultobj; | |
5554 | bool _result; | |
5555 | wxWindow * _arg0; | |
5556 | PyObject * _argo0 = 0; | |
5557 | char *_kwnames[] = { "self", NULL }; | |
5558 | ||
5559 | self = self; | |
5560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0)) | |
5561 | return NULL; | |
5562 | if (_argo0) { | |
5563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p."); | |
5566 | return NULL; | |
5567 | } | |
5568 | } | |
5569 | { | |
5570 | wxPy_BEGIN_ALLOW_THREADS; | |
5571 | _result = (bool )wxWindow_PageUp(_arg0); | |
5572 | ||
5573 | wxPy_END_ALLOW_THREADS; | |
5574 | if (PyErr_Occurred()) return NULL; | |
5575 | } _resultobj = Py_BuildValue("i",_result); | |
5576 | return _resultobj; | |
5577 | } | |
5578 | ||
5579 | #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown()) | |
5580 | static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5581 | PyObject * _resultobj; | |
5582 | bool _result; | |
5583 | wxWindow * _arg0; | |
5584 | PyObject * _argo0 = 0; | |
5585 | char *_kwnames[] = { "self", NULL }; | |
5586 | ||
5587 | self = self; | |
5588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0)) | |
5589 | return NULL; | |
5590 | if (_argo0) { | |
5591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p."); | |
5594 | return NULL; | |
5595 | } | |
5596 | } | |
5597 | { | |
5598 | wxPy_BEGIN_ALLOW_THREADS; | |
5599 | _result = (bool )wxWindow_PageDown(_arg0); | |
5600 | ||
5601 | wxPy_END_ALLOW_THREADS; | |
5602 | if (PyErr_Occurred()) return NULL; | |
5603 | } _resultobj = Py_BuildValue("i",_result); | |
5604 | return _resultobj; | |
5605 | } | |
5606 | ||
09f3d4e6 RD |
5607 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
5608 | PyObject * _resultobj; | |
5609 | wxWindow * _result; | |
5610 | char *_kwnames[] = { NULL }; | |
5611 | ||
5612 | self = self; | |
5613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
5614 | return NULL; | |
5615 | { | |
5616 | wxPy_BEGIN_ALLOW_THREADS; | |
5617 | _result = (wxWindow *)wxWindow::FindFocus(); | |
5618 | ||
5619 | wxPy_END_ALLOW_THREADS; | |
5620 | if (PyErr_Occurred()) return NULL; | |
5621 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5622 | return _resultobj; | |
5623 | } | |
5624 | ||
5625 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5626 | PyObject * _resultobj; | |
5627 | int _result; | |
5628 | char *_kwnames[] = { NULL }; | |
5629 | ||
5630 | self = self; | |
5631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
5632 | return NULL; | |
5633 | { | |
5634 | wxPy_BEGIN_ALLOW_THREADS; | |
5635 | _result = (int )wxWindow::NewControlId(); | |
5636 | ||
5637 | wxPy_END_ALLOW_THREADS; | |
5638 | if (PyErr_Occurred()) return NULL; | |
5639 | } _resultobj = Py_BuildValue("i",_result); | |
5640 | return _resultobj; | |
5641 | } | |
5642 | ||
5643 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5644 | PyObject * _resultobj; | |
5645 | int _result; | |
5646 | int _arg0; | |
5647 | char *_kwnames[] = { "id", NULL }; | |
5648 | ||
5649 | self = self; | |
5650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
5651 | return NULL; | |
5652 | { | |
5653 | wxPy_BEGIN_ALLOW_THREADS; | |
5654 | _result = (int )wxWindow::NextControlId(_arg0); | |
5655 | ||
5656 | wxPy_END_ALLOW_THREADS; | |
5657 | if (PyErr_Occurred()) return NULL; | |
5658 | } _resultobj = Py_BuildValue("i",_result); | |
5659 | return _resultobj; | |
5660 | } | |
5661 | ||
5662 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5663 | PyObject * _resultobj; | |
5664 | int _result; | |
5665 | int _arg0; | |
5666 | char *_kwnames[] = { "id", NULL }; | |
5667 | ||
5668 | self = self; | |
5669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
5670 | return NULL; | |
5671 | { | |
5672 | wxPy_BEGIN_ALLOW_THREADS; | |
5673 | _result = (int )wxWindow::PrevControlId(_arg0); | |
5674 | ||
5675 | wxPy_END_ALLOW_THREADS; | |
5676 | if (PyErr_Occurred()) return NULL; | |
5677 | } _resultobj = Py_BuildValue("i",_result); | |
5678 | return _resultobj; | |
5679 | } | |
5680 | ||
76bfdc78 RD |
5681 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
5682 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5683 | PyObject * _resultobj; | |
5684 | wxWindow * _arg0; | |
5685 | wxAcceleratorTable * _arg1; | |
5686 | PyObject * _argo0 = 0; | |
5687 | PyObject * _argo1 = 0; | |
5688 | char *_kwnames[] = { "self","accel", NULL }; | |
5689 | ||
5690 | self = self; | |
5691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) | |
5692 | return NULL; | |
5693 | if (_argo0) { | |
5694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); | |
5697 | return NULL; | |
5698 | } | |
5699 | } | |
5700 | if (_argo1) { | |
5701 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5702 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
5703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); | |
5704 | return NULL; | |
5705 | } | |
5706 | } | |
5707 | { | |
5708 | wxPy_BEGIN_ALLOW_THREADS; | |
5709 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); | |
5710 | ||
5711 | wxPy_END_ALLOW_THREADS; | |
5712 | if (PyErr_Occurred()) return NULL; | |
5713 | } Py_INCREF(Py_None); | |
5714 | _resultobj = Py_None; | |
5715 | return _resultobj; | |
5716 | } | |
5717 | ||
900d9886 RD |
5718 | #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable()) |
5719 | static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5720 | PyObject * _resultobj; | |
5721 | wxAcceleratorTable * _result; | |
5722 | wxWindow * _arg0; | |
5723 | PyObject * _argo0 = 0; | |
5724 | char *_kwnames[] = { "self", NULL }; | |
5725 | char _ptemp[128]; | |
5726 | ||
5727 | self = self; | |
5728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0)) | |
5729 | return NULL; | |
5730 | if (_argo0) { | |
5731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p."); | |
5734 | return NULL; | |
5735 | } | |
5736 | } | |
5737 | { | |
5738 | wxPy_BEGIN_ALLOW_THREADS; | |
5739 | _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0); | |
5740 | ||
5741 | wxPy_END_ALLOW_THREADS; | |
5742 | if (PyErr_Occurred()) return NULL; | |
5743 | } if (_result) { | |
5744 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p"); | |
5745 | _resultobj = Py_BuildValue("s",_ptemp); | |
5746 | } else { | |
5747 | Py_INCREF(Py_None); | |
5748 | _resultobj = Py_None; | |
5749 | } | |
5750 | return _resultobj; | |
5751 | } | |
5752 | ||
8ab979d7 RD |
5753 | static void *SwigwxPanelTowxWindow(void *ptr) { |
5754 | wxPanel *src; | |
5755 | wxWindow *dest; | |
5756 | src = (wxPanel *) ptr; | |
5757 | dest = (wxWindow *) src; | |
5758 | return (void *) dest; | |
5759 | } | |
5760 | ||
5761 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
5762 | wxPanel *src; | |
5763 | wxEvtHandler *dest; | |
5764 | src = (wxPanel *) ptr; | |
5765 | dest = (wxEvtHandler *) src; | |
5766 | return (void *) dest; | |
5767 | } | |
5768 | ||
9416aa89 RD |
5769 | static void *SwigwxPanelTowxObject(void *ptr) { |
5770 | wxPanel *src; | |
5771 | wxObject *dest; | |
5772 | src = (wxPanel *) ptr; | |
5773 | dest = (wxObject *) src; | |
5774 | return (void *) dest; | |
5775 | } | |
5776 | ||
8ab979d7 | 5777 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 5778 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5779 | PyObject * _resultobj; |
5780 | wxPanel * _result; | |
5781 | wxWindow * _arg0; | |
5782 | wxWindowID _arg1; | |
e508a2b6 RD |
5783 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5784 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5785 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
5786 | char * _arg5 = (char *) "panel"; | |
5787 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5788 | wxPoint temp; |
5789 | PyObject * _obj2 = 0; | |
5790 | wxSize temp0; | |
5791 | PyObject * _obj3 = 0; | |
efc5f224 | 5792 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5793 | char _ptemp[128]; |
5794 | ||
5795 | self = self; | |
2f90df85 | 5796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5797 | return NULL; |
1d99702e RD |
5798 | if (_argo0) { |
5799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
5802 | return NULL; | |
5803 | } | |
5804 | } | |
2f90df85 RD |
5805 | if (_obj2) |
5806 | { | |
5807 | _arg2 = &temp; | |
5808 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5809 | return NULL; |
2f90df85 RD |
5810 | } |
5811 | if (_obj3) | |
5812 | { | |
5813 | _arg3 = &temp0; | |
5814 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5815 | return NULL; |
2f90df85 | 5816 | } |
cf694132 RD |
5817 | { |
5818 | wxPy_BEGIN_ALLOW_THREADS; | |
5819 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5820 | ||
5821 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5822 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5823 | } if (_result) { |
5824 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5825 | _resultobj = Py_BuildValue("s",_ptemp); | |
5826 | } else { | |
5827 | Py_INCREF(Py_None); | |
5828 | _resultobj = Py_None; | |
5829 | } | |
8ab979d7 RD |
5830 | return _resultobj; |
5831 | } | |
5832 | ||
09f3d4e6 RD |
5833 | #define new_wxPrePanel() (new wxPanel()) |
5834 | static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5835 | PyObject * _resultobj; | |
5836 | wxPanel * _result; | |
5837 | char *_kwnames[] = { NULL }; | |
5838 | char _ptemp[128]; | |
5839 | ||
5840 | self = self; | |
5841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames)) | |
5842 | return NULL; | |
5843 | { | |
5844 | wxPy_BEGIN_ALLOW_THREADS; | |
5845 | _result = (wxPanel *)new_wxPrePanel(); | |
5846 | ||
5847 | wxPy_END_ALLOW_THREADS; | |
5848 | if (PyErr_Occurred()) return NULL; | |
5849 | } if (_result) { | |
5850 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5851 | _resultobj = Py_BuildValue("s",_ptemp); | |
5852 | } else { | |
5853 | Py_INCREF(Py_None); | |
5854 | _resultobj = Py_None; | |
5855 | } | |
5856 | return _resultobj; | |
5857 | } | |
5858 | ||
5859 | #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
5860 | static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5861 | PyObject * _resultobj; | |
5862 | bool _result; | |
5863 | wxPanel * _arg0; | |
5864 | wxWindow * _arg1; | |
5865 | wxWindowID _arg2; | |
5866 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5867 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5868 | long _arg5 = (long ) wxTAB_TRAVERSAL; | |
5869 | char * _arg6 = (char *) "panel"; | |
5870 | PyObject * _argo0 = 0; | |
5871 | PyObject * _argo1 = 0; | |
5872 | wxPoint temp; | |
5873 | PyObject * _obj3 = 0; | |
5874 | wxSize temp0; | |
5875 | PyObject * _obj4 = 0; | |
5876 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
5877 | ||
5878 | self = self; | |
5879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
5880 | return NULL; | |
5881 | if (_argo0) { | |
5882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
5884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p."); | |
5885 | return NULL; | |
5886 | } | |
5887 | } | |
5888 | if (_argo1) { | |
5889 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5890 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p."); | |
5892 | return NULL; | |
5893 | } | |
5894 | } | |
5895 | if (_obj3) | |
5896 | { | |
5897 | _arg3 = &temp; | |
5898 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5899 | return NULL; | |
5900 | } | |
5901 | if (_obj4) | |
5902 | { | |
5903 | _arg4 = &temp0; | |
5904 | if (! wxSize_helper(_obj4, &_arg4)) | |
5905 | return NULL; | |
5906 | } | |
5907 | { | |
5908 | wxPy_BEGIN_ALLOW_THREADS; | |
5909 | _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
5910 | ||
5911 | wxPy_END_ALLOW_THREADS; | |
5912 | if (PyErr_Occurred()) return NULL; | |
5913 | } _resultobj = Py_BuildValue("i",_result); | |
5914 | return _resultobj; | |
5915 | } | |
5916 | ||
8ab979d7 | 5917 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 5918 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5919 | PyObject * _resultobj; |
5920 | wxPanel * _arg0; | |
1d99702e | 5921 | PyObject * _argo0 = 0; |
efc5f224 | 5922 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5923 | |
5924 | self = self; | |
efc5f224 | 5925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 5926 | return NULL; |
1d99702e RD |
5927 | if (_argo0) { |
5928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
5930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
5931 | return NULL; | |
5932 | } | |
5933 | } | |
cf694132 RD |
5934 | { |
5935 | wxPy_BEGIN_ALLOW_THREADS; | |
5936 | wxPanel_InitDialog(_arg0); | |
5937 | ||
5938 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5939 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5940 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5941 | _resultobj = Py_None; |
5942 | return _resultobj; | |
5943 | } | |
5944 | ||
bb0054cd | 5945 | #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
efc5f224 | 5946 | static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5947 | PyObject * _resultobj; |
5948 | wxButton * _result; | |
5949 | wxPanel * _arg0; | |
1d99702e | 5950 | PyObject * _argo0 = 0; |
efc5f224 | 5951 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5952 | |
5953 | self = self; | |
efc5f224 | 5954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0)) |
bb0054cd | 5955 | return NULL; |
1d99702e RD |
5956 | if (_argo0) { |
5957 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5958 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p."); |
5960 | return NULL; | |
5961 | } | |
5962 | } | |
5963 | { | |
5964 | wxPy_BEGIN_ALLOW_THREADS; | |
5965 | _result = (wxButton *)wxPanel_GetDefaultItem(_arg0); | |
5966 | ||
5967 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5968 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5969 | }{ _resultobj = wxPyMake_wxObject(_result); } |
bb0054cd RD |
5970 | return _resultobj; |
5971 | } | |
5972 | ||
5973 | #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
efc5f224 | 5974 | static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5975 | PyObject * _resultobj; |
5976 | wxPanel * _arg0; | |
5977 | wxButton * _arg1; | |
1d99702e RD |
5978 | PyObject * _argo0 = 0; |
5979 | PyObject * _argo1 = 0; | |
efc5f224 | 5980 | char *_kwnames[] = { "self","btn", NULL }; |
bb0054cd RD |
5981 | |
5982 | self = self; | |
efc5f224 | 5983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 5984 | return NULL; |
1d99702e RD |
5985 | if (_argo0) { |
5986 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5987 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p."); |
5989 | return NULL; | |
5990 | } | |
5991 | } | |
1d99702e RD |
5992 | if (_argo1) { |
5993 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5994 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
bb0054cd RD |
5995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p."); |
5996 | return NULL; | |
5997 | } | |
5998 | } | |
5999 | { | |
6000 | wxPy_BEGIN_ALLOW_THREADS; | |
6001 | wxPanel_SetDefaultItem(_arg0,_arg1); | |
6002 | ||
6003 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6004 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
6005 | } Py_INCREF(Py_None); |
6006 | _resultobj = Py_None; | |
6007 | return _resultobj; | |
6008 | } | |
6009 | ||
bb0054cd RD |
6010 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
6011 | wxScrolledWindow *src; | |
6012 | wxPanel *dest; | |
6013 | src = (wxScrolledWindow *) ptr; | |
6014 | dest = (wxPanel *) src; | |
6015 | return (void *) dest; | |
6016 | } | |
6017 | ||
8ab979d7 RD |
6018 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
6019 | wxScrolledWindow *src; | |
6020 | wxWindow *dest; | |
6021 | src = (wxScrolledWindow *) ptr; | |
6022 | dest = (wxWindow *) src; | |
6023 | return (void *) dest; | |
6024 | } | |
6025 | ||
6026 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
6027 | wxScrolledWindow *src; | |
6028 | wxEvtHandler *dest; | |
6029 | src = (wxScrolledWindow *) ptr; | |
6030 | dest = (wxEvtHandler *) src; | |
6031 | return (void *) dest; | |
6032 | } | |
6033 | ||
9416aa89 RD |
6034 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
6035 | wxScrolledWindow *src; | |
6036 | wxObject *dest; | |
6037 | src = (wxScrolledWindow *) ptr; | |
6038 | dest = (wxObject *) src; | |
6039 | return (void *) dest; | |
6040 | } | |
6041 | ||
8ab979d7 | 6042 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6043 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6044 | PyObject * _resultobj; |
6045 | wxScrolledWindow * _result; | |
6046 | wxWindow * _arg0; | |
1d99702e | 6047 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
6048 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6049 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
6050 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
6051 | char * _arg5 = (char *) "scrolledWindow"; | |
6052 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6053 | wxPoint temp; |
6054 | PyObject * _obj2 = 0; | |
6055 | wxSize temp0; | |
6056 | PyObject * _obj3 = 0; | |
efc5f224 | 6057 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6058 | char _ptemp[128]; |
6059 | ||
6060 | self = self; | |
2f90df85 | 6061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 6062 | return NULL; |
1d99702e RD |
6063 | if (_argo0) { |
6064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
6067 | return NULL; | |
6068 | } | |
6069 | } | |
2f90df85 RD |
6070 | if (_obj2) |
6071 | { | |
6072 | _arg2 = &temp; | |
6073 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6074 | return NULL; |
2f90df85 RD |
6075 | } |
6076 | if (_obj3) | |
6077 | { | |
6078 | _arg3 = &temp0; | |
6079 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6080 | return NULL; |
2f90df85 | 6081 | } |
cf694132 RD |
6082 | { |
6083 | wxPy_BEGIN_ALLOW_THREADS; | |
6084 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
6085 | ||
6086 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6087 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6088 | } if (_result) { |
6089 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6090 | _resultobj = Py_BuildValue("s",_ptemp); | |
6091 | } else { | |
6092 | Py_INCREF(Py_None); | |
6093 | _resultobj = Py_None; | |
6094 | } | |
8ab979d7 RD |
6095 | return _resultobj; |
6096 | } | |
6097 | ||
09f3d4e6 RD |
6098 | #define new_wxPreScrolledWindow() (new wxScrolledWindow()) |
6099 | static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6100 | PyObject * _resultobj; | |
6101 | wxScrolledWindow * _result; | |
6102 | char *_kwnames[] = { NULL }; | |
6103 | char _ptemp[128]; | |
6104 | ||
6105 | self = self; | |
6106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames)) | |
6107 | return NULL; | |
6108 | { | |
6109 | wxPy_BEGIN_ALLOW_THREADS; | |
6110 | _result = (wxScrolledWindow *)new_wxPreScrolledWindow(); | |
6111 | ||
6112 | wxPy_END_ALLOW_THREADS; | |
6113 | if (PyErr_Occurred()) return NULL; | |
6114 | } if (_result) { | |
6115 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6116 | _resultobj = Py_BuildValue("s",_ptemp); | |
6117 | } else { | |
6118 | Py_INCREF(Py_None); | |
6119 | _resultobj = Py_None; | |
6120 | } | |
6121 | return _resultobj; | |
6122 | } | |
6123 | ||
6124 | #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6125 | static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6126 | PyObject * _resultobj; | |
6127 | bool _result; | |
6128 | wxScrolledWindow * _arg0; | |
6129 | wxWindow * _arg1; | |
6130 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6131 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6132 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6133 | long _arg5 = (long ) wxHSCROLL|wxVSCROLL; | |
6134 | char * _arg6 = (char *) "scrolledWindow"; | |
6135 | PyObject * _argo0 = 0; | |
6136 | PyObject * _argo1 = 0; | |
6137 | wxPoint temp; | |
6138 | PyObject * _obj3 = 0; | |
6139 | wxSize temp0; | |
6140 | PyObject * _obj4 = 0; | |
6141 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
6142 | ||
6143 | self = self; | |
6144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
6145 | return NULL; | |
6146 | if (_argo0) { | |
6147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p."); | |
6150 | return NULL; | |
6151 | } | |
6152 | } | |
6153 | if (_argo1) { | |
6154 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6155 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p."); | |
6157 | return NULL; | |
6158 | } | |
6159 | } | |
6160 | if (_obj3) | |
6161 | { | |
6162 | _arg3 = &temp; | |
6163 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6164 | return NULL; | |
6165 | } | |
6166 | if (_obj4) | |
6167 | { | |
6168 | _arg4 = &temp0; | |
6169 | if (! wxSize_helper(_obj4, &_arg4)) | |
6170 | return NULL; | |
6171 | } | |
6172 | { | |
6173 | wxPy_BEGIN_ALLOW_THREADS; | |
6174 | _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
6175 | ||
6176 | wxPy_END_ALLOW_THREADS; | |
6177 | if (PyErr_Occurred()) return NULL; | |
6178 | } _resultobj = Py_BuildValue("i",_result); | |
6179 | return _resultobj; | |
6180 | } | |
6181 | ||
8ab979d7 | 6182 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) |
efc5f224 | 6183 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6184 | PyObject * _resultobj; |
6185 | wxScrolledWindow * _arg0; | |
6186 | bool _arg1; | |
6187 | bool _arg2; | |
1d99702e | 6188 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6189 | int tempbool1; |
6190 | int tempbool2; | |
efc5f224 | 6191 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
6192 | |
6193 | self = self; | |
efc5f224 | 6194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 6195 | return NULL; |
1d99702e RD |
6196 | if (_argo0) { |
6197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
6200 | return NULL; | |
6201 | } | |
6202 | } | |
6203 | _arg1 = (bool ) tempbool1; | |
6204 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6205 | { |
6206 | wxPy_BEGIN_ALLOW_THREADS; | |
6207 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); | |
6208 | ||
6209 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6210 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6211 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6212 | _resultobj = Py_None; |
6213 | return _resultobj; | |
6214 | } | |
6215 | ||
b7e72427 RD |
6216 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
6217 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6218 | PyObject * _resultobj; | |
6219 | int _result; | |
6220 | wxScrolledWindow * _arg0; | |
6221 | int _arg1; | |
6222 | PyObject * _argo0 = 0; | |
6223 | char *_kwnames[] = { "self","orient", NULL }; | |
6224 | ||
6225 | self = self; | |
6226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6227 | return NULL; | |
6228 | if (_argo0) { | |
6229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6232 | return NULL; | |
6233 | } | |
6234 | } | |
6235 | { | |
6236 | wxPy_BEGIN_ALLOW_THREADS; | |
6237 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); | |
6238 | ||
6239 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6240 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6241 | } _resultobj = Py_BuildValue("i",_result); |
6242 | return _resultobj; | |
6243 | } | |
6244 | ||
8ab979d7 | 6245 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 6246 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6247 | PyObject * _resultobj; |
6248 | wxScrolledWindow * _arg0; | |
6249 | int * _arg1; | |
6250 | int temp; | |
6251 | int * _arg2; | |
6252 | int temp0; | |
1d99702e | 6253 | PyObject * _argo0 = 0; |
efc5f224 | 6254 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6255 | |
6256 | self = self; | |
6257 | { | |
6258 | _arg1 = &temp; | |
6259 | } | |
6260 | { | |
6261 | _arg2 = &temp0; | |
6262 | } | |
efc5f224 | 6263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 6264 | return NULL; |
1d99702e RD |
6265 | if (_argo0) { |
6266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
6269 | return NULL; | |
6270 | } | |
6271 | } | |
cf694132 RD |
6272 | { |
6273 | wxPy_BEGIN_ALLOW_THREADS; | |
6274 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); | |
6275 | ||
6276 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6277 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6278 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6279 | _resultobj = Py_None; |
6280 | { | |
6281 | PyObject *o; | |
6282 | o = PyInt_FromLong((long) (*_arg1)); | |
6283 | _resultobj = t_output_helper(_resultobj, o); | |
6284 | } | |
6285 | { | |
6286 | PyObject *o; | |
6287 | o = PyInt_FromLong((long) (*_arg2)); | |
6288 | _resultobj = t_output_helper(_resultobj, o); | |
6289 | } | |
6290 | return _resultobj; | |
6291 | } | |
6292 | ||
b7e72427 RD |
6293 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
6294 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6295 | PyObject * _resultobj; | |
6296 | wxWindow * _result; | |
6297 | wxScrolledWindow * _arg0; | |
6298 | PyObject * _argo0 = 0; | |
6299 | char *_kwnames[] = { "self", NULL }; | |
b7e72427 RD |
6300 | |
6301 | self = self; | |
6302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6303 | return NULL; | |
6304 | if (_argo0) { | |
6305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6308 | return NULL; | |
6309 | } | |
6310 | } | |
6311 | { | |
6312 | wxPy_BEGIN_ALLOW_THREADS; | |
6313 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); | |
6314 | ||
6315 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6316 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6317 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b7e72427 RD |
6318 | return _resultobj; |
6319 | } | |
6320 | ||
8ab979d7 | 6321 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) |
efc5f224 | 6322 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6323 | PyObject * _resultobj; |
6324 | wxScrolledWindow * _arg0; | |
6325 | int * _arg1; | |
6326 | int temp; | |
6327 | int * _arg2; | |
6328 | int temp0; | |
1d99702e | 6329 | PyObject * _argo0 = 0; |
efc5f224 | 6330 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6331 | |
6332 | self = self; | |
6333 | { | |
6334 | _arg1 = &temp; | |
6335 | } | |
6336 | { | |
6337 | _arg2 = &temp0; | |
6338 | } | |
efc5f224 | 6339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
8ab979d7 | 6340 | return NULL; |
1d99702e RD |
6341 | if (_argo0) { |
6342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
6345 | return NULL; | |
6346 | } | |
6347 | } | |
cf694132 RD |
6348 | { |
6349 | wxPy_BEGIN_ALLOW_THREADS; | |
6350 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); | |
6351 | ||
6352 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6353 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6354 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6355 | _resultobj = Py_None; |
6356 | { | |
6357 | PyObject *o; | |
6358 | o = PyInt_FromLong((long) (*_arg1)); | |
6359 | _resultobj = t_output_helper(_resultobj, o); | |
6360 | } | |
6361 | { | |
6362 | PyObject *o; | |
6363 | o = PyInt_FromLong((long) (*_arg2)); | |
6364 | _resultobj = t_output_helper(_resultobj, o); | |
6365 | } | |
6366 | return _resultobj; | |
6367 | } | |
6368 | ||
6369 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
efc5f224 | 6370 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6371 | PyObject * _resultobj; |
6372 | bool _result; | |
6373 | wxScrolledWindow * _arg0; | |
1d99702e | 6374 | PyObject * _argo0 = 0; |
efc5f224 | 6375 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6376 | |
6377 | self = self; | |
efc5f224 | 6378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 6379 | return NULL; |
1d99702e RD |
6380 | if (_argo0) { |
6381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
6384 | return NULL; | |
6385 | } | |
6386 | } | |
cf694132 RD |
6387 | { |
6388 | wxPy_BEGIN_ALLOW_THREADS; | |
6389 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); | |
6390 | ||
6391 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6392 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6393 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6394 | return _resultobj; |
6395 | } | |
6396 | ||
6397 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 6398 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6399 | PyObject * _resultobj; |
6400 | wxScrolledWindow * _arg0; | |
6401 | wxDC * _arg1; | |
1d99702e RD |
6402 | PyObject * _argo0 = 0; |
6403 | PyObject * _argo1 = 0; | |
efc5f224 | 6404 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
6405 | |
6406 | self = self; | |
efc5f224 | 6407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6408 | return NULL; |
1d99702e RD |
6409 | if (_argo0) { |
6410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
6413 | return NULL; | |
6414 | } | |
6415 | } | |
1d99702e RD |
6416 | if (_argo1) { |
6417 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6418 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
6419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
6420 | return NULL; | |
6421 | } | |
6422 | } | |
cf694132 RD |
6423 | { |
6424 | wxPy_BEGIN_ALLOW_THREADS; | |
6425 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); | |
6426 | ||
6427 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6428 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6429 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6430 | _resultobj = Py_None; |
6431 | return _resultobj; | |
6432 | } | |
6433 | ||
6434 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 6435 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6436 | PyObject * _resultobj; |
6437 | wxScrolledWindow * _arg0; | |
6438 | int _arg1; | |
6439 | int _arg2; | |
1d99702e | 6440 | PyObject * _argo0 = 0; |
efc5f224 | 6441 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6442 | |
6443 | self = self; | |
efc5f224 | 6444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6445 | return NULL; |
1d99702e RD |
6446 | if (_argo0) { |
6447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
6450 | return NULL; | |
6451 | } | |
6452 | } | |
cf694132 RD |
6453 | { |
6454 | wxPy_BEGIN_ALLOW_THREADS; | |
6455 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); | |
6456 | ||
6457 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6458 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6459 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6460 | _resultobj = Py_None; |
6461 | return _resultobj; | |
6462 | } | |
6463 | ||
f6bcfd97 | 6464 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6465 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6466 | PyObject * _resultobj; |
6467 | wxScrolledWindow * _arg0; | |
6468 | int _arg1; | |
6469 | int _arg2; | |
6470 | int _arg3; | |
6471 | int _arg4; | |
1d99702e RD |
6472 | int _arg5 = (int ) 0; |
6473 | int _arg6 = (int ) 0; | |
f6bcfd97 | 6474 | int _arg7 = (int ) FALSE; |
1d99702e | 6475 | PyObject * _argo0 = 0; |
f6bcfd97 | 6476 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
6477 | |
6478 | self = self; | |
f6bcfd97 | 6479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 6480 | return NULL; |
1d99702e RD |
6481 | if (_argo0) { |
6482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
6485 | return NULL; | |
6486 | } | |
6487 | } | |
cf694132 RD |
6488 | { |
6489 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6490 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 RD |
6491 | |
6492 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6493 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6494 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6495 | _resultobj = Py_None; |
6496 | return _resultobj; | |
6497 | } | |
6498 | ||
b7e72427 RD |
6499 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
6500 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6501 | PyObject * _resultobj; | |
6502 | wxScrolledWindow * _arg0; | |
6503 | int _arg1; | |
6504 | int _arg2; | |
6505 | PyObject * _argo0 = 0; | |
6506 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6507 | ||
6508 | self = self; | |
6509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6510 | return NULL; | |
6511 | if (_argo0) { | |
6512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6515 | return NULL; | |
6516 | } | |
6517 | } | |
6518 | { | |
6519 | wxPy_BEGIN_ALLOW_THREADS; | |
6520 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); | |
6521 | ||
6522 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6523 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6524 | } Py_INCREF(Py_None); |
6525 | _resultobj = Py_None; | |
6526 | return _resultobj; | |
6527 | } | |
6528 | ||
eb715945 RD |
6529 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
6530 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6531 | PyObject * _resultobj; | |
6532 | wxScrolledWindow * _arg0; | |
6533 | wxWindow * _arg1; | |
6534 | PyObject * _argo0 = 0; | |
6535 | PyObject * _argo1 = 0; | |
6536 | char *_kwnames[] = { "self","window", NULL }; | |
6537 | ||
6538 | self = self; | |
6539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6540 | return NULL; | |
6541 | if (_argo0) { | |
6542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6545 | return NULL; | |
6546 | } | |
6547 | } | |
6548 | if (_argo1) { | |
6549 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6550 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6552 | return NULL; | |
6553 | } | |
6554 | } | |
6555 | { | |
6556 | wxPy_BEGIN_ALLOW_THREADS; | |
6557 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); | |
6558 | ||
6559 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6560 | if (PyErr_Occurred()) return NULL; |
eb715945 RD |
6561 | } Py_INCREF(Py_None); |
6562 | _resultobj = Py_None; | |
6563 | return _resultobj; | |
6564 | } | |
6565 | ||
4c9993c3 RD |
6566 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
6567 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6568 | PyObject * _resultobj; | |
6569 | wxScrolledWindow * _arg0; | |
6570 | int * _arg1; | |
6571 | int temp; | |
6572 | int * _arg2; | |
6573 | int temp0; | |
6574 | PyObject * _argo0 = 0; | |
6575 | char *_kwnames[] = { "self", NULL }; | |
6576 | ||
6577 | self = self; | |
6578 | { | |
6579 | _arg1 = &temp; | |
6580 | } | |
6581 | { | |
6582 | _arg2 = &temp0; | |
6583 | } | |
6584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6585 | return NULL; | |
6586 | if (_argo0) { | |
6587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6590 | return NULL; | |
6591 | } | |
6592 | } | |
6593 | { | |
6594 | wxPy_BEGIN_ALLOW_THREADS; | |
6595 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); | |
6596 | ||
6597 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6598 | if (PyErr_Occurred()) return NULL; |
4c9993c3 RD |
6599 | } Py_INCREF(Py_None); |
6600 | _resultobj = Py_None; | |
6601 | { | |
6602 | PyObject *o; | |
6603 | o = PyInt_FromLong((long) (*_arg1)); | |
6604 | _resultobj = t_output_helper(_resultobj, o); | |
6605 | } | |
6606 | { | |
6607 | PyObject *o; | |
6608 | o = PyInt_FromLong((long) (*_arg2)); | |
6609 | _resultobj = t_output_helper(_resultobj, o); | |
6610 | } | |
6611 | return _resultobj; | |
6612 | } | |
6613 | ||
9d8bd15f RD |
6614 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6615 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6616 | PyObject * _resultobj; | |
6617 | wxScrolledWindow * _arg0; | |
6618 | int _arg1; | |
6619 | int _arg2; | |
6620 | int * _arg3; | |
6621 | int temp; | |
6622 | int * _arg4; | |
6623 | int temp0; | |
6624 | PyObject * _argo0 = 0; | |
6625 | char *_kwnames[] = { "self","x","y", NULL }; | |
6626 | ||
6627 | self = self; | |
6628 | { | |
6629 | _arg3 = &temp; | |
6630 | } | |
6631 | { | |
6632 | _arg4 = &temp0; | |
6633 | } | |
6634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6635 | return NULL; | |
6636 | if (_argo0) { | |
6637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
6640 | return NULL; | |
6641 | } | |
6642 | } | |
6643 | { | |
6644 | wxPy_BEGIN_ALLOW_THREADS; | |
6645 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6646 | ||
6647 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6648 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6649 | } Py_INCREF(Py_None); |
6650 | _resultobj = Py_None; | |
6651 | { | |
6652 | PyObject *o; | |
6653 | o = PyInt_FromLong((long) (*_arg3)); | |
6654 | _resultobj = t_output_helper(_resultobj, o); | |
6655 | } | |
6656 | { | |
6657 | PyObject *o; | |
6658 | o = PyInt_FromLong((long) (*_arg4)); | |
6659 | _resultobj = t_output_helper(_resultobj, o); | |
6660 | } | |
6661 | return _resultobj; | |
6662 | } | |
6663 | ||
6664 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6665 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6666 | PyObject * _resultobj; | |
6667 | wxScrolledWindow * _arg0; | |
6668 | int _arg1; | |
6669 | int _arg2; | |
6670 | int * _arg3; | |
6671 | int temp; | |
6672 | int * _arg4; | |
6673 | int temp0; | |
6674 | PyObject * _argo0 = 0; | |
6675 | char *_kwnames[] = { "self","x","y", NULL }; | |
6676 | ||
6677 | self = self; | |
6678 | { | |
6679 | _arg3 = &temp; | |
6680 | } | |
6681 | { | |
6682 | _arg4 = &temp0; | |
6683 | } | |
6684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6685 | return NULL; | |
6686 | if (_argo0) { | |
6687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
6690 | return NULL; | |
6691 | } | |
6692 | } | |
6693 | { | |
6694 | wxPy_BEGIN_ALLOW_THREADS; | |
6695 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6696 | ||
6697 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6698 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6699 | } Py_INCREF(Py_None); |
6700 | _resultobj = Py_None; | |
6701 | { | |
6702 | PyObject *o; | |
6703 | o = PyInt_FromLong((long) (*_arg3)); | |
6704 | _resultobj = t_output_helper(_resultobj, o); | |
6705 | } | |
6706 | { | |
6707 | PyObject *o; | |
6708 | o = PyInt_FromLong((long) (*_arg4)); | |
6709 | _resultobj = t_output_helper(_resultobj, o); | |
6710 | } | |
6711 | return _resultobj; | |
6712 | } | |
6713 | ||
d1679124 RD |
6714 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
6715 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6716 | PyObject * _resultobj; | |
6717 | wxScrolledWindow * _arg0; | |
6718 | double _arg1; | |
6719 | double _arg2; | |
6720 | PyObject * _argo0 = 0; | |
6721 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
6722 | ||
6723 | self = self; | |
6724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6725 | return NULL; | |
6726 | if (_argo0) { | |
6727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
6730 | return NULL; | |
6731 | } | |
6732 | } | |
6733 | { | |
6734 | wxPy_BEGIN_ALLOW_THREADS; | |
6735 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); | |
6736 | ||
6737 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6738 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6739 | } Py_INCREF(Py_None); |
6740 | _resultobj = Py_None; | |
6741 | return _resultobj; | |
6742 | } | |
6743 | ||
6744 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
6745 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6746 | PyObject * _resultobj; | |
6747 | double _result; | |
6748 | wxScrolledWindow * _arg0; | |
6749 | PyObject * _argo0 = 0; | |
6750 | char *_kwnames[] = { "self", NULL }; | |
6751 | ||
6752 | self = self; | |
6753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
6754 | return NULL; | |
6755 | if (_argo0) { | |
6756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
6759 | return NULL; | |
6760 | } | |
6761 | } | |
6762 | { | |
6763 | wxPy_BEGIN_ALLOW_THREADS; | |
6764 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); | |
6765 | ||
6766 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6767 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6768 | } _resultobj = Py_BuildValue("d",_result); |
6769 | return _resultobj; | |
6770 | } | |
6771 | ||
6772 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
6773 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6774 | PyObject * _resultobj; | |
6775 | double _result; | |
6776 | wxScrolledWindow * _arg0; | |
6777 | PyObject * _argo0 = 0; | |
6778 | char *_kwnames[] = { "self", NULL }; | |
6779 | ||
6780 | self = self; | |
6781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
6782 | return NULL; | |
6783 | if (_argo0) { | |
6784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
6787 | return NULL; | |
6788 | } | |
6789 | } | |
6790 | { | |
6791 | wxPy_BEGIN_ALLOW_THREADS; | |
6792 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); | |
6793 | ||
6794 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6795 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6796 | } _resultobj = Py_BuildValue("d",_result); |
6797 | return _resultobj; | |
6798 | } | |
6799 | ||
6800 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
6801 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6802 | PyObject * _resultobj; | |
6803 | wxScrolledWindow * _arg0; | |
6804 | PyObject * _argo0 = 0; | |
6805 | char *_kwnames[] = { "self", NULL }; | |
6806 | ||
6807 | self = self; | |
6808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
6809 | return NULL; | |
6810 | if (_argo0) { | |
6811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
6814 | return NULL; | |
6815 | } | |
6816 | } | |
6817 | { | |
6818 | wxPy_BEGIN_ALLOW_THREADS; | |
6819 | wxScrolledWindow_AdjustScrollbars(_arg0); | |
6820 | ||
6821 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6822 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6823 | } Py_INCREF(Py_None); |
6824 | _resultobj = Py_None; | |
6825 | return _resultobj; | |
6826 | } | |
6827 | ||
8ab979d7 RD |
6828 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
6829 | wxMenu *src; | |
6830 | wxEvtHandler *dest; | |
6831 | src = (wxMenu *) ptr; | |
6832 | dest = (wxEvtHandler *) src; | |
6833 | return (void *) dest; | |
6834 | } | |
6835 | ||
9416aa89 RD |
6836 | static void *SwigwxMenuTowxObject(void *ptr) { |
6837 | wxMenu *src; | |
6838 | wxObject *dest; | |
6839 | src = (wxMenu *) ptr; | |
6840 | dest = (wxObject *) src; | |
6841 | return (void *) dest; | |
6842 | } | |
6843 | ||
8bf5d46e | 6844 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) |
efc5f224 | 6845 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6846 | PyObject * _resultobj; |
6847 | wxMenu * _result; | |
1d99702e RD |
6848 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
6849 | long _arg1 = (long ) 0; | |
8ab979d7 | 6850 | PyObject * _obj0 = 0; |
efc5f224 | 6851 | char *_kwnames[] = { "title","style", NULL }; |
8ab979d7 RD |
6852 | char _ptemp[128]; |
6853 | ||
6854 | self = self; | |
efc5f224 | 6855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
8ab979d7 RD |
6856 | return NULL; |
6857 | if (_obj0) | |
6858 | { | |
185d7c3e RD |
6859 | #if PYTHON_API_VERSION >= 1009 |
6860 | char* tmpPtr; int tmpSize; | |
6861 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 6862 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6863 | return NULL; |
6864 | } | |
6865 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
6866 | return NULL; | |
6867 | _arg0 = new wxString(tmpPtr, tmpSize); | |
6868 | #else | |
8ab979d7 RD |
6869 | if (!PyString_Check(_obj0)) { |
6870 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6871 | return NULL; | |
6872 | } | |
185d7c3e RD |
6873 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
6874 | #endif | |
8ab979d7 | 6875 | } |
cf694132 RD |
6876 | { |
6877 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 6878 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
cf694132 RD |
6879 | |
6880 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6881 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6882 | } if (_result) { |
6883 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
6884 | _resultobj = Py_BuildValue("s",_ptemp); | |
6885 | } else { | |
6886 | Py_INCREF(Py_None); | |
6887 | _resultobj = Py_None; | |
6888 | } | |
8ab979d7 RD |
6889 | { |
6890 | if (_obj0) | |
6891 | delete _arg0; | |
6892 | } | |
6893 | return _resultobj; | |
6894 | } | |
6895 | ||
6896 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6897 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6898 | PyObject * _resultobj; |
6899 | wxMenu * _arg0; | |
6900 | int _arg1; | |
6901 | wxString * _arg2; | |
1d99702e | 6902 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; |
926bb76c | 6903 | int _arg4 = (int ) FALSE; |
1d99702e | 6904 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6905 | PyObject * _obj2 = 0; |
6906 | PyObject * _obj3 = 0; | |
efc5f224 | 6907 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; |
8ab979d7 RD |
6908 | |
6909 | self = self; | |
926bb76c | 6910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
8ab979d7 | 6911 | return NULL; |
1d99702e RD |
6912 | if (_argo0) { |
6913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); |
6916 | return NULL; | |
6917 | } | |
6918 | } | |
6919 | { | |
185d7c3e RD |
6920 | #if PYTHON_API_VERSION >= 1009 |
6921 | char* tmpPtr; int tmpSize; | |
6922 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 6923 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6924 | return NULL; |
6925 | } | |
6926 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6927 | return NULL; | |
6928 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6929 | #else | |
8ab979d7 RD |
6930 | if (!PyString_Check(_obj2)) { |
6931 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6932 | return NULL; | |
6933 | } | |
185d7c3e RD |
6934 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6935 | #endif | |
8ab979d7 RD |
6936 | } |
6937 | if (_obj3) | |
6938 | { | |
185d7c3e RD |
6939 | #if PYTHON_API_VERSION >= 1009 |
6940 | char* tmpPtr; int tmpSize; | |
6941 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 6942 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6943 | return NULL; |
6944 | } | |
6945 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6946 | return NULL; | |
6947 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6948 | #else | |
8ab979d7 RD |
6949 | if (!PyString_Check(_obj3)) { |
6950 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6951 | return NULL; | |
6952 | } | |
185d7c3e RD |
6953 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
6954 | #endif | |
8ab979d7 | 6955 | } |
cf694132 RD |
6956 | { |
6957 | wxPy_BEGIN_ALLOW_THREADS; | |
6958 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
6959 | ||
6960 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6961 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6962 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6963 | _resultobj = Py_None; |
6964 | { | |
6965 | if (_obj2) | |
6966 | delete _arg2; | |
6967 | } | |
6968 | { | |
6969 | if (_obj3) | |
6970 | delete _arg3; | |
6971 | } | |
6972 | return _resultobj; | |
6973 | } | |
6974 | ||
6975 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6976 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6977 | PyObject * _resultobj; |
6978 | wxMenu * _arg0; | |
6979 | int _arg1; | |
6980 | wxString * _arg2; | |
6981 | wxMenu * _arg3; | |
1d99702e RD |
6982 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; |
6983 | PyObject * _argo0 = 0; | |
8ab979d7 | 6984 | PyObject * _obj2 = 0; |
1d99702e | 6985 | PyObject * _argo3 = 0; |
8ab979d7 | 6986 | PyObject * _obj4 = 0; |
efc5f224 | 6987 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; |
8ab979d7 RD |
6988 | |
6989 | self = self; | |
efc5f224 | 6990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 6991 | return NULL; |
1d99702e RD |
6992 | if (_argo0) { |
6993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
6996 | return NULL; | |
6997 | } | |
6998 | } | |
6999 | { | |
185d7c3e RD |
7000 | #if PYTHON_API_VERSION >= 1009 |
7001 | char* tmpPtr; int tmpSize; | |
7002 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7003 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7004 | return NULL; |
7005 | } | |
7006 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7007 | return NULL; | |
7008 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7009 | #else | |
8ab979d7 RD |
7010 | if (!PyString_Check(_obj2)) { |
7011 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7012 | return NULL; | |
7013 | } | |
185d7c3e RD |
7014 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7015 | #endif | |
8ab979d7 | 7016 | } |
1d99702e RD |
7017 | if (_argo3) { |
7018 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7019 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8ab979d7 RD |
7020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
7021 | return NULL; | |
7022 | } | |
7023 | } | |
7024 | if (_obj4) | |
7025 | { | |
185d7c3e RD |
7026 | #if PYTHON_API_VERSION >= 1009 |
7027 | char* tmpPtr; int tmpSize; | |
7028 | if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) { | |
794c5cb1 | 7029 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7030 | return NULL; |
7031 | } | |
7032 | if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1) | |
7033 | return NULL; | |
7034 | _arg4 = new wxString(tmpPtr, tmpSize); | |
7035 | #else | |
8ab979d7 RD |
7036 | if (!PyString_Check(_obj4)) { |
7037 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7038 | return NULL; | |
7039 | } | |
185d7c3e RD |
7040 | _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4)); |
7041 | #endif | |
8ab979d7 | 7042 | } |
cf694132 RD |
7043 | { |
7044 | wxPy_BEGIN_ALLOW_THREADS; | |
7045 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
7046 | ||
7047 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7048 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7049 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7050 | _resultobj = Py_None; |
7051 | { | |
7052 | if (_obj2) | |
7053 | delete _arg2; | |
7054 | } | |
7055 | { | |
7056 | if (_obj4) | |
7057 | delete _arg4; | |
7058 | } | |
7059 | return _resultobj; | |
7060 | } | |
7061 | ||
af309447 | 7062 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
efc5f224 | 7063 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
7064 | PyObject * _resultobj; |
7065 | wxMenu * _arg0; | |
7066 | wxMenuItem * _arg1; | |
1d99702e RD |
7067 | PyObject * _argo0 = 0; |
7068 | PyObject * _argo1 = 0; | |
efc5f224 | 7069 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
7070 | |
7071 | self = self; | |
efc5f224 | 7072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 7073 | return NULL; |
1d99702e RD |
7074 | if (_argo0) { |
7075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
af309447 RD |
7077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); |
7078 | return NULL; | |
7079 | } | |
7080 | } | |
1d99702e RD |
7081 | if (_argo1) { |
7082 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7083 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
af309447 RD |
7084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); |
7085 | return NULL; | |
7086 | } | |
7087 | } | |
cf694132 RD |
7088 | { |
7089 | wxPy_BEGIN_ALLOW_THREADS; | |
7090 | wxMenu_AppendItem(_arg0,_arg1); | |
7091 | ||
7092 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7093 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7094 | } Py_INCREF(Py_None); |
af309447 RD |
7095 | _resultobj = Py_None; |
7096 | return _resultobj; | |
7097 | } | |
7098 | ||
8ab979d7 | 7099 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
efc5f224 | 7100 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7101 | PyObject * _resultobj; |
7102 | wxMenu * _arg0; | |
1d99702e | 7103 | PyObject * _argo0 = 0; |
efc5f224 | 7104 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7105 | |
7106 | self = self; | |
efc5f224 | 7107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
8ab979d7 | 7108 | return NULL; |
1d99702e RD |
7109 | if (_argo0) { |
7110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
7113 | return NULL; | |
7114 | } | |
7115 | } | |
cf694132 RD |
7116 | { |
7117 | wxPy_BEGIN_ALLOW_THREADS; | |
7118 | wxMenu_AppendSeparator(_arg0); | |
7119 | ||
7120 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7121 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7122 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7123 | _resultobj = Py_None; |
7124 | return _resultobj; | |
7125 | } | |
7126 | ||
7127 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 7128 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7129 | PyObject * _resultobj; |
7130 | wxMenu * _arg0; | |
1d99702e | 7131 | PyObject * _argo0 = 0; |
efc5f224 | 7132 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7133 | |
7134 | self = self; | |
efc5f224 | 7135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 7136 | return NULL; |
1d99702e RD |
7137 | if (_argo0) { |
7138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
7141 | return NULL; | |
7142 | } | |
7143 | } | |
cf694132 RD |
7144 | { |
7145 | wxPy_BEGIN_ALLOW_THREADS; | |
7146 | wxMenu_Break(_arg0); | |
7147 | ||
7148 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7149 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7150 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7151 | _resultobj = Py_None; |
7152 | return _resultobj; | |
7153 | } | |
7154 | ||
7155 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 7156 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7157 | PyObject * _resultobj; |
7158 | wxMenu * _arg0; | |
7159 | int _arg1; | |
7160 | bool _arg2; | |
1d99702e | 7161 | PyObject * _argo0 = 0; |
8ab979d7 | 7162 | int tempbool2; |
efc5f224 | 7163 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
7164 | |
7165 | self = self; | |
efc5f224 | 7166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7167 | return NULL; |
1d99702e RD |
7168 | if (_argo0) { |
7169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
7172 | return NULL; | |
7173 | } | |
7174 | } | |
7175 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
7176 | { |
7177 | wxPy_BEGIN_ALLOW_THREADS; | |
7178 | wxMenu_Check(_arg0,_arg1,_arg2); | |
7179 | ||
7180 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7181 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7182 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7183 | _resultobj = Py_None; |
7184 | return _resultobj; | |
7185 | } | |
7186 | ||
b1462dfa RD |
7187 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
7188 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7189 | PyObject * _resultobj; | |
7190 | bool _result; | |
7191 | wxMenu * _arg0; | |
7192 | int _arg1; | |
7193 | PyObject * _argo0 = 0; | |
7194 | char *_kwnames[] = { "self","id", NULL }; | |
7195 | ||
7196 | self = self; | |
7197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
7198 | return NULL; | |
7199 | if (_argo0) { | |
7200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
7203 | return NULL; | |
7204 | } | |
7205 | } | |
7206 | { | |
7207 | wxPy_BEGIN_ALLOW_THREADS; | |
7208 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
7209 | ||
7210 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7211 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7212 | } _resultobj = Py_BuildValue("i",_result); |
7213 | return _resultobj; | |
7214 | } | |
7215 | ||
8ab979d7 | 7216 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 7217 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7218 | PyObject * _resultobj; |
7219 | wxMenu * _arg0; | |
7220 | int _arg1; | |
7221 | bool _arg2; | |
1d99702e | 7222 | PyObject * _argo0 = 0; |
8ab979d7 | 7223 | int tempbool2; |
efc5f224 | 7224 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
7225 | |
7226 | self = self; | |
efc5f224 | 7227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7228 | return NULL; |
1d99702e RD |
7229 | if (_argo0) { |
7230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
7233 | return NULL; | |
7234 | } | |
7235 | } | |
7236 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
7237 | { |
7238 | wxPy_BEGIN_ALLOW_THREADS; | |
7239 | wxMenu_Enable(_arg0,_arg1,_arg2); | |
7240 | ||
7241 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7242 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7243 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7244 | _resultobj = Py_None; |
7245 | return _resultobj; | |
7246 | } | |
7247 | ||
b1462dfa RD |
7248 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
7249 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7250 | PyObject * _resultobj; | |
7251 | bool _result; | |
7252 | wxMenu * _arg0; | |
7253 | int _arg1; | |
7254 | PyObject * _argo0 = 0; | |
7255 | char *_kwnames[] = { "self","id", NULL }; | |
7256 | ||
7257 | self = self; | |
7258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
7259 | return NULL; | |
7260 | if (_argo0) { | |
7261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
7264 | return NULL; | |
7265 | } | |
7266 | } | |
7267 | { | |
7268 | wxPy_BEGIN_ALLOW_THREADS; | |
7269 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); | |
7270 | ||
7271 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7272 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7273 | } _resultobj = Py_BuildValue("i",_result); |
7274 | return _resultobj; | |
7275 | } | |
7276 | ||
8ab979d7 | 7277 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 7278 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7279 | PyObject * _resultobj; |
7280 | int _result; | |
7281 | wxMenu * _arg0; | |
7282 | wxString * _arg1; | |
1d99702e | 7283 | PyObject * _argo0 = 0; |
8ab979d7 | 7284 | PyObject * _obj1 = 0; |
efc5f224 | 7285 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
7286 | |
7287 | self = self; | |
efc5f224 | 7288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7289 | return NULL; |
1d99702e RD |
7290 | if (_argo0) { |
7291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
7294 | return NULL; | |
7295 | } | |
7296 | } | |
7297 | { | |
185d7c3e RD |
7298 | #if PYTHON_API_VERSION >= 1009 |
7299 | char* tmpPtr; int tmpSize; | |
7300 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7301 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7302 | return NULL; |
7303 | } | |
7304 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7305 | return NULL; | |
7306 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7307 | #else | |
8ab979d7 RD |
7308 | if (!PyString_Check(_obj1)) { |
7309 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7310 | return NULL; | |
7311 | } | |
185d7c3e RD |
7312 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7313 | #endif | |
8ab979d7 | 7314 | } |
cf694132 RD |
7315 | { |
7316 | wxPy_BEGIN_ALLOW_THREADS; | |
7317 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); | |
7318 | ||
7319 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7320 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7321 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7322 | { |
7323 | if (_obj1) | |
7324 | delete _arg1; | |
7325 | } | |
7326 | return _resultobj; | |
7327 | } | |
7328 | ||
b1462dfa RD |
7329 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
7330 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7331 | PyObject * _resultobj; | |
7332 | wxMenuItem * _result; | |
7333 | wxMenu * _arg0; | |
7334 | int _arg1; | |
7335 | PyObject * _argo0 = 0; | |
7336 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
7337 | |
7338 | self = self; | |
7339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
7340 | return NULL; | |
7341 | if (_argo0) { | |
7342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
7345 | return NULL; | |
7346 | } | |
7347 | } | |
7348 | { | |
7349 | wxPy_BEGIN_ALLOW_THREADS; | |
7350 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); | |
7351 | ||
7352 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7353 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7354 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
7355 | return _resultobj; |
7356 | } | |
7357 | ||
8ab979d7 | 7358 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 7359 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7360 | PyObject * _resultobj; |
7361 | wxString * _result; | |
7362 | wxMenu * _arg0; | |
1d99702e | 7363 | PyObject * _argo0 = 0; |
efc5f224 | 7364 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7365 | |
7366 | self = self; | |
efc5f224 | 7367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 7368 | return NULL; |
1d99702e RD |
7369 | if (_argo0) { |
7370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
7373 | return NULL; | |
7374 | } | |
7375 | } | |
8ab979d7 | 7376 | { |
cf694132 RD |
7377 | wxPy_BEGIN_ALLOW_THREADS; |
7378 | _result = new wxString (wxMenu_GetTitle(_arg0)); | |
7379 | ||
7380 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7381 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7382 | }{ |
eec92d76 | 7383 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7384 | } |
7385 | { | |
7386 | delete _result; | |
7387 | } | |
7388 | return _resultobj; | |
7389 | } | |
7390 | ||
7391 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 7392 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7393 | PyObject * _resultobj; |
7394 | wxMenu * _arg0; | |
7395 | wxString * _arg1; | |
1d99702e | 7396 | PyObject * _argo0 = 0; |
8ab979d7 | 7397 | PyObject * _obj1 = 0; |
efc5f224 | 7398 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
7399 | |
7400 | self = self; | |
efc5f224 | 7401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7402 | return NULL; |
1d99702e RD |
7403 | if (_argo0) { |
7404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
7407 | return NULL; | |
7408 | } | |
7409 | } | |
7410 | { | |
185d7c3e RD |
7411 | #if PYTHON_API_VERSION >= 1009 |
7412 | char* tmpPtr; int tmpSize; | |
7413 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7414 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7415 | return NULL; |
7416 | } | |
7417 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7418 | return NULL; | |
7419 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7420 | #else | |
8ab979d7 RD |
7421 | if (!PyString_Check(_obj1)) { |
7422 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7423 | return NULL; | |
7424 | } | |
185d7c3e RD |
7425 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7426 | #endif | |
8ab979d7 | 7427 | } |
cf694132 RD |
7428 | { |
7429 | wxPy_BEGIN_ALLOW_THREADS; | |
7430 | wxMenu_SetTitle(_arg0,*_arg1); | |
7431 | ||
7432 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7433 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7434 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7435 | _resultobj = Py_None; |
7436 | { | |
7437 | if (_obj1) | |
7438 | delete _arg1; | |
7439 | } | |
7440 | return _resultobj; | |
7441 | } | |
7442 | ||
b1462dfa RD |
7443 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
7444 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7445 | PyObject * _resultobj; |
b1462dfa | 7446 | wxString * _result; |
8ab979d7 RD |
7447 | wxMenu * _arg0; |
7448 | int _arg1; | |
1d99702e | 7449 | PyObject * _argo0 = 0; |
efc5f224 | 7450 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7451 | |
7452 | self = self; | |
b1462dfa | 7453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7454 | return NULL; |
1d99702e RD |
7455 | if (_argo0) { |
7456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7459 | return NULL; |
7460 | } | |
7461 | } | |
cf694132 RD |
7462 | { |
7463 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7464 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 RD |
7465 | |
7466 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7467 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7468 | }{ |
eec92d76 | 7469 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
7470 | } |
7471 | { | |
7472 | delete _result; | |
7473 | } | |
8ab979d7 RD |
7474 | return _resultobj; |
7475 | } | |
7476 | ||
b1462dfa RD |
7477 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
7478 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7479 | PyObject * _resultobj; |
8ab979d7 RD |
7480 | wxMenu * _arg0; |
7481 | int _arg1; | |
b1462dfa | 7482 | wxString * _arg2; |
1d99702e | 7483 | PyObject * _argo0 = 0; |
b1462dfa RD |
7484 | PyObject * _obj2 = 0; |
7485 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
7486 | |
7487 | self = self; | |
b1462dfa | 7488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7489 | return NULL; |
1d99702e RD |
7490 | if (_argo0) { |
7491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7494 | return NULL; |
7495 | } | |
7496 | } | |
b1462dfa | 7497 | { |
185d7c3e RD |
7498 | #if PYTHON_API_VERSION >= 1009 |
7499 | char* tmpPtr; int tmpSize; | |
7500 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7501 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7502 | return NULL; |
7503 | } | |
7504 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7505 | return NULL; | |
7506 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7507 | #else | |
b1462dfa RD |
7508 | if (!PyString_Check(_obj2)) { |
7509 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7510 | return NULL; | |
7511 | } | |
185d7c3e RD |
7512 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7513 | #endif | |
b1462dfa | 7514 | } |
8ab979d7 | 7515 | { |
cf694132 | 7516 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7517 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
7518 | |
7519 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7520 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7521 | } Py_INCREF(Py_None); |
7522 | _resultobj = Py_None; | |
8ab979d7 | 7523 | { |
b1462dfa RD |
7524 | if (_obj2) |
7525 | delete _arg2; | |
8ab979d7 RD |
7526 | } |
7527 | return _resultobj; | |
7528 | } | |
7529 | ||
b1462dfa RD |
7530 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
7531 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7532 | PyObject * _resultobj; |
7533 | wxString * _result; | |
7534 | wxMenu * _arg0; | |
7535 | int _arg1; | |
1d99702e | 7536 | PyObject * _argo0 = 0; |
efc5f224 | 7537 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7538 | |
7539 | self = self; | |
b1462dfa | 7540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7541 | return NULL; |
1d99702e RD |
7542 | if (_argo0) { |
7543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
7546 | return NULL; |
7547 | } | |
7548 | } | |
8ab979d7 | 7549 | { |
cf694132 | 7550 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7551 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
7552 | |
7553 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7554 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7555 | }{ |
eec92d76 | 7556 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7557 | } |
7558 | { | |
7559 | delete _result; | |
7560 | } | |
7561 | return _resultobj; | |
7562 | } | |
7563 | ||
7564 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 7565 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7566 | PyObject * _resultobj; |
7567 | wxMenu * _arg0; | |
7568 | int _arg1; | |
7569 | wxString * _arg2; | |
1d99702e | 7570 | PyObject * _argo0 = 0; |
8ab979d7 | 7571 | PyObject * _obj2 = 0; |
efc5f224 | 7572 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
7573 | |
7574 | self = self; | |
efc5f224 | 7575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7576 | return NULL; |
1d99702e RD |
7577 | if (_argo0) { |
7578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
7581 | return NULL; | |
7582 | } | |
7583 | } | |
7584 | { | |
185d7c3e RD |
7585 | #if PYTHON_API_VERSION >= 1009 |
7586 | char* tmpPtr; int tmpSize; | |
7587 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7588 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7589 | return NULL; |
7590 | } | |
7591 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7592 | return NULL; | |
7593 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7594 | #else | |
8ab979d7 RD |
7595 | if (!PyString_Check(_obj2)) { |
7596 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7597 | return NULL; | |
7598 | } | |
185d7c3e RD |
7599 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7600 | #endif | |
8ab979d7 | 7601 | } |
cf694132 RD |
7602 | { |
7603 | wxPy_BEGIN_ALLOW_THREADS; | |
7604 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); | |
7605 | ||
7606 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7607 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7608 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7609 | _resultobj = Py_None; |
7610 | { | |
7611 | if (_obj2) | |
7612 | delete _arg2; | |
7613 | } | |
7614 | return _resultobj; | |
7615 | } | |
7616 | ||
b1462dfa RD |
7617 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
7618 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7619 | PyObject * _resultobj; |
8ab979d7 | 7620 | wxMenu * _arg0; |
b1462dfa | 7621 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 7622 | PyObject * _argo0 = 0; |
b1462dfa RD |
7623 | PyObject * _argo1 = 0; |
7624 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
7625 | |
7626 | self = self; | |
b1462dfa | 7627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7628 | return NULL; |
1d99702e RD |
7629 | if (_argo0) { |
7630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
7632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
7633 | return NULL; | |
7634 | } | |
7635 | } | |
7636 | if (_argo1) { | |
7637 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7638 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
7640 | return NULL; |
7641 | } | |
7642 | } | |
cf694132 RD |
7643 | { |
7644 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7645 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 RD |
7646 | |
7647 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7648 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7649 | } Py_INCREF(Py_None); |
7650 | _resultobj = Py_None; | |
8ab979d7 RD |
7651 | return _resultobj; |
7652 | } | |
7653 | ||
b1462dfa RD |
7654 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7655 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7656 | PyObject * _resultobj; |
7657 | bool _result; | |
7658 | wxMenu * _arg0; | |
7659 | int _arg1; | |
1d99702e | 7660 | PyObject * _argo0 = 0; |
efc5f224 | 7661 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7662 | |
7663 | self = self; | |
b1462dfa | 7664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7665 | return NULL; |
1d99702e RD |
7666 | if (_argo0) { |
7667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
7670 | return NULL; |
7671 | } | |
7672 | } | |
cf694132 RD |
7673 | { |
7674 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7675 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 RD |
7676 | |
7677 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7678 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7679 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7680 | return _resultobj; |
7681 | } | |
7682 | ||
b1462dfa RD |
7683 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7684 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7685 | PyObject * _resultobj; |
b1462dfa | 7686 | bool _result; |
8ab979d7 | 7687 | wxMenu * _arg0; |
b1462dfa | 7688 | wxMenuItem * _arg1; |
1d99702e | 7689 | PyObject * _argo0 = 0; |
b1462dfa RD |
7690 | PyObject * _argo1 = 0; |
7691 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7692 | |
7693 | self = self; | |
b1462dfa | 7694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7695 | return NULL; |
1d99702e RD |
7696 | if (_argo0) { |
7697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
7700 | return NULL; |
7701 | } | |
7702 | } | |
b1462dfa RD |
7703 | if (_argo1) { |
7704 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7705 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7707 | return NULL; |
b1462dfa | 7708 | } |
8ab979d7 | 7709 | } |
cf694132 RD |
7710 | { |
7711 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7712 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 RD |
7713 | |
7714 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7715 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7716 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7717 | return _resultobj; |
7718 | } | |
7719 | ||
b1462dfa RD |
7720 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
7721 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7722 | PyObject * _resultobj; |
b1462dfa | 7723 | bool _result; |
8bf5d46e | 7724 | wxMenu * _arg0; |
b1462dfa RD |
7725 | size_t _arg1; |
7726 | wxMenuItem * _arg2; | |
1d99702e | 7727 | PyObject * _argo0 = 0; |
b1462dfa RD |
7728 | PyObject * _argo2 = 0; |
7729 | char *_kwnames[] = { "self","pos","item", NULL }; | |
8ab979d7 RD |
7730 | |
7731 | self = self; | |
b1462dfa | 7732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 7733 | return NULL; |
1d99702e RD |
7734 | if (_argo0) { |
7735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); |
8bf5d46e RD |
7738 | return NULL; |
7739 | } | |
7740 | } | |
b1462dfa RD |
7741 | if (_argo2) { |
7742 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7743 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7745 | return NULL; |
7746 | } | |
7747 | } | |
cf694132 RD |
7748 | { |
7749 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7750 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); |
cf694132 RD |
7751 | |
7752 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7753 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7754 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7755 | return _resultobj; |
7756 | } | |
7757 | ||
b1462dfa RD |
7758 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7759 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 7760 | PyObject * _resultobj; |
b1462dfa | 7761 | wxMenuItem * _result; |
efc5f224 | 7762 | wxMenu * _arg0; |
b1462dfa | 7763 | int _arg1; |
efc5f224 | 7764 | PyObject * _argo0 = 0; |
b1462dfa | 7765 | char *_kwnames[] = { "self","id", NULL }; |
efc5f224 RD |
7766 | |
7767 | self = self; | |
b1462dfa | 7768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
7769 | return NULL; |
7770 | if (_argo0) { | |
7771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
7774 | return NULL; |
7775 | } | |
7776 | } | |
7777 | { | |
7778 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7779 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 RD |
7780 | |
7781 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7782 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7783 | }{ _resultobj = wxPyMake_wxObject(_result); } |
efc5f224 RD |
7784 | return _resultobj; |
7785 | } | |
7786 | ||
b1462dfa RD |
7787 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7788 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7789 | PyObject * _resultobj; |
b1462dfa RD |
7790 | wxMenuItem * _result; |
7791 | wxMenu * _arg0; | |
7792 | wxMenuItem * _arg1; | |
7793 | PyObject * _argo0 = 0; | |
7794 | PyObject * _argo1 = 0; | |
7795 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7796 | |
7797 | self = self; | |
b1462dfa RD |
7798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
7799 | return NULL; | |
7800 | if (_argo0) { | |
7801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
7804 | return NULL; | |
7805 | } | |
7806 | } | |
7807 | if (_argo1) { | |
7808 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7809 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7811 | return NULL; |
b1462dfa RD |
7812 | } |
7813 | } | |
cf694132 RD |
7814 | { |
7815 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7816 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 RD |
7817 | |
7818 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7819 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7820 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
7821 | return _resultobj; |
7822 | } | |
7823 | ||
eb715945 | 7824 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 7825 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7826 | PyObject * _resultobj; |
b1462dfa | 7827 | wxMenu * _arg0; |
1d99702e | 7828 | PyObject * _argo0 = 0; |
b1462dfa | 7829 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7830 | |
7831 | self = self; | |
b1462dfa | 7832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 7833 | return NULL; |
1d99702e RD |
7834 | if (_argo0) { |
7835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
7838 | return NULL; |
7839 | } | |
7840 | } | |
cf694132 RD |
7841 | { |
7842 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7843 | wxMenu_Destroy(_arg0); |
cf694132 RD |
7844 | |
7845 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7846 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7847 | } Py_INCREF(Py_None); |
8ab979d7 | 7848 | _resultobj = Py_None; |
8ab979d7 RD |
7849 | return _resultobj; |
7850 | } | |
7851 | ||
b1462dfa RD |
7852 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7853 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7854 | PyObject * _resultobj; |
b1462dfa RD |
7855 | bool _result; |
7856 | wxMenu * _arg0; | |
8ab979d7 | 7857 | int _arg1; |
1d99702e | 7858 | PyObject * _argo0 = 0; |
b1462dfa | 7859 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7860 | |
7861 | self = self; | |
b1462dfa | 7862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7863 | return NULL; |
1d99702e RD |
7864 | if (_argo0) { |
7865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
7868 | return NULL; |
7869 | } | |
7870 | } | |
cf694132 RD |
7871 | { |
7872 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7873 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 RD |
7874 | |
7875 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7876 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7877 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7878 | return _resultobj; |
7879 | } | |
7880 | ||
b1462dfa RD |
7881 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7882 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7883 | PyObject * _resultobj; |
b1462dfa RD |
7884 | bool _result; |
7885 | wxMenu * _arg0; | |
7886 | wxMenuItem * _arg1; | |
1d99702e | 7887 | PyObject * _argo0 = 0; |
b1462dfa RD |
7888 | PyObject * _argo1 = 0; |
7889 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7890 | |
7891 | self = self; | |
b1462dfa | 7892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7893 | return NULL; |
1d99702e RD |
7894 | if (_argo0) { |
7895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
7898 | return NULL; | |
7899 | } | |
7900 | } | |
7901 | if (_argo1) { | |
7902 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7903 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7905 | return NULL; |
7906 | } | |
7907 | } | |
cf694132 RD |
7908 | { |
7909 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7910 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 RD |
7911 | |
7912 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7913 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7914 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7915 | return _resultobj; |
7916 | } | |
7917 | ||
b1462dfa RD |
7918 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
7919 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7920 | PyObject * _resultobj; |
b1462dfa RD |
7921 | size_t _result; |
7922 | wxMenu * _arg0; | |
1d99702e | 7923 | PyObject * _argo0 = 0; |
b1462dfa | 7924 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7925 | |
7926 | self = self; | |
b1462dfa | 7927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 7928 | return NULL; |
1d99702e RD |
7929 | if (_argo0) { |
7930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
7933 | return NULL; |
7934 | } | |
7935 | } | |
cf694132 RD |
7936 | { |
7937 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7938 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 RD |
7939 | |
7940 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7941 | if (PyErr_Occurred()) return NULL; |
2abc0a0f | 7942 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7943 | return _resultobj; |
7944 | } | |
7945 | ||
b1462dfa RD |
7946 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
7947 | wxMenuItemList& list = self->GetMenuItems(); | |
7948 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
7949 | } | |
7950 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7951 | PyObject * _resultobj; |
b1462dfa RD |
7952 | PyObject * _result; |
7953 | wxMenu * _arg0; | |
1d99702e | 7954 | PyObject * _argo0 = 0; |
b1462dfa | 7955 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7956 | |
7957 | self = self; | |
b1462dfa | 7958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 7959 | return NULL; |
1d99702e RD |
7960 | if (_argo0) { |
7961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
7964 | return NULL; |
7965 | } | |
7966 | } | |
cf694132 RD |
7967 | { |
7968 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7969 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 RD |
7970 | |
7971 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7972 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7973 | }{ |
7974 | _resultobj = _result; | |
7975 | } | |
8ab979d7 RD |
7976 | return _resultobj; |
7977 | } | |
7978 | ||
b1462dfa RD |
7979 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
7980 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7981 | PyObject * _resultobj; |
b1462dfa RD |
7982 | wxMenu * _arg0; |
7983 | wxEvtHandler * _arg1; | |
1d99702e | 7984 | PyObject * _argo0 = 0; |
b1462dfa RD |
7985 | PyObject * _argo1 = 0; |
7986 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
7987 | |
7988 | self = self; | |
b1462dfa | 7989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7990 | return NULL; |
1d99702e RD |
7991 | if (_argo0) { |
7992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
7995 | return NULL; |
7996 | } | |
7997 | } | |
b1462dfa RD |
7998 | if (_argo1) { |
7999 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8000 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
8001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 8002 | return NULL; |
b1462dfa | 8003 | } |
8ab979d7 | 8004 | } |
cf694132 RD |
8005 | { |
8006 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8007 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 RD |
8008 | |
8009 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8010 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8011 | } Py_INCREF(Py_None); |
8012 | _resultobj = Py_None; | |
8ab979d7 RD |
8013 | return _resultobj; |
8014 | } | |
8015 | ||
b1462dfa RD |
8016 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
8017 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8018 | PyObject * _resultobj; |
b1462dfa RD |
8019 | wxEvtHandler * _result; |
8020 | wxMenu * _arg0; | |
1d99702e | 8021 | PyObject * _argo0 = 0; |
b1462dfa | 8022 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8023 | |
8024 | self = self; | |
b1462dfa | 8025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 8026 | return NULL; |
1d99702e RD |
8027 | if (_argo0) { |
8028 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8029 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
8031 | return NULL; |
8032 | } | |
8033 | } | |
cf694132 RD |
8034 | { |
8035 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8036 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 RD |
8037 | |
8038 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8039 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8040 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8041 | return _resultobj; |
8042 | } | |
8043 | ||
b1462dfa RD |
8044 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
8045 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 8046 | PyObject * _resultobj; |
b1462dfa RD |
8047 | wxMenu * _arg0; |
8048 | wxWindow * _arg1; | |
2f90df85 | 8049 | PyObject * _argo0 = 0; |
b1462dfa RD |
8050 | PyObject * _argo1 = 0; |
8051 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
8052 | |
8053 | self = self; | |
b1462dfa | 8054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
8055 | return NULL; |
8056 | if (_argo0) { | |
8057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
8060 | return NULL; |
8061 | } | |
8062 | } | |
b1462dfa RD |
8063 | if (_argo1) { |
8064 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8065 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 8067 | return NULL; |
b1462dfa | 8068 | } |
2f90df85 | 8069 | } |
2f90df85 RD |
8070 | { |
8071 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8072 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 RD |
8073 | |
8074 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8075 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
8076 | } Py_INCREF(Py_None); |
8077 | _resultobj = Py_None; | |
2f90df85 RD |
8078 | return _resultobj; |
8079 | } | |
8080 | ||
b1462dfa RD |
8081 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
8082 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8083 | PyObject * _resultobj; |
b1462dfa RD |
8084 | wxWindow * _result; |
8085 | wxMenu * _arg0; | |
1d99702e | 8086 | PyObject * _argo0 = 0; |
b1462dfa | 8087 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8088 | |
8089 | self = self; | |
b1462dfa | 8090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 8091 | return NULL; |
1d99702e RD |
8092 | if (_argo0) { |
8093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
8096 | return NULL; |
8097 | } | |
8098 | } | |
cf694132 RD |
8099 | { |
8100 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8101 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 RD |
8102 | |
8103 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8104 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8105 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8106 | return _resultobj; |
8107 | } | |
8108 | ||
b1462dfa RD |
8109 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
8110 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8111 | PyObject * _resultobj; |
b1462dfa RD |
8112 | long _result; |
8113 | wxMenu * _arg0; | |
1d99702e | 8114 | PyObject * _argo0 = 0; |
b1462dfa | 8115 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8116 | |
8117 | self = self; | |
b1462dfa | 8118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 8119 | return NULL; |
1d99702e RD |
8120 | if (_argo0) { |
8121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
8124 | return NULL; |
8125 | } | |
8126 | } | |
8ab979d7 | 8127 | { |
cf694132 | 8128 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8129 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 RD |
8130 | |
8131 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8132 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8133 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8134 | return _resultobj; |
8135 | } | |
8136 | ||
b1462dfa RD |
8137 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
8138 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8139 | PyObject * _resultobj; |
b1462dfa RD |
8140 | bool _result; |
8141 | wxMenu * _arg0; | |
1d99702e | 8142 | PyObject * _argo0 = 0; |
b1462dfa | 8143 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8144 | |
8145 | self = self; | |
b1462dfa | 8146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 8147 | return NULL; |
1d99702e RD |
8148 | if (_argo0) { |
8149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
8152 | return NULL; |
8153 | } | |
8154 | } | |
8ab979d7 | 8155 | { |
cf694132 | 8156 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8157 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 RD |
8158 | |
8159 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8160 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8161 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8162 | return _resultobj; |
8163 | } | |
8164 | ||
b1462dfa RD |
8165 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
8166 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8167 | PyObject * _resultobj; |
b1462dfa RD |
8168 | wxMenu * _arg0; |
8169 | wxMenu * _arg1; | |
1d99702e | 8170 | PyObject * _argo0 = 0; |
b1462dfa RD |
8171 | PyObject * _argo1 = 0; |
8172 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
8173 | |
8174 | self = self; | |
b1462dfa | 8175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8176 | return NULL; |
1d99702e RD |
8177 | if (_argo0) { |
8178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8181 | return NULL; |
8182 | } | |
8183 | } | |
b1462dfa RD |
8184 | if (_argo1) { |
8185 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8186 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 8188 | return NULL; |
b1462dfa | 8189 | } |
8ab979d7 | 8190 | } |
cf694132 RD |
8191 | { |
8192 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8193 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 RD |
8194 | |
8195 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8196 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8197 | } Py_INCREF(Py_None); |
8ab979d7 | 8198 | _resultobj = Py_None; |
8ab979d7 RD |
8199 | return _resultobj; |
8200 | } | |
8201 | ||
b1462dfa RD |
8202 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
8203 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8204 | PyObject * _resultobj; |
b1462dfa RD |
8205 | wxMenu * _result; |
8206 | wxMenu * _arg0; | |
1d99702e | 8207 | PyObject * _argo0 = 0; |
b1462dfa | 8208 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8209 | |
8210 | self = self; | |
b1462dfa | 8211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 8212 | return NULL; |
1d99702e RD |
8213 | if (_argo0) { |
8214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8217 | return NULL; |
8218 | } | |
8219 | } | |
8ab979d7 | 8220 | { |
cf694132 | 8221 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8222 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 RD |
8223 | |
8224 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8225 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8226 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8227 | return _resultobj; |
8ab979d7 | 8228 | } |
b1462dfa RD |
8229 | |
8230 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
8231 | wxMenuBar *src; | |
8232 | wxWindow *dest; | |
8233 | src = (wxMenuBar *) ptr; | |
8234 | dest = (wxWindow *) src; | |
8235 | return (void *) dest; | |
8236 | } | |
8237 | ||
8238 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
8239 | wxMenuBar *src; | |
8240 | wxEvtHandler *dest; | |
8241 | src = (wxMenuBar *) ptr; | |
8242 | dest = (wxEvtHandler *) src; | |
8243 | return (void *) dest; | |
8ab979d7 | 8244 | } |
b1462dfa | 8245 | |
9416aa89 RD |
8246 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
8247 | wxMenuBar *src; | |
8248 | wxObject *dest; | |
8249 | src = (wxMenuBar *) ptr; | |
8250 | dest = (wxObject *) src; | |
8251 | return (void *) dest; | |
8252 | } | |
8253 | ||
c368d904 | 8254 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
8255 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8256 | PyObject * _resultobj; | |
8257 | wxMenuBar * _result; | |
c368d904 RD |
8258 | long _arg0 = (long ) 0; |
8259 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
8260 | char _ptemp[128]; |
8261 | ||
8262 | self = self; | |
c368d904 | 8263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
8264 | return NULL; |
8265 | { | |
8266 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 8267 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa RD |
8268 | |
8269 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8270 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8271 | } if (_result) { |
8272 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
8273 | _resultobj = Py_BuildValue("s",_ptemp); | |
8274 | } else { | |
8275 | Py_INCREF(Py_None); | |
8276 | _resultobj = Py_None; | |
8277 | } | |
8ab979d7 RD |
8278 | return _resultobj; |
8279 | } | |
8280 | ||
b1462dfa RD |
8281 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
8282 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8283 | PyObject * _resultobj; |
b1462dfa | 8284 | bool _result; |
8ab979d7 | 8285 | wxMenuBar * _arg0; |
b1462dfa | 8286 | wxMenu * _arg1; |
8ab979d7 | 8287 | wxString * _arg2; |
1d99702e | 8288 | PyObject * _argo0 = 0; |
b1462dfa | 8289 | PyObject * _argo1 = 0; |
8ab979d7 | 8290 | PyObject * _obj2 = 0; |
b1462dfa | 8291 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
8292 | |
8293 | self = self; | |
b1462dfa | 8294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8295 | return NULL; |
1d99702e RD |
8296 | if (_argo0) { |
8297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
8300 | return NULL; | |
8301 | } | |
8302 | } | |
8303 | if (_argo1) { | |
8304 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8305 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
8307 | return NULL; |
8308 | } | |
8309 | } | |
8310 | { | |
185d7c3e RD |
8311 | #if PYTHON_API_VERSION >= 1009 |
8312 | char* tmpPtr; int tmpSize; | |
8313 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8314 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8315 | return NULL; |
8316 | } | |
8317 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8318 | return NULL; | |
8319 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8320 | #else | |
8ab979d7 RD |
8321 | if (!PyString_Check(_obj2)) { |
8322 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8323 | return NULL; | |
8324 | } | |
185d7c3e RD |
8325 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8326 | #endif | |
8ab979d7 | 8327 | } |
cf694132 RD |
8328 | { |
8329 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8330 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 RD |
8331 | |
8332 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8333 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8334 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8335 | { |
8336 | if (_obj2) | |
8337 | delete _arg2; | |
8338 | } | |
8339 | return _resultobj; | |
8340 | } | |
8341 | ||
b1462dfa RD |
8342 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
8343 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8344 | PyObject * _resultobj; |
b1462dfa | 8345 | bool _result; |
8ab979d7 | 8346 | wxMenuBar * _arg0; |
b1462dfa RD |
8347 | size_t _arg1; |
8348 | wxMenu * _arg2; | |
8349 | wxString * _arg3; | |
1d99702e | 8350 | PyObject * _argo0 = 0; |
b1462dfa RD |
8351 | PyObject * _argo2 = 0; |
8352 | PyObject * _obj3 = 0; | |
8353 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
8354 | |
8355 | self = self; | |
b1462dfa | 8356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 8357 | return NULL; |
1d99702e RD |
8358 | if (_argo0) { |
8359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
8362 | return NULL; | |
8363 | } | |
8364 | } | |
8365 | if (_argo2) { | |
8366 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8367 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
8369 | return NULL; |
8370 | } | |
8371 | } | |
b1462dfa | 8372 | { |
185d7c3e RD |
8373 | #if PYTHON_API_VERSION >= 1009 |
8374 | char* tmpPtr; int tmpSize; | |
8375 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 8376 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8377 | return NULL; |
8378 | } | |
8379 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8380 | return NULL; | |
8381 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8382 | #else | |
b1462dfa RD |
8383 | if (!PyString_Check(_obj3)) { |
8384 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8385 | return NULL; | |
8386 | } | |
185d7c3e RD |
8387 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8388 | #endif | |
b1462dfa | 8389 | } |
cf694132 RD |
8390 | { |
8391 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8392 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 RD |
8393 | |
8394 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8395 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8396 | } _resultobj = Py_BuildValue("i",_result); |
b1462dfa RD |
8397 | { |
8398 | if (_obj3) | |
8399 | delete _arg3; | |
8400 | } | |
8ab979d7 RD |
8401 | return _resultobj; |
8402 | } | |
8403 | ||
b1462dfa RD |
8404 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
8405 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8406 | PyObject * _resultobj; |
b1462dfa | 8407 | size_t _result; |
8ab979d7 | 8408 | wxMenuBar * _arg0; |
1d99702e | 8409 | PyObject * _argo0 = 0; |
b1462dfa | 8410 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8411 | |
8412 | self = self; | |
b1462dfa | 8413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 8414 | return NULL; |
1d99702e RD |
8415 | if (_argo0) { |
8416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
8419 | return NULL; |
8420 | } | |
8421 | } | |
cf694132 RD |
8422 | { |
8423 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8424 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 RD |
8425 | |
8426 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8427 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8428 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8429 | return _resultobj; |
8430 | } | |
8431 | ||
b1462dfa RD |
8432 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
8433 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 8434 | PyObject * _resultobj; |
b1462dfa | 8435 | wxMenu * _result; |
06c0fba4 | 8436 | wxMenuBar * _arg0; |
b1462dfa | 8437 | size_t _arg1; |
06c0fba4 | 8438 | PyObject * _argo0 = 0; |
b1462dfa | 8439 | char *_kwnames[] = { "self","pos", NULL }; |
06c0fba4 RD |
8440 | |
8441 | self = self; | |
b1462dfa | 8442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
8443 | return NULL; |
8444 | if (_argo0) { | |
8445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
8448 | return NULL; |
8449 | } | |
8450 | } | |
8451 | { | |
8452 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8453 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 RD |
8454 | |
8455 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8456 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8457 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
8458 | return _resultobj; |
8459 | } | |
8460 | ||
2abc0a0f RD |
8461 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
8462 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8463 | PyObject * _resultobj; | |
8464 | wxMenu * _result; | |
8465 | wxMenuBar * _arg0; | |
8466 | size_t _arg1; | |
8467 | wxMenu * _arg2; | |
8468 | wxString * _arg3; | |
8469 | PyObject * _argo0 = 0; | |
8470 | PyObject * _argo2 = 0; | |
8471 | PyObject * _obj3 = 0; | |
8472 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
2abc0a0f RD |
8473 | |
8474 | self = self; | |
8475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
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_Replace. Expected _wxMenuBar_p."); | |
8481 | return NULL; | |
8482 | } | |
8483 | } | |
8484 | if (_argo2) { | |
8485 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8486 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
8488 | return NULL; | |
8489 | } | |
8490 | } | |
8491 | { | |
185d7c3e RD |
8492 | #if PYTHON_API_VERSION >= 1009 |
8493 | char* tmpPtr; int tmpSize; | |
8494 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 8495 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8496 | return NULL; |
8497 | } | |
8498 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8499 | return NULL; | |
8500 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8501 | #else | |
2abc0a0f RD |
8502 | if (!PyString_Check(_obj3)) { |
8503 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8504 | return NULL; | |
8505 | } | |
185d7c3e RD |
8506 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8507 | #endif | |
2abc0a0f RD |
8508 | } |
8509 | { | |
8510 | wxPy_BEGIN_ALLOW_THREADS; | |
8511 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); | |
8512 | ||
8513 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8514 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8515 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8516 | { |
8517 | if (_obj3) | |
8518 | delete _arg3; | |
8519 | } | |
8520 | return _resultobj; | |
8521 | } | |
8522 | ||
8523 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8524 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8525 | PyObject * _resultobj; | |
8526 | wxMenu * _result; | |
8527 | wxMenuBar * _arg0; | |
8528 | size_t _arg1; | |
8529 | PyObject * _argo0 = 0; | |
8530 | char *_kwnames[] = { "self","pos", NULL }; | |
2abc0a0f RD |
8531 | |
8532 | self = self; | |
8533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
8534 | return NULL; | |
8535 | if (_argo0) { | |
8536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
8539 | return NULL; | |
8540 | } | |
8541 | } | |
8542 | { | |
8543 | wxPy_BEGIN_ALLOW_THREADS; | |
8544 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); | |
8545 | ||
8546 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8547 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8548 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8549 | return _resultobj; |
8550 | } | |
8551 | ||
b1462dfa RD |
8552 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
8553 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8554 | PyObject * _resultobj; |
b1462dfa RD |
8555 | wxMenuBar * _arg0; |
8556 | size_t _arg1; | |
8557 | bool _arg2; | |
8558 | PyObject * _argo0 = 0; | |
8559 | int tempbool2; | |
8560 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
8561 | ||
8562 | self = self; | |
8563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8564 | return NULL; | |
8565 | if (_argo0) { | |
8566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
8569 | return NULL; | |
8570 | } | |
8571 | } | |
8572 | _arg2 = (bool ) tempbool2; | |
8573 | { | |
8574 | wxPy_BEGIN_ALLOW_THREADS; | |
8575 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | |
8576 | ||
8577 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8578 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8579 | } Py_INCREF(Py_None); |
8580 | _resultobj = Py_None; | |
8581 | return _resultobj; | |
8582 | } | |
8583 | ||
8584 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
8585 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8586 | PyObject * _resultobj; | |
8587 | wxMenuBar * _arg0; | |
8588 | size_t _arg1; | |
8589 | wxString * _arg2; | |
1d99702e | 8590 | PyObject * _argo0 = 0; |
cf694132 | 8591 | PyObject * _obj2 = 0; |
b1462dfa | 8592 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
8593 | |
8594 | self = self; | |
b1462dfa | 8595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 8596 | return NULL; |
1d99702e RD |
8597 | if (_argo0) { |
8598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
8601 | return NULL; |
8602 | } | |
8603 | } | |
cf694132 | 8604 | { |
185d7c3e RD |
8605 | #if PYTHON_API_VERSION >= 1009 |
8606 | char* tmpPtr; int tmpSize; | |
8607 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8608 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8609 | return NULL; |
8610 | } | |
8611 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8612 | return NULL; | |
8613 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8614 | #else | |
cf694132 RD |
8615 | if (!PyString_Check(_obj2)) { |
8616 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8617 | return NULL; | |
8618 | } | |
185d7c3e RD |
8619 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8620 | #endif | |
cf694132 | 8621 | } |
cf694132 | 8622 | { |
b1462dfa RD |
8623 | wxPy_BEGIN_ALLOW_THREADS; |
8624 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | |
8625 | ||
8626 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8627 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8628 | } Py_INCREF(Py_None); |
8629 | _resultobj = Py_None; | |
8630 | { | |
8631 | if (_obj2) | |
8632 | delete _arg2; | |
8633 | } | |
8634 | return _resultobj; | |
8635 | } | |
8636 | ||
8637 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
8638 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8639 | PyObject * _resultobj; | |
8640 | wxString * _result; | |
8641 | wxMenuBar * _arg0; | |
8642 | size_t _arg1; | |
8643 | PyObject * _argo0 = 0; | |
8644 | char *_kwnames[] = { "self","pos", NULL }; | |
8645 | ||
8646 | self = self; | |
8647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
8648 | return NULL; | |
8649 | if (_argo0) { | |
8650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
8653 | return NULL; | |
8654 | } | |
8655 | } | |
8656 | { | |
8657 | wxPy_BEGIN_ALLOW_THREADS; | |
8658 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | |
8659 | ||
8660 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8661 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8662 | }{ |
eec92d76 | 8663 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8664 | } |
8665 | { | |
8666 | delete _result; | |
8667 | } | |
8668 | return _resultobj; | |
8669 | } | |
8670 | ||
3a0958b1 RD |
8671 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) |
8672 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8673 | PyObject * _resultobj; | |
8674 | int _result; | |
8675 | wxMenuBar * _arg0; | |
8676 | wxString * _arg1; | |
8677 | PyObject * _argo0 = 0; | |
8678 | PyObject * _obj1 = 0; | |
8679 | char *_kwnames[] = { "self","title", NULL }; | |
8680 | ||
8681 | self = self; | |
8682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) | |
8683 | return NULL; | |
8684 | if (_argo0) { | |
8685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); | |
8688 | return NULL; | |
8689 | } | |
8690 | } | |
8691 | { | |
8692 | #if PYTHON_API_VERSION >= 1009 | |
8693 | char* tmpPtr; int tmpSize; | |
8694 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8695 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8696 | return NULL; | |
8697 | } | |
8698 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8699 | return NULL; | |
8700 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8701 | #else | |
8702 | if (!PyString_Check(_obj1)) { | |
8703 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8704 | return NULL; | |
8705 | } | |
8706 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8707 | #endif | |
8708 | } | |
8709 | { | |
8710 | wxPy_BEGIN_ALLOW_THREADS; | |
8711 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); | |
8712 | ||
8713 | wxPy_END_ALLOW_THREADS; | |
8714 | if (PyErr_Occurred()) return NULL; | |
8715 | } _resultobj = Py_BuildValue("i",_result); | |
8716 | { | |
8717 | if (_obj1) | |
8718 | delete _arg1; | |
8719 | } | |
8720 | return _resultobj; | |
8721 | } | |
8722 | ||
b1462dfa RD |
8723 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) |
8724 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8725 | PyObject * _resultobj; | |
8726 | int _result; | |
8727 | wxMenuBar * _arg0; | |
8728 | wxString * _arg1; | |
8729 | wxString * _arg2; | |
8730 | PyObject * _argo0 = 0; | |
8731 | PyObject * _obj1 = 0; | |
8732 | PyObject * _obj2 = 0; | |
8733 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
8734 | ||
8735 | self = self; | |
8736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8737 | return NULL; | |
8738 | if (_argo0) { | |
8739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
8742 | return NULL; | |
8743 | } | |
8744 | } | |
8745 | { | |
185d7c3e RD |
8746 | #if PYTHON_API_VERSION >= 1009 |
8747 | char* tmpPtr; int tmpSize; | |
8748 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 8749 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8750 | return NULL; |
8751 | } | |
8752 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8753 | return NULL; | |
8754 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8755 | #else | |
b1462dfa | 8756 | if (!PyString_Check(_obj1)) { |
cf694132 RD |
8757 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
8758 | return NULL; | |
8759 | } | |
185d7c3e RD |
8760 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8761 | #endif | |
cf694132 | 8762 | } |
b1462dfa | 8763 | { |
185d7c3e RD |
8764 | #if PYTHON_API_VERSION >= 1009 |
8765 | char* tmpPtr; int tmpSize; | |
8766 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8767 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8768 | return NULL; |
8769 | } | |
8770 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8771 | return NULL; | |
8772 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8773 | #else | |
b1462dfa RD |
8774 | if (!PyString_Check(_obj2)) { |
8775 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8776 | return NULL; | |
8777 | } | |
185d7c3e RD |
8778 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8779 | #endif | |
b1462dfa RD |
8780 | } |
8781 | { | |
8782 | wxPy_BEGIN_ALLOW_THREADS; | |
8783 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); | |
8784 | ||
8785 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8786 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8787 | } _resultobj = Py_BuildValue("i",_result); |
8788 | { | |
8789 | if (_obj1) | |
8790 | delete _arg1; | |
8791 | } | |
8792 | { | |
8793 | if (_obj2) | |
8794 | delete _arg2; | |
8795 | } | |
8796 | return _resultobj; | |
8797 | } | |
8798 | ||
8799 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8800 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8801 | PyObject * _resultobj; | |
8802 | wxMenuItem * _result; | |
8803 | wxMenuBar * _arg0; | |
8804 | int _arg1; | |
8805 | PyObject * _argo0 = 0; | |
8806 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
8807 | |
8808 | self = self; | |
8809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8810 | return NULL; | |
8811 | if (_argo0) { | |
8812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
8815 | return NULL; |
8816 | } | |
8817 | } | |
8818 | { | |
8819 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8820 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 RD |
8821 | |
8822 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8823 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8824 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8825 | return _resultobj; |
cf694132 | 8826 | } |
b1462dfa RD |
8827 | |
8828 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8829 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8830 | PyObject * _resultobj; | |
8831 | wxMenuBar * _arg0; | |
8832 | int _arg1; | |
8833 | bool _arg2; | |
8834 | PyObject * _argo0 = 0; | |
8835 | int tempbool2; | |
8836 | char *_kwnames[] = { "self","id","enable", NULL }; | |
8837 | ||
8838 | self = self; | |
8839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8840 | return NULL; | |
8841 | if (_argo0) { | |
8842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
8845 | return NULL; | |
8846 | } | |
8847 | } | |
8848 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8849 | { |
b1462dfa RD |
8850 | wxPy_BEGIN_ALLOW_THREADS; |
8851 | wxMenuBar_Enable(_arg0,_arg1,_arg2); | |
8852 | ||
8853 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8854 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8855 | } Py_INCREF(Py_None); |
8856 | _resultobj = Py_None; | |
8857 | return _resultobj; | |
cf694132 | 8858 | } |
b1462dfa RD |
8859 | |
8860 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
8861 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8862 | PyObject * _resultobj; | |
8863 | wxMenuBar * _arg0; | |
8864 | int _arg1; | |
8865 | bool _arg2; | |
8866 | PyObject * _argo0 = 0; | |
8867 | int tempbool2; | |
8868 | char *_kwnames[] = { "self","id","check", NULL }; | |
8869 | ||
8870 | self = self; | |
8871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8872 | return NULL; | |
8873 | if (_argo0) { | |
8874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
8877 | return NULL; | |
8878 | } | |
8879 | } | |
8880 | _arg2 = (bool ) tempbool2; | |
8881 | { | |
8882 | wxPy_BEGIN_ALLOW_THREADS; | |
8883 | wxMenuBar_Check(_arg0,_arg1,_arg2); | |
8884 | ||
8885 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8886 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8887 | } Py_INCREF(Py_None); |
8888 | _resultobj = Py_None; | |
cf694132 RD |
8889 | return _resultobj; |
8890 | } | |
8891 | ||
b1462dfa RD |
8892 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8893 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8894 | PyObject * _resultobj; |
8895 | bool _result; | |
b1462dfa RD |
8896 | wxMenuBar * _arg0; |
8897 | int _arg1; | |
1d99702e | 8898 | PyObject * _argo0 = 0; |
b1462dfa | 8899 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8900 | |
8901 | self = self; | |
b1462dfa | 8902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8903 | return NULL; |
1d99702e RD |
8904 | if (_argo0) { |
8905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8908 | return NULL; |
8909 | } | |
8910 | } | |
cf694132 RD |
8911 | { |
8912 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8913 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 RD |
8914 | |
8915 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8916 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8917 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8918 | return _resultobj; |
8919 | } | |
8920 | ||
b1462dfa RD |
8921 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8922 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8923 | PyObject * _resultobj; |
8924 | bool _result; | |
b1462dfa RD |
8925 | wxMenuBar * _arg0; |
8926 | int _arg1; | |
1d99702e | 8927 | PyObject * _argo0 = 0; |
b1462dfa | 8928 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8929 | |
8930 | self = self; | |
b1462dfa | 8931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8932 | return NULL; |
1d99702e RD |
8933 | if (_argo0) { |
8934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8937 | return NULL; |
8938 | } | |
8939 | } | |
cf694132 RD |
8940 | { |
8941 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8942 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 RD |
8943 | |
8944 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8945 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8946 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8947 | return _resultobj; |
8948 | } | |
8949 | ||
b1462dfa RD |
8950 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
8951 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8952 | PyObject * _resultobj; |
b1462dfa RD |
8953 | wxMenuBar * _arg0; |
8954 | int _arg1; | |
8955 | wxString * _arg2; | |
1d99702e | 8956 | PyObject * _argo0 = 0; |
b1462dfa RD |
8957 | PyObject * _obj2 = 0; |
8958 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
8959 | |
8960 | self = self; | |
b1462dfa | 8961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8962 | return NULL; |
1d99702e RD |
8963 | if (_argo0) { |
8964 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8965 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8967 | return NULL; |
8968 | } | |
8969 | } | |
b1462dfa | 8970 | { |
185d7c3e RD |
8971 | #if PYTHON_API_VERSION >= 1009 |
8972 | char* tmpPtr; int tmpSize; | |
8973 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8974 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8975 | return NULL; |
8976 | } | |
8977 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8978 | return NULL; | |
8979 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8980 | #else | |
b1462dfa RD |
8981 | if (!PyString_Check(_obj2)) { |
8982 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8983 | return NULL; | |
8984 | } | |
185d7c3e RD |
8985 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8986 | #endif | |
b1462dfa | 8987 | } |
cf694132 RD |
8988 | { |
8989 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8990 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
8991 | |
8992 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8993 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8994 | } Py_INCREF(Py_None); |
8995 | _resultobj = Py_None; | |
8996 | { | |
8997 | if (_obj2) | |
8998 | delete _arg2; | |
8999 | } | |
8ab979d7 RD |
9000 | return _resultobj; |
9001 | } | |
9002 | ||
b1462dfa RD |
9003 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
9004 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9005 | PyObject * _resultobj; |
b1462dfa RD |
9006 | wxString * _result; |
9007 | wxMenuBar * _arg0; | |
9008 | int _arg1; | |
1d99702e | 9009 | PyObject * _argo0 = 0; |
b1462dfa | 9010 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9011 | |
9012 | self = self; | |
b1462dfa | 9013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9014 | return NULL; |
1d99702e RD |
9015 | if (_argo0) { |
9016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
9019 | return NULL; | |
9020 | } | |
9021 | } | |
9022 | { | |
9023 | wxPy_BEGIN_ALLOW_THREADS; | |
9024 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | |
9025 | ||
9026 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9027 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9028 | }{ |
eec92d76 | 9029 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
9030 | } |
9031 | { | |
9032 | delete _result; | |
9033 | } | |
9034 | return _resultobj; | |
9035 | } | |
9036 | ||
9037 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
9038 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9039 | PyObject * _resultobj; | |
9040 | wxMenuBar * _arg0; | |
9041 | int _arg1; | |
9042 | wxString * _arg2; | |
9043 | PyObject * _argo0 = 0; | |
9044 | PyObject * _obj2 = 0; | |
9045 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
9046 | ||
9047 | self = self; | |
9048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9049 | return NULL; | |
9050 | if (_argo0) { | |
9051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
9054 | return NULL; | |
9055 | } | |
9056 | } | |
9057 | { | |
185d7c3e RD |
9058 | #if PYTHON_API_VERSION >= 1009 |
9059 | char* tmpPtr; int tmpSize; | |
9060 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 9061 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9062 | return NULL; |
9063 | } | |
9064 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9065 | return NULL; | |
9066 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9067 | #else | |
b1462dfa RD |
9068 | if (!PyString_Check(_obj2)) { |
9069 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9070 | return NULL; | |
9071 | } | |
185d7c3e RD |
9072 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9073 | #endif | |
b1462dfa RD |
9074 | } |
9075 | { | |
9076 | wxPy_BEGIN_ALLOW_THREADS; | |
9077 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | |
9078 | ||
9079 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9080 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9081 | } Py_INCREF(Py_None); |
9082 | _resultobj = Py_None; | |
9083 | { | |
9084 | if (_obj2) | |
9085 | delete _arg2; | |
9086 | } | |
9087 | return _resultobj; | |
9088 | } | |
9089 | ||
9090 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
9091 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9092 | PyObject * _resultobj; | |
9093 | wxString * _result; | |
9094 | wxMenuBar * _arg0; | |
9095 | int _arg1; | |
9096 | PyObject * _argo0 = 0; | |
9097 | char *_kwnames[] = { "self","id", NULL }; | |
9098 | ||
9099 | self = self; | |
9100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
9101 | return NULL; | |
9102 | if (_argo0) { | |
9103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9106 | return NULL; |
9107 | } | |
9108 | } | |
cf694132 RD |
9109 | { |
9110 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9111 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
9112 | |
9113 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9114 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9115 | }{ |
eec92d76 | 9116 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
9117 | } |
9118 | { | |
9119 | delete _result; | |
9120 | } | |
8ab979d7 RD |
9121 | return _resultobj; |
9122 | } | |
9123 | ||
9416aa89 RD |
9124 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
9125 | wxMenuItem *src; | |
9126 | wxObject *dest; | |
9127 | src = (wxMenuItem *) ptr; | |
9128 | dest = (wxObject *) src; | |
9129 | return (void *) dest; | |
9130 | } | |
9131 | ||
b1462dfa RD |
9132 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
9133 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9134 | PyObject * _resultobj; |
b1462dfa RD |
9135 | wxMenuItem * _result; |
9136 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 9137 | int _arg1 = (int ) wxID_SEPARATOR; |
b1462dfa RD |
9138 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; |
9139 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
9140 | bool _arg4 = (bool ) FALSE; | |
9141 | wxMenu * _arg5 = (wxMenu *) NULL; | |
1d99702e | 9142 | PyObject * _argo0 = 0; |
b1462dfa RD |
9143 | PyObject * _obj2 = 0; |
9144 | PyObject * _obj3 = 0; | |
9145 | int tempbool4 = (int) FALSE; | |
9146 | PyObject * _argo5 = 0; | |
9147 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
9148 | char _ptemp[128]; | |
8ab979d7 RD |
9149 | |
9150 | self = self; | |
b1462dfa | 9151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) |
8ab979d7 | 9152 | return NULL; |
1d99702e RD |
9153 | if (_argo0) { |
9154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
9157 | return NULL; | |
9158 | } | |
9159 | } | |
9160 | if (_obj2) | |
9161 | { | |
185d7c3e RD |
9162 | #if PYTHON_API_VERSION >= 1009 |
9163 | char* tmpPtr; int tmpSize; | |
9164 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 9165 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9166 | return NULL; |
9167 | } | |
9168 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9169 | return NULL; | |
9170 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9171 | #else | |
b1462dfa RD |
9172 | if (!PyString_Check(_obj2)) { |
9173 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9174 | return NULL; | |
9175 | } | |
185d7c3e RD |
9176 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9177 | #endif | |
b1462dfa RD |
9178 | } |
9179 | if (_obj3) | |
9180 | { | |
185d7c3e RD |
9181 | #if PYTHON_API_VERSION >= 1009 |
9182 | char* tmpPtr; int tmpSize; | |
9183 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 9184 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9185 | return NULL; |
9186 | } | |
9187 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
9188 | return NULL; | |
9189 | _arg3 = new wxString(tmpPtr, tmpSize); | |
9190 | #else | |
b1462dfa RD |
9191 | if (!PyString_Check(_obj3)) { |
9192 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9193 | return NULL; | |
9194 | } | |
185d7c3e RD |
9195 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
9196 | #endif | |
b1462dfa RD |
9197 | } |
9198 | _arg4 = (bool ) tempbool4; | |
9199 | if (_argo5) { | |
9200 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
9201 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
9202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
9203 | return NULL; |
9204 | } | |
9205 | } | |
cf694132 RD |
9206 | { |
9207 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9208 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 RD |
9209 | |
9210 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9211 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9212 | } if (_result) { |
9213 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
9214 | _resultobj = Py_BuildValue("s",_ptemp); | |
9215 | } else { | |
9216 | Py_INCREF(Py_None); | |
9217 | _resultobj = Py_None; | |
9218 | } | |
9219 | { | |
9220 | if (_obj2) | |
9221 | delete _arg2; | |
9222 | } | |
9223 | { | |
9224 | if (_obj3) | |
9225 | delete _arg3; | |
9226 | } | |
8ab979d7 RD |
9227 | return _resultobj; |
9228 | } | |
9229 | ||
b1462dfa RD |
9230 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
9231 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9232 | PyObject * _resultobj; |
b1462dfa | 9233 | wxMenu * _result; |
8ab979d7 | 9234 | wxMenuItem * _arg0; |
1d99702e | 9235 | PyObject * _argo0 = 0; |
efc5f224 | 9236 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9237 | |
9238 | self = self; | |
b1462dfa | 9239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 9240 | return NULL; |
1d99702e RD |
9241 | if (_argo0) { |
9242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9245 | return NULL; |
9246 | } | |
9247 | } | |
cf694132 RD |
9248 | { |
9249 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9250 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 RD |
9251 | |
9252 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9253 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9254 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9255 | return _resultobj; |
9256 | } | |
9257 | ||
2abc0a0f RD |
9258 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
9259 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9260 | PyObject * _resultobj; |
9261 | wxMenuItem * _arg0; | |
2abc0a0f | 9262 | int _arg1; |
1d99702e | 9263 | PyObject * _argo0 = 0; |
2abc0a0f | 9264 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9265 | |
9266 | self = self; | |
2abc0a0f | 9267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9268 | return NULL; |
1d99702e RD |
9269 | if (_argo0) { |
9270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 9272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9273 | return NULL; |
9274 | } | |
9275 | } | |
cf694132 RD |
9276 | { |
9277 | wxPy_BEGIN_ALLOW_THREADS; | |
2abc0a0f | 9278 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 RD |
9279 | |
9280 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9281 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9282 | } Py_INCREF(Py_None); |
8ab979d7 | 9283 | _resultobj = Py_None; |
8ab979d7 RD |
9284 | return _resultobj; |
9285 | } | |
9286 | ||
b1462dfa RD |
9287 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
9288 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9289 | PyObject * _resultobj; |
b1462dfa | 9290 | int _result; |
8ab979d7 | 9291 | wxMenuItem * _arg0; |
1d99702e | 9292 | PyObject * _argo0 = 0; |
efc5f224 | 9293 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9294 | |
9295 | self = self; | |
b1462dfa | 9296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 9297 | return NULL; |
1d99702e RD |
9298 | if (_argo0) { |
9299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9302 | return NULL; |
9303 | } | |
9304 | } | |
8ab979d7 | 9305 | { |
cf694132 | 9306 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 9307 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 RD |
9308 | |
9309 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9310 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9311 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9312 | return _resultobj; |
9313 | } | |
9314 | ||
b1462dfa RD |
9315 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
9316 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9317 | PyObject * _resultobj; |
b1462dfa | 9318 | bool _result; |
8ab979d7 | 9319 | wxMenuItem * _arg0; |
1d99702e | 9320 | PyObject * _argo0 = 0; |
efc5f224 | 9321 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9322 | |
9323 | self = self; | |
b1462dfa | 9324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 9325 | return NULL; |
1d99702e RD |
9326 | if (_argo0) { |
9327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9330 | return NULL; |
9331 | } | |
9332 | } | |
8ab979d7 | 9333 | { |
cf694132 | 9334 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 9335 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 RD |
9336 | |
9337 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9338 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9339 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9340 | return _resultobj; |
9341 | } | |
9342 | ||
b1462dfa RD |
9343 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
9344 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9345 | PyObject * _resultobj; |
9346 | wxMenuItem * _arg0; | |
9347 | wxString * _arg1; | |
1d99702e | 9348 | PyObject * _argo0 = 0; |
8ab979d7 | 9349 | PyObject * _obj1 = 0; |
b1462dfa | 9350 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
9351 | |
9352 | self = self; | |
b1462dfa | 9353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9354 | return NULL; |
1d99702e RD |
9355 | if (_argo0) { |
9356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9359 | return NULL; |
9360 | } | |
9361 | } | |
9362 | { | |
185d7c3e RD |
9363 | #if PYTHON_API_VERSION >= 1009 |
9364 | char* tmpPtr; int tmpSize; | |
9365 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9366 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9367 | return NULL; |
9368 | } | |
9369 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9370 | return NULL; | |
9371 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9372 | #else | |
8ab979d7 RD |
9373 | if (!PyString_Check(_obj1)) { |
9374 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9375 | return NULL; | |
9376 | } | |
185d7c3e RD |
9377 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9378 | #endif | |
8ab979d7 | 9379 | } |
cf694132 RD |
9380 | { |
9381 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9382 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 RD |
9383 | |
9384 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9385 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9386 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9387 | _resultobj = Py_None; |
9388 | { | |
9389 | if (_obj1) | |
9390 | delete _arg1; | |
9391 | } | |
9392 | return _resultobj; | |
9393 | } | |
9394 | ||
b1462dfa RD |
9395 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
9396 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9397 | PyObject * _resultobj; |
b1462dfa | 9398 | wxString * _result; |
8ab979d7 | 9399 | wxMenuItem * _arg0; |
1d99702e | 9400 | PyObject * _argo0 = 0; |
b1462dfa | 9401 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9402 | |
9403 | self = self; | |
b1462dfa | 9404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 9405 | return NULL; |
1d99702e RD |
9406 | if (_argo0) { |
9407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9410 | return NULL; |
9411 | } | |
9412 | } | |
cf694132 RD |
9413 | { |
9414 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9415 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 RD |
9416 | |
9417 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9418 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9419 | }{ |
eec92d76 | 9420 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 | 9421 | } |
cf694132 | 9422 | { |
b1462dfa RD |
9423 | delete _result; |
9424 | } | |
cf694132 RD |
9425 | return _resultobj; |
9426 | } | |
9427 | ||
b1462dfa RD |
9428 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
9429 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9430 | PyObject * _resultobj; |
b1462dfa | 9431 | wxString * _result; |
cf694132 | 9432 | wxMenuItem * _arg0; |
1d99702e | 9433 | PyObject * _argo0 = 0; |
efc5f224 | 9434 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9435 | |
9436 | self = self; | |
b1462dfa | 9437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 9438 | return NULL; |
1d99702e RD |
9439 | if (_argo0) { |
9440 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9441 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
9443 | return NULL; |
9444 | } | |
9445 | } | |
9446 | { | |
9447 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9448 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
9449 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9450 | |
9451 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9452 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9453 | }{ |
eec92d76 | 9454 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
cf694132 | 9455 | } |
cf694132 RD |
9456 | return _resultobj; |
9457 | } | |
9458 | ||
b1462dfa RD |
9459 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
9460 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9461 | PyObject * _resultobj; |
cf694132 | 9462 | wxMenuItem * _arg0; |
b1462dfa | 9463 | bool _arg1; |
1d99702e | 9464 | PyObject * _argo0 = 0; |
b1462dfa RD |
9465 | int tempbool1; |
9466 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
9467 | |
9468 | self = self; | |
b1462dfa | 9469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9470 | return NULL; |
1d99702e RD |
9471 | if (_argo0) { |
9472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9475 | return NULL; |
9476 | } | |
9477 | } | |
b1462dfa | 9478 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9479 | { |
9480 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9481 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 RD |
9482 | |
9483 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9484 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9485 | } Py_INCREF(Py_None); |
9486 | _resultobj = Py_None; | |
cf694132 RD |
9487 | return _resultobj; |
9488 | } | |
9489 | ||
b1462dfa RD |
9490 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
9491 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9492 | PyObject * _resultobj; |
b1462dfa | 9493 | bool _result; |
cf694132 | 9494 | wxMenuItem * _arg0; |
1d99702e | 9495 | PyObject * _argo0 = 0; |
efc5f224 | 9496 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9497 | |
9498 | self = self; | |
b1462dfa | 9499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 9500 | return NULL; |
1d99702e RD |
9501 | if (_argo0) { |
9502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9505 | return NULL; |
9506 | } | |
9507 | } | |
9508 | { | |
9509 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9510 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 RD |
9511 | |
9512 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9513 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9514 | } _resultobj = Py_BuildValue("i",_result); |
9515 | return _resultobj; | |
9516 | } | |
9517 | ||
b1462dfa RD |
9518 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
9519 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9520 | PyObject * _resultobj; |
b1462dfa | 9521 | bool _result; |
cf694132 | 9522 | wxMenuItem * _arg0; |
1d99702e | 9523 | PyObject * _argo0 = 0; |
efc5f224 | 9524 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9525 | |
9526 | self = self; | |
b1462dfa | 9527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 9528 | return NULL; |
1d99702e RD |
9529 | if (_argo0) { |
9530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9533 | return NULL; |
9534 | } | |
9535 | } | |
9536 | { | |
9537 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9538 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 RD |
9539 | |
9540 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9541 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9542 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9543 | return _resultobj; |
9544 | } | |
9545 | ||
b1462dfa RD |
9546 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
9547 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9548 | PyObject * _resultobj; |
9549 | wxMenuItem * _arg0; | |
b1462dfa | 9550 | wxMenu * _arg1; |
1d99702e RD |
9551 | PyObject * _argo0 = 0; |
9552 | PyObject * _argo1 = 0; | |
b1462dfa | 9553 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
9554 | |
9555 | self = self; | |
b1462dfa | 9556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 9557 | return NULL; |
1d99702e RD |
9558 | if (_argo0) { |
9559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9562 | return NULL; |
9563 | } | |
9564 | } | |
1d99702e RD |
9565 | if (_argo1) { |
9566 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9567 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
9568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
9569 | return NULL; |
9570 | } | |
9571 | } | |
9572 | { | |
9573 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9574 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 RD |
9575 | |
9576 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9577 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9578 | } Py_INCREF(Py_None); |
9579 | _resultobj = Py_None; | |
9580 | return _resultobj; | |
9581 | } | |
9582 | ||
b1462dfa RD |
9583 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
9584 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9585 | PyObject * _resultobj; |
b1462dfa | 9586 | wxMenu * _result; |
cf694132 | 9587 | wxMenuItem * _arg0; |
1d99702e | 9588 | PyObject * _argo0 = 0; |
b1462dfa | 9589 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9590 | |
9591 | self = self; | |
b1462dfa | 9592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 9593 | return NULL; |
1d99702e RD |
9594 | if (_argo0) { |
9595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9598 | return NULL; |
9599 | } | |
9600 | } | |
b1462dfa RD |
9601 | { |
9602 | wxPy_BEGIN_ALLOW_THREADS; | |
9603 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); | |
9604 | ||
9605 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9606 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9607 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
9608 | return _resultobj; |
9609 | } | |
9610 | ||
9611 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
9612 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9613 | PyObject * _resultobj; | |
9614 | wxMenuItem * _arg0; | |
9615 | bool _arg1 = (bool ) TRUE; | |
9616 | PyObject * _argo0 = 0; | |
9617 | int tempbool1 = (int) TRUE; | |
9618 | char *_kwnames[] = { "self","enable", NULL }; | |
9619 | ||
9620 | self = self; | |
9621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
9622 | return NULL; | |
9623 | if (_argo0) { | |
9624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
9627 | return NULL; |
9628 | } | |
9629 | } | |
b1462dfa | 9630 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9631 | { |
9632 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9633 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 RD |
9634 | |
9635 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9636 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9637 | } Py_INCREF(Py_None); |
9638 | _resultobj = Py_None; | |
9639 | return _resultobj; | |
9640 | } | |
9641 | ||
b1462dfa RD |
9642 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
9643 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9644 | PyObject * _resultobj; |
b1462dfa | 9645 | bool _result; |
cf694132 | 9646 | wxMenuItem * _arg0; |
1d99702e | 9647 | PyObject * _argo0 = 0; |
b1462dfa | 9648 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9649 | |
9650 | self = self; | |
b1462dfa | 9651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 9652 | return NULL; |
1d99702e RD |
9653 | if (_argo0) { |
9654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
9657 | return NULL; |
9658 | } | |
9659 | } | |
9660 | { | |
9661 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9662 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 RD |
9663 | |
9664 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9665 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9666 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9667 | return _resultobj; |
9668 | } | |
9669 | ||
b1462dfa RD |
9670 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
9671 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9672 | PyObject * _resultobj; |
9673 | wxMenuItem * _arg0; | |
b1462dfa | 9674 | bool _arg1 = (bool ) TRUE; |
1d99702e | 9675 | PyObject * _argo0 = 0; |
b1462dfa RD |
9676 | int tempbool1 = (int) TRUE; |
9677 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
9678 | |
9679 | self = self; | |
b1462dfa | 9680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9681 | return NULL; |
1d99702e RD |
9682 | if (_argo0) { |
9683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
9686 | return NULL; |
9687 | } | |
9688 | } | |
b1462dfa | 9689 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9690 | { |
9691 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9692 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 RD |
9693 | |
9694 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9695 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9696 | } Py_INCREF(Py_None); |
9697 | _resultobj = Py_None; | |
9698 | return _resultobj; | |
9699 | } | |
9700 | ||
b1462dfa RD |
9701 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
9702 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9703 | PyObject * _resultobj; |
b1462dfa | 9704 | bool _result; |
2abc0a0f | 9705 | wxMenuItem * _arg0; |
2abc0a0f | 9706 | PyObject * _argo0 = 0; |
b1462dfa | 9707 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
9708 | |
9709 | self = self; | |
b1462dfa | 9710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
9711 | return NULL; |
9712 | if (_argo0) { | |
9713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9716 | return NULL; |
9717 | } | |
9718 | } | |
2abc0a0f RD |
9719 | { |
9720 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9721 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f RD |
9722 | |
9723 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9724 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9725 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
9726 | return _resultobj; |
9727 | } | |
9728 | ||
b1462dfa RD |
9729 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
9730 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9731 | PyObject * _resultobj; |
2abc0a0f RD |
9732 | wxMenuItem * _arg0; |
9733 | PyObject * _argo0 = 0; | |
9734 | char *_kwnames[] = { "self", NULL }; | |
9735 | ||
9736 | self = self; | |
b1462dfa | 9737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
9738 | return NULL; |
9739 | if (_argo0) { | |
9740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9743 | return NULL; |
9744 | } | |
9745 | } | |
9746 | { | |
9747 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9748 | wxMenuItem_Toggle(_arg0); |
2abc0a0f RD |
9749 | |
9750 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9751 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9752 | } Py_INCREF(Py_None); |
9753 | _resultobj = Py_None; | |
2abc0a0f RD |
9754 | return _resultobj; |
9755 | } | |
9756 | ||
b1462dfa RD |
9757 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
9758 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9759 | PyObject * _resultobj; |
9760 | wxMenuItem * _arg0; | |
b1462dfa | 9761 | wxString * _arg1; |
1d99702e | 9762 | PyObject * _argo0 = 0; |
b1462dfa RD |
9763 | PyObject * _obj1 = 0; |
9764 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
9765 | |
9766 | self = self; | |
b1462dfa | 9767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 9768 | return NULL; |
1d99702e RD |
9769 | if (_argo0) { |
9770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
9773 | return NULL; |
9774 | } | |
9775 | } | |
b1462dfa | 9776 | { |
185d7c3e RD |
9777 | #if PYTHON_API_VERSION >= 1009 |
9778 | char* tmpPtr; int tmpSize; | |
9779 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9780 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9781 | return NULL; |
9782 | } | |
9783 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9784 | return NULL; | |
9785 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9786 | #else | |
b1462dfa RD |
9787 | if (!PyString_Check(_obj1)) { |
9788 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
cf694132 | 9789 | return NULL; |
cf694132 | 9790 | } |
185d7c3e RD |
9791 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9792 | #endif | |
b1462dfa | 9793 | } |
cf694132 RD |
9794 | { |
9795 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9796 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 RD |
9797 | |
9798 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9799 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9800 | } Py_INCREF(Py_None); |
8ab979d7 | 9801 | _resultobj = Py_None; |
b1462dfa RD |
9802 | { |
9803 | if (_obj1) | |
9804 | delete _arg1; | |
9805 | } | |
8ab979d7 RD |
9806 | return _resultobj; |
9807 | } | |
9808 | ||
b1462dfa RD |
9809 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
9810 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 9811 | PyObject * _resultobj; |
b1462dfa | 9812 | wxString * _result; |
be4d9c1f | 9813 | wxMenuItem * _arg0; |
1d99702e | 9814 | PyObject * _argo0 = 0; |
efc5f224 | 9815 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
9816 | |
9817 | self = self; | |
b1462dfa | 9818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 9819 | return NULL; |
1d99702e RD |
9820 | if (_argo0) { |
9821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
9824 | return NULL; |
9825 | } | |
9826 | } | |
cf694132 RD |
9827 | { |
9828 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9829 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
9830 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9831 | |
9832 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9833 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9834 | }{ |
eec92d76 | 9835 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa | 9836 | } |
be4d9c1f RD |
9837 | return _resultobj; |
9838 | } | |
9839 | ||
b1462dfa RD |
9840 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
9841 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9842 | PyObject * _resultobj; |
b1462dfa | 9843 | wxAcceleratorEntry * _result; |
2abc0a0f | 9844 | wxMenuItem * _arg0; |
2abc0a0f | 9845 | PyObject * _argo0 = 0; |
b1462dfa RD |
9846 | char *_kwnames[] = { "self", NULL }; |
9847 | char _ptemp[128]; | |
2abc0a0f RD |
9848 | |
9849 | self = self; | |
b1462dfa | 9850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
9851 | return NULL; |
9852 | if (_argo0) { | |
9853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9856 | return NULL; |
9857 | } | |
9858 | } | |
2abc0a0f RD |
9859 | { |
9860 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9861 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f RD |
9862 | |
9863 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9864 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9865 | } if (_result) { |
9866 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
9867 | _resultobj = Py_BuildValue("s",_ptemp); | |
9868 | } else { | |
9869 | Py_INCREF(Py_None); | |
9870 | _resultobj = Py_None; | |
9871 | } | |
2abc0a0f RD |
9872 | return _resultobj; |
9873 | } | |
9874 | ||
b1462dfa RD |
9875 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
9876 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
9877 | PyObject * _resultobj; |
9878 | wxMenuItem * _arg0; | |
b1462dfa | 9879 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
9880 | PyObject * _argo0 = 0; |
9881 | PyObject * _argo1 = 0; | |
b1462dfa | 9882 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
9883 | |
9884 | self = self; | |
b1462dfa | 9885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
9886 | return NULL; |
9887 | if (_argo0) { | |
9888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9891 | return NULL; |
9892 | } | |
9893 | } | |
9894 | if (_argo1) { | |
9895 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9896 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
9897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
9898 | return NULL; |
9899 | } | |
9900 | } | |
9901 | { | |
9902 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9903 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f RD |
9904 | |
9905 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9906 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
9907 | } Py_INCREF(Py_None); |
9908 | _resultobj = Py_None; | |
9909 | return _resultobj; | |
9910 | } | |
9911 | ||
1b62f00d RD |
9912 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
9913 | PyObject * _resultobj; | |
9914 | wxString * _result; | |
9915 | wxString * _arg0; | |
9916 | PyObject * _obj0 = 0; | |
9917 | char *_kwnames[] = { "text", NULL }; | |
9918 | ||
9919 | self = self; | |
9920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
9921 | return NULL; | |
9922 | { | |
9923 | #if PYTHON_API_VERSION >= 1009 | |
9924 | char* tmpPtr; int tmpSize; | |
9925 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 9926 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1b62f00d RD |
9927 | return NULL; |
9928 | } | |
9929 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
9930 | return NULL; | |
9931 | _arg0 = new wxString(tmpPtr, tmpSize); | |
9932 | #else | |
9933 | if (!PyString_Check(_obj0)) { | |
9934 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9935 | return NULL; | |
9936 | } | |
9937 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
9938 | #endif | |
9939 | } | |
9940 | { | |
9941 | wxPy_BEGIN_ALLOW_THREADS; | |
9942 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); | |
9943 | ||
9944 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9945 | if (PyErr_Occurred()) return NULL; |
1b62f00d RD |
9946 | }{ |
9947 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9948 | } | |
9949 | { | |
9950 | if (_obj0) | |
9951 | delete _arg0; | |
9952 | } | |
9953 | { | |
9954 | delete _result; | |
9955 | } | |
9956 | return _resultobj; | |
9957 | } | |
9958 | ||
f3d9dc1d RD |
9959 | #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
9960 | static PyObject *_wrap_wxMenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9961 | PyObject * _resultobj; | |
9962 | wxMenuItem * _arg0; | |
9963 | wxFont * _arg1; | |
9964 | PyObject * _argo0 = 0; | |
9965 | PyObject * _argo1 = 0; | |
9966 | char *_kwnames[] = { "self","font", NULL }; | |
9967 | ||
9968 | self = self; | |
9969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
9970 | return NULL; | |
9971 | if (_argo0) { | |
9972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p."); | |
9975 | return NULL; | |
9976 | } | |
9977 | } | |
9978 | if (_argo1) { | |
9979 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9980 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
9981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p."); | |
9982 | return NULL; | |
9983 | } | |
9984 | } | |
9985 | { | |
9986 | wxPy_BEGIN_ALLOW_THREADS; | |
9987 | wxMenuItem_SetFont(_arg0,*_arg1); | |
9988 | ||
9989 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9990 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
9991 | } Py_INCREF(Py_None); |
9992 | _resultobj = Py_None; | |
9993 | return _resultobj; | |
9994 | } | |
9995 | ||
9996 | #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
9997 | static PyObject *_wrap_wxMenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9998 | PyObject * _resultobj; | |
9999 | wxFont * _result; | |
10000 | wxMenuItem * _arg0; | |
10001 | PyObject * _argo0 = 0; | |
10002 | char *_kwnames[] = { "self", NULL }; | |
10003 | char _ptemp[128]; | |
10004 | ||
10005 | self = self; | |
10006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetFont",_kwnames,&_argo0)) | |
10007 | return NULL; | |
10008 | if (_argo0) { | |
10009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p."); | |
10012 | return NULL; | |
10013 | } | |
10014 | } | |
10015 | { | |
10016 | wxPy_BEGIN_ALLOW_THREADS; | |
10017 | wxFont & _result_ref = wxMenuItem_GetFont(_arg0); | |
10018 | _result = (wxFont *) &_result_ref; | |
10019 | ||
10020 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10021 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10022 | } if (_result) { |
10023 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
10024 | _resultobj = Py_BuildValue("s",_ptemp); | |
10025 | } else { | |
10026 | Py_INCREF(Py_None); | |
10027 | _resultobj = Py_None; | |
10028 | } | |
10029 | return _resultobj; | |
10030 | } | |
10031 | ||
10032 | #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
10033 | static PyObject *_wrap_wxMenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10034 | PyObject * _resultobj; | |
10035 | wxMenuItem * _arg0; | |
10036 | wxColour * _arg1; | |
10037 | PyObject * _argo0 = 0; | |
10038 | wxColour temp; | |
10039 | PyObject * _obj1 = 0; | |
10040 | char *_kwnames[] = { "self","colText", NULL }; | |
10041 | ||
10042 | self = self; | |
10043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
10044 | return NULL; | |
10045 | if (_argo0) { | |
10046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p."); | |
10049 | return NULL; | |
10050 | } | |
10051 | } | |
10052 | { | |
10053 | _arg1 = &temp; | |
10054 | if (! wxColour_helper(_obj1, &_arg1)) | |
10055 | return NULL; | |
10056 | } | |
10057 | { | |
10058 | wxPy_BEGIN_ALLOW_THREADS; | |
10059 | wxMenuItem_SetTextColour(_arg0,*_arg1); | |
10060 | ||
10061 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10062 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10063 | } Py_INCREF(Py_None); |
10064 | _resultobj = Py_None; | |
10065 | return _resultobj; | |
10066 | } | |
10067 | ||
10068 | #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
10069 | static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10070 | PyObject * _resultobj; | |
10071 | wxColour * _result; | |
10072 | wxMenuItem * _arg0; | |
10073 | PyObject * _argo0 = 0; | |
10074 | char *_kwnames[] = { "self", NULL }; | |
10075 | char _ptemp[128]; | |
10076 | ||
10077 | self = self; | |
10078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetTextColour",_kwnames,&_argo0)) | |
10079 | return NULL; | |
10080 | if (_argo0) { | |
10081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p."); | |
10084 | return NULL; | |
10085 | } | |
10086 | } | |
10087 | { | |
10088 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 10089 | _result = new wxColour (wxMenuItem_GetTextColour(_arg0)); |
f3d9dc1d RD |
10090 | |
10091 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10092 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
10093 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
10094 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10095 | return _resultobj; |
10096 | } | |
10097 | ||
10098 | #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
10099 | static PyObject *_wrap_wxMenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10100 | PyObject * _resultobj; | |
10101 | wxMenuItem * _arg0; | |
10102 | wxColour * _arg1; | |
10103 | PyObject * _argo0 = 0; | |
10104 | wxColour temp; | |
10105 | PyObject * _obj1 = 0; | |
10106 | char *_kwnames[] = { "self","colBack", NULL }; | |
10107 | ||
10108 | self = self; | |
10109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
10110 | return NULL; | |
10111 | if (_argo0) { | |
10112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p."); | |
10115 | return NULL; | |
10116 | } | |
10117 | } | |
10118 | { | |
10119 | _arg1 = &temp; | |
10120 | if (! wxColour_helper(_obj1, &_arg1)) | |
10121 | return NULL; | |
10122 | } | |
10123 | { | |
10124 | wxPy_BEGIN_ALLOW_THREADS; | |
10125 | wxMenuItem_SetBackgroundColour(_arg0,*_arg1); | |
10126 | ||
10127 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10128 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10129 | } Py_INCREF(Py_None); |
10130 | _resultobj = Py_None; | |
10131 | return _resultobj; | |
10132 | } | |
10133 | ||
10134 | #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
10135 | static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10136 | PyObject * _resultobj; | |
10137 | wxColour * _result; | |
10138 | wxMenuItem * _arg0; | |
10139 | PyObject * _argo0 = 0; | |
10140 | char *_kwnames[] = { "self", NULL }; | |
10141 | char _ptemp[128]; | |
10142 | ||
10143 | self = self; | |
10144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBackgroundColour",_kwnames,&_argo0)) | |
10145 | return NULL; | |
10146 | if (_argo0) { | |
10147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p."); | |
10150 | return NULL; | |
10151 | } | |
10152 | } | |
10153 | { | |
10154 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 10155 | _result = new wxColour (wxMenuItem_GetBackgroundColour(_arg0)); |
f3d9dc1d RD |
10156 | |
10157 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10158 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
10159 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
10160 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10161 | return _resultobj; |
10162 | } | |
10163 | ||
10164 | #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1)) | |
10165 | static PyObject *_wrap_wxMenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10166 | PyObject * _resultobj; | |
10167 | wxMenuItem * _arg0; | |
10168 | wxBitmap * _arg1; | |
10169 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
10170 | PyObject * _argo0 = 0; | |
10171 | PyObject * _argo1 = 0; | |
10172 | PyObject * _argo2 = 0; | |
10173 | char *_kwnames[] = { "self","bmpChecked","bmpUnchecked", NULL }; | |
10174 | ||
10175 | self = self; | |
10176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxMenuItem_SetBitmaps",_kwnames,&_argo0,&_argo1,&_argo2)) | |
10177 | return NULL; | |
10178 | if (_argo0) { | |
10179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p."); | |
10182 | return NULL; | |
10183 | } | |
10184 | } | |
10185 | if (_argo1) { | |
10186 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10187 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
10189 | return NULL; | |
10190 | } | |
10191 | } | |
10192 | if (_argo2) { | |
10193 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10194 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
10195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
10196 | return NULL; | |
10197 | } | |
10198 | } | |
10199 | { | |
10200 | wxPy_BEGIN_ALLOW_THREADS; | |
10201 | wxMenuItem_SetBitmaps(_arg0,*_arg1,*_arg2); | |
10202 | ||
10203 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10204 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10205 | } Py_INCREF(Py_None); |
10206 | _resultobj = Py_None; | |
10207 | return _resultobj; | |
10208 | } | |
10209 | ||
10210 | #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
10211 | static PyObject *_wrap_wxMenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10212 | PyObject * _resultobj; | |
10213 | wxMenuItem * _arg0; | |
10214 | wxBitmap * _arg1; | |
10215 | PyObject * _argo0 = 0; | |
10216 | PyObject * _argo1 = 0; | |
10217 | char *_kwnames[] = { "self","bmpChecked", NULL }; | |
10218 | ||
10219 | self = self; | |
10220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
10221 | return NULL; | |
10222 | if (_argo0) { | |
10223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p."); | |
10226 | return NULL; | |
10227 | } | |
10228 | } | |
10229 | if (_argo1) { | |
10230 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10231 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p."); | |
10233 | return NULL; | |
10234 | } | |
10235 | } | |
10236 | { | |
10237 | wxPy_BEGIN_ALLOW_THREADS; | |
10238 | wxMenuItem_SetBitmap(_arg0,*_arg1); | |
10239 | ||
10240 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10241 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10242 | } Py_INCREF(Py_None); |
10243 | _resultobj = Py_None; | |
10244 | return _resultobj; | |
10245 | } | |
10246 | ||
10247 | #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0)) | |
10248 | static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10249 | PyObject * _resultobj; | |
10250 | wxBitmap * _result; | |
10251 | wxMenuItem * _arg0; | |
10252 | bool _arg1 = (bool ) TRUE; | |
10253 | PyObject * _argo0 = 0; | |
10254 | int tempbool1 = (int) TRUE; | |
10255 | char *_kwnames[] = { "self","bChecked", NULL }; | |
10256 | char _ptemp[128]; | |
10257 | ||
10258 | self = self; | |
10259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_GetBitmap",_kwnames,&_argo0,&tempbool1)) | |
10260 | return NULL; | |
10261 | if (_argo0) { | |
10262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p."); | |
10265 | return NULL; | |
10266 | } | |
10267 | } | |
10268 | _arg1 = (bool ) tempbool1; | |
10269 | { | |
10270 | wxPy_BEGIN_ALLOW_THREADS; | |
10271 | const wxBitmap & _result_ref = wxMenuItem_GetBitmap(_arg0,_arg1); | |
10272 | _result = (wxBitmap *) &_result_ref; | |
10273 | ||
10274 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10275 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10276 | } if (_result) { |
10277 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
10278 | _resultobj = Py_BuildValue("s",_ptemp); | |
10279 | } else { | |
10280 | Py_INCREF(Py_None); | |
10281 | _resultobj = Py_None; | |
10282 | } | |
10283 | return _resultobj; | |
10284 | } | |
10285 | ||
10286 | #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0)) | |
10287 | static PyObject *_wrap_wxMenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10288 | PyObject * _resultobj; | |
10289 | wxMenuItem * _arg0; | |
10290 | int _arg1; | |
10291 | PyObject * _argo0 = 0; | |
10292 | char *_kwnames[] = { "self","nWidth", NULL }; | |
10293 | ||
10294 | self = self; | |
10295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetMarginWidth",_kwnames,&_argo0,&_arg1)) | |
10296 | return NULL; | |
10297 | if (_argo0) { | |
10298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p."); | |
10301 | return NULL; | |
10302 | } | |
10303 | } | |
10304 | { | |
10305 | wxPy_BEGIN_ALLOW_THREADS; | |
10306 | wxMenuItem_SetMarginWidth(_arg0,_arg1); | |
10307 | ||
10308 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10309 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10310 | } Py_INCREF(Py_None); |
10311 | _resultobj = Py_None; | |
10312 | return _resultobj; | |
10313 | } | |
10314 | ||
10315 | #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth()) | |
10316 | static PyObject *_wrap_wxMenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10317 | PyObject * _resultobj; | |
10318 | int _result; | |
10319 | wxMenuItem * _arg0; | |
10320 | PyObject * _argo0 = 0; | |
10321 | char *_kwnames[] = { "self", NULL }; | |
10322 | ||
10323 | self = self; | |
10324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMarginWidth",_kwnames,&_argo0)) | |
10325 | return NULL; | |
10326 | if (_argo0) { | |
10327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p."); | |
10330 | return NULL; | |
10331 | } | |
10332 | } | |
10333 | { | |
10334 | wxPy_BEGIN_ALLOW_THREADS; | |
10335 | _result = (int )wxMenuItem_GetMarginWidth(_arg0); | |
10336 | ||
10337 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10338 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10339 | } _resultobj = Py_BuildValue("i",_result); |
10340 | return _resultobj; | |
10341 | } | |
10342 | ||
10343 | static PyObject *_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10344 | PyObject * _resultobj; | |
10345 | int _result; | |
10346 | char *_kwnames[] = { NULL }; | |
10347 | ||
10348 | self = self; | |
10349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMenuItem_GetDefaultMarginWidth",_kwnames)) | |
10350 | return NULL; | |
10351 | { | |
10352 | wxPy_BEGIN_ALLOW_THREADS; | |
10353 | _result = (int )wxMenuItem::GetDefaultMarginWidth(); | |
10354 | ||
10355 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10356 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10357 | } _resultobj = Py_BuildValue("i",_result); |
10358 | return _resultobj; | |
10359 | } | |
10360 | ||
10361 | #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn()) | |
10362 | static PyObject *_wrap_wxMenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10363 | PyObject * _resultobj; | |
10364 | bool _result; | |
10365 | wxMenuItem * _arg0; | |
10366 | PyObject * _argo0 = 0; | |
10367 | char *_kwnames[] = { "self", NULL }; | |
10368 | ||
10369 | self = self; | |
10370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsOwnerDrawn",_kwnames,&_argo0)) | |
10371 | return NULL; | |
10372 | if (_argo0) { | |
10373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p."); | |
10376 | return NULL; | |
10377 | } | |
10378 | } | |
10379 | { | |
10380 | wxPy_BEGIN_ALLOW_THREADS; | |
10381 | _result = (bool )wxMenuItem_IsOwnerDrawn(_arg0); | |
10382 | ||
10383 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10384 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10385 | } _resultobj = Py_BuildValue("i",_result); |
10386 | return _resultobj; | |
10387 | } | |
10388 | ||
10389 | #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn()) | |
10390 | static PyObject *_wrap_wxMenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10391 | PyObject * _resultobj; | |
10392 | wxMenuItem * _arg0; | |
10393 | PyObject * _argo0 = 0; | |
10394 | char *_kwnames[] = { "self", NULL }; | |
10395 | ||
10396 | self = self; | |
10397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_ResetOwnerDrawn",_kwnames,&_argo0)) | |
10398 | return NULL; | |
10399 | if (_argo0) { | |
10400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p."); | |
10403 | return NULL; | |
10404 | } | |
10405 | } | |
10406 | { | |
10407 | wxPy_BEGIN_ALLOW_THREADS; | |
10408 | wxMenuItem_ResetOwnerDrawn(_arg0); | |
10409 | ||
10410 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10411 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10412 | } Py_INCREF(Py_None); |
10413 | _resultobj = Py_None; | |
10414 | return _resultobj; | |
10415 | } | |
10416 | ||
8ab979d7 | 10417 | static PyMethodDef windowscMethods[] = { |
f3d9dc1d RD |
10418 | { "wxMenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, |
10419 | { "wxMenuItem_IsOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
10420 | { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10421 | { "wxMenuItem_GetMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10422 | { "wxMenuItem_SetMarginWidth", (PyCFunction) _wrap_wxMenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10423 | { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10424 | { "wxMenuItem_SetBitmap", (PyCFunction) _wrap_wxMenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10425 | { "wxMenuItem_SetBitmaps", (PyCFunction) _wrap_wxMenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
10426 | { "wxMenuItem_GetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10427 | { "wxMenuItem_SetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10428 | { "wxMenuItem_GetTextColour", (PyCFunction) _wrap_wxMenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10429 | { "wxMenuItem_SetTextColour", (PyCFunction) _wrap_wxMenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10430 | { "wxMenuItem_GetFont", (PyCFunction) _wrap_wxMenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10431 | { "wxMenuItem_SetFont", (PyCFunction) _wrap_wxMenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 10432 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10433 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
10434 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
10435 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10436 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10437 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10438 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10439 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10440 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10441 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10442 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10443 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 10444 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10445 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10446 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
10447 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10448 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10449 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10450 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10451 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
10452 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10453 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10454 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10455 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10456 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
10457 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10458 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
10459 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10460 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10461 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10462 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
10463 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
10464 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
3a0958b1 | 10465 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10466 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, |
10467 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
10468 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
10469 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10470 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
10471 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
10472 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
10473 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10474 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
10475 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10476 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
10477 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
10478 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
10479 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10480 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10481 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10482 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10483 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10484 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
10485 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10486 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
10487 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10488 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10489 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
10490 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10491 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
10492 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10493 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10494 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10495 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10496 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10497 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
10498 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10499 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
10500 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 10501 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10502 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10503 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10504 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10505 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10506 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
10507 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
10508 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
10509 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
10510 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
10511 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
10512 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
d1679124 RD |
10513 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10514 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
10515 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
10516 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f RD |
10517 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, |
10518 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
4c9993c3 | 10519 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10520 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10521 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10522 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10523 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
10524 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
10525 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
10526 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10527 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10528 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10529 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10530 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10531 | { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
10532 | { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10533 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10534 | { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
10535 | { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
10536 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
10537 | { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS }, |
10538 | { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10539 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, |
900d9886 | 10540 | { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 | 10541 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10542 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
10543 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
10544 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
10545 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c RD |
10546 | { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS }, |
10547 | { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
10548 | { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
10549 | { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
10550 | { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
10551 | { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
4f3449b4 RD |
10552 | { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS }, |
10553 | { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 | 10554 | { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS }, |
3a0958b1 RD |
10555 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, |
10556 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
10557 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
10558 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 10559 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10560 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
10561 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10562 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
10563 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10564 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10565 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10566 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
10567 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
10568 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
10569 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10570 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10571 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10572 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10573 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10574 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10575 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
10576 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
10577 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
10578 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
10579 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10580 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
83b18bab | 10581 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 10582 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10583 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
10584 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10585 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
10586 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
dbbb98cd | 10587 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10588 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
10589 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
10590 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
10591 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10592 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
10593 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
10594 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10595 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10596 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10597 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10598 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10599 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10600 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10601 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 10602 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10603 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10604 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, |
10605 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
10606 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
10607 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10608 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10609 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 | 10610 | { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10611 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, |
10612 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
10613 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
10614 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10615 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
10616 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10617 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
10618 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10619 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
10620 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
10621 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
10622 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
10623 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
10624 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
10625 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
10626 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
10627 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
10628 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10629 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10630 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
10631 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10632 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
10633 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10634 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
10635 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
10636 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10637 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10638 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10639 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10640 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10641 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
10642 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10643 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
10644 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
10645 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10646 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10647 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
10648 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
10649 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10650 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10651 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 10652 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10653 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
10654 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10655 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 10656 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10657 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10658 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10659 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10660 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
10661 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10662 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10663 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
10664 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
10665 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
10666 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
10667 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
10668 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 10669 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10670 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, |
10671 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
10672 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
10673 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
10674 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
d56cebe7 | 10675 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, |
3ca6a5f0 BP |
10676 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
10677 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10678 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
10679 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
10680 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
10681 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
10682 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
10683 | { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
10684 | { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10685 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10686 | { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10687 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
9416aa89 RD |
10688 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
10689 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10690 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
10691 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10692 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
10693 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 10694 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10695 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
10696 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
10697 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10698 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
10699 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10700 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10701 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10702 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10703 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 10704 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10705 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
10706 | { NULL, NULL } |
10707 | }; | |
1d99702e RD |
10708 | #ifdef __cplusplus |
10709 | } | |
10710 | #endif | |
10711 | /* | |
10712 | * This table is used by the pointer type-checker | |
10713 | */ | |
10714 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 10715 | { "_signed_long","_long",0}, |
b1462dfa | 10716 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
10717 | { "_wxPrintQuality","_int",0}, |
10718 | { "_wxPrintQuality","_signed_int",0}, | |
10719 | { "_wxPrintQuality","_unsigned_int",0}, | |
10720 | { "_wxPrintQuality","_wxWindowID",0}, | |
10721 | { "_wxPrintQuality","_uint",0}, | |
10722 | { "_wxPrintQuality","_EBool",0}, | |
10723 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10724 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 10725 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
10726 | { "_long","_unsigned_long",0}, |
10727 | { "_long","_signed_long",0}, | |
b1462dfa | 10728 | { "_size_t","_wxCoord",0}, |
1d99702e | 10729 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10730 | { "_size_t","_time_t",0}, |
1d99702e RD |
10731 | { "_size_t","_unsigned_int",0}, |
10732 | { "_size_t","_int",0}, | |
10733 | { "_size_t","_wxWindowID",0}, | |
10734 | { "_size_t","_uint",0}, | |
1d99702e | 10735 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
b1462dfa | 10736 | { "_uint","_wxCoord",0}, |
1d99702e | 10737 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10738 | { "_uint","_time_t",0}, |
1d99702e RD |
10739 | { "_uint","_size_t",0}, |
10740 | { "_uint","_unsigned_int",0}, | |
10741 | { "_uint","_int",0}, | |
10742 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10743 | { "_wxChar","_char",0}, |
f6bcfd97 | 10744 | { "_char","_wxChar",0}, |
cdf14688 | 10745 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 10746 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10747 | { "_EBool","_wxPrintQuality",0}, |
10748 | { "_EBool","_signed_int",0}, | |
10749 | { "_EBool","_int",0}, | |
10750 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 10751 | { "_unsigned_long","_long",0}, |
cdf14688 | 10752 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 10753 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10754 | { "_signed_int","_wxPrintQuality",0}, |
10755 | { "_signed_int","_EBool",0}, | |
10756 | { "_signed_int","_wxWindowID",0}, | |
10757 | { "_signed_int","_int",0}, | |
1d99702e RD |
10758 | { "_WXTYPE","_short",0}, |
10759 | { "_WXTYPE","_signed_short",0}, | |
10760 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
10761 | { "_unsigned_short","_WXTYPE",0}, |
10762 | { "_unsigned_short","_short",0}, | |
9416aa89 | 10763 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, |
9416aa89 | 10764 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, |
9416aa89 | 10765 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, |
9416aa89 | 10766 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, |
9416aa89 | 10767 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, |
9416aa89 | 10768 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, |
9416aa89 | 10769 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, |
9416aa89 | 10770 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, |
9416aa89 | 10771 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, |
1d99702e RD |
10772 | { "_signed_short","_WXTYPE",0}, |
10773 | { "_signed_short","_short",0}, | |
1d99702e | 10774 | { "_unsigned_char","_byte",0}, |
b1462dfa | 10775 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10776 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10777 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10778 | { "_unsigned_int","_size_t",0}, |
10779 | { "_unsigned_int","_uint",0}, | |
10780 | { "_unsigned_int","_wxWindowID",0}, | |
10781 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
10782 | { "_short","_WXTYPE",0}, |
10783 | { "_short","_unsigned_short",0}, | |
10784 | { "_short","_signed_short",0}, | |
b1462dfa | 10785 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10786 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10787 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10788 | { "_wxWindowID","_size_t",0}, |
10789 | { "_wxWindowID","_EBool",0}, | |
10790 | { "_wxWindowID","_uint",0}, | |
10791 | { "_wxWindowID","_int",0}, | |
10792 | { "_wxWindowID","_signed_int",0}, | |
10793 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10794 | { "_int","_wxCoord",0}, |
1d99702e | 10795 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10796 | { "_int","_time_t",0}, |
1d99702e RD |
10797 | { "_int","_size_t",0}, |
10798 | { "_int","_EBool",0}, | |
10799 | { "_int","_uint",0}, | |
10800 | { "_int","_wxWindowID",0}, | |
10801 | { "_int","_unsigned_int",0}, | |
10802 | { "_int","_signed_int",0}, | |
c368d904 RD |
10803 | { "_time_t","_wxCoord",0}, |
10804 | { "_time_t","_wxPrintQuality",0}, | |
10805 | { "_time_t","_unsigned_int",0}, | |
10806 | { "_time_t","_int",0}, | |
10807 | { "_time_t","_wxWindowID",0}, | |
10808 | { "_time_t","_uint",0}, | |
10809 | { "_time_t","_size_t",0}, | |
2f90df85 | 10810 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
b1462dfa RD |
10811 | { "_wxCoord","_int",0}, |
10812 | { "_wxCoord","_signed_int",0}, | |
10813 | { "_wxCoord","_unsigned_int",0}, | |
10814 | { "_wxCoord","_wxWindowID",0}, | |
10815 | { "_wxCoord","_uint",0}, | |
10816 | { "_wxCoord","_EBool",0}, | |
10817 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10818 | { "_wxCoord","_time_t",0}, |
b1462dfa | 10819 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 10820 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
1d99702e | 10821 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, |
1d99702e | 10822 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, |
1d99702e | 10823 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, |
1d99702e | 10824 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, |
2f90df85 | 10825 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
2f90df85 | 10826 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, |
b1462dfa | 10827 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, |
1d99702e | 10828 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
1d99702e | 10829 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, |
1d99702e RD |
10830 | {0,0,0}}; |
10831 | ||
8ab979d7 RD |
10832 | static PyObject *SWIG_globals; |
10833 | #ifdef __cplusplus | |
10834 | extern "C" | |
10835 | #endif | |
1d99702e | 10836 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
10837 | PyObject *m, *d; |
10838 | SWIG_globals = SWIG_newvarlink(); | |
10839 | m = Py_InitModule("windowsc", windowscMethods); | |
10840 | d = PyModule_GetDict(m); | |
1d99702e RD |
10841 | { |
10842 | int i; | |
10843 | for (i = 0; _swig_mapping[i].n1; i++) | |
10844 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10845 | } | |
8ab979d7 | 10846 | } |