]>
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 | |
0122b7e3 | 92 | static char* wxStringErrorMsg = "String type required"; |
794c5cb1 | 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 | } | |
25b00b4e RD |
475 | else if (func == Py_None) { |
476 | self->Disconnect(id, lastId, eventType, | |
477 | (wxObjectEventFunction) | |
478 | &wxPyCallback::EventThunker); | |
479 | } | |
480 | else { | |
481 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
482 | } | |
2f90df85 RD |
483 | } |
484 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
485 | PyObject * _resultobj; | |
486 | wxEvtHandler * _arg0; | |
487 | int _arg1; | |
488 | int _arg2; | |
489 | int _arg3; | |
490 | PyObject * _arg4; | |
491 | PyObject * _argo0 = 0; | |
492 | PyObject * _obj4 = 0; | |
493 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
494 | ||
495 | self = self; | |
496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
497 | return NULL; | |
498 | if (_argo0) { | |
499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
502 | return NULL; | |
503 | } | |
504 | } | |
505 | { | |
506 | _arg4 = _obj4; | |
507 | } | |
508 | { | |
509 | wxPy_BEGIN_ALLOW_THREADS; | |
510 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
511 | ||
512 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 513 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
514 | } Py_INCREF(Py_None); |
515 | _resultobj = Py_None; | |
516 | return _resultobj; | |
517 | } | |
518 | ||
6999b0d8 RD |
519 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
520 | return self->Disconnect(id, lastId, eventType, | |
521 | (wxObjectEventFunction) | |
522 | &wxPyCallback::EventThunker); | |
523 | } | |
524 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
525 | PyObject * _resultobj; | |
526 | bool _result; | |
527 | wxEvtHandler * _arg0; | |
528 | int _arg1; | |
529 | int _arg2 = (int ) -1; | |
530 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
531 | PyObject * _argo0 = 0; | |
532 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
533 | ||
534 | self = self; | |
535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
536 | return NULL; | |
537 | if (_argo0) { | |
538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
541 | return NULL; | |
542 | } | |
543 | } | |
544 | { | |
545 | wxPy_BEGIN_ALLOW_THREADS; | |
546 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); | |
547 | ||
548 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 549 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
550 | } _resultobj = Py_BuildValue("i",_result); |
551 | return _resultobj; | |
552 | } | |
553 | ||
0122b7e3 RD |
554 | static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject * _self) { |
555 | self->SetClientObject(new wxPyClientData(_self)); | |
556 | } | |
557 | static PyObject *_wrap_wxEvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
558 | PyObject * _resultobj; | |
559 | wxEvtHandler * _arg0; | |
560 | PyObject * _arg1; | |
561 | PyObject * _argo0 = 0; | |
562 | PyObject * _obj1 = 0; | |
563 | char *_kwnames[] = { "self","_self", NULL }; | |
564 | ||
565 | self = self; | |
566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler__setOORInfo",_kwnames,&_argo0,&_obj1)) | |
567 | return NULL; | |
568 | if (_argo0) { | |
569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p."); | |
572 | return NULL; | |
573 | } | |
574 | } | |
575 | { | |
576 | _arg1 = _obj1; | |
577 | } | |
578 | { | |
579 | wxPy_BEGIN_ALLOW_THREADS; | |
580 | wxEvtHandler__setOORInfo(_arg0,_arg1); | |
581 | ||
582 | wxPy_END_ALLOW_THREADS; | |
583 | if (PyErr_Occurred()) return NULL; | |
584 | } Py_INCREF(Py_None); | |
585 | _resultobj = Py_None; | |
586 | return _resultobj; | |
587 | } | |
588 | ||
2f90df85 RD |
589 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
590 | wxValidator *src; | |
591 | wxEvtHandler *dest; | |
592 | src = (wxValidator *) ptr; | |
593 | dest = (wxEvtHandler *) src; | |
594 | return (void *) dest; | |
595 | } | |
596 | ||
9416aa89 RD |
597 | static void *SwigwxValidatorTowxObject(void *ptr) { |
598 | wxValidator *src; | |
599 | wxObject *dest; | |
600 | src = (wxValidator *) ptr; | |
601 | dest = (wxObject *) src; | |
602 | return (void *) dest; | |
603 | } | |
604 | ||
2f90df85 RD |
605 | #define new_wxValidator() (new wxValidator()) |
606 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
607 | PyObject * _resultobj; | |
608 | wxValidator * _result; | |
609 | char *_kwnames[] = { NULL }; | |
610 | char _ptemp[128]; | |
611 | ||
612 | self = self; | |
613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
614 | return NULL; | |
615 | { | |
616 | wxPy_BEGIN_ALLOW_THREADS; | |
617 | _result = (wxValidator *)new_wxValidator(); | |
618 | ||
619 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 620 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
621 | } if (_result) { |
622 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
623 | _resultobj = Py_BuildValue("s",_ptemp); | |
624 | } else { | |
625 | Py_INCREF(Py_None); | |
626 | _resultobj = Py_None; | |
627 | } | |
628 | return _resultobj; | |
af309447 | 629 | } |
2f90df85 RD |
630 | |
631 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
632 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 633 | PyObject * _resultobj; |
2f90df85 RD |
634 | wxValidator * _result; |
635 | wxValidator * _arg0; | |
636 | PyObject * _argo0 = 0; | |
637 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
638 | |
639 | self = self; | |
2f90df85 RD |
640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
641 | return NULL; | |
642 | if (_argo0) { | |
643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 646 | return NULL; |
2f90df85 RD |
647 | } |
648 | } | |
cf694132 RD |
649 | { |
650 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 651 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 RD |
652 | |
653 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 654 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 655 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
656 | return _resultobj; |
657 | } | |
658 | ||
2f90df85 RD |
659 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
660 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
661 | PyObject * _resultobj; |
662 | wxWindow * _result; | |
2f90df85 RD |
663 | wxValidator * _arg0; |
664 | PyObject * _argo0 = 0; | |
665 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
666 | |
667 | self = self; | |
2f90df85 RD |
668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
669 | return NULL; | |
670 | if (_argo0) { | |
671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 674 | return NULL; |
2f90df85 RD |
675 | } |
676 | } | |
cf694132 RD |
677 | { |
678 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 679 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 RD |
680 | |
681 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 682 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 683 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
684 | return _resultobj; |
685 | } | |
686 | ||
2f90df85 RD |
687 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
688 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 689 | PyObject * _resultobj; |
2f90df85 RD |
690 | wxValidator * _arg0; |
691 | wxWindow * _arg1; | |
1d99702e RD |
692 | PyObject * _argo0 = 0; |
693 | PyObject * _argo1 = 0; | |
2f90df85 | 694 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
695 | |
696 | self = self; | |
2f90df85 | 697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 698 | return NULL; |
1d99702e RD |
699 | if (_argo0) { |
700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
703 | return NULL; |
704 | } | |
705 | } | |
1d99702e RD |
706 | if (_argo1) { |
707 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
708 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
710 | return NULL; |
711 | } | |
712 | } | |
713 | { | |
714 | wxPy_BEGIN_ALLOW_THREADS; | |
2f90df85 | 715 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 RD |
716 | |
717 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 718 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
719 | } Py_INCREF(Py_None); |
720 | _resultobj = Py_None; | |
cf694132 RD |
721 | return _resultobj; |
722 | } | |
723 | ||
9416aa89 RD |
724 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { |
725 | PyObject * _resultobj; | |
726 | bool _result; | |
727 | char *_kwnames[] = { NULL }; | |
728 | ||
729 | self = self; | |
730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
731 | return NULL; | |
732 | { | |
733 | wxPy_BEGIN_ALLOW_THREADS; | |
734 | _result = (bool )wxValidator::IsSilent(); | |
735 | ||
736 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 737 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
738 | } _resultobj = Py_BuildValue("i",_result); |
739 | return _resultobj; | |
740 | } | |
741 | ||
742 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
743 | PyObject * _resultobj; | |
744 | int _arg0 = (int ) TRUE; | |
745 | char *_kwnames[] = { "doIt", NULL }; | |
746 | ||
747 | self = self; | |
748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
749 | return NULL; | |
750 | { | |
751 | wxPy_BEGIN_ALLOW_THREADS; | |
752 | wxValidator::SetBellOnError(_arg0); | |
753 | ||
754 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 755 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
756 | } Py_INCREF(Py_None); |
757 | _resultobj = Py_None; | |
758 | return _resultobj; | |
759 | } | |
760 | ||
2f90df85 RD |
761 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
762 | wxPyValidator *src; | |
763 | wxValidator *dest; | |
764 | src = (wxPyValidator *) ptr; | |
765 | dest = (wxValidator *) src; | |
766 | return (void *) dest; | |
767 | } | |
768 | ||
769 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
770 | wxPyValidator *src; | |
771 | wxEvtHandler *dest; | |
772 | src = (wxPyValidator *) ptr; | |
773 | dest = (wxEvtHandler *) src; | |
774 | return (void *) dest; | |
775 | } | |
776 | ||
9416aa89 RD |
777 | static void *SwigwxPyValidatorTowxObject(void *ptr) { |
778 | wxPyValidator *src; | |
779 | wxObject *dest; | |
780 | src = (wxPyValidator *) ptr; | |
781 | dest = (wxObject *) src; | |
782 | return (void *) dest; | |
783 | } | |
784 | ||
2f90df85 RD |
785 | #define new_wxPyValidator() (new wxPyValidator()) |
786 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
787 | PyObject * _resultobj; | |
788 | wxPyValidator * _result; | |
789 | char *_kwnames[] = { NULL }; | |
790 | char _ptemp[128]; | |
791 | ||
792 | self = self; | |
793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
794 | return NULL; | |
795 | { | |
796 | wxPy_BEGIN_ALLOW_THREADS; | |
797 | _result = (wxPyValidator *)new_wxPyValidator(); | |
798 | ||
799 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 800 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
801 | } if (_result) { |
802 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
803 | _resultobj = Py_BuildValue("s",_ptemp); | |
804 | } else { | |
805 | Py_INCREF(Py_None); | |
806 | _resultobj = Py_None; | |
807 | } | |
808 | return _resultobj; | |
809 | } | |
810 | ||
0122b7e3 RD |
811 | #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2)) |
812 | static PyObject *_wrap_wxPyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 813 | PyObject * _resultobj; |
2f90df85 RD |
814 | wxPyValidator * _arg0; |
815 | PyObject * _arg1; | |
f6bcfd97 BP |
816 | PyObject * _arg2; |
817 | int _arg3 = (int ) TRUE; | |
1d99702e | 818 | PyObject * _argo0 = 0; |
2f90df85 | 819 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
820 | PyObject * _obj2 = 0; |
821 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
822 | |
823 | self = self; | |
0122b7e3 | 824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 825 | return NULL; |
1d99702e RD |
826 | if (_argo0) { |
827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 | 828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
0122b7e3 | 829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p."); |
8ab979d7 RD |
830 | return NULL; |
831 | } | |
832 | } | |
833 | { | |
2f90df85 | 834 | _arg1 = _obj1; |
8ab979d7 | 835 | } |
f6bcfd97 BP |
836 | { |
837 | _arg2 = _obj2; | |
838 | } | |
cf694132 RD |
839 | { |
840 | wxPy_BEGIN_ALLOW_THREADS; | |
0122b7e3 | 841 | wxPyValidator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
842 | |
843 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 844 | if (PyErr_Occurred()) return NULL; |
cf694132 | 845 | } Py_INCREF(Py_None); |
8ab979d7 RD |
846 | _resultobj = Py_None; |
847 | return _resultobj; | |
848 | } | |
849 | ||
850 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
851 | wxWindow *src; | |
852 | wxEvtHandler *dest; | |
853 | src = (wxWindow *) ptr; | |
854 | dest = (wxEvtHandler *) src; | |
855 | return (void *) dest; | |
856 | } | |
857 | ||
9416aa89 RD |
858 | static void *SwigwxWindowTowxObject(void *ptr) { |
859 | wxWindow *src; | |
860 | wxObject *dest; | |
861 | src = (wxWindow *) ptr; | |
862 | dest = (wxObject *) src; | |
863 | return (void *) dest; | |
864 | } | |
865 | ||
8ab979d7 | 866 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 867 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
868 | PyObject * _resultobj; |
869 | wxWindow * _result; | |
870 | wxWindow * _arg0; | |
871 | wxWindowID _arg1; | |
e508a2b6 RD |
872 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
873 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
874 | long _arg4 = (long ) 0; |
875 | char * _arg5 = (char *) "panel"; | |
876 | PyObject * _argo0 = 0; | |
2f90df85 RD |
877 | wxPoint temp; |
878 | PyObject * _obj2 = 0; | |
879 | wxSize temp0; | |
880 | PyObject * _obj3 = 0; | |
efc5f224 | 881 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
882 | char _ptemp[128]; |
883 | ||
884 | self = self; | |
2f90df85 | 885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 886 | return NULL; |
1d99702e RD |
887 | if (_argo0) { |
888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
891 | return NULL; | |
892 | } | |
893 | } | |
2f90df85 RD |
894 | if (_obj2) |
895 | { | |
896 | _arg2 = &temp; | |
897 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 898 | return NULL; |
2f90df85 RD |
899 | } |
900 | if (_obj3) | |
901 | { | |
902 | _arg3 = &temp0; | |
903 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 904 | return NULL; |
2f90df85 | 905 | } |
cf694132 RD |
906 | { |
907 | wxPy_BEGIN_ALLOW_THREADS; | |
908 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
909 | ||
910 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 911 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
912 | } if (_result) { |
913 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
914 | _resultobj = Py_BuildValue("s",_ptemp); | |
915 | } else { | |
916 | Py_INCREF(Py_None); | |
917 | _resultobj = Py_None; | |
918 | } | |
8ab979d7 RD |
919 | return _resultobj; |
920 | } | |
921 | ||
09f3d4e6 RD |
922 | #define new_wxPreWindow() (new wxWindow()) |
923 | static PyObject *_wrap_new_wxPreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
924 | PyObject * _resultobj; | |
925 | wxWindow * _result; | |
926 | char *_kwnames[] = { NULL }; | |
927 | char _ptemp[128]; | |
928 | ||
929 | self = self; | |
930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreWindow",_kwnames)) | |
931 | return NULL; | |
932 | { | |
933 | wxPy_BEGIN_ALLOW_THREADS; | |
934 | _result = (wxWindow *)new_wxPreWindow(); | |
935 | ||
936 | wxPy_END_ALLOW_THREADS; | |
937 | if (PyErr_Occurred()) return NULL; | |
938 | } if (_result) { | |
939 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
940 | _resultobj = Py_BuildValue("s",_ptemp); | |
941 | } else { | |
942 | Py_INCREF(Py_None); | |
943 | _resultobj = Py_None; | |
944 | } | |
945 | return _resultobj; | |
946 | } | |
947 | ||
948 | #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
949 | static PyObject *_wrap_wxWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
950 | PyObject * _resultobj; | |
951 | bool _result; | |
952 | wxWindow * _arg0; | |
953 | wxWindow * _arg1; | |
954 | wxWindowID _arg2; | |
955 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
956 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
957 | long _arg5 = (long ) 0; | |
958 | char * _arg6 = (char *) "panel"; | |
959 | PyObject * _argo0 = 0; | |
960 | PyObject * _argo1 = 0; | |
961 | wxPoint temp; | |
962 | PyObject * _obj3 = 0; | |
963 | wxSize temp0; | |
964 | PyObject * _obj4 = 0; | |
965 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
966 | ||
967 | self = self; | |
968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
969 | return NULL; | |
970 | if (_argo0) { | |
971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p."); | |
974 | return NULL; | |
975 | } | |
976 | } | |
977 | if (_argo1) { | |
978 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
979 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p."); | |
981 | return NULL; | |
982 | } | |
983 | } | |
984 | if (_obj3) | |
985 | { | |
986 | _arg3 = &temp; | |
987 | if (! wxPoint_helper(_obj3, &_arg3)) | |
988 | return NULL; | |
989 | } | |
990 | if (_obj4) | |
991 | { | |
992 | _arg4 = &temp0; | |
993 | if (! wxSize_helper(_obj4, &_arg4)) | |
994 | return NULL; | |
995 | } | |
996 | { | |
997 | wxPy_BEGIN_ALLOW_THREADS; | |
998 | _result = (bool )wxWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
999 | ||
1000 | wxPy_END_ALLOW_THREADS; | |
1001 | if (PyErr_Occurred()) return NULL; | |
1002 | } _resultobj = Py_BuildValue("i",_result); | |
1003 | return _resultobj; | |
1004 | } | |
1005 | ||
8ab979d7 | 1006 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) |
efc5f224 | 1007 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1008 | PyObject * _resultobj; |
1009 | wxWindow * _arg0; | |
1d99702e | 1010 | PyObject * _argo0 = 0; |
efc5f224 | 1011 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1012 | |
1013 | self = self; | |
efc5f224 | 1014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) |
8ab979d7 | 1015 | return NULL; |
1d99702e RD |
1016 | if (_argo0) { |
1017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); |
1020 | return NULL; | |
1021 | } | |
1022 | } | |
cf694132 RD |
1023 | { |
1024 | wxPy_BEGIN_ALLOW_THREADS; | |
1025 | wxWindow_CaptureMouse(_arg0); | |
1026 | ||
1027 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1028 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1029 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1030 | _resultobj = Py_None; |
1031 | return _resultobj; | |
1032 | } | |
1033 | ||
1034 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
efc5f224 | 1035 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1036 | PyObject * _resultobj; |
1037 | wxWindow * _arg0; | |
1d99702e RD |
1038 | int _arg1 = (int ) wxBOTH; |
1039 | PyObject * _argo0 = 0; | |
efc5f224 | 1040 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1041 | |
1042 | self = self; | |
efc5f224 | 1043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1044 | return NULL; |
1d99702e RD |
1045 | if (_argo0) { |
1046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
1049 | return NULL; | |
1050 | } | |
1051 | } | |
cf694132 RD |
1052 | { |
1053 | wxPy_BEGIN_ALLOW_THREADS; | |
1054 | wxWindow_Center(_arg0,_arg1); | |
1055 | ||
1056 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1057 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1058 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1059 | _resultobj = Py_None; |
1060 | return _resultobj; | |
1061 | } | |
1062 | ||
1063 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 1064 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1065 | PyObject * _resultobj; |
1066 | wxWindow * _arg0; | |
1d99702e RD |
1067 | int _arg1 = (int ) wxBOTH; |
1068 | PyObject * _argo0 = 0; | |
efc5f224 | 1069 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1070 | |
1071 | self = self; | |
efc5f224 | 1072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1073 | return NULL; |
1d99702e RD |
1074 | if (_argo0) { |
1075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
1078 | return NULL; | |
1079 | } | |
1080 | } | |
cf694132 RD |
1081 | { |
1082 | wxPy_BEGIN_ALLOW_THREADS; | |
1083 | wxWindow_Centre(_arg0,_arg1); | |
1084 | ||
1085 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1086 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1087 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1088 | _resultobj = Py_None; |
1089 | return _resultobj; | |
1090 | } | |
1091 | ||
bb0054cd | 1092 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 1093 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1094 | PyObject * _resultobj; |
1095 | wxWindow * _arg0; | |
1d99702e RD |
1096 | int _arg1 = (int ) wxBOTH; |
1097 | PyObject * _argo0 = 0; | |
efc5f224 | 1098 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1099 | |
1100 | self = self; | |
efc5f224 | 1101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1102 | return NULL; |
1d99702e RD |
1103 | if (_argo0) { |
1104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
1107 | return NULL; | |
1108 | } | |
1109 | } | |
1110 | { | |
1111 | wxPy_BEGIN_ALLOW_THREADS; | |
1112 | wxWindow_CentreOnParent(_arg0,_arg1); | |
1113 | ||
1114 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1115 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1116 | } Py_INCREF(Py_None); |
1117 | _resultobj = Py_None; | |
1118 | return _resultobj; | |
1119 | } | |
1120 | ||
1121 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 1122 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1123 | PyObject * _resultobj; |
1124 | wxWindow * _arg0; | |
1d99702e RD |
1125 | int _arg1 = (int ) wxBOTH; |
1126 | PyObject * _argo0 = 0; | |
efc5f224 | 1127 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1128 | |
1129 | self = self; | |
efc5f224 | 1130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1131 | return NULL; |
1d99702e RD |
1132 | if (_argo0) { |
1133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
1136 | return NULL; | |
1137 | } | |
1138 | } | |
1139 | { | |
1140 | wxPy_BEGIN_ALLOW_THREADS; | |
1141 | wxWindow_CenterOnParent(_arg0,_arg1); | |
1142 | ||
1143 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1144 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1145 | } Py_INCREF(Py_None); |
1146 | _resultobj = Py_None; | |
1147 | return _resultobj; | |
1148 | } | |
1149 | ||
3ca6a5f0 BP |
1150 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
1151 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1152 | PyObject * _resultobj; | |
1153 | wxWindow * _arg0; | |
1154 | int _arg1 = (int ) wxBOTH; | |
1155 | PyObject * _argo0 = 0; | |
1156 | char *_kwnames[] = { "self","direction", NULL }; | |
1157 | ||
1158 | self = self; | |
1159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1160 | return NULL; | |
1161 | if (_argo0) { | |
1162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1165 | return NULL; | |
1166 | } | |
1167 | } | |
1168 | { | |
1169 | wxPy_BEGIN_ALLOW_THREADS; | |
1170 | wxWindow_CentreOnScreen(_arg0,_arg1); | |
1171 | ||
1172 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1173 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1174 | } Py_INCREF(Py_None); |
1175 | _resultobj = Py_None; | |
1176 | return _resultobj; | |
1177 | } | |
1178 | ||
1179 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1180 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1181 | PyObject * _resultobj; | |
1182 | wxWindow * _arg0; | |
1183 | int _arg1 = (int ) wxBOTH; | |
1184 | PyObject * _argo0 = 0; | |
1185 | char *_kwnames[] = { "self","direction", NULL }; | |
1186 | ||
1187 | self = self; | |
1188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1189 | return NULL; | |
1190 | if (_argo0) { | |
1191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1194 | return NULL; | |
1195 | } | |
1196 | } | |
1197 | { | |
1198 | wxPy_BEGIN_ALLOW_THREADS; | |
1199 | wxWindow_CenterOnScreen(_arg0,_arg1); | |
1200 | ||
1201 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1202 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1203 | } Py_INCREF(Py_None); |
1204 | _resultobj = Py_None; | |
1205 | return _resultobj; | |
1206 | } | |
1207 | ||
d56cebe7 RD |
1208 | #define wxWindow_Clear(_swigobj) (_swigobj->Clear()) |
1209 | static PyObject *_wrap_wxWindow_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1210 | PyObject * _resultobj; | |
1211 | wxWindow * _arg0; | |
1212 | PyObject * _argo0 = 0; | |
1213 | char *_kwnames[] = { "self", NULL }; | |
1214 | ||
1215 | self = self; | |
1216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Clear",_kwnames,&_argo0)) | |
1217 | return NULL; | |
1218 | if (_argo0) { | |
1219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p."); | |
1222 | return NULL; | |
1223 | } | |
1224 | } | |
1225 | { | |
1226 | wxPy_BEGIN_ALLOW_THREADS; | |
1227 | wxWindow_Clear(_arg0); | |
1228 | ||
1229 | wxPy_END_ALLOW_THREADS; | |
1230 | if (PyErr_Occurred()) return NULL; | |
1231 | } Py_INCREF(Py_None); | |
1232 | _resultobj = Py_None; | |
1233 | return _resultobj; | |
1234 | } | |
1235 | ||
af309447 | 1236 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1237 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1238 | PyObject * _resultobj; |
1239 | wxWindow * _arg0; | |
1240 | int * _arg1; | |
1241 | int * _arg2; | |
1d99702e | 1242 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1243 | int temp; |
1244 | PyObject * _obj1 = 0; | |
1245 | int temp0; | |
1246 | PyObject * _obj2 = 0; | |
efc5f224 | 1247 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1248 | |
1249 | self = self; | |
efc5f224 | 1250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1251 | return NULL; |
1d99702e RD |
1252 | if (_argo0) { |
1253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1256 | return NULL; |
1257 | } | |
1258 | } | |
1259 | { | |
1260 | temp = (int) PyInt_AsLong(_obj1); | |
1261 | _arg1 = &temp; | |
1262 | } | |
1263 | { | |
1264 | temp0 = (int) PyInt_AsLong(_obj2); | |
1265 | _arg2 = &temp0; | |
1266 | } | |
cf694132 RD |
1267 | { |
1268 | wxPy_BEGIN_ALLOW_THREADS; | |
1269 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); | |
1270 | ||
1271 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1272 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1273 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1274 | _resultobj = Py_None; |
1275 | { | |
1276 | PyObject *o; | |
1277 | o = PyInt_FromLong((long) (*_arg1)); | |
1278 | _resultobj = t_output_helper(_resultobj, o); | |
1279 | } | |
1280 | { | |
1281 | PyObject *o; | |
1282 | o = PyInt_FromLong((long) (*_arg2)); | |
1283 | _resultobj = t_output_helper(_resultobj, o); | |
1284 | } | |
1285 | return _resultobj; | |
1286 | } | |
1287 | ||
af309447 | 1288 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1289 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1290 | PyObject * _resultobj; |
1291 | wxPoint * _result; | |
1292 | wxWindow * _arg0; | |
1293 | wxPoint * _arg1; | |
1d99702e | 1294 | PyObject * _argo0 = 0; |
2f90df85 RD |
1295 | wxPoint temp; |
1296 | PyObject * _obj1 = 0; | |
efc5f224 | 1297 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1298 | char _ptemp[128]; |
1299 | ||
1300 | self = self; | |
2f90df85 | 1301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1302 | return NULL; |
1d99702e RD |
1303 | if (_argo0) { |
1304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1307 | return NULL; | |
1308 | } | |
1309 | } | |
2f90df85 RD |
1310 | { |
1311 | _arg1 = &temp; | |
1312 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1313 | return NULL; |
2f90df85 | 1314 | } |
cf694132 RD |
1315 | { |
1316 | wxPy_BEGIN_ALLOW_THREADS; | |
1317 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); | |
1318 | ||
1319 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1320 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1321 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
1322 | _resultobj = Py_BuildValue("s",_ptemp); |
1323 | return _resultobj; | |
1324 | } | |
1325 | ||
8ab979d7 | 1326 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1327 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1328 | PyObject * _resultobj; |
1329 | bool _result; | |
1330 | wxWindow * _arg0; | |
1d99702e RD |
1331 | int _arg1 = (int ) FALSE; |
1332 | PyObject * _argo0 = 0; | |
efc5f224 | 1333 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1334 | |
1335 | self = self; | |
efc5f224 | 1336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1337 | return NULL; |
1d99702e RD |
1338 | if (_argo0) { |
1339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1342 | return NULL; | |
1343 | } | |
1344 | } | |
cf694132 RD |
1345 | { |
1346 | wxPy_BEGIN_ALLOW_THREADS; | |
1347 | _result = (bool )wxWindow_Close(_arg0,_arg1); | |
1348 | ||
1349 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1350 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1351 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1352 | return _resultobj; |
1353 | } | |
1354 | ||
1355 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1356 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1357 | PyObject * _resultobj; |
1358 | bool _result; | |
1359 | wxWindow * _arg0; | |
1d99702e | 1360 | PyObject * _argo0 = 0; |
efc5f224 | 1361 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1362 | |
1363 | self = self; | |
efc5f224 | 1364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1365 | return NULL; |
1d99702e RD |
1366 | if (_argo0) { |
1367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1370 | return NULL; | |
1371 | } | |
1372 | } | |
cf694132 RD |
1373 | { |
1374 | wxPy_BEGIN_ALLOW_THREADS; | |
1375 | _result = (bool )wxWindow_Destroy(_arg0); | |
1376 | ||
1377 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1378 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1379 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1380 | return _resultobj; |
1381 | } | |
1382 | ||
1383 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1384 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1385 | PyObject * _resultobj; |
1386 | wxWindow * _arg0; | |
1d99702e | 1387 | PyObject * _argo0 = 0; |
efc5f224 | 1388 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1389 | |
1390 | self = self; | |
efc5f224 | 1391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1392 | return NULL; |
1d99702e RD |
1393 | if (_argo0) { |
1394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1397 | return NULL; | |
1398 | } | |
1399 | } | |
cf694132 RD |
1400 | { |
1401 | wxPy_BEGIN_ALLOW_THREADS; | |
1402 | wxWindow_DestroyChildren(_arg0); | |
1403 | ||
1404 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1405 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1406 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1407 | _resultobj = Py_None; |
1408 | return _resultobj; | |
1409 | } | |
1410 | ||
ac346f50 RD |
1411 | #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted()) |
1412 | static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1413 | PyObject * _resultobj; | |
1414 | bool _result; | |
1415 | wxWindow * _arg0; | |
1416 | PyObject * _argo0 = 0; | |
1417 | char *_kwnames[] = { "self", NULL }; | |
1418 | ||
1419 | self = self; | |
1420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0)) | |
1421 | return NULL; | |
1422 | if (_argo0) { | |
1423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p."); | |
1426 | return NULL; | |
1427 | } | |
1428 | } | |
1429 | { | |
1430 | wxPy_BEGIN_ALLOW_THREADS; | |
1431 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); | |
1432 | ||
1433 | wxPy_END_ALLOW_THREADS; | |
1434 | if (PyErr_Occurred()) return NULL; | |
1435 | } _resultobj = Py_BuildValue("i",_result); | |
1436 | return _resultobj; | |
1437 | } | |
1438 | ||
8ab979d7 | 1439 | #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0)) |
efc5f224 | 1440 | static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1441 | PyObject * _resultobj; |
1442 | wxWindow * _arg0; | |
1443 | bool _arg1; | |
1d99702e | 1444 | PyObject * _argo0 = 0; |
8ab979d7 | 1445 | int tempbool1; |
efc5f224 | 1446 | char *_kwnames[] = { "self","accept", NULL }; |
8ab979d7 RD |
1447 | |
1448 | self = self; | |
efc5f224 | 1449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1450 | return NULL; |
1d99702e RD |
1451 | if (_argo0) { |
1452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p."); |
1455 | return NULL; | |
1456 | } | |
1457 | } | |
1458 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1459 | { |
1460 | wxPy_BEGIN_ALLOW_THREADS; | |
1461 | wxWindow_DragAcceptFiles(_arg0,_arg1); | |
1462 | ||
1463 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1464 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1465 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1466 | _resultobj = Py_None; |
1467 | return _resultobj; | |
1468 | } | |
1469 | ||
1470 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
efc5f224 | 1471 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1472 | PyObject * _resultobj; |
1473 | wxWindow * _arg0; | |
1474 | bool _arg1; | |
1d99702e | 1475 | PyObject * _argo0 = 0; |
8ab979d7 | 1476 | int tempbool1; |
efc5f224 | 1477 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1478 | |
1479 | self = self; | |
efc5f224 | 1480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1481 | return NULL; |
1d99702e RD |
1482 | if (_argo0) { |
1483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1486 | return NULL; | |
1487 | } | |
1488 | } | |
1489 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1490 | { |
1491 | wxPy_BEGIN_ALLOW_THREADS; | |
1492 | wxWindow_Enable(_arg0,_arg1); | |
1493 | ||
1494 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1495 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1496 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1497 | _resultobj = Py_None; |
1498 | return _resultobj; | |
1499 | } | |
1500 | ||
af309447 | 1501 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1502 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1503 | PyObject * _resultobj; |
1504 | wxWindow * _result; | |
1505 | wxWindow * _arg0; | |
1506 | long _arg1; | |
1d99702e | 1507 | PyObject * _argo0 = 0; |
efc5f224 | 1508 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1509 | |
1510 | self = self; | |
efc5f224 | 1511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1512 | return NULL; |
1d99702e RD |
1513 | if (_argo0) { |
1514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1517 | return NULL; |
1518 | } | |
1519 | } | |
cf694132 RD |
1520 | { |
1521 | wxPy_BEGIN_ALLOW_THREADS; | |
1522 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); | |
1523 | ||
1524 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1525 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1526 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1527 | return _resultobj; |
1528 | } | |
1529 | ||
1530 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1531 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1532 | PyObject * _resultobj; |
1533 | wxWindow * _result; | |
1534 | wxWindow * _arg0; | |
1535 | wxString * _arg1; | |
1d99702e | 1536 | PyObject * _argo0 = 0; |
8ab979d7 | 1537 | PyObject * _obj1 = 0; |
efc5f224 | 1538 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1539 | |
1540 | self = self; | |
efc5f224 | 1541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1542 | return NULL; |
1d99702e RD |
1543 | if (_argo0) { |
1544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1547 | return NULL; | |
1548 | } | |
1549 | } | |
1550 | { | |
185d7c3e RD |
1551 | #if PYTHON_API_VERSION >= 1009 |
1552 | char* tmpPtr; int tmpSize; | |
1553 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1554 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1555 | return NULL; |
1556 | } | |
1557 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1558 | return NULL; | |
1559 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1560 | #else | |
8ab979d7 RD |
1561 | if (!PyString_Check(_obj1)) { |
1562 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1563 | return NULL; | |
1564 | } | |
185d7c3e RD |
1565 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1566 | #endif | |
8ab979d7 | 1567 | } |
cf694132 RD |
1568 | { |
1569 | wxPy_BEGIN_ALLOW_THREADS; | |
1570 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); | |
1571 | ||
1572 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1573 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1574 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1575 | { |
1576 | if (_obj1) | |
1577 | delete _arg1; | |
1578 | } | |
1579 | return _resultobj; | |
1580 | } | |
1581 | ||
1582 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1583 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1584 | PyObject * _resultobj; |
1585 | wxWindow * _arg0; | |
1d99702e | 1586 | PyObject * _argo0 = 0; |
efc5f224 | 1587 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1588 | |
1589 | self = self; | |
efc5f224 | 1590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1591 | return NULL; |
1d99702e RD |
1592 | if (_argo0) { |
1593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1596 | return NULL; | |
1597 | } | |
1598 | } | |
cf694132 RD |
1599 | { |
1600 | wxPy_BEGIN_ALLOW_THREADS; | |
1601 | wxWindow_Fit(_arg0); | |
1602 | ||
1603 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1604 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1605 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1606 | _resultobj = Py_None; |
1607 | return _resultobj; | |
1608 | } | |
1609 | ||
1610 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
efc5f224 | 1611 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1612 | PyObject * _resultobj; |
1613 | wxColour * _result; | |
1614 | wxWindow * _arg0; | |
1d99702e | 1615 | PyObject * _argo0 = 0; |
efc5f224 | 1616 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1617 | char _ptemp[128]; |
1618 | ||
1619 | self = self; | |
efc5f224 | 1620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1621 | return NULL; |
1d99702e RD |
1622 | if (_argo0) { |
1623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1626 | return NULL; | |
1627 | } | |
1628 | } | |
cf694132 RD |
1629 | { |
1630 | wxPy_BEGIN_ALLOW_THREADS; | |
1631 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); | |
1632 | ||
1633 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1634 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1635 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1636 | _resultobj = Py_BuildValue("s",_ptemp); |
1637 | return _resultobj; | |
1638 | } | |
1639 | ||
d426c97e RD |
1640 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1641 | wxWindowList& list = self->GetChildren(); | |
1642 | return wxPy_ConvertList(&list, "wxWindow"); | |
1643 | } | |
1644 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1645 | PyObject * _resultobj; | |
1646 | PyObject * _result; | |
1647 | wxWindow * _arg0; | |
1648 | PyObject * _argo0 = 0; | |
1649 | char *_kwnames[] = { "self", NULL }; | |
1650 | ||
1651 | self = self; | |
1652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1653 | return NULL; | |
1654 | if (_argo0) { | |
1655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1658 | return NULL; | |
1659 | } | |
1660 | } | |
1661 | { | |
1662 | wxPy_BEGIN_ALLOW_THREADS; | |
1663 | _result = (PyObject *)wxWindow_GetChildren(_arg0); | |
1664 | ||
1665 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1666 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
1667 | }{ |
1668 | _resultobj = _result; | |
1669 | } | |
1670 | return _resultobj; | |
1671 | } | |
1672 | ||
8ab979d7 | 1673 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1674 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1675 | PyObject * _resultobj; |
1676 | int _result; | |
1677 | wxWindow * _arg0; | |
1d99702e | 1678 | PyObject * _argo0 = 0; |
efc5f224 | 1679 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1680 | |
1681 | self = self; | |
efc5f224 | 1682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1683 | return NULL; |
1d99702e RD |
1684 | if (_argo0) { |
1685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1688 | return NULL; | |
1689 | } | |
1690 | } | |
cf694132 RD |
1691 | { |
1692 | wxPy_BEGIN_ALLOW_THREADS; | |
1693 | _result = (int )wxWindow_GetCharHeight(_arg0); | |
1694 | ||
1695 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1696 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1697 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1698 | return _resultobj; |
1699 | } | |
1700 | ||
1701 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1702 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1703 | PyObject * _resultobj; |
1704 | int _result; | |
1705 | wxWindow * _arg0; | |
1d99702e | 1706 | PyObject * _argo0 = 0; |
efc5f224 | 1707 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1708 | |
1709 | self = self; | |
efc5f224 | 1710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1711 | return NULL; |
1d99702e RD |
1712 | if (_argo0) { |
1713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1716 | return NULL; | |
1717 | } | |
1718 | } | |
cf694132 RD |
1719 | { |
1720 | wxPy_BEGIN_ALLOW_THREADS; | |
1721 | _result = (int )wxWindow_GetCharWidth(_arg0); | |
1722 | ||
1723 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1724 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1725 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1726 | return _resultobj; |
1727 | } | |
1728 | ||
b8b8dda7 | 1729 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1730 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1731 | PyObject * _resultobj; |
1732 | wxWindow * _arg0; | |
1733 | int * _arg1; | |
1734 | int temp; | |
1735 | int * _arg2; | |
1736 | int temp0; | |
1d99702e | 1737 | PyObject * _argo0 = 0; |
efc5f224 | 1738 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1739 | |
1740 | self = self; | |
1741 | { | |
1742 | _arg1 = &temp; | |
1743 | } | |
1744 | { | |
1745 | _arg2 = &temp0; | |
1746 | } | |
efc5f224 | 1747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1748 | return NULL; |
1d99702e RD |
1749 | if (_argo0) { |
1750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1753 | return NULL; |
1754 | } | |
1755 | } | |
cf694132 RD |
1756 | { |
1757 | wxPy_BEGIN_ALLOW_THREADS; | |
1758 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); | |
1759 | ||
1760 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1761 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1762 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1763 | _resultobj = Py_None; |
1764 | { | |
1765 | PyObject *o; | |
1766 | o = PyInt_FromLong((long) (*_arg1)); | |
1767 | _resultobj = t_output_helper(_resultobj, o); | |
1768 | } | |
1769 | { | |
1770 | PyObject *o; | |
1771 | o = PyInt_FromLong((long) (*_arg2)); | |
1772 | _resultobj = t_output_helper(_resultobj, o); | |
1773 | } | |
1774 | return _resultobj; | |
1775 | } | |
1776 | ||
b8b8dda7 | 1777 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1778 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1779 | PyObject * _resultobj; |
1780 | wxSize * _result; | |
1781 | wxWindow * _arg0; | |
1d99702e | 1782 | PyObject * _argo0 = 0; |
efc5f224 | 1783 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1784 | char _ptemp[128]; |
1785 | ||
1786 | self = self; | |
efc5f224 | 1787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1788 | return NULL; |
1d99702e RD |
1789 | if (_argo0) { |
1790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1793 | return NULL; | |
1794 | } | |
1795 | } | |
cf694132 RD |
1796 | { |
1797 | wxPy_BEGIN_ALLOW_THREADS; | |
1798 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); | |
1799 | ||
1800 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1801 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1802 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
1803 | _resultobj = Py_BuildValue("s",_ptemp); |
1804 | return _resultobj; | |
1805 | } | |
1806 | ||
8ab979d7 | 1807 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1808 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1809 | PyObject * _resultobj; |
1810 | wxLayoutConstraints * _result; | |
1811 | wxWindow * _arg0; | |
1d99702e | 1812 | PyObject * _argo0 = 0; |
efc5f224 | 1813 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1814 | char _ptemp[128]; |
1815 | ||
1816 | self = self; | |
efc5f224 | 1817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1818 | return NULL; |
1d99702e RD |
1819 | if (_argo0) { |
1820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1823 | return NULL; | |
1824 | } | |
1825 | } | |
cf694132 RD |
1826 | { |
1827 | wxPy_BEGIN_ALLOW_THREADS; | |
1828 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); | |
1829 | ||
1830 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1831 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1832 | } if (_result) { |
1833 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1834 | _resultobj = Py_BuildValue("s",_ptemp); | |
1835 | } else { | |
1836 | Py_INCREF(Py_None); | |
1837 | _resultobj = Py_None; | |
1838 | } | |
8ab979d7 RD |
1839 | return _resultobj; |
1840 | } | |
1841 | ||
1afc06c2 RD |
1842 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1843 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1844 | PyObject * _resultobj; | |
1845 | wxEvtHandler * _result; | |
1846 | wxWindow * _arg0; | |
1847 | PyObject * _argo0 = 0; | |
1848 | char *_kwnames[] = { "self", NULL }; | |
1afc06c2 RD |
1849 | |
1850 | self = self; | |
1851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1852 | return NULL; | |
1853 | if (_argo0) { | |
1854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1857 | return NULL; | |
1858 | } | |
1859 | } | |
1860 | { | |
1861 | wxPy_BEGIN_ALLOW_THREADS; | |
1862 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); | |
1863 | ||
1864 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1865 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1866 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
1867 | return _resultobj; |
1868 | } | |
1869 | ||
8ab979d7 | 1870 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 1871 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1872 | PyObject * _resultobj; |
1873 | wxFont * _result; | |
1874 | wxWindow * _arg0; | |
1d99702e | 1875 | PyObject * _argo0 = 0; |
efc5f224 | 1876 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1877 | char _ptemp[128]; |
1878 | ||
1879 | self = self; | |
efc5f224 | 1880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 1881 | return NULL; |
1d99702e RD |
1882 | if (_argo0) { |
1883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
1886 | return NULL; | |
1887 | } | |
1888 | } | |
cf694132 RD |
1889 | { |
1890 | wxPy_BEGIN_ALLOW_THREADS; | |
c5943253 | 1891 | _result = new wxFont (wxWindow_GetFont(_arg0)); |
cf694132 RD |
1892 | |
1893 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1894 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1895 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1896 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
1897 | return _resultobj; |
1898 | } | |
1899 | ||
1900 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 1901 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1902 | PyObject * _resultobj; |
1903 | wxColour * _result; | |
1904 | wxWindow * _arg0; | |
1d99702e | 1905 | PyObject * _argo0 = 0; |
efc5f224 | 1906 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1907 | char _ptemp[128]; |
1908 | ||
1909 | self = self; | |
efc5f224 | 1910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1911 | return NULL; |
1d99702e RD |
1912 | if (_argo0) { |
1913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
1916 | return NULL; | |
1917 | } | |
1918 | } | |
cf694132 RD |
1919 | { |
1920 | wxPy_BEGIN_ALLOW_THREADS; | |
1921 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); | |
1922 | ||
1923 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1924 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1925 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1926 | _resultobj = Py_BuildValue("s",_ptemp); |
1927 | return _resultobj; | |
1928 | } | |
1929 | ||
1930 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 1931 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1932 | PyObject * _resultobj; |
1933 | wxWindow * _result; | |
1934 | wxWindow * _arg0; | |
1d99702e | 1935 | PyObject * _argo0 = 0; |
efc5f224 | 1936 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1937 | |
1938 | self = self; | |
efc5f224 | 1939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 1940 | return NULL; |
1d99702e RD |
1941 | if (_argo0) { |
1942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
1945 | return NULL; | |
1946 | } | |
1947 | } | |
cf694132 RD |
1948 | { |
1949 | wxPy_BEGIN_ALLOW_THREADS; | |
1950 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); | |
1951 | ||
1952 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1953 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1954 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1955 | return _resultobj; |
1956 | } | |
1957 | ||
2abc0a0f | 1958 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 1959 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
1960 | } |
1961 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1962 | PyObject * _resultobj; | |
1963 | long _result; | |
1964 | wxWindow * _arg0; | |
1965 | PyObject * _argo0 = 0; | |
1966 | char *_kwnames[] = { "self", NULL }; | |
1967 | ||
1968 | self = self; | |
1969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
1970 | return NULL; | |
1971 | if (_argo0) { | |
1972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
1975 | return NULL; | |
1976 | } | |
1977 | } | |
1978 | { | |
1979 | wxPy_BEGIN_ALLOW_THREADS; | |
1980 | _result = (long )wxWindow_GetHandle(_arg0); | |
1981 | ||
1982 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1983 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
1984 | } _resultobj = Py_BuildValue("l",_result); |
1985 | return _resultobj; | |
1986 | } | |
1987 | ||
8ab979d7 | 1988 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 1989 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1990 | PyObject * _resultobj; |
1991 | int _result; | |
1992 | wxWindow * _arg0; | |
1d99702e | 1993 | PyObject * _argo0 = 0; |
efc5f224 | 1994 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1995 | |
1996 | self = self; | |
efc5f224 | 1997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 1998 | return NULL; |
1d99702e RD |
1999 | if (_argo0) { |
2000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
2003 | return NULL; | |
2004 | } | |
2005 | } | |
cf694132 RD |
2006 | { |
2007 | wxPy_BEGIN_ALLOW_THREADS; | |
2008 | _result = (int )wxWindow_GetId(_arg0); | |
2009 | ||
2010 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2011 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2012 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2013 | return _resultobj; |
2014 | } | |
2015 | ||
8ab979d7 | 2016 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 2017 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2018 | PyObject * _resultobj; |
2019 | wxString * _result; | |
2020 | wxWindow * _arg0; | |
1d99702e | 2021 | PyObject * _argo0 = 0; |
efc5f224 | 2022 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2023 | |
2024 | self = self; | |
efc5f224 | 2025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 2026 | return NULL; |
1d99702e RD |
2027 | if (_argo0) { |
2028 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2029 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
2031 | return NULL; | |
2032 | } | |
2033 | } | |
8ab979d7 | 2034 | { |
cf694132 RD |
2035 | wxPy_BEGIN_ALLOW_THREADS; |
2036 | _result = new wxString (wxWindow_GetLabel(_arg0)); | |
2037 | ||
2038 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2039 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2040 | }{ |
eec92d76 | 2041 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2042 | } |
2043 | { | |
2044 | delete _result; | |
2045 | } | |
2046 | return _resultobj; | |
2047 | } | |
2048 | ||
bb0054cd | 2049 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 2050 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2051 | PyObject * _resultobj; |
2052 | wxWindow * _arg0; | |
2053 | wxString * _arg1; | |
1d99702e | 2054 | PyObject * _argo0 = 0; |
bb0054cd | 2055 | PyObject * _obj1 = 0; |
efc5f224 | 2056 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
2057 | |
2058 | self = self; | |
efc5f224 | 2059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 2060 | return NULL; |
1d99702e RD |
2061 | if (_argo0) { |
2062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
2065 | return NULL; | |
2066 | } | |
2067 | } | |
2068 | { | |
185d7c3e RD |
2069 | #if PYTHON_API_VERSION >= 1009 |
2070 | char* tmpPtr; int tmpSize; | |
2071 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2072 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2073 | return NULL; |
2074 | } | |
2075 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2076 | return NULL; | |
2077 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2078 | #else | |
bb0054cd RD |
2079 | if (!PyString_Check(_obj1)) { |
2080 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2081 | return NULL; | |
2082 | } | |
185d7c3e RD |
2083 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2084 | #endif | |
bb0054cd RD |
2085 | } |
2086 | { | |
2087 | wxPy_BEGIN_ALLOW_THREADS; | |
2088 | wxWindow_SetLabel(_arg0,*_arg1); | |
2089 | ||
2090 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2091 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2092 | } Py_INCREF(Py_None); |
2093 | _resultobj = Py_None; | |
2094 | { | |
2095 | if (_obj1) | |
2096 | delete _arg1; | |
2097 | } | |
2098 | return _resultobj; | |
2099 | } | |
2100 | ||
8ab979d7 | 2101 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2102 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2103 | PyObject * _resultobj; |
2104 | wxString * _result; | |
2105 | wxWindow * _arg0; | |
1d99702e | 2106 | PyObject * _argo0 = 0; |
efc5f224 | 2107 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2108 | |
2109 | self = self; | |
efc5f224 | 2110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2111 | return NULL; |
1d99702e RD |
2112 | if (_argo0) { |
2113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2116 | return NULL; | |
2117 | } | |
2118 | } | |
8ab979d7 | 2119 | { |
cf694132 RD |
2120 | wxPy_BEGIN_ALLOW_THREADS; |
2121 | _result = new wxString (wxWindow_GetName(_arg0)); | |
2122 | ||
2123 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2124 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2125 | }{ |
eec92d76 | 2126 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2127 | } |
2128 | { | |
2129 | delete _result; | |
2130 | } | |
2131 | return _resultobj; | |
2132 | } | |
2133 | ||
2134 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2135 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2136 | PyObject * _resultobj; |
2137 | wxWindow * _result; | |
2138 | wxWindow * _arg0; | |
1d99702e | 2139 | PyObject * _argo0 = 0; |
efc5f224 | 2140 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2141 | |
2142 | self = self; | |
efc5f224 | 2143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 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")) { | |
8ab979d7 RD |
2148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2149 | return NULL; | |
2150 | } | |
2151 | } | |
cf694132 RD |
2152 | { |
2153 | wxPy_BEGIN_ALLOW_THREADS; | |
2154 | _result = (wxWindow *)wxWindow_GetParent(_arg0); | |
2155 | ||
2156 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2157 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2158 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2159 | return _resultobj; |
2160 | } | |
2161 | ||
b8b8dda7 | 2162 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2163 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2164 | PyObject * _resultobj; |
2165 | wxWindow * _arg0; | |
2166 | int * _arg1; | |
2167 | int temp; | |
2168 | int * _arg2; | |
2169 | int temp0; | |
1d99702e | 2170 | PyObject * _argo0 = 0; |
efc5f224 | 2171 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2172 | |
2173 | self = self; | |
2174 | { | |
2175 | _arg1 = &temp; | |
2176 | } | |
2177 | { | |
2178 | _arg2 = &temp0; | |
2179 | } | |
efc5f224 | 2180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2181 | return NULL; |
1d99702e RD |
2182 | if (_argo0) { |
2183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2186 | return NULL; | |
2187 | } | |
2188 | } | |
cf694132 RD |
2189 | { |
2190 | wxPy_BEGIN_ALLOW_THREADS; | |
2191 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); | |
2192 | ||
2193 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2194 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2195 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
2196 | _resultobj = Py_None; |
2197 | { | |
2198 | PyObject *o; | |
2199 | o = PyInt_FromLong((long) (*_arg1)); | |
2200 | _resultobj = t_output_helper(_resultobj, o); | |
2201 | } | |
2202 | { | |
2203 | PyObject *o; | |
2204 | o = PyInt_FromLong((long) (*_arg2)); | |
2205 | _resultobj = t_output_helper(_resultobj, o); | |
2206 | } | |
2207 | return _resultobj; | |
2208 | } | |
2209 | ||
2210 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2211 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2212 | PyObject * _resultobj; |
2213 | wxPoint * _result; | |
2214 | wxWindow * _arg0; | |
1d99702e | 2215 | PyObject * _argo0 = 0; |
efc5f224 | 2216 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2217 | char _ptemp[128]; |
2218 | ||
2219 | self = self; | |
efc5f224 | 2220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2221 | return NULL; |
1d99702e RD |
2222 | if (_argo0) { |
2223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2226 | return NULL; | |
2227 | } | |
2228 | } | |
cf694132 RD |
2229 | { |
2230 | wxPy_BEGIN_ALLOW_THREADS; | |
2231 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); | |
2232 | ||
2233 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2234 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2235 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
2236 | _resultobj = Py_BuildValue("s",_ptemp); |
2237 | return _resultobj; | |
2238 | } | |
2239 | ||
2240 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2241 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2242 | PyObject * _resultobj; |
2243 | wxRect * _result; | |
2244 | wxWindow * _arg0; | |
1d99702e | 2245 | PyObject * _argo0 = 0; |
efc5f224 | 2246 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2247 | char _ptemp[128]; |
2248 | ||
2249 | self = self; | |
efc5f224 | 2250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2251 | return NULL; |
1d99702e RD |
2252 | if (_argo0) { |
2253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2256 | return NULL; | |
2257 | } | |
2258 | } | |
cf694132 RD |
2259 | { |
2260 | wxPy_BEGIN_ALLOW_THREADS; | |
2261 | _result = new wxRect (wxWindow_GetRect(_arg0)); | |
2262 | ||
2263 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2264 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2265 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
b8b8dda7 RD |
2266 | _resultobj = Py_BuildValue("s",_ptemp); |
2267 | return _resultobj; | |
2268 | } | |
2269 | ||
8ab979d7 | 2270 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2271 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2272 | PyObject * _resultobj; |
2273 | int _result; | |
2274 | wxWindow * _arg0; | |
2275 | int _arg1; | |
1d99702e | 2276 | PyObject * _argo0 = 0; |
efc5f224 | 2277 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2278 | |
2279 | self = self; | |
efc5f224 | 2280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2281 | return NULL; |
1d99702e RD |
2282 | if (_argo0) { |
2283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2286 | return NULL; | |
2287 | } | |
2288 | } | |
cf694132 RD |
2289 | { |
2290 | wxPy_BEGIN_ALLOW_THREADS; | |
2291 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); | |
2292 | ||
2293 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2294 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2295 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2296 | return _resultobj; |
2297 | } | |
2298 | ||
2299 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2300 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2301 | PyObject * _resultobj; |
2302 | int _result; | |
2303 | wxWindow * _arg0; | |
2304 | int _arg1; | |
1d99702e | 2305 | PyObject * _argo0 = 0; |
efc5f224 | 2306 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2307 | |
2308 | self = self; | |
efc5f224 | 2309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2310 | return NULL; |
1d99702e RD |
2311 | if (_argo0) { |
2312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2315 | return NULL; | |
2316 | } | |
2317 | } | |
cf694132 RD |
2318 | { |
2319 | wxPy_BEGIN_ALLOW_THREADS; | |
2320 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); | |
2321 | ||
2322 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2323 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2324 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2325 | return _resultobj; |
2326 | } | |
2327 | ||
2328 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2329 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2330 | PyObject * _resultobj; |
2331 | int _result; | |
2332 | wxWindow * _arg0; | |
2333 | int _arg1; | |
1d99702e | 2334 | PyObject * _argo0 = 0; |
efc5f224 | 2335 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2336 | |
2337 | self = self; | |
efc5f224 | 2338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2339 | return NULL; |
1d99702e RD |
2340 | if (_argo0) { |
2341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2344 | return NULL; | |
2345 | } | |
2346 | } | |
cf694132 RD |
2347 | { |
2348 | wxPy_BEGIN_ALLOW_THREADS; | |
2349 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); | |
2350 | ||
2351 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2352 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2353 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2354 | return _resultobj; |
2355 | } | |
2356 | ||
b8b8dda7 | 2357 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2358 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2359 | PyObject * _resultobj; |
2360 | wxWindow * _arg0; | |
2361 | int * _arg1; | |
2362 | int temp; | |
2363 | int * _arg2; | |
2364 | int temp0; | |
1d99702e | 2365 | PyObject * _argo0 = 0; |
efc5f224 | 2366 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2367 | |
2368 | self = self; | |
2369 | { | |
2370 | _arg1 = &temp; | |
2371 | } | |
2372 | { | |
2373 | _arg2 = &temp0; | |
2374 | } | |
efc5f224 | 2375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2376 | return NULL; |
1d99702e RD |
2377 | if (_argo0) { |
2378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2381 | return NULL; |
2382 | } | |
2383 | } | |
cf694132 RD |
2384 | { |
2385 | wxPy_BEGIN_ALLOW_THREADS; | |
2386 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); | |
2387 | ||
2388 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2389 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2390 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2391 | _resultobj = Py_None; |
2392 | { | |
2393 | PyObject *o; | |
2394 | o = PyInt_FromLong((long) (*_arg1)); | |
2395 | _resultobj = t_output_helper(_resultobj, o); | |
2396 | } | |
2397 | { | |
2398 | PyObject *o; | |
2399 | o = PyInt_FromLong((long) (*_arg2)); | |
2400 | _resultobj = t_output_helper(_resultobj, o); | |
2401 | } | |
2402 | return _resultobj; | |
2403 | } | |
2404 | ||
b8b8dda7 | 2405 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2406 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2407 | PyObject * _resultobj; |
2408 | wxSize * _result; | |
2409 | wxWindow * _arg0; | |
1d99702e | 2410 | PyObject * _argo0 = 0; |
efc5f224 | 2411 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2412 | char _ptemp[128]; |
2413 | ||
2414 | self = self; | |
efc5f224 | 2415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2416 | return NULL; |
1d99702e RD |
2417 | if (_argo0) { |
2418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2421 | return NULL; | |
2422 | } | |
2423 | } | |
cf694132 RD |
2424 | { |
2425 | wxPy_BEGIN_ALLOW_THREADS; | |
2426 | _result = new wxSize (wxWindow_GetSize(_arg0)); | |
2427 | ||
2428 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2429 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2430 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
2431 | _resultobj = Py_BuildValue("s",_ptemp); |
2432 | return _resultobj; | |
2433 | } | |
2434 | ||
8ab979d7 | 2435 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2436 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2437 | PyObject * _resultobj; |
2438 | wxWindow * _arg0; | |
2439 | wxString * _arg1; | |
2440 | int * _arg2; | |
2441 | int temp; | |
2442 | int * _arg3; | |
2443 | int temp0; | |
1d99702e | 2444 | PyObject * _argo0 = 0; |
8ab979d7 | 2445 | PyObject * _obj1 = 0; |
efc5f224 | 2446 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2447 | |
2448 | self = self; | |
2449 | { | |
2450 | _arg2 = &temp; | |
2451 | } | |
2452 | { | |
2453 | _arg3 = &temp0; | |
2454 | } | |
efc5f224 | 2455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2456 | return NULL; |
1d99702e RD |
2457 | if (_argo0) { |
2458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2461 | return NULL; | |
2462 | } | |
2463 | } | |
2464 | { | |
185d7c3e RD |
2465 | #if PYTHON_API_VERSION >= 1009 |
2466 | char* tmpPtr; int tmpSize; | |
2467 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2468 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2469 | return NULL; |
2470 | } | |
2471 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2472 | return NULL; | |
2473 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2474 | #else | |
8ab979d7 RD |
2475 | if (!PyString_Check(_obj1)) { |
2476 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2477 | return NULL; | |
2478 | } | |
185d7c3e RD |
2479 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2480 | #endif | |
8ab979d7 | 2481 | } |
cf694132 RD |
2482 | { |
2483 | wxPy_BEGIN_ALLOW_THREADS; | |
2484 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
2485 | ||
2486 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2487 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2488 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2489 | _resultobj = Py_None; |
2490 | { | |
2491 | PyObject *o; | |
2492 | o = PyInt_FromLong((long) (*_arg2)); | |
2493 | _resultobj = t_output_helper(_resultobj, o); | |
2494 | } | |
2495 | { | |
2496 | PyObject *o; | |
2497 | o = PyInt_FromLong((long) (*_arg3)); | |
2498 | _resultobj = t_output_helper(_resultobj, o); | |
2499 | } | |
2500 | { | |
2501 | if (_obj1) | |
2502 | delete _arg1; | |
2503 | } | |
2504 | return _resultobj; | |
2505 | } | |
2506 | ||
af309447 | 2507 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2508 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2509 | PyObject * _resultobj; |
2510 | wxWindow * _arg0; | |
2511 | wxString * _arg1; | |
2512 | int * _arg2; | |
2513 | int temp; | |
2514 | int * _arg3; | |
2515 | int temp0; | |
2516 | int * _arg4; | |
2517 | int temp1; | |
2518 | int * _arg5; | |
2519 | int temp2; | |
1d99702e RD |
2520 | wxFont * _arg6 = (wxFont *) NULL; |
2521 | PyObject * _argo0 = 0; | |
af309447 | 2522 | PyObject * _obj1 = 0; |
1d99702e | 2523 | PyObject * _argo6 = 0; |
efc5f224 | 2524 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2525 | |
2526 | self = self; | |
2527 | { | |
2528 | _arg2 = &temp; | |
2529 | } | |
2530 | { | |
2531 | _arg3 = &temp0; | |
2532 | } | |
2533 | { | |
2534 | _arg4 = &temp1; | |
2535 | } | |
2536 | { | |
2537 | _arg5 = &temp2; | |
2538 | } | |
efc5f224 | 2539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2540 | return NULL; |
1d99702e RD |
2541 | if (_argo0) { |
2542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2545 | return NULL; | |
2546 | } | |
2547 | } | |
2548 | { | |
185d7c3e RD |
2549 | #if PYTHON_API_VERSION >= 1009 |
2550 | char* tmpPtr; int tmpSize; | |
2551 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2552 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2553 | return NULL; |
2554 | } | |
2555 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2556 | return NULL; | |
2557 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2558 | #else | |
af309447 RD |
2559 | if (!PyString_Check(_obj1)) { |
2560 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2561 | return NULL; | |
2562 | } | |
185d7c3e RD |
2563 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2564 | #endif | |
af309447 | 2565 | } |
1d99702e RD |
2566 | if (_argo6) { |
2567 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2568 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2570 | return NULL; | |
2571 | } | |
2572 | } | |
cf694132 RD |
2573 | { |
2574 | wxPy_BEGIN_ALLOW_THREADS; | |
2575 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2576 | ||
2577 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2578 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2579 | } Py_INCREF(Py_None); |
af309447 RD |
2580 | _resultobj = Py_None; |
2581 | { | |
2582 | PyObject *o; | |
2583 | o = PyInt_FromLong((long) (*_arg2)); | |
2584 | _resultobj = t_output_helper(_resultobj, o); | |
2585 | } | |
2586 | { | |
2587 | PyObject *o; | |
2588 | o = PyInt_FromLong((long) (*_arg3)); | |
2589 | _resultobj = t_output_helper(_resultobj, o); | |
2590 | } | |
2591 | { | |
2592 | PyObject *o; | |
2593 | o = PyInt_FromLong((long) (*_arg4)); | |
2594 | _resultobj = t_output_helper(_resultobj, o); | |
2595 | } | |
2596 | { | |
2597 | PyObject *o; | |
2598 | o = PyInt_FromLong((long) (*_arg5)); | |
2599 | _resultobj = t_output_helper(_resultobj, o); | |
2600 | } | |
2601 | { | |
2602 | if (_obj1) | |
2603 | delete _arg1; | |
2604 | } | |
2605 | return _resultobj; | |
2606 | } | |
2607 | ||
8ab979d7 | 2608 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2609 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2610 | PyObject * _resultobj; |
2611 | wxString * _result; | |
2612 | wxWindow * _arg0; | |
1d99702e | 2613 | PyObject * _argo0 = 0; |
efc5f224 | 2614 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2615 | |
2616 | self = self; | |
efc5f224 | 2617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2618 | return NULL; |
1d99702e RD |
2619 | if (_argo0) { |
2620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2623 | return NULL; | |
2624 | } | |
2625 | } | |
8ab979d7 | 2626 | { |
cf694132 RD |
2627 | wxPy_BEGIN_ALLOW_THREADS; |
2628 | _result = new wxString (wxWindow_GetTitle(_arg0)); | |
2629 | ||
2630 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2631 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2632 | }{ |
eec92d76 | 2633 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2634 | } |
2635 | { | |
2636 | delete _result; | |
2637 | } | |
2638 | return _resultobj; | |
2639 | } | |
2640 | ||
8bf5d46e | 2641 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2642 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2643 | PyObject * _resultobj; |
2644 | wxRegion * _result; | |
2645 | wxWindow * _arg0; | |
1d99702e | 2646 | PyObject * _argo0 = 0; |
efc5f224 | 2647 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2648 | char _ptemp[128]; |
2649 | ||
2650 | self = self; | |
efc5f224 | 2651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2652 | return NULL; |
1d99702e RD |
2653 | if (_argo0) { |
2654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2657 | return NULL; | |
2658 | } | |
2659 | } | |
2660 | { | |
2661 | wxPy_BEGIN_ALLOW_THREADS; | |
2662 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); | |
2663 | ||
2664 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2665 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
2666 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); |
2667 | _resultobj = Py_BuildValue("s",_ptemp); | |
2668 | return _resultobj; | |
2669 | } | |
2670 | ||
8ab979d7 | 2671 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2672 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2673 | PyObject * _resultobj; |
2674 | long _result; | |
2675 | wxWindow * _arg0; | |
1d99702e | 2676 | PyObject * _argo0 = 0; |
efc5f224 | 2677 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2678 | |
2679 | self = self; | |
efc5f224 | 2680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2681 | return NULL; |
1d99702e RD |
2682 | if (_argo0) { |
2683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2686 | return NULL; | |
2687 | } | |
2688 | } | |
cf694132 RD |
2689 | { |
2690 | wxPy_BEGIN_ALLOW_THREADS; | |
2691 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); | |
2692 | ||
2693 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2694 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2695 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2696 | return _resultobj; |
2697 | } | |
2698 | ||
f6bcfd97 BP |
2699 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2700 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2701 | PyObject * _resultobj; | |
2702 | wxWindow * _arg0; | |
2703 | long _arg1; | |
2704 | PyObject * _argo0 = 0; | |
2705 | char *_kwnames[] = { "self","style", NULL }; | |
2706 | ||
2707 | self = self; | |
2708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2709 | return NULL; | |
2710 | if (_argo0) { | |
2711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2714 | return NULL; | |
2715 | } | |
2716 | } | |
2717 | { | |
2718 | wxPy_BEGIN_ALLOW_THREADS; | |
2719 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); | |
2720 | ||
2721 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2722 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2723 | } Py_INCREF(Py_None); |
2724 | _resultobj = Py_None; | |
2725 | return _resultobj; | |
2726 | } | |
2727 | ||
2728 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2729 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2730 | PyObject * _resultobj; | |
2731 | wxWindow * _arg0; | |
2732 | long _arg1; | |
2733 | PyObject * _argo0 = 0; | |
2734 | char *_kwnames[] = { "self","style", NULL }; | |
2735 | ||
2736 | self = self; | |
2737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2738 | return NULL; | |
2739 | if (_argo0) { | |
2740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2743 | return NULL; | |
2744 | } | |
2745 | } | |
2746 | { | |
2747 | wxPy_BEGIN_ALLOW_THREADS; | |
2748 | wxWindow_SetWindowStyle(_arg0,_arg1); | |
2749 | ||
2750 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2751 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2752 | } Py_INCREF(Py_None); |
2753 | _resultobj = Py_None; | |
2754 | return _resultobj; | |
2755 | } | |
2756 | ||
bb0054cd | 2757 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2758 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2759 | PyObject * _resultobj; |
2760 | bool _result; | |
2761 | wxWindow * _arg0; | |
1d99702e | 2762 | PyObject * _argo0 = 0; |
efc5f224 | 2763 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2764 | |
2765 | self = self; | |
efc5f224 | 2766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2767 | return NULL; |
1d99702e RD |
2768 | if (_argo0) { |
2769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2772 | return NULL; | |
2773 | } | |
2774 | } | |
2775 | { | |
2776 | wxPy_BEGIN_ALLOW_THREADS; | |
2777 | _result = (bool )wxWindow_Hide(_arg0); | |
2778 | ||
2779 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2780 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2781 | } _resultobj = Py_BuildValue("i",_result); |
2782 | return _resultobj; | |
2783 | } | |
2784 | ||
8ab979d7 | 2785 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2786 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2787 | PyObject * _resultobj; |
2788 | wxWindow * _arg0; | |
1d99702e | 2789 | PyObject * _argo0 = 0; |
efc5f224 | 2790 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2791 | |
2792 | self = self; | |
efc5f224 | 2793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2794 | return NULL; |
1d99702e RD |
2795 | if (_argo0) { |
2796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2799 | return NULL; | |
2800 | } | |
2801 | } | |
cf694132 RD |
2802 | { |
2803 | wxPy_BEGIN_ALLOW_THREADS; | |
2804 | wxWindow_InitDialog(_arg0); | |
2805 | ||
2806 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2807 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2808 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2809 | _resultobj = Py_None; |
2810 | return _resultobj; | |
2811 | } | |
2812 | ||
2813 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 2814 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2815 | PyObject * _resultobj; |
2816 | bool _result; | |
2817 | wxWindow * _arg0; | |
1d99702e | 2818 | PyObject * _argo0 = 0; |
efc5f224 | 2819 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2820 | |
2821 | self = self; | |
efc5f224 | 2822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 2823 | return NULL; |
1d99702e RD |
2824 | if (_argo0) { |
2825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2828 | return NULL; | |
2829 | } | |
2830 | } | |
cf694132 RD |
2831 | { |
2832 | wxPy_BEGIN_ALLOW_THREADS; | |
2833 | _result = (bool )wxWindow_IsEnabled(_arg0); | |
2834 | ||
2835 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2836 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2837 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2838 | return _resultobj; |
2839 | } | |
2840 | ||
1b55cabf RD |
2841 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2842 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2843 | PyObject * _resultobj; | |
2844 | bool _result; | |
2845 | wxWindow * _arg0; | |
2846 | int _arg1; | |
2847 | int _arg2; | |
2848 | int _arg3 = (int ) 0; | |
2849 | int _arg4 = (int ) 0; | |
2850 | PyObject * _argo0 = 0; | |
2851 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2852 | ||
2853 | self = self; | |
2854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2855 | return NULL; | |
2856 | if (_argo0) { | |
2857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2860 | return NULL; | |
2861 | } | |
2862 | } | |
2863 | { | |
2864 | wxPy_BEGIN_ALLOW_THREADS; | |
2865 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2866 | ||
2867 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2868 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2869 | } _resultobj = Py_BuildValue("i",_result); |
2870 | return _resultobj; | |
2871 | } | |
2872 | ||
2873 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2874 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2875 | PyObject * _resultobj; | |
2876 | bool _result; | |
2877 | wxWindow * _arg0; | |
2878 | wxPoint * _arg1; | |
2879 | PyObject * _argo0 = 0; | |
2880 | wxPoint temp; | |
2881 | PyObject * _obj1 = 0; | |
2882 | char *_kwnames[] = { "self","pt", NULL }; | |
2883 | ||
2884 | self = self; | |
2885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2886 | return NULL; | |
2887 | if (_argo0) { | |
2888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2891 | return NULL; | |
2892 | } | |
2893 | } | |
2894 | { | |
2895 | _arg1 = &temp; | |
2896 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2897 | return NULL; | |
2898 | } | |
2899 | { | |
2900 | wxPy_BEGIN_ALLOW_THREADS; | |
2901 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); | |
2902 | ||
2903 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2904 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2905 | } _resultobj = Py_BuildValue("i",_result); |
2906 | return _resultobj; | |
2907 | } | |
2908 | ||
2909 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2910 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2911 | PyObject * _resultobj; | |
2912 | bool _result; | |
2913 | wxWindow * _arg0; | |
2914 | wxRect * _arg1; | |
2915 | PyObject * _argo0 = 0; | |
2916 | wxRect temp; | |
2917 | PyObject * _obj1 = 0; | |
2918 | char *_kwnames[] = { "self","rect", NULL }; | |
2919 | ||
2920 | self = self; | |
2921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
2922 | return NULL; | |
2923 | if (_argo0) { | |
2924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
2927 | return NULL; | |
2928 | } | |
2929 | } | |
2930 | { | |
2931 | _arg1 = &temp; | |
2932 | if (! wxRect_helper(_obj1, &_arg1)) | |
2933 | return NULL; | |
2934 | } | |
2935 | { | |
2936 | wxPy_BEGIN_ALLOW_THREADS; | |
2937 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); | |
2938 | ||
2939 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2940 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2941 | } _resultobj = Py_BuildValue("i",_result); |
2942 | return _resultobj; | |
2943 | } | |
2944 | ||
8ab979d7 | 2945 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 2946 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2947 | PyObject * _resultobj; |
2948 | bool _result; | |
2949 | wxWindow * _arg0; | |
1d99702e | 2950 | PyObject * _argo0 = 0; |
efc5f224 | 2951 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2952 | |
2953 | self = self; | |
efc5f224 | 2954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 2955 | return NULL; |
1d99702e RD |
2956 | if (_argo0) { |
2957 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2958 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
2960 | return NULL; | |
2961 | } | |
2962 | } | |
cf694132 RD |
2963 | { |
2964 | wxPy_BEGIN_ALLOW_THREADS; | |
2965 | _result = (bool )wxWindow_IsRetained(_arg0); | |
2966 | ||
2967 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2968 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2969 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2970 | return _resultobj; |
2971 | } | |
2972 | ||
2973 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 2974 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2975 | PyObject * _resultobj; |
2976 | bool _result; | |
2977 | wxWindow * _arg0; | |
1d99702e | 2978 | PyObject * _argo0 = 0; |
efc5f224 | 2979 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2980 | |
2981 | self = self; | |
efc5f224 | 2982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 2983 | return NULL; |
1d99702e RD |
2984 | if (_argo0) { |
2985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
2988 | return NULL; | |
2989 | } | |
2990 | } | |
cf694132 RD |
2991 | { |
2992 | wxPy_BEGIN_ALLOW_THREADS; | |
2993 | _result = (bool )wxWindow_IsShown(_arg0); | |
2994 | ||
2995 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2996 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2997 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2998 | return _resultobj; |
2999 | } | |
3000 | ||
bb0054cd | 3001 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 3002 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3003 | PyObject * _resultobj; |
3004 | bool _result; | |
3005 | wxWindow * _arg0; | |
1d99702e | 3006 | PyObject * _argo0 = 0; |
efc5f224 | 3007 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
3008 | |
3009 | self = self; | |
efc5f224 | 3010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 3011 | return NULL; |
1d99702e RD |
3012 | if (_argo0) { |
3013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
3016 | return NULL; | |
3017 | } | |
3018 | } | |
3019 | { | |
3020 | wxPy_BEGIN_ALLOW_THREADS; | |
3021 | _result = (bool )wxWindow_IsTopLevel(_arg0); | |
3022 | ||
3023 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3024 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3025 | } _resultobj = Py_BuildValue("i",_result); |
3026 | return _resultobj; | |
3027 | } | |
3028 | ||
8ab979d7 | 3029 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 3030 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3031 | PyObject * _resultobj; |
3032 | wxWindow * _arg0; | |
1d99702e | 3033 | PyObject * _argo0 = 0; |
efc5f224 | 3034 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3035 | |
3036 | self = self; | |
efc5f224 | 3037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 3038 | return NULL; |
1d99702e RD |
3039 | if (_argo0) { |
3040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
3043 | return NULL; | |
3044 | } | |
3045 | } | |
cf694132 RD |
3046 | { |
3047 | wxPy_BEGIN_ALLOW_THREADS; | |
3048 | wxWindow_Layout(_arg0); | |
3049 | ||
3050 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3051 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3052 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3053 | _resultobj = Py_None; |
3054 | return _resultobj; | |
3055 | } | |
3056 | ||
3057 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3058 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3059 | PyObject * _resultobj; |
3060 | bool _result; | |
3061 | wxWindow * _arg0; | |
3062 | wxWindow * _arg1; | |
3063 | wxString * _arg2; | |
1d99702e RD |
3064 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
3065 | PyObject * _argo0 = 0; | |
3066 | PyObject * _argo1 = 0; | |
8ab979d7 | 3067 | PyObject * _obj2 = 0; |
1d99702e | 3068 | PyObject * _argo3 = 0; |
efc5f224 | 3069 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
8ab979d7 RD |
3070 | |
3071 | self = self; | |
efc5f224 | 3072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
8ab979d7 | 3073 | return NULL; |
1d99702e RD |
3074 | if (_argo0) { |
3075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3078 | return NULL; | |
3079 | } | |
3080 | } | |
1d99702e RD |
3081 | if (_argo1) { |
3082 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3083 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
3084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3085 | return NULL; | |
3086 | } | |
3087 | } | |
3088 | { | |
185d7c3e RD |
3089 | #if PYTHON_API_VERSION >= 1009 |
3090 | char* tmpPtr; int tmpSize; | |
3091 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 3092 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
3093 | return NULL; |
3094 | } | |
3095 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3096 | return NULL; | |
3097 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3098 | #else | |
8ab979d7 RD |
3099 | if (!PyString_Check(_obj2)) { |
3100 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3101 | return NULL; | |
3102 | } | |
185d7c3e RD |
3103 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3104 | #endif | |
8ab979d7 | 3105 | } |
1d99702e RD |
3106 | if (_argo3) { |
3107 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3108 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
8ab979d7 RD |
3109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
3110 | return NULL; | |
3111 | } | |
3112 | } | |
cf694132 RD |
3113 | { |
3114 | wxPy_BEGIN_ALLOW_THREADS; | |
3115 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); | |
3116 | ||
3117 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3118 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3119 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3120 | { |
3121 | if (_obj2) | |
3122 | delete _arg2; | |
3123 | } | |
3124 | return _resultobj; | |
3125 | } | |
3126 | ||
3127 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
efc5f224 | 3128 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3129 | PyObject * _resultobj; |
3130 | wxWindow * _arg0; | |
1d99702e | 3131 | PyObject * _argo0 = 0; |
efc5f224 | 3132 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3133 | |
3134 | self = self; | |
efc5f224 | 3135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3136 | return NULL; |
1d99702e RD |
3137 | if (_argo0) { |
3138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3141 | return NULL; | |
3142 | } | |
3143 | } | |
cf694132 RD |
3144 | { |
3145 | wxPy_BEGIN_ALLOW_THREADS; | |
3146 | wxWindow_Lower(_arg0); | |
3147 | ||
3148 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3149 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3150 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3151 | _resultobj = Py_None; |
3152 | return _resultobj; | |
3153 | } | |
3154 | ||
3155 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3156 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3157 | PyObject * _resultobj; |
3158 | wxWindow * _arg0; | |
900d9886 | 3159 | bool _arg1 = (bool ) TRUE; |
1d99702e | 3160 | PyObject * _argo0 = 0; |
900d9886 | 3161 | int tempbool1 = (int) TRUE; |
efc5f224 | 3162 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3163 | |
3164 | self = self; | |
900d9886 | 3165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3166 | return NULL; |
1d99702e RD |
3167 | if (_argo0) { |
3168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3171 | return NULL; | |
3172 | } | |
3173 | } | |
3174 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3175 | { |
3176 | wxPy_BEGIN_ALLOW_THREADS; | |
3177 | wxWindow_MakeModal(_arg0,_arg1); | |
3178 | ||
3179 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3180 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3181 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3182 | _resultobj = Py_None; |
3183 | return _resultobj; | |
3184 | } | |
3185 | ||
af309447 | 3186 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3187 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3188 | PyObject * _resultobj; |
3189 | wxWindow * _arg0; | |
3190 | int _arg1; | |
3191 | int _arg2; | |
1d99702e | 3192 | PyObject * _argo0 = 0; |
efc5f224 | 3193 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3194 | |
3195 | self = self; | |
efc5f224 | 3196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 3197 | return NULL; |
1d99702e RD |
3198 | if (_argo0) { |
3199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3202 | return NULL; | |
3203 | } | |
3204 | } | |
cf694132 RD |
3205 | { |
3206 | wxPy_BEGIN_ALLOW_THREADS; | |
3207 | wxWindow_MoveXY(_arg0,_arg1,_arg2); | |
3208 | ||
3209 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3210 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3211 | } Py_INCREF(Py_None); |
af309447 RD |
3212 | _resultobj = Py_None; |
3213 | return _resultobj; | |
3214 | } | |
3215 | ||
3216 | #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
efc5f224 | 3217 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3218 | PyObject * _resultobj; |
3219 | wxWindow * _arg0; | |
3220 | wxPoint * _arg1; | |
1d99702e | 3221 | PyObject * _argo0 = 0; |
2f90df85 RD |
3222 | wxPoint temp; |
3223 | PyObject * _obj1 = 0; | |
efc5f224 | 3224 | char *_kwnames[] = { "self","point", NULL }; |
af309447 RD |
3225 | |
3226 | self = self; | |
2f90df85 | 3227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3228 | return NULL; |
1d99702e RD |
3229 | if (_argo0) { |
3230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3233 | return NULL; | |
3234 | } | |
3235 | } | |
2f90df85 RD |
3236 | { |
3237 | _arg1 = &temp; | |
3238 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3239 | return NULL; |
2f90df85 | 3240 | } |
cf694132 RD |
3241 | { |
3242 | wxPy_BEGIN_ALLOW_THREADS; | |
3243 | wxWindow_Move(_arg0,*_arg1); | |
3244 | ||
3245 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3246 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3247 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3248 | _resultobj = Py_None; |
3249 | return _resultobj; | |
3250 | } | |
3251 | ||
1afc06c2 RD |
3252 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3253 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3254 | PyObject * _resultobj; | |
3255 | wxEvtHandler * _result; | |
3256 | wxWindow * _arg0; | |
3257 | bool _arg1 = (bool ) FALSE; | |
3258 | PyObject * _argo0 = 0; | |
3259 | int tempbool1 = (int) FALSE; | |
3260 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
1afc06c2 RD |
3261 | |
3262 | self = self; | |
3263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3264 | return NULL; | |
3265 | if (_argo0) { | |
3266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3269 | return NULL; | |
3270 | } | |
3271 | } | |
3272 | _arg1 = (bool ) tempbool1; | |
3273 | { | |
3274 | wxPy_BEGIN_ALLOW_THREADS; | |
3275 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); | |
3276 | ||
3277 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3278 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 3279 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
3280 | return _resultobj; |
3281 | } | |
3282 | ||
3283 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3284 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3285 | PyObject * _resultobj; | |
3286 | wxWindow * _arg0; | |
3287 | wxEvtHandler * _arg1; | |
3288 | PyObject * _argo0 = 0; | |
3289 | PyObject * _argo1 = 0; | |
3290 | char *_kwnames[] = { "self","handler", NULL }; | |
3291 | ||
3292 | self = self; | |
3293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3294 | return NULL; | |
3295 | if (_argo0) { | |
3296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3299 | return NULL; | |
3300 | } | |
3301 | } | |
3302 | if (_argo1) { | |
3303 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3304 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3306 | return NULL; | |
3307 | } | |
3308 | } | |
3309 | { | |
3310 | wxPy_BEGIN_ALLOW_THREADS; | |
3311 | wxWindow_PushEventHandler(_arg0,_arg1); | |
3312 | ||
3313 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3314 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
3315 | } Py_INCREF(Py_None); |
3316 | _resultobj = Py_None; | |
3317 | return _resultobj; | |
3318 | } | |
3319 | ||
8bf5d46e | 3320 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3321 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3322 | PyObject * _resultobj; |
3323 | bool _result; | |
3324 | wxWindow * _arg0; | |
3325 | wxMenu * _arg1; | |
3326 | int _arg2; | |
3327 | int _arg3; | |
1d99702e RD |
3328 | PyObject * _argo0 = 0; |
3329 | PyObject * _argo1 = 0; | |
efc5f224 | 3330 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3331 | |
3332 | self = self; | |
efc5f224 | 3333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3334 | return NULL; |
1d99702e RD |
3335 | if (_argo0) { |
3336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3339 | return NULL; | |
3340 | } | |
3341 | } | |
1d99702e RD |
3342 | if (_argo1) { |
3343 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3344 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3346 | return NULL; | |
3347 | } | |
3348 | } | |
3349 | { | |
3350 | wxPy_BEGIN_ALLOW_THREADS; | |
3351 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); | |
3352 | ||
3353 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3354 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
3355 | } _resultobj = Py_BuildValue("i",_result); |
3356 | return _resultobj; | |
3357 | } | |
3358 | ||
3359 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3360 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3361 | PyObject * _resultobj; |
3362 | bool _result; | |
3363 | wxWindow * _arg0; | |
3364 | wxMenu * _arg1; | |
3365 | wxPoint * _arg2; | |
1d99702e RD |
3366 | PyObject * _argo0 = 0; |
3367 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3368 | wxPoint temp; |
3369 | PyObject * _obj2 = 0; | |
efc5f224 | 3370 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3371 | |
3372 | self = self; | |
2f90df85 | 3373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3374 | return NULL; |
1d99702e RD |
3375 | if (_argo0) { |
3376 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3377 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3379 | return NULL; | |
3380 | } | |
3381 | } | |
1d99702e RD |
3382 | if (_argo1) { |
3383 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3384 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3386 | return NULL; | |
3387 | } | |
3388 | } | |
2f90df85 RD |
3389 | { |
3390 | _arg2 = &temp; | |
3391 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3392 | return NULL; |
2f90df85 | 3393 | } |
cf694132 RD |
3394 | { |
3395 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 3396 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 RD |
3397 | |
3398 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3399 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3400 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3401 | return _resultobj; |
3402 | } | |
3403 | ||
3404 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3405 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3406 | PyObject * _resultobj; |
3407 | wxWindow * _arg0; | |
1d99702e | 3408 | PyObject * _argo0 = 0; |
efc5f224 | 3409 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3410 | |
3411 | self = self; | |
efc5f224 | 3412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3413 | return NULL; |
1d99702e RD |
3414 | if (_argo0) { |
3415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3418 | return NULL; | |
3419 | } | |
3420 | } | |
cf694132 RD |
3421 | { |
3422 | wxPy_BEGIN_ALLOW_THREADS; | |
3423 | wxWindow_Raise(_arg0); | |
3424 | ||
3425 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3426 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3427 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3428 | _resultobj = Py_None; |
3429 | return _resultobj; | |
3430 | } | |
3431 | ||
3432 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3433 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3434 | PyObject * _resultobj; |
3435 | wxWindow * _arg0; | |
1d99702e RD |
3436 | bool _arg1 = (bool ) TRUE; |
3437 | wxRect * _arg2 = (wxRect *) NULL; | |
3438 | PyObject * _argo0 = 0; | |
3439 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3440 | wxRect temp; |
3441 | PyObject * _obj2 = 0; | |
efc5f224 | 3442 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3443 | |
3444 | self = self; | |
2f90df85 | 3445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3446 | return NULL; |
1d99702e RD |
3447 | if (_argo0) { |
3448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3451 | return NULL; | |
3452 | } | |
3453 | } | |
3454 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3455 | if (_obj2) |
3456 | { | |
3457 | _arg2 = &temp; | |
3458 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3459 | return NULL; |
2f90df85 | 3460 | } |
cf694132 RD |
3461 | { |
3462 | wxPy_BEGIN_ALLOW_THREADS; | |
3463 | wxWindow_Refresh(_arg0,_arg1,_arg2); | |
3464 | ||
3465 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3466 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3467 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3468 | _resultobj = Py_None; |
3469 | return _resultobj; | |
3470 | } | |
3471 | ||
09f3d4e6 RD |
3472 | #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0)) |
3473 | static PyObject *_wrap_wxWindow_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3474 | PyObject * _resultobj; | |
3475 | wxWindow * _arg0; | |
3476 | wxRect * _arg1; | |
3477 | PyObject * _argo0 = 0; | |
3478 | wxRect temp; | |
3479 | PyObject * _obj1 = 0; | |
3480 | char *_kwnames[] = { "self","rect", NULL }; | |
3481 | ||
3482 | self = self; | |
3483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RefreshRect",_kwnames,&_argo0,&_obj1)) | |
3484 | return NULL; | |
3485 | if (_argo0) { | |
3486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p."); | |
3489 | return NULL; | |
3490 | } | |
3491 | } | |
3492 | { | |
3493 | _arg1 = &temp; | |
3494 | if (! wxRect_helper(_obj1, &_arg1)) | |
3495 | return NULL; | |
3496 | } | |
3497 | { | |
3498 | wxPy_BEGIN_ALLOW_THREADS; | |
3499 | wxWindow_RefreshRect(_arg0,*_arg1); | |
3500 | ||
3501 | wxPy_END_ALLOW_THREADS; | |
3502 | if (PyErr_Occurred()) return NULL; | |
3503 | } Py_INCREF(Py_None); | |
3504 | _resultobj = Py_None; | |
3505 | return _resultobj; | |
3506 | } | |
3507 | ||
8ab979d7 | 3508 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) |
efc5f224 | 3509 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3510 | PyObject * _resultobj; |
3511 | wxWindow * _arg0; | |
1d99702e | 3512 | PyObject * _argo0 = 0; |
efc5f224 | 3513 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3514 | |
3515 | self = self; | |
efc5f224 | 3516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
8ab979d7 | 3517 | return NULL; |
1d99702e RD |
3518 | if (_argo0) { |
3519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); |
3522 | return NULL; | |
3523 | } | |
3524 | } | |
cf694132 RD |
3525 | { |
3526 | wxPy_BEGIN_ALLOW_THREADS; | |
3527 | wxWindow_ReleaseMouse(_arg0); | |
3528 | ||
3529 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3530 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3531 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3532 | _resultobj = Py_None; |
3533 | return _resultobj; | |
3534 | } | |
3535 | ||
b7e72427 RD |
3536 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3537 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3538 | PyObject * _resultobj; | |
3539 | wxWindow * _arg0; | |
3540 | wxWindow * _arg1; | |
3541 | PyObject * _argo0 = 0; | |
3542 | PyObject * _argo1 = 0; | |
3543 | char *_kwnames[] = { "self","child", NULL }; | |
3544 | ||
3545 | self = self; | |
3546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3547 | return NULL; | |
3548 | if (_argo0) { | |
3549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3552 | return NULL; | |
3553 | } | |
3554 | } | |
3555 | if (_argo1) { | |
3556 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3557 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3559 | return NULL; | |
3560 | } | |
3561 | } | |
3562 | { | |
3563 | wxPy_BEGIN_ALLOW_THREADS; | |
3564 | wxWindow_RemoveChild(_arg0,_arg1); | |
3565 | ||
3566 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3567 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
3568 | } Py_INCREF(Py_None); |
3569 | _resultobj = Py_None; | |
3570 | return _resultobj; | |
3571 | } | |
3572 | ||
bb0054cd | 3573 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3574 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3575 | PyObject * _resultobj; |
3576 | bool _result; | |
3577 | wxWindow * _arg0; | |
3578 | wxWindow * _arg1; | |
1d99702e RD |
3579 | PyObject * _argo0 = 0; |
3580 | PyObject * _argo1 = 0; | |
efc5f224 | 3581 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3582 | |
3583 | self = self; | |
efc5f224 | 3584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3585 | return NULL; |
1d99702e RD |
3586 | if (_argo0) { |
3587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3590 | return NULL; | |
3591 | } | |
3592 | } | |
1d99702e RD |
3593 | if (_argo1) { |
3594 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3595 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3597 | return NULL; | |
3598 | } | |
3599 | } | |
3600 | { | |
3601 | wxPy_BEGIN_ALLOW_THREADS; | |
3602 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); | |
3603 | ||
3604 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3605 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3606 | } _resultobj = Py_BuildValue("i",_result); |
3607 | return _resultobj; | |
3608 | } | |
3609 | ||
af309447 | 3610 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3611 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3612 | PyObject * _resultobj; |
3613 | wxWindow * _arg0; | |
3614 | int * _arg1; | |
3615 | int * _arg2; | |
1d99702e | 3616 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3617 | int temp; |
3618 | PyObject * _obj1 = 0; | |
3619 | int temp0; | |
3620 | PyObject * _obj2 = 0; | |
efc5f224 | 3621 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3622 | |
3623 | self = self; | |
efc5f224 | 3624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3625 | return NULL; |
1d99702e RD |
3626 | if (_argo0) { |
3627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3630 | return NULL; |
3631 | } | |
3632 | } | |
3633 | { | |
3634 | temp = (int) PyInt_AsLong(_obj1); | |
3635 | _arg1 = &temp; | |
3636 | } | |
3637 | { | |
3638 | temp0 = (int) PyInt_AsLong(_obj2); | |
3639 | _arg2 = &temp0; | |
3640 | } | |
cf694132 RD |
3641 | { |
3642 | wxPy_BEGIN_ALLOW_THREADS; | |
3643 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); | |
3644 | ||
3645 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3646 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3647 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3648 | _resultobj = Py_None; |
3649 | { | |
3650 | PyObject *o; | |
3651 | o = PyInt_FromLong((long) (*_arg1)); | |
3652 | _resultobj = t_output_helper(_resultobj, o); | |
3653 | } | |
3654 | { | |
3655 | PyObject *o; | |
3656 | o = PyInt_FromLong((long) (*_arg2)); | |
3657 | _resultobj = t_output_helper(_resultobj, o); | |
3658 | } | |
3659 | return _resultobj; | |
3660 | } | |
3661 | ||
af309447 | 3662 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3663 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3664 | PyObject * _resultobj; |
3665 | wxPoint * _result; | |
3666 | wxWindow * _arg0; | |
3667 | wxPoint * _arg1; | |
1d99702e | 3668 | PyObject * _argo0 = 0; |
2f90df85 RD |
3669 | wxPoint temp; |
3670 | PyObject * _obj1 = 0; | |
efc5f224 | 3671 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3672 | char _ptemp[128]; |
3673 | ||
3674 | self = self; | |
2f90df85 | 3675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3676 | return NULL; |
1d99702e RD |
3677 | if (_argo0) { |
3678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3681 | return NULL; | |
3682 | } | |
3683 | } | |
2f90df85 RD |
3684 | { |
3685 | _arg1 = &temp; | |
3686 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3687 | return NULL; |
2f90df85 | 3688 | } |
cf694132 RD |
3689 | { |
3690 | wxPy_BEGIN_ALLOW_THREADS; | |
3691 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); | |
3692 | ||
3693 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3694 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3695 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
3696 | _resultobj = Py_BuildValue("s",_ptemp); |
3697 | return _resultobj; | |
3698 | } | |
3699 | ||
8ab979d7 | 3700 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3701 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3702 | PyObject * _resultobj; |
3703 | wxWindow * _arg0; | |
3704 | int _arg1; | |
3705 | int _arg2; | |
1d99702e RD |
3706 | wxRect * _arg3 = (wxRect *) NULL; |
3707 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3708 | wxRect temp; |
3709 | PyObject * _obj3 = 0; | |
efc5f224 | 3710 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3711 | |
3712 | self = self; | |
2f90df85 | 3713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3714 | return NULL; |
1d99702e RD |
3715 | if (_argo0) { |
3716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3719 | return NULL; | |
3720 | } | |
3721 | } | |
2f90df85 RD |
3722 | if (_obj3) |
3723 | { | |
3724 | _arg3 = &temp; | |
3725 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3726 | return NULL; |
2f90df85 | 3727 | } |
cf694132 RD |
3728 | { |
3729 | wxPy_BEGIN_ALLOW_THREADS; | |
3730 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); | |
3731 | ||
3732 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3733 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3734 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3735 | _resultobj = Py_None; |
3736 | return _resultobj; | |
3737 | } | |
3738 | ||
3739 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) | |
efc5f224 | 3740 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3741 | PyObject * _resultobj; |
3742 | wxWindow * _arg0; | |
3743 | bool _arg1; | |
1d99702e | 3744 | PyObject * _argo0 = 0; |
8ab979d7 | 3745 | int tempbool1; |
efc5f224 | 3746 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3747 | |
3748 | self = self; | |
efc5f224 | 3749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3750 | return NULL; |
1d99702e RD |
3751 | if (_argo0) { |
3752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3755 | return NULL; | |
3756 | } | |
3757 | } | |
3758 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3759 | { |
3760 | wxPy_BEGIN_ALLOW_THREADS; | |
3761 | wxWindow_SetAutoLayout(_arg0,_arg1); | |
3762 | ||
3763 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3764 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3765 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3766 | _resultobj = Py_None; |
3767 | return _resultobj; | |
3768 | } | |
3769 | ||
9d8bd15f RD |
3770 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3771 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3772 | PyObject * _resultobj; | |
3773 | bool _result; | |
3774 | wxWindow * _arg0; | |
3775 | PyObject * _argo0 = 0; | |
3776 | char *_kwnames[] = { "self", NULL }; | |
3777 | ||
3778 | self = self; | |
3779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3780 | return NULL; | |
3781 | if (_argo0) { | |
3782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3785 | return NULL; | |
3786 | } | |
3787 | } | |
3788 | { | |
3789 | wxPy_BEGIN_ALLOW_THREADS; | |
3790 | _result = (bool )wxWindow_GetAutoLayout(_arg0); | |
3791 | ||
3792 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3793 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
3794 | } _resultobj = Py_BuildValue("i",_result); |
3795 | return _resultobj; | |
3796 | } | |
3797 | ||
8ab979d7 | 3798 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3799 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3800 | PyObject * _resultobj; |
3801 | wxWindow * _arg0; | |
3802 | wxColour * _arg1; | |
1d99702e | 3803 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3804 | wxColour temp; |
3805 | PyObject * _obj1 = 0; | |
efc5f224 | 3806 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3807 | |
3808 | self = self; | |
f6bcfd97 | 3809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3810 | return NULL; |
1d99702e RD |
3811 | if (_argo0) { |
3812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3815 | return NULL; | |
3816 | } | |
3817 | } | |
f6bcfd97 BP |
3818 | { |
3819 | _arg1 = &temp; | |
3820 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3821 | return NULL; |
f6bcfd97 | 3822 | } |
cf694132 RD |
3823 | { |
3824 | wxPy_BEGIN_ALLOW_THREADS; | |
3825 | wxWindow_SetBackgroundColour(_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 | ||
3834 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 3835 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3836 | PyObject * _resultobj; |
3837 | wxWindow * _arg0; | |
3838 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
3839 | PyObject * _argo0 = 0; |
3840 | PyObject * _argo1 = 0; | |
efc5f224 | 3841 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
3842 | |
3843 | self = self; | |
efc5f224 | 3844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3845 | return NULL; |
1d99702e RD |
3846 | if (_argo0) { |
3847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3850 | return NULL; | |
3851 | } | |
3852 | } | |
1d99702e RD |
3853 | if (_argo1) { |
3854 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3855 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
3856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3857 | return NULL; | |
3858 | } | |
3859 | } | |
cf694132 RD |
3860 | { |
3861 | wxPy_BEGIN_ALLOW_THREADS; | |
3862 | wxWindow_SetConstraints(_arg0,_arg1); | |
3863 | ||
3864 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3865 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3866 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3867 | _resultobj = Py_None; |
3868 | return _resultobj; | |
3869 | } | |
3870 | ||
2f90df85 RD |
3871 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
3872 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3873 | PyObject * _resultobj; | |
3874 | wxWindow * _arg0; | |
3875 | wxLayoutConstraints * _arg1; | |
3876 | PyObject * _argo0 = 0; | |
3877 | PyObject * _argo1 = 0; | |
3878 | char *_kwnames[] = { "self","constraints", NULL }; | |
3879 | ||
3880 | self = self; | |
3881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3882 | return NULL; | |
3883 | if (_argo0) { | |
3884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3887 | return NULL; | |
3888 | } | |
3889 | } | |
3890 | if (_argo1) { | |
3891 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3892 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3894 | return NULL; | |
3895 | } | |
3896 | } | |
3897 | { | |
3898 | wxPy_BEGIN_ALLOW_THREADS; | |
3899 | wxWindow_UnsetConstraints(_arg0,_arg1); | |
3900 | ||
3901 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3902 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
3903 | } Py_INCREF(Py_None); |
3904 | _resultobj = Py_None; | |
3905 | return _resultobj; | |
3906 | } | |
3907 | ||
8ab979d7 | 3908 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 3909 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3910 | PyObject * _resultobj; |
3911 | wxWindow * _arg0; | |
1d99702e | 3912 | PyObject * _argo0 = 0; |
efc5f224 | 3913 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3914 | |
3915 | self = self; | |
efc5f224 | 3916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 3917 | return NULL; |
1d99702e RD |
3918 | if (_argo0) { |
3919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
3922 | return NULL; | |
3923 | } | |
3924 | } | |
cf694132 RD |
3925 | { |
3926 | wxPy_BEGIN_ALLOW_THREADS; | |
3927 | wxWindow_SetFocus(_arg0); | |
3928 | ||
3929 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3930 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3931 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3932 | _resultobj = Py_None; |
3933 | return _resultobj; | |
3934 | } | |
3935 | ||
2f90df85 RD |
3936 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
3937 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3938 | PyObject * _resultobj; | |
3939 | bool _result; | |
3940 | wxWindow * _arg0; | |
3941 | PyObject * _argo0 = 0; | |
3942 | char *_kwnames[] = { "self", NULL }; | |
3943 | ||
3944 | self = self; | |
3945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3946 | return NULL; | |
3947 | if (_argo0) { | |
3948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3951 | return NULL; | |
3952 | } | |
3953 | } | |
3954 | { | |
3955 | wxPy_BEGIN_ALLOW_THREADS; | |
3956 | _result = (bool )wxWindow_AcceptsFocus(_arg0); | |
3957 | ||
3958 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3959 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
3960 | } _resultobj = Py_BuildValue("i",_result); |
3961 | return _resultobj; | |
3962 | } | |
3963 | ||
8ab979d7 | 3964 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 3965 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3966 | PyObject * _resultobj; |
3967 | wxWindow * _arg0; | |
3968 | wxFont * _arg1; | |
1d99702e RD |
3969 | PyObject * _argo0 = 0; |
3970 | PyObject * _argo1 = 0; | |
efc5f224 | 3971 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
3972 | |
3973 | self = self; | |
efc5f224 | 3974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3975 | return NULL; |
1d99702e RD |
3976 | if (_argo0) { |
3977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
3980 | return NULL; | |
3981 | } | |
3982 | } | |
1d99702e RD |
3983 | if (_argo1) { |
3984 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3985 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
3986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
3987 | return NULL; | |
3988 | } | |
3989 | } | |
cf694132 RD |
3990 | { |
3991 | wxPy_BEGIN_ALLOW_THREADS; | |
3992 | wxWindow_SetFont(_arg0,*_arg1); | |
3993 | ||
3994 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3995 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3996 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3997 | _resultobj = Py_None; |
3998 | return _resultobj; | |
3999 | } | |
4000 | ||
4001 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 4002 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4003 | PyObject * _resultobj; |
4004 | wxWindow * _arg0; | |
4005 | wxColour * _arg1; | |
1d99702e | 4006 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4007 | wxColour temp; |
4008 | PyObject * _obj1 = 0; | |
efc5f224 | 4009 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
4010 | |
4011 | self = self; | |
f6bcfd97 | 4012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4013 | return NULL; |
1d99702e RD |
4014 | if (_argo0) { |
4015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
4018 | return NULL; | |
4019 | } | |
4020 | } | |
f6bcfd97 BP |
4021 | { |
4022 | _arg1 = &temp; | |
4023 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4024 | return NULL; |
f6bcfd97 | 4025 | } |
cf694132 RD |
4026 | { |
4027 | wxPy_BEGIN_ALLOW_THREADS; | |
4028 | wxWindow_SetForegroundColour(_arg0,*_arg1); | |
4029 | ||
4030 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4031 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4032 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4033 | _resultobj = Py_None; |
4034 | return _resultobj; | |
4035 | } | |
4036 | ||
4037 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 4038 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4039 | PyObject * _resultobj; |
4040 | wxWindow * _arg0; | |
4041 | int _arg1; | |
1d99702e | 4042 | PyObject * _argo0 = 0; |
efc5f224 | 4043 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
4044 | |
4045 | self = self; | |
efc5f224 | 4046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4047 | return NULL; |
1d99702e RD |
4048 | if (_argo0) { |
4049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
4052 | return NULL; | |
4053 | } | |
4054 | } | |
cf694132 RD |
4055 | { |
4056 | wxPy_BEGIN_ALLOW_THREADS; | |
4057 | wxWindow_SetId(_arg0,_arg1); | |
4058 | ||
4059 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4060 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4061 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4062 | _resultobj = Py_None; |
4063 | return _resultobj; | |
4064 | } | |
4065 | ||
4066 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 4067 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4068 | PyObject * _resultobj; |
4069 | wxWindow * _arg0; | |
4070 | wxString * _arg1; | |
1d99702e | 4071 | PyObject * _argo0 = 0; |
8ab979d7 | 4072 | PyObject * _obj1 = 0; |
efc5f224 | 4073 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
4074 | |
4075 | self = self; | |
efc5f224 | 4076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4077 | return NULL; |
1d99702e RD |
4078 | if (_argo0) { |
4079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
4082 | return NULL; | |
4083 | } | |
4084 | } | |
4085 | { | |
185d7c3e RD |
4086 | #if PYTHON_API_VERSION >= 1009 |
4087 | char* tmpPtr; int tmpSize; | |
4088 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4089 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4090 | return NULL; |
4091 | } | |
4092 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4093 | return NULL; | |
4094 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4095 | #else | |
8ab979d7 RD |
4096 | if (!PyString_Check(_obj1)) { |
4097 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4098 | return NULL; | |
4099 | } | |
185d7c3e RD |
4100 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4101 | #endif | |
8ab979d7 | 4102 | } |
cf694132 RD |
4103 | { |
4104 | wxPy_BEGIN_ALLOW_THREADS; | |
4105 | wxWindow_SetName(_arg0,*_arg1); | |
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 | { | |
4112 | if (_obj1) | |
4113 | delete _arg1; | |
4114 | } | |
4115 | return _resultobj; | |
4116 | } | |
4117 | ||
8ab979d7 | 4118 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4119 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4120 | PyObject * _resultobj; |
4121 | wxWindow * _arg0; | |
4122 | int _arg1; | |
4123 | int _arg2; | |
4124 | int _arg3; | |
4125 | int _arg4; | |
eb715945 | 4126 | int _arg5 = (int ) TRUE; |
1d99702e | 4127 | PyObject * _argo0 = 0; |
efc5f224 | 4128 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4129 | |
4130 | self = self; | |
eb715945 | 4131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4132 | return NULL; |
1d99702e RD |
4133 | if (_argo0) { |
4134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4137 | return NULL; | |
4138 | } | |
4139 | } | |
cf694132 RD |
4140 | { |
4141 | wxPy_BEGIN_ALLOW_THREADS; | |
4142 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4143 | ||
4144 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4145 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4146 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4147 | _resultobj = Py_None; |
4148 | return _resultobj; | |
4149 | } | |
4150 | ||
4151 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4152 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4153 | PyObject * _resultobj; |
4154 | wxWindow * _arg0; | |
4155 | int _arg1; | |
4156 | int _arg2; | |
1d99702e RD |
4157 | bool _arg3 = (bool ) TRUE; |
4158 | PyObject * _argo0 = 0; | |
4159 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4160 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4161 | |
4162 | self = self; | |
efc5f224 | 4163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4164 | return NULL; |
1d99702e RD |
4165 | if (_argo0) { |
4166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4169 | return NULL; | |
4170 | } | |
4171 | } | |
4172 | _arg3 = (bool ) tempbool3; | |
cf694132 RD |
4173 | { |
4174 | wxPy_BEGIN_ALLOW_THREADS; | |
4175 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); | |
4176 | ||
4177 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4178 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4179 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4180 | _resultobj = Py_None; |
4181 | return _resultobj; | |
4182 | } | |
4183 | ||
4184 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4185 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4186 | PyObject * _resultobj; |
4187 | wxWindow * _arg0; | |
4188 | int _arg1; | |
4189 | int _arg2; | |
4190 | int _arg3; | |
4191 | int _arg4; | |
1d99702e RD |
4192 | int _arg5 = (int ) wxSIZE_AUTO; |
4193 | PyObject * _argo0 = 0; | |
efc5f224 | 4194 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4195 | |
4196 | self = self; | |
efc5f224 | 4197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4198 | return NULL; |
1d99702e RD |
4199 | if (_argo0) { |
4200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4203 | return NULL; | |
4204 | } | |
4205 | } | |
cf694132 RD |
4206 | { |
4207 | wxPy_BEGIN_ALLOW_THREADS; | |
4208 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4209 | ||
4210 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4211 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4212 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4213 | _resultobj = Py_None; |
4214 | return _resultobj; | |
4215 | } | |
4216 | ||
4217 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4218 | self->SetSize(size); |
8ab979d7 | 4219 | } |
efc5f224 | 4220 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4221 | PyObject * _resultobj; |
4222 | wxWindow * _arg0; | |
4223 | wxSize * _arg1; | |
1d99702e | 4224 | PyObject * _argo0 = 0; |
2f90df85 RD |
4225 | wxSize temp; |
4226 | PyObject * _obj1 = 0; | |
efc5f224 | 4227 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4228 | |
4229 | self = self; | |
2f90df85 | 4230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4231 | return NULL; |
1d99702e RD |
4232 | if (_argo0) { |
4233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4236 | return NULL; | |
4237 | } | |
4238 | } | |
2f90df85 RD |
4239 | { |
4240 | _arg1 = &temp; | |
4241 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4242 | return NULL; |
2f90df85 | 4243 | } |
cf694132 RD |
4244 | { |
4245 | wxPy_BEGIN_ALLOW_THREADS; | |
4246 | wxWindow_SetSize(_arg0,*_arg1); | |
4247 | ||
4248 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4249 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4250 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4251 | _resultobj = Py_None; |
4252 | return _resultobj; | |
4253 | } | |
4254 | ||
4255 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) { | |
b7e72427 | 4256 | self->Move(pos); |
8ab979d7 | 4257 | } |
efc5f224 | 4258 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4259 | PyObject * _resultobj; |
4260 | wxWindow * _arg0; | |
4261 | wxPoint * _arg1; | |
1d99702e | 4262 | PyObject * _argo0 = 0; |
2f90df85 RD |
4263 | wxPoint temp; |
4264 | PyObject * _obj1 = 0; | |
efc5f224 | 4265 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
4266 | |
4267 | self = self; | |
2f90df85 | 4268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4269 | return NULL; |
1d99702e RD |
4270 | if (_argo0) { |
4271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4274 | return NULL; | |
4275 | } | |
4276 | } | |
2f90df85 RD |
4277 | { |
4278 | _arg1 = &temp; | |
4279 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4280 | return NULL; |
2f90df85 | 4281 | } |
cf694132 RD |
4282 | { |
4283 | wxPy_BEGIN_ALLOW_THREADS; | |
4284 | wxWindow_SetPosition(_arg0,*_arg1); | |
4285 | ||
4286 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4287 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4288 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4289 | _resultobj = Py_None; |
4290 | return _resultobj; | |
4291 | } | |
4292 | ||
dbbb98cd RD |
4293 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4294 | self->SetSize(rect, sizeFlags); | |
4295 | } | |
4296 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4297 | PyObject * _resultobj; | |
4298 | wxWindow * _arg0; | |
4299 | wxRect * _arg1; | |
4300 | int _arg2 = (int ) wxSIZE_AUTO; | |
4301 | PyObject * _argo0 = 0; | |
4302 | wxRect temp; | |
4303 | PyObject * _obj1 = 0; | |
4304 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4305 | ||
4306 | self = self; | |
4307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4308 | return NULL; | |
4309 | if (_argo0) { | |
4310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4313 | return NULL; | |
4314 | } | |
4315 | } | |
4316 | { | |
4317 | _arg1 = &temp; | |
4318 | if (! wxRect_helper(_obj1, &_arg1)) | |
4319 | return NULL; | |
4320 | } | |
4321 | { | |
4322 | wxPy_BEGIN_ALLOW_THREADS; | |
4323 | wxWindow_SetRect(_arg0,*_arg1,_arg2); | |
4324 | ||
4325 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4326 | if (PyErr_Occurred()) return NULL; |
dbbb98cd RD |
4327 | } Py_INCREF(Py_None); |
4328 | _resultobj = Py_None; | |
4329 | return _resultobj; | |
4330 | } | |
4331 | ||
8ab979d7 | 4332 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4333 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4334 | PyObject * _resultobj; |
4335 | wxWindow * _arg0; | |
1d99702e RD |
4336 | int _arg1 = (int ) -1; |
4337 | int _arg2 = (int ) -1; | |
4338 | int _arg3 = (int ) -1; | |
4339 | int _arg4 = (int ) -1; | |
4340 | int _arg5 = (int ) -1; | |
4341 | int _arg6 = (int ) -1; | |
4342 | PyObject * _argo0 = 0; | |
efc5f224 | 4343 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4344 | |
4345 | self = self; | |
efc5f224 | 4346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4347 | return NULL; |
1d99702e RD |
4348 | if (_argo0) { |
4349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4352 | return NULL; | |
4353 | } | |
4354 | } | |
cf694132 RD |
4355 | { |
4356 | wxPy_BEGIN_ALLOW_THREADS; | |
4357 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
4358 | ||
4359 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4360 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4361 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4362 | _resultobj = Py_None; |
4363 | return _resultobj; | |
4364 | } | |
4365 | ||
af309447 | 4366 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4367 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4368 | PyObject * _resultobj; |
4369 | wxWindow * _arg0; | |
4370 | int _arg1; | |
4371 | int _arg2; | |
1d99702e | 4372 | PyObject * _argo0 = 0; |
efc5f224 | 4373 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4374 | |
4375 | self = self; | |
efc5f224 | 4376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4377 | return NULL; |
1d99702e RD |
4378 | if (_argo0) { |
4379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4382 | return NULL; | |
4383 | } | |
4384 | } | |
cf694132 RD |
4385 | { |
4386 | wxPy_BEGIN_ALLOW_THREADS; | |
4387 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); | |
4388 | ||
4389 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4390 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4391 | } Py_INCREF(Py_None); |
af309447 RD |
4392 | _resultobj = Py_None; |
4393 | return _resultobj; | |
4394 | } | |
4395 | ||
4396 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4397 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4398 | PyObject * _resultobj; |
4399 | wxWindow * _arg0; | |
4400 | wxSize * _arg1; | |
1d99702e | 4401 | PyObject * _argo0 = 0; |
2f90df85 RD |
4402 | wxSize temp; |
4403 | PyObject * _obj1 = 0; | |
efc5f224 | 4404 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4405 | |
4406 | self = self; | |
2f90df85 | 4407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4408 | return NULL; |
1d99702e RD |
4409 | if (_argo0) { |
4410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4413 | return NULL; | |
4414 | } | |
4415 | } | |
2f90df85 RD |
4416 | { |
4417 | _arg1 = &temp; | |
4418 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4419 | return NULL; |
2f90df85 | 4420 | } |
cf694132 RD |
4421 | { |
4422 | wxPy_BEGIN_ALLOW_THREADS; | |
4423 | wxWindow_SetClientSize(_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 | ||
4432 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4433 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4434 | PyObject * _resultobj; |
4435 | wxWindow * _arg0; | |
4436 | wxCursor * _arg1; | |
1d99702e RD |
4437 | PyObject * _argo0 = 0; |
4438 | PyObject * _argo1 = 0; | |
efc5f224 | 4439 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4440 | |
4441 | self = self; | |
efc5f224 | 4442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4443 | return NULL; |
1d99702e RD |
4444 | if (_argo0) { |
4445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4448 | return NULL; | |
4449 | } | |
4450 | } | |
1d99702e RD |
4451 | if (_argo1) { |
4452 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4453 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4455 | return NULL; | |
4456 | } | |
4457 | } | |
cf694132 RD |
4458 | { |
4459 | wxPy_BEGIN_ALLOW_THREADS; | |
4460 | wxWindow_SetCursor(_arg0,*_arg1); | |
4461 | ||
4462 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4463 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4464 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4465 | _resultobj = Py_None; |
4466 | return _resultobj; | |
4467 | } | |
4468 | ||
1afc06c2 RD |
4469 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4470 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4471 | PyObject * _resultobj; | |
4472 | wxWindow * _arg0; | |
4473 | wxEvtHandler * _arg1; | |
4474 | PyObject * _argo0 = 0; | |
4475 | PyObject * _argo1 = 0; | |
4476 | char *_kwnames[] = { "self","handler", NULL }; | |
4477 | ||
4478 | self = self; | |
4479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4480 | return NULL; | |
4481 | if (_argo0) { | |
4482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4485 | return NULL; | |
4486 | } | |
4487 | } | |
4488 | if (_argo1) { | |
4489 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4490 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4492 | return NULL; | |
4493 | } | |
4494 | } | |
4495 | { | |
4496 | wxPy_BEGIN_ALLOW_THREADS; | |
4497 | wxWindow_SetEventHandler(_arg0,_arg1); | |
4498 | ||
4499 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4500 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
4501 | } Py_INCREF(Py_None); |
4502 | _resultobj = Py_None; | |
4503 | return _resultobj; | |
4504 | } | |
4505 | ||
83b18bab RD |
4506 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
4507 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4508 | PyObject * _resultobj; | |
4509 | wxWindow * _arg0; | |
4510 | long _arg1; | |
4511 | PyObject * _argo0 = 0; | |
4512 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4513 | ||
4514 | self = self; | |
4515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4516 | return NULL; | |
4517 | if (_argo0) { | |
4518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4521 | return NULL; | |
4522 | } | |
4523 | } | |
4524 | { | |
4525 | wxPy_BEGIN_ALLOW_THREADS; | |
4526 | wxWindow_SetExtraStyle(_arg0,_arg1); | |
4527 | ||
4528 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4529 | if (PyErr_Occurred()) return NULL; |
83b18bab RD |
4530 | } Py_INCREF(Py_None); |
4531 | _resultobj = Py_None; | |
4532 | return _resultobj; | |
4533 | } | |
4534 | ||
8ab979d7 | 4535 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4536 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4537 | PyObject * _resultobj; |
4538 | wxWindow * _arg0; | |
4539 | wxString * _arg1; | |
1d99702e | 4540 | PyObject * _argo0 = 0; |
8ab979d7 | 4541 | PyObject * _obj1 = 0; |
efc5f224 | 4542 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4543 | |
4544 | self = self; | |
efc5f224 | 4545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4546 | return NULL; |
1d99702e RD |
4547 | if (_argo0) { |
4548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4551 | return NULL; | |
4552 | } | |
4553 | } | |
4554 | { | |
185d7c3e RD |
4555 | #if PYTHON_API_VERSION >= 1009 |
4556 | char* tmpPtr; int tmpSize; | |
4557 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4558 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4559 | return NULL; |
4560 | } | |
4561 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4562 | return NULL; | |
4563 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4564 | #else | |
8ab979d7 RD |
4565 | if (!PyString_Check(_obj1)) { |
4566 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4567 | return NULL; | |
4568 | } | |
185d7c3e RD |
4569 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4570 | #endif | |
8ab979d7 | 4571 | } |
cf694132 RD |
4572 | { |
4573 | wxPy_BEGIN_ALLOW_THREADS; | |
4574 | wxWindow_SetTitle(_arg0,*_arg1); | |
4575 | ||
4576 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4577 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4578 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4579 | _resultobj = Py_None; |
4580 | { | |
4581 | if (_obj1) | |
4582 | delete _arg1; | |
4583 | } | |
4584 | return _resultobj; | |
4585 | } | |
4586 | ||
4587 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4588 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4589 | PyObject * _resultobj; |
4590 | bool _result; | |
4591 | wxWindow * _arg0; | |
7b7ac0ab | 4592 | bool _arg1 = (bool ) TRUE; |
1d99702e | 4593 | PyObject * _argo0 = 0; |
7b7ac0ab | 4594 | int tempbool1 = (int) TRUE; |
efc5f224 | 4595 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4596 | |
4597 | self = self; | |
7b7ac0ab | 4598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4599 | return NULL; |
1d99702e RD |
4600 | if (_argo0) { |
4601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
4604 | return NULL; | |
4605 | } | |
4606 | } | |
4607 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
4608 | { |
4609 | wxPy_BEGIN_ALLOW_THREADS; | |
4610 | _result = (bool )wxWindow_Show(_arg0,_arg1); | |
4611 | ||
4612 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4613 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4614 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4615 | return _resultobj; |
4616 | } | |
4617 | ||
4618 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4619 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4620 | PyObject * _resultobj; |
4621 | bool _result; | |
4622 | wxWindow * _arg0; | |
1d99702e | 4623 | PyObject * _argo0 = 0; |
efc5f224 | 4624 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4625 | |
4626 | self = self; | |
efc5f224 | 4627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4628 | return NULL; |
1d99702e RD |
4629 | if (_argo0) { |
4630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4633 | return NULL; | |
4634 | } | |
4635 | } | |
cf694132 RD |
4636 | { |
4637 | wxPy_BEGIN_ALLOW_THREADS; | |
4638 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); | |
4639 | ||
4640 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4641 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4642 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4643 | return _resultobj; |
4644 | } | |
4645 | ||
4646 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4647 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4648 | PyObject * _resultobj; |
4649 | bool _result; | |
4650 | wxWindow * _arg0; | |
1d99702e | 4651 | PyObject * _argo0 = 0; |
efc5f224 | 4652 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4653 | |
4654 | self = self; | |
efc5f224 | 4655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4656 | return NULL; |
1d99702e RD |
4657 | if (_argo0) { |
4658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4661 | return NULL; | |
4662 | } | |
4663 | } | |
cf694132 RD |
4664 | { |
4665 | wxPy_BEGIN_ALLOW_THREADS; | |
4666 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); | |
4667 | ||
4668 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4669 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4670 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4671 | return _resultobj; |
4672 | } | |
4673 | ||
4674 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) | |
efc5f224 | 4675 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4676 | PyObject * _resultobj; |
4677 | bool _result; | |
4678 | wxWindow * _arg0; | |
1d99702e | 4679 | PyObject * _argo0 = 0; |
efc5f224 | 4680 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4681 | |
4682 | self = self; | |
efc5f224 | 4683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 4684 | return NULL; |
1d99702e RD |
4685 | if (_argo0) { |
4686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
4689 | return NULL; | |
4690 | } | |
4691 | } | |
cf694132 RD |
4692 | { |
4693 | wxPy_BEGIN_ALLOW_THREADS; | |
4694 | _result = (bool )wxWindow_Validate(_arg0); | |
4695 | ||
4696 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4697 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4698 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4699 | return _resultobj; |
4700 | } | |
4701 | ||
4702 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
efc5f224 | 4703 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4704 | PyObject * _resultobj; |
4705 | wxWindow * _arg0; | |
4706 | int _arg1; | |
4707 | int _arg2; | |
1d99702e | 4708 | PyObject * _argo0 = 0; |
efc5f224 | 4709 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
4710 | |
4711 | self = self; | |
efc5f224 | 4712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4713 | return NULL; |
1d99702e RD |
4714 | if (_argo0) { |
4715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); |
4718 | return NULL; | |
4719 | } | |
4720 | } | |
cf694132 RD |
4721 | { |
4722 | wxPy_BEGIN_ALLOW_THREADS; | |
4723 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
4724 | ||
4725 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4726 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4727 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4728 | _resultobj = Py_None; |
4729 | return _resultobj; | |
4730 | } | |
4731 | ||
b8b8dda7 | 4732 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 4733 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4734 | PyObject * _resultobj; |
4735 | wxPoint * _result; | |
4736 | wxWindow * _arg0; | |
4737 | wxPoint * _arg1; | |
1d99702e | 4738 | PyObject * _argo0 = 0; |
2f90df85 RD |
4739 | wxPoint temp; |
4740 | PyObject * _obj1 = 0; | |
efc5f224 | 4741 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4742 | char _ptemp[128]; |
4743 | ||
4744 | self = self; | |
2f90df85 | 4745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4746 | return NULL; |
1d99702e RD |
4747 | if (_argo0) { |
4748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
4751 | return NULL; | |
4752 | } | |
4753 | } | |
2f90df85 RD |
4754 | { |
4755 | _arg1 = &temp; | |
4756 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4757 | return NULL; |
2f90df85 | 4758 | } |
cf694132 RD |
4759 | { |
4760 | wxPy_BEGIN_ALLOW_THREADS; | |
4761 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); | |
4762 | ||
4763 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4764 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4765 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4766 | _resultobj = Py_BuildValue("s",_ptemp); |
4767 | return _resultobj; | |
4768 | } | |
4769 | ||
4770 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 4771 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4772 | PyObject * _resultobj; |
4773 | wxSize * _result; | |
4774 | wxWindow * _arg0; | |
4775 | wxSize * _arg1; | |
1d99702e | 4776 | PyObject * _argo0 = 0; |
2f90df85 RD |
4777 | wxSize temp; |
4778 | PyObject * _obj1 = 0; | |
efc5f224 | 4779 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4780 | char _ptemp[128]; |
4781 | ||
4782 | self = self; | |
2f90df85 | 4783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4784 | return NULL; |
1d99702e RD |
4785 | if (_argo0) { |
4786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
4789 | return NULL; | |
4790 | } | |
4791 | } | |
2f90df85 RD |
4792 | { |
4793 | _arg1 = &temp; | |
4794 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4795 | return NULL; |
2f90df85 | 4796 | } |
cf694132 RD |
4797 | { |
4798 | wxPy_BEGIN_ALLOW_THREADS; | |
4799 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); | |
4800 | ||
4801 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4802 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4803 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4804 | _resultobj = Py_BuildValue("s",_ptemp); |
4805 | return _resultobj; | |
4806 | } | |
4807 | ||
4808 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4809 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4810 | PyObject * _resultobj; |
4811 | wxPoint * _result; | |
4812 | wxWindow * _arg0; | |
4813 | wxPoint * _arg1; | |
1d99702e | 4814 | PyObject * _argo0 = 0; |
2f90df85 RD |
4815 | wxPoint temp; |
4816 | PyObject * _obj1 = 0; | |
efc5f224 | 4817 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4818 | char _ptemp[128]; |
4819 | ||
4820 | self = self; | |
2f90df85 | 4821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4822 | return NULL; |
1d99702e RD |
4823 | if (_argo0) { |
4824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
4827 | return NULL; | |
4828 | } | |
4829 | } | |
2f90df85 RD |
4830 | { |
4831 | _arg1 = &temp; | |
4832 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4833 | return NULL; |
2f90df85 | 4834 | } |
cf694132 RD |
4835 | { |
4836 | wxPy_BEGIN_ALLOW_THREADS; | |
4837 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); | |
4838 | ||
4839 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4840 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4841 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4842 | _resultobj = Py_BuildValue("s",_ptemp); |
4843 | return _resultobj; | |
4844 | } | |
4845 | ||
4846 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4847 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4848 | PyObject * _resultobj; |
4849 | wxSize * _result; | |
4850 | wxWindow * _arg0; | |
4851 | wxSize * _arg1; | |
1d99702e | 4852 | PyObject * _argo0 = 0; |
2f90df85 RD |
4853 | wxSize temp; |
4854 | PyObject * _obj1 = 0; | |
efc5f224 | 4855 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4856 | char _ptemp[128]; |
4857 | ||
4858 | self = self; | |
2f90df85 | 4859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4860 | return NULL; |
1d99702e RD |
4861 | if (_argo0) { |
4862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
4865 | return NULL; | |
4866 | } | |
4867 | } | |
2f90df85 RD |
4868 | { |
4869 | _arg1 = &temp; | |
4870 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4871 | return NULL; |
2f90df85 | 4872 | } |
cf694132 RD |
4873 | { |
4874 | wxPy_BEGIN_ALLOW_THREADS; | |
4875 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); | |
4876 | ||
4877 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4878 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4879 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4880 | _resultobj = Py_BuildValue("s",_ptemp); |
4881 | return _resultobj; | |
4882 | } | |
4883 | ||
af309447 | 4884 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 4885 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4886 | PyObject * _resultobj; |
4887 | wxWindow * _arg0; | |
4888 | wxString * _arg1; | |
1d99702e | 4889 | PyObject * _argo0 = 0; |
af309447 | 4890 | PyObject * _obj1 = 0; |
efc5f224 | 4891 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
4892 | |
4893 | self = self; | |
efc5f224 | 4894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 4895 | return NULL; |
1d99702e RD |
4896 | if (_argo0) { |
4897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
4900 | return NULL; | |
4901 | } | |
4902 | } | |
4903 | { | |
185d7c3e RD |
4904 | #if PYTHON_API_VERSION >= 1009 |
4905 | char* tmpPtr; int tmpSize; | |
4906 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4907 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4908 | return NULL; |
4909 | } | |
4910 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4911 | return NULL; | |
4912 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4913 | #else | |
af309447 RD |
4914 | if (!PyString_Check(_obj1)) { |
4915 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4916 | return NULL; | |
4917 | } | |
185d7c3e RD |
4918 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4919 | #endif | |
af309447 | 4920 | } |
cf694132 RD |
4921 | { |
4922 | wxPy_BEGIN_ALLOW_THREADS; | |
4923 | wxWindow_SetToolTipString(_arg0,*_arg1); | |
4924 | ||
4925 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4926 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4927 | } Py_INCREF(Py_None); |
af309447 RD |
4928 | _resultobj = Py_None; |
4929 | { | |
4930 | if (_obj1) | |
4931 | delete _arg1; | |
4932 | } | |
4933 | return _resultobj; | |
4934 | } | |
4935 | ||
4936 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 4937 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4938 | PyObject * _resultobj; |
4939 | wxWindow * _arg0; | |
4940 | wxToolTip * _arg1; | |
1d99702e RD |
4941 | PyObject * _argo0 = 0; |
4942 | PyObject * _argo1 = 0; | |
efc5f224 | 4943 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
4944 | |
4945 | self = self; | |
efc5f224 | 4946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 4947 | return NULL; |
1d99702e RD |
4948 | if (_argo0) { |
4949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
4952 | return NULL; | |
4953 | } | |
4954 | } | |
1d99702e RD |
4955 | if (_argo1) { |
4956 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4957 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
4958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
4959 | return NULL; | |
4960 | } | |
4961 | } | |
cf694132 RD |
4962 | { |
4963 | wxPy_BEGIN_ALLOW_THREADS; | |
4964 | wxWindow_SetToolTip(_arg0,_arg1); | |
4965 | ||
4966 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4967 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4968 | } Py_INCREF(Py_None); |
af309447 RD |
4969 | _resultobj = Py_None; |
4970 | return _resultobj; | |
4971 | } | |
4972 | ||
4973 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 4974 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4975 | PyObject * _resultobj; |
4976 | wxToolTip * _result; | |
4977 | wxWindow * _arg0; | |
1d99702e | 4978 | PyObject * _argo0 = 0; |
efc5f224 | 4979 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
4980 | |
4981 | self = self; | |
efc5f224 | 4982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 4983 | return NULL; |
1d99702e RD |
4984 | if (_argo0) { |
4985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
4988 | return NULL; | |
4989 | } | |
4990 | } | |
cf694132 RD |
4991 | { |
4992 | wxPy_BEGIN_ALLOW_THREADS; | |
4993 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); | |
4994 | ||
4995 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4996 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 4997 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
4998 | return _resultobj; |
4999 | } | |
5000 | ||
2f90df85 RD |
5001 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) |
5002 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5003 | PyObject * _resultobj; | |
5004 | wxWindow * _arg0; | |
5005 | wxSizer * _arg1; | |
5006 | PyObject * _argo0 = 0; | |
5007 | PyObject * _argo1 = 0; | |
5008 | char *_kwnames[] = { "self","sizer", NULL }; | |
5009 | ||
5010 | self = self; | |
5011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
5012 | return NULL; | |
5013 | if (_argo0) { | |
5014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
5017 | return NULL; | |
5018 | } | |
5019 | } | |
5020 | if (_argo1) { | |
5021 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5022 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
5024 | return NULL; | |
5025 | } | |
5026 | } | |
5027 | { | |
5028 | wxPy_BEGIN_ALLOW_THREADS; | |
5029 | wxWindow_SetSizer(_arg0,_arg1); | |
5030 | ||
5031 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5032 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5033 | } Py_INCREF(Py_None); |
5034 | _resultobj = Py_None; | |
5035 | return _resultobj; | |
5036 | } | |
5037 | ||
f6bcfd97 BP |
5038 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
5039 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5040 | PyObject * _resultobj; | |
5041 | wxSizer * _result; | |
5042 | wxWindow * _arg0; | |
5043 | PyObject * _argo0 = 0; | |
5044 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
5045 | |
5046 | self = self; | |
5047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
5048 | return NULL; | |
5049 | if (_argo0) { | |
5050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
5053 | return NULL; | |
5054 | } | |
5055 | } | |
5056 | { | |
5057 | wxPy_BEGIN_ALLOW_THREADS; | |
5058 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); | |
5059 | ||
5060 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5061 | if (PyErr_Occurred()) return NULL; |
2f4e9287 | 5062 | }{ _resultobj = wxPyMake_wxSizer(_result); } |
f6bcfd97 BP |
5063 | return _resultobj; |
5064 | } | |
5065 | ||
2f90df85 RD |
5066 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
5067 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5068 | PyObject * _resultobj; | |
5069 | wxValidator * _result; | |
5070 | wxWindow * _arg0; | |
5071 | PyObject * _argo0 = 0; | |
5072 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
5073 | |
5074 | self = self; | |
5075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
5076 | return NULL; | |
5077 | if (_argo0) { | |
5078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
5081 | return NULL; | |
5082 | } | |
5083 | } | |
5084 | { | |
5085 | wxPy_BEGIN_ALLOW_THREADS; | |
5086 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); | |
5087 | ||
5088 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5089 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5090 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
5091 | return _resultobj; |
5092 | } | |
5093 | ||
5094 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5095 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5096 | PyObject * _resultobj; | |
5097 | wxWindow * _arg0; | |
5098 | wxValidator * _arg1; | |
5099 | PyObject * _argo0 = 0; | |
5100 | PyObject * _argo1 = 0; | |
5101 | char *_kwnames[] = { "self","validator", NULL }; | |
5102 | ||
5103 | self = self; | |
5104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_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_SetValidator. 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,"_wxValidator_p")) { | |
5116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5117 | return NULL; | |
5118 | } | |
5119 | } | |
5120 | { | |
5121 | wxPy_BEGIN_ALLOW_THREADS; | |
5122 | wxWindow_SetValidator(_arg0,*_arg1); | |
5123 | ||
5124 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5125 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5126 | } Py_INCREF(Py_None); |
5127 | _resultobj = Py_None; | |
5128 | return _resultobj; | |
5129 | } | |
5130 | ||
b1462dfa RD |
5131 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5132 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5133 | PyObject * _resultobj; | |
5134 | wxWindow * _arg0; | |
5135 | wxDropTarget * _arg1; | |
5136 | PyObject * _argo0 = 0; | |
5137 | PyObject * _argo1 = 0; | |
5138 | char *_kwnames[] = { "self","target", NULL }; | |
5139 | ||
5140 | self = self; | |
5141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
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_SetDropTarget. Expected _wxWindow_p."); | |
5147 | return NULL; | |
5148 | } | |
5149 | } | |
5150 | if (_argo1) { | |
5151 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5152 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5154 | return NULL; | |
5155 | } | |
5156 | } | |
5157 | { | |
5158 | wxPy_BEGIN_ALLOW_THREADS; | |
5159 | wxWindow_SetDropTarget(_arg0,_arg1); | |
5160 | ||
5161 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5162 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5163 | } Py_INCREF(Py_None); |
5164 | _resultobj = Py_None; | |
5165 | return _resultobj; | |
5166 | } | |
5167 | ||
5168 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5169 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5170 | PyObject * _resultobj; | |
5171 | wxDropTarget * _result; | |
5172 | wxWindow * _arg0; | |
5173 | PyObject * _argo0 = 0; | |
5174 | char *_kwnames[] = { "self", NULL }; | |
5175 | char _ptemp[128]; | |
5176 | ||
5177 | self = self; | |
5178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5179 | return NULL; | |
5180 | if (_argo0) { | |
5181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5184 | return NULL; | |
5185 | } | |
5186 | } | |
5187 | { | |
5188 | wxPy_BEGIN_ALLOW_THREADS; | |
5189 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); | |
5190 | ||
5191 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5192 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5193 | } if (_result) { |
5194 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5195 | _resultobj = Py_BuildValue("s",_ptemp); | |
5196 | } else { | |
5197 | Py_INCREF(Py_None); | |
5198 | _resultobj = Py_None; | |
5199 | } | |
5200 | return _resultobj; | |
5201 | } | |
5202 | ||
694759cf RD |
5203 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5204 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5205 | PyObject * _resultobj; | |
5206 | wxSize * _result; | |
5207 | wxWindow * _arg0; | |
5208 | PyObject * _argo0 = 0; | |
5209 | char *_kwnames[] = { "self", NULL }; | |
5210 | char _ptemp[128]; | |
5211 | ||
5212 | self = self; | |
5213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5214 | return NULL; | |
5215 | if (_argo0) { | |
5216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5219 | return NULL; | |
5220 | } | |
5221 | } | |
5222 | { | |
5223 | wxPy_BEGIN_ALLOW_THREADS; | |
5224 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); | |
5225 | ||
5226 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5227 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5228 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5229 | _resultobj = Py_BuildValue("s",_ptemp); | |
5230 | return _resultobj; | |
5231 | } | |
5232 | ||
a1df7a95 RD |
5233 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5234 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5235 | PyObject * _resultobj; | |
5236 | wxWindow * _arg0; | |
5237 | wxCaret * _arg1; | |
5238 | PyObject * _argo0 = 0; | |
5239 | PyObject * _argo1 = 0; | |
5240 | char *_kwnames[] = { "self","caret", NULL }; | |
5241 | ||
5242 | self = self; | |
5243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
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_SetCaret. Expected _wxWindow_p."); | |
5249 | return NULL; | |
5250 | } | |
5251 | } | |
5252 | if (_argo1) { | |
5253 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5254 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5256 | return NULL; | |
5257 | } | |
5258 | } | |
5259 | { | |
5260 | wxPy_BEGIN_ALLOW_THREADS; | |
5261 | wxWindow_SetCaret(_arg0,_arg1); | |
5262 | ||
5263 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5264 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5265 | } Py_INCREF(Py_None); |
5266 | _resultobj = Py_None; | |
5267 | return _resultobj; | |
5268 | } | |
5269 | ||
5270 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5271 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5272 | PyObject * _resultobj; | |
5273 | wxCaret * _result; | |
5274 | wxWindow * _arg0; | |
5275 | PyObject * _argo0 = 0; | |
5276 | char *_kwnames[] = { "self", NULL }; | |
5277 | char _ptemp[128]; | |
5278 | ||
5279 | self = self; | |
5280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5281 | return NULL; | |
5282 | if (_argo0) { | |
5283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5286 | return NULL; | |
5287 | } | |
5288 | } | |
5289 | { | |
5290 | wxPy_BEGIN_ALLOW_THREADS; | |
5291 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); | |
5292 | ||
5293 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5294 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5295 | } if (_result) { |
5296 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5297 | _resultobj = Py_BuildValue("s",_ptemp); | |
5298 | } else { | |
5299 | Py_INCREF(Py_None); | |
5300 | _resultobj = Py_None; | |
5301 | } | |
5302 | return _resultobj; | |
5303 | } | |
5304 | ||
3a0958b1 RD |
5305 | #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze()) |
5306 | static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5307 | PyObject * _resultobj; | |
5308 | wxWindow * _arg0; | |
5309 | PyObject * _argo0 = 0; | |
5310 | char *_kwnames[] = { "self", NULL }; | |
5311 | ||
5312 | self = self; | |
5313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0)) | |
5314 | return NULL; | |
5315 | if (_argo0) { | |
5316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p."); | |
5319 | return NULL; | |
5320 | } | |
5321 | } | |
5322 | { | |
5323 | wxPy_BEGIN_ALLOW_THREADS; | |
5324 | wxWindow_Freeze(_arg0); | |
5325 | ||
5326 | wxPy_END_ALLOW_THREADS; | |
5327 | if (PyErr_Occurred()) return NULL; | |
5328 | } Py_INCREF(Py_None); | |
5329 | _resultobj = Py_None; | |
5330 | return _resultobj; | |
5331 | } | |
5332 | ||
5333 | #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw()) | |
5334 | static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5335 | PyObject * _resultobj; | |
5336 | wxWindow * _arg0; | |
5337 | PyObject * _argo0 = 0; | |
5338 | char *_kwnames[] = { "self", NULL }; | |
5339 | ||
5340 | self = self; | |
5341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0)) | |
5342 | return NULL; | |
5343 | if (_argo0) { | |
5344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p."); | |
5347 | return NULL; | |
5348 | } | |
5349 | } | |
5350 | { | |
5351 | wxPy_BEGIN_ALLOW_THREADS; | |
5352 | wxWindow_Thaw(_arg0); | |
5353 | ||
5354 | wxPy_END_ALLOW_THREADS; | |
5355 | if (PyErr_Occurred()) return NULL; | |
5356 | } Py_INCREF(Py_None); | |
5357 | _resultobj = Py_None; | |
5358 | return _resultobj; | |
5359 | } | |
5360 | ||
09f3d4e6 RD |
5361 | #define wxWindow_Update(_swigobj) (_swigobj->Update()) |
5362 | static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5363 | PyObject * _resultobj; | |
5364 | wxWindow * _arg0; | |
5365 | PyObject * _argo0 = 0; | |
5366 | char *_kwnames[] = { "self", NULL }; | |
5367 | ||
5368 | self = self; | |
5369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0)) | |
5370 | return NULL; | |
5371 | if (_argo0) { | |
5372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p."); | |
5375 | return NULL; | |
5376 | } | |
5377 | } | |
5378 | { | |
5379 | wxPy_BEGIN_ALLOW_THREADS; | |
5380 | wxWindow_Update(_arg0); | |
5381 | ||
5382 | wxPy_END_ALLOW_THREADS; | |
5383 | if (PyErr_Occurred()) return NULL; | |
5384 | } Py_INCREF(Py_None); | |
5385 | _resultobj = Py_None; | |
5386 | return _resultobj; | |
5387 | } | |
5388 | ||
4f3449b4 RD |
5389 | #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText()) |
5390 | static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5391 | PyObject * _resultobj; | |
5392 | wxString * _result; | |
5393 | wxWindow * _arg0; | |
5394 | PyObject * _argo0 = 0; | |
5395 | char *_kwnames[] = { "self", NULL }; | |
5396 | ||
5397 | self = self; | |
5398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0)) | |
5399 | return NULL; | |
5400 | if (_argo0) { | |
5401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p."); | |
5404 | return NULL; | |
5405 | } | |
5406 | } | |
5407 | { | |
5408 | wxPy_BEGIN_ALLOW_THREADS; | |
5409 | _result = new wxString (wxWindow_GetHelpText(_arg0)); | |
5410 | ||
5411 | wxPy_END_ALLOW_THREADS; | |
5412 | if (PyErr_Occurred()) return NULL; | |
5413 | }{ | |
5414 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5415 | } | |
5416 | { | |
5417 | delete _result; | |
5418 | } | |
5419 | return _resultobj; | |
5420 | } | |
5421 | ||
5422 | #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0)) | |
5423 | static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5424 | PyObject * _resultobj; | |
5425 | wxWindow * _arg0; | |
5426 | wxString * _arg1; | |
5427 | PyObject * _argo0 = 0; | |
5428 | PyObject * _obj1 = 0; | |
5429 | char *_kwnames[] = { "self","helpText", NULL }; | |
5430 | ||
5431 | self = self; | |
5432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1)) | |
5433 | return NULL; | |
5434 | if (_argo0) { | |
5435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p."); | |
5438 | return NULL; | |
5439 | } | |
5440 | } | |
5441 | { | |
5442 | #if PYTHON_API_VERSION >= 1009 | |
5443 | char* tmpPtr; int tmpSize; | |
5444 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5445 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5446 | return NULL; | |
5447 | } | |
5448 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5449 | return NULL; | |
5450 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5451 | #else | |
5452 | if (!PyString_Check(_obj1)) { | |
5453 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5454 | return NULL; | |
5455 | } | |
5456 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5457 | #endif | |
5458 | } | |
5459 | { | |
5460 | wxPy_BEGIN_ALLOW_THREADS; | |
5461 | wxWindow_SetHelpText(_arg0,*_arg1); | |
5462 | ||
5463 | wxPy_END_ALLOW_THREADS; | |
5464 | if (PyErr_Occurred()) return NULL; | |
5465 | } Py_INCREF(Py_None); | |
5466 | _resultobj = Py_None; | |
5467 | { | |
5468 | if (_obj1) | |
5469 | delete _arg1; | |
5470 | } | |
5471 | return _resultobj; | |
5472 | } | |
5473 | ||
c7e7022c RD |
5474 | #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0)) |
5475 | static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5476 | PyObject * _resultobj; | |
5477 | bool _result; | |
5478 | wxWindow * _arg0; | |
5479 | int _arg1; | |
5480 | PyObject * _argo0 = 0; | |
5481 | char *_kwnames[] = { "self","lines", NULL }; | |
5482 | ||
5483 | self = self; | |
5484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1)) | |
5485 | return NULL; | |
5486 | if (_argo0) { | |
5487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p."); | |
5490 | return NULL; | |
5491 | } | |
5492 | } | |
5493 | { | |
5494 | wxPy_BEGIN_ALLOW_THREADS; | |
5495 | _result = (bool )wxWindow_ScrollLines(_arg0,_arg1); | |
5496 | ||
5497 | wxPy_END_ALLOW_THREADS; | |
5498 | if (PyErr_Occurred()) return NULL; | |
5499 | } _resultobj = Py_BuildValue("i",_result); | |
5500 | return _resultobj; | |
5501 | } | |
5502 | ||
5503 | #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0)) | |
5504 | static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5505 | PyObject * _resultobj; | |
5506 | bool _result; | |
5507 | wxWindow * _arg0; | |
5508 | int _arg1; | |
5509 | PyObject * _argo0 = 0; | |
5510 | char *_kwnames[] = { "self","pages", NULL }; | |
5511 | ||
5512 | self = self; | |
5513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1)) | |
5514 | return NULL; | |
5515 | if (_argo0) { | |
5516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p."); | |
5519 | return NULL; | |
5520 | } | |
5521 | } | |
5522 | { | |
5523 | wxPy_BEGIN_ALLOW_THREADS; | |
5524 | _result = (bool )wxWindow_ScrollPages(_arg0,_arg1); | |
5525 | ||
5526 | wxPy_END_ALLOW_THREADS; | |
5527 | if (PyErr_Occurred()) return NULL; | |
5528 | } _resultobj = Py_BuildValue("i",_result); | |
5529 | return _resultobj; | |
5530 | } | |
5531 | ||
5532 | #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp()) | |
5533 | static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5534 | PyObject * _resultobj; | |
5535 | bool _result; | |
5536 | wxWindow * _arg0; | |
5537 | PyObject * _argo0 = 0; | |
5538 | char *_kwnames[] = { "self", NULL }; | |
5539 | ||
5540 | self = self; | |
5541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0)) | |
5542 | return NULL; | |
5543 | if (_argo0) { | |
5544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p."); | |
5547 | return NULL; | |
5548 | } | |
5549 | } | |
5550 | { | |
5551 | wxPy_BEGIN_ALLOW_THREADS; | |
5552 | _result = (bool )wxWindow_LineUp(_arg0); | |
5553 | ||
5554 | wxPy_END_ALLOW_THREADS; | |
5555 | if (PyErr_Occurred()) return NULL; | |
5556 | } _resultobj = Py_BuildValue("i",_result); | |
5557 | return _resultobj; | |
5558 | } | |
5559 | ||
5560 | #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown()) | |
5561 | static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5562 | PyObject * _resultobj; | |
5563 | bool _result; | |
5564 | wxWindow * _arg0; | |
5565 | PyObject * _argo0 = 0; | |
5566 | char *_kwnames[] = { "self", NULL }; | |
5567 | ||
5568 | self = self; | |
5569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0)) | |
5570 | return NULL; | |
5571 | if (_argo0) { | |
5572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p."); | |
5575 | return NULL; | |
5576 | } | |
5577 | } | |
5578 | { | |
5579 | wxPy_BEGIN_ALLOW_THREADS; | |
5580 | _result = (bool )wxWindow_LineDown(_arg0); | |
5581 | ||
5582 | wxPy_END_ALLOW_THREADS; | |
5583 | if (PyErr_Occurred()) return NULL; | |
5584 | } _resultobj = Py_BuildValue("i",_result); | |
5585 | return _resultobj; | |
5586 | } | |
5587 | ||
5588 | #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp()) | |
5589 | static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5590 | PyObject * _resultobj; | |
5591 | bool _result; | |
5592 | wxWindow * _arg0; | |
5593 | PyObject * _argo0 = 0; | |
5594 | char *_kwnames[] = { "self", NULL }; | |
5595 | ||
5596 | self = self; | |
5597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0)) | |
5598 | return NULL; | |
5599 | if (_argo0) { | |
5600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p."); | |
5603 | return NULL; | |
5604 | } | |
5605 | } | |
5606 | { | |
5607 | wxPy_BEGIN_ALLOW_THREADS; | |
5608 | _result = (bool )wxWindow_PageUp(_arg0); | |
5609 | ||
5610 | wxPy_END_ALLOW_THREADS; | |
5611 | if (PyErr_Occurred()) return NULL; | |
5612 | } _resultobj = Py_BuildValue("i",_result); | |
5613 | return _resultobj; | |
5614 | } | |
5615 | ||
5616 | #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown()) | |
5617 | static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5618 | PyObject * _resultobj; | |
5619 | bool _result; | |
5620 | wxWindow * _arg0; | |
5621 | PyObject * _argo0 = 0; | |
5622 | char *_kwnames[] = { "self", NULL }; | |
5623 | ||
5624 | self = self; | |
5625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0)) | |
5626 | return NULL; | |
5627 | if (_argo0) { | |
5628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p."); | |
5631 | return NULL; | |
5632 | } | |
5633 | } | |
5634 | { | |
5635 | wxPy_BEGIN_ALLOW_THREADS; | |
5636 | _result = (bool )wxWindow_PageDown(_arg0); | |
5637 | ||
5638 | wxPy_END_ALLOW_THREADS; | |
5639 | if (PyErr_Occurred()) return NULL; | |
5640 | } _resultobj = Py_BuildValue("i",_result); | |
5641 | return _resultobj; | |
5642 | } | |
5643 | ||
09f3d4e6 RD |
5644 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
5645 | PyObject * _resultobj; | |
5646 | wxWindow * _result; | |
5647 | char *_kwnames[] = { NULL }; | |
5648 | ||
5649 | self = self; | |
5650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
5651 | return NULL; | |
5652 | { | |
5653 | wxPy_BEGIN_ALLOW_THREADS; | |
5654 | _result = (wxWindow *)wxWindow::FindFocus(); | |
5655 | ||
5656 | wxPy_END_ALLOW_THREADS; | |
5657 | if (PyErr_Occurred()) return NULL; | |
5658 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5659 | return _resultobj; | |
5660 | } | |
5661 | ||
5662 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5663 | PyObject * _resultobj; | |
5664 | int _result; | |
5665 | char *_kwnames[] = { NULL }; | |
5666 | ||
5667 | self = self; | |
5668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
5669 | return NULL; | |
5670 | { | |
5671 | wxPy_BEGIN_ALLOW_THREADS; | |
5672 | _result = (int )wxWindow::NewControlId(); | |
5673 | ||
5674 | wxPy_END_ALLOW_THREADS; | |
5675 | if (PyErr_Occurred()) return NULL; | |
5676 | } _resultobj = Py_BuildValue("i",_result); | |
5677 | return _resultobj; | |
5678 | } | |
5679 | ||
5680 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5681 | PyObject * _resultobj; | |
5682 | int _result; | |
5683 | int _arg0; | |
5684 | char *_kwnames[] = { "id", NULL }; | |
5685 | ||
5686 | self = self; | |
5687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
5688 | return NULL; | |
5689 | { | |
5690 | wxPy_BEGIN_ALLOW_THREADS; | |
5691 | _result = (int )wxWindow::NextControlId(_arg0); | |
5692 | ||
5693 | wxPy_END_ALLOW_THREADS; | |
5694 | if (PyErr_Occurred()) return NULL; | |
5695 | } _resultobj = Py_BuildValue("i",_result); | |
5696 | return _resultobj; | |
5697 | } | |
5698 | ||
5699 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5700 | PyObject * _resultobj; | |
5701 | int _result; | |
5702 | int _arg0; | |
5703 | char *_kwnames[] = { "id", NULL }; | |
5704 | ||
5705 | self = self; | |
5706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
5707 | return NULL; | |
5708 | { | |
5709 | wxPy_BEGIN_ALLOW_THREADS; | |
5710 | _result = (int )wxWindow::PrevControlId(_arg0); | |
5711 | ||
5712 | wxPy_END_ALLOW_THREADS; | |
5713 | if (PyErr_Occurred()) return NULL; | |
5714 | } _resultobj = Py_BuildValue("i",_result); | |
5715 | return _resultobj; | |
5716 | } | |
5717 | ||
76bfdc78 RD |
5718 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
5719 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5720 | PyObject * _resultobj; | |
5721 | wxWindow * _arg0; | |
5722 | wxAcceleratorTable * _arg1; | |
5723 | PyObject * _argo0 = 0; | |
5724 | PyObject * _argo1 = 0; | |
5725 | char *_kwnames[] = { "self","accel", NULL }; | |
5726 | ||
5727 | self = self; | |
5728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) | |
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_SetAcceleratorTable. Expected _wxWindow_p."); | |
5734 | return NULL; | |
5735 | } | |
5736 | } | |
5737 | if (_argo1) { | |
5738 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5739 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
5740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); | |
5741 | return NULL; | |
5742 | } | |
5743 | } | |
5744 | { | |
5745 | wxPy_BEGIN_ALLOW_THREADS; | |
5746 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); | |
5747 | ||
5748 | wxPy_END_ALLOW_THREADS; | |
5749 | if (PyErr_Occurred()) return NULL; | |
5750 | } Py_INCREF(Py_None); | |
5751 | _resultobj = Py_None; | |
5752 | return _resultobj; | |
5753 | } | |
5754 | ||
900d9886 RD |
5755 | #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable()) |
5756 | static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5757 | PyObject * _resultobj; | |
5758 | wxAcceleratorTable * _result; | |
5759 | wxWindow * _arg0; | |
5760 | PyObject * _argo0 = 0; | |
5761 | char *_kwnames[] = { "self", NULL }; | |
5762 | char _ptemp[128]; | |
5763 | ||
5764 | self = self; | |
5765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0)) | |
5766 | return NULL; | |
5767 | if (_argo0) { | |
5768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p."); | |
5771 | return NULL; | |
5772 | } | |
5773 | } | |
5774 | { | |
5775 | wxPy_BEGIN_ALLOW_THREADS; | |
5776 | _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0); | |
5777 | ||
5778 | wxPy_END_ALLOW_THREADS; | |
5779 | if (PyErr_Occurred()) return NULL; | |
5780 | } if (_result) { | |
5781 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p"); | |
5782 | _resultobj = Py_BuildValue("s",_ptemp); | |
5783 | } else { | |
5784 | Py_INCREF(Py_None); | |
5785 | _resultobj = Py_None; | |
5786 | } | |
5787 | return _resultobj; | |
5788 | } | |
5789 | ||
8ab979d7 RD |
5790 | static void *SwigwxPanelTowxWindow(void *ptr) { |
5791 | wxPanel *src; | |
5792 | wxWindow *dest; | |
5793 | src = (wxPanel *) ptr; | |
5794 | dest = (wxWindow *) src; | |
5795 | return (void *) dest; | |
5796 | } | |
5797 | ||
5798 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
5799 | wxPanel *src; | |
5800 | wxEvtHandler *dest; | |
5801 | src = (wxPanel *) ptr; | |
5802 | dest = (wxEvtHandler *) src; | |
5803 | return (void *) dest; | |
5804 | } | |
5805 | ||
9416aa89 RD |
5806 | static void *SwigwxPanelTowxObject(void *ptr) { |
5807 | wxPanel *src; | |
5808 | wxObject *dest; | |
5809 | src = (wxPanel *) ptr; | |
5810 | dest = (wxObject *) src; | |
5811 | return (void *) dest; | |
5812 | } | |
5813 | ||
8ab979d7 | 5814 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 5815 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5816 | PyObject * _resultobj; |
5817 | wxPanel * _result; | |
5818 | wxWindow * _arg0; | |
5819 | wxWindowID _arg1; | |
e508a2b6 RD |
5820 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5821 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5822 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
5823 | char * _arg5 = (char *) "panel"; | |
5824 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5825 | wxPoint temp; |
5826 | PyObject * _obj2 = 0; | |
5827 | wxSize temp0; | |
5828 | PyObject * _obj3 = 0; | |
efc5f224 | 5829 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5830 | char _ptemp[128]; |
5831 | ||
5832 | self = self; | |
2f90df85 | 5833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5834 | return NULL; |
1d99702e RD |
5835 | if (_argo0) { |
5836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
5839 | return NULL; | |
5840 | } | |
5841 | } | |
2f90df85 RD |
5842 | if (_obj2) |
5843 | { | |
5844 | _arg2 = &temp; | |
5845 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5846 | return NULL; |
2f90df85 RD |
5847 | } |
5848 | if (_obj3) | |
5849 | { | |
5850 | _arg3 = &temp0; | |
5851 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5852 | return NULL; |
2f90df85 | 5853 | } |
cf694132 RD |
5854 | { |
5855 | wxPy_BEGIN_ALLOW_THREADS; | |
5856 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5857 | ||
5858 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5859 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5860 | } if (_result) { |
5861 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5862 | _resultobj = Py_BuildValue("s",_ptemp); | |
5863 | } else { | |
5864 | Py_INCREF(Py_None); | |
5865 | _resultobj = Py_None; | |
5866 | } | |
8ab979d7 RD |
5867 | return _resultobj; |
5868 | } | |
5869 | ||
09f3d4e6 RD |
5870 | #define new_wxPrePanel() (new wxPanel()) |
5871 | static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5872 | PyObject * _resultobj; | |
5873 | wxPanel * _result; | |
5874 | char *_kwnames[] = { NULL }; | |
5875 | char _ptemp[128]; | |
5876 | ||
5877 | self = self; | |
5878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames)) | |
5879 | return NULL; | |
5880 | { | |
5881 | wxPy_BEGIN_ALLOW_THREADS; | |
5882 | _result = (wxPanel *)new_wxPrePanel(); | |
5883 | ||
5884 | wxPy_END_ALLOW_THREADS; | |
5885 | if (PyErr_Occurred()) return NULL; | |
5886 | } if (_result) { | |
5887 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5888 | _resultobj = Py_BuildValue("s",_ptemp); | |
5889 | } else { | |
5890 | Py_INCREF(Py_None); | |
5891 | _resultobj = Py_None; | |
5892 | } | |
5893 | return _resultobj; | |
5894 | } | |
5895 | ||
5896 | #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
5897 | static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5898 | PyObject * _resultobj; | |
5899 | bool _result; | |
5900 | wxPanel * _arg0; | |
5901 | wxWindow * _arg1; | |
5902 | wxWindowID _arg2; | |
5903 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5904 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5905 | long _arg5 = (long ) wxTAB_TRAVERSAL; | |
5906 | char * _arg6 = (char *) "panel"; | |
5907 | PyObject * _argo0 = 0; | |
5908 | PyObject * _argo1 = 0; | |
5909 | wxPoint temp; | |
5910 | PyObject * _obj3 = 0; | |
5911 | wxSize temp0; | |
5912 | PyObject * _obj4 = 0; | |
5913 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
5914 | ||
5915 | self = self; | |
5916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
5917 | return NULL; | |
5918 | if (_argo0) { | |
5919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
5921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p."); | |
5922 | return NULL; | |
5923 | } | |
5924 | } | |
5925 | if (_argo1) { | |
5926 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5927 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p."); | |
5929 | return NULL; | |
5930 | } | |
5931 | } | |
5932 | if (_obj3) | |
5933 | { | |
5934 | _arg3 = &temp; | |
5935 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5936 | return NULL; | |
5937 | } | |
5938 | if (_obj4) | |
5939 | { | |
5940 | _arg4 = &temp0; | |
5941 | if (! wxSize_helper(_obj4, &_arg4)) | |
5942 | return NULL; | |
5943 | } | |
5944 | { | |
5945 | wxPy_BEGIN_ALLOW_THREADS; | |
5946 | _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
5947 | ||
5948 | wxPy_END_ALLOW_THREADS; | |
5949 | if (PyErr_Occurred()) return NULL; | |
5950 | } _resultobj = Py_BuildValue("i",_result); | |
5951 | return _resultobj; | |
5952 | } | |
5953 | ||
8ab979d7 | 5954 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 5955 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5956 | PyObject * _resultobj; |
5957 | wxPanel * _arg0; | |
1d99702e | 5958 | PyObject * _argo0 = 0; |
efc5f224 | 5959 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5960 | |
5961 | self = self; | |
efc5f224 | 5962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 5963 | return NULL; |
1d99702e RD |
5964 | if (_argo0) { |
5965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
5967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
5968 | return NULL; | |
5969 | } | |
5970 | } | |
cf694132 RD |
5971 | { |
5972 | wxPy_BEGIN_ALLOW_THREADS; | |
5973 | wxPanel_InitDialog(_arg0); | |
5974 | ||
5975 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5976 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5977 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5978 | _resultobj = Py_None; |
5979 | return _resultobj; | |
5980 | } | |
5981 | ||
bb0054cd | 5982 | #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
efc5f224 | 5983 | static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5984 | PyObject * _resultobj; |
5985 | wxButton * _result; | |
5986 | wxPanel * _arg0; | |
1d99702e | 5987 | PyObject * _argo0 = 0; |
efc5f224 | 5988 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
5989 | |
5990 | self = self; | |
efc5f224 | 5991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0)) |
bb0054cd | 5992 | return NULL; |
1d99702e RD |
5993 | if (_argo0) { |
5994 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5995 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
5996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p."); |
5997 | return NULL; | |
5998 | } | |
5999 | } | |
6000 | { | |
6001 | wxPy_BEGIN_ALLOW_THREADS; | |
6002 | _result = (wxButton *)wxPanel_GetDefaultItem(_arg0); | |
6003 | ||
6004 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6005 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6006 | }{ _resultobj = wxPyMake_wxObject(_result); } |
bb0054cd RD |
6007 | return _resultobj; |
6008 | } | |
6009 | ||
6010 | #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
efc5f224 | 6011 | static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
6012 | PyObject * _resultobj; |
6013 | wxPanel * _arg0; | |
6014 | wxButton * _arg1; | |
1d99702e RD |
6015 | PyObject * _argo0 = 0; |
6016 | PyObject * _argo1 = 0; | |
efc5f224 | 6017 | char *_kwnames[] = { "self","btn", NULL }; |
bb0054cd RD |
6018 | |
6019 | self = self; | |
efc5f224 | 6020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 6021 | return NULL; |
1d99702e RD |
6022 | if (_argo0) { |
6023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
bb0054cd RD |
6025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p."); |
6026 | return NULL; | |
6027 | } | |
6028 | } | |
1d99702e RD |
6029 | if (_argo1) { |
6030 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6031 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
bb0054cd RD |
6032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p."); |
6033 | return NULL; | |
6034 | } | |
6035 | } | |
6036 | { | |
6037 | wxPy_BEGIN_ALLOW_THREADS; | |
6038 | wxPanel_SetDefaultItem(_arg0,_arg1); | |
6039 | ||
6040 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6041 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
6042 | } Py_INCREF(Py_None); |
6043 | _resultobj = Py_None; | |
6044 | return _resultobj; | |
6045 | } | |
6046 | ||
bb0054cd RD |
6047 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
6048 | wxScrolledWindow *src; | |
6049 | wxPanel *dest; | |
6050 | src = (wxScrolledWindow *) ptr; | |
6051 | dest = (wxPanel *) src; | |
6052 | return (void *) dest; | |
6053 | } | |
6054 | ||
8ab979d7 RD |
6055 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
6056 | wxScrolledWindow *src; | |
6057 | wxWindow *dest; | |
6058 | src = (wxScrolledWindow *) ptr; | |
6059 | dest = (wxWindow *) src; | |
6060 | return (void *) dest; | |
6061 | } | |
6062 | ||
6063 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
6064 | wxScrolledWindow *src; | |
6065 | wxEvtHandler *dest; | |
6066 | src = (wxScrolledWindow *) ptr; | |
6067 | dest = (wxEvtHandler *) src; | |
6068 | return (void *) dest; | |
6069 | } | |
6070 | ||
9416aa89 RD |
6071 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
6072 | wxScrolledWindow *src; | |
6073 | wxObject *dest; | |
6074 | src = (wxScrolledWindow *) ptr; | |
6075 | dest = (wxObject *) src; | |
6076 | return (void *) dest; | |
6077 | } | |
6078 | ||
8ab979d7 | 6079 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6080 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6081 | PyObject * _resultobj; |
6082 | wxScrolledWindow * _result; | |
6083 | wxWindow * _arg0; | |
1d99702e | 6084 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
6085 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6086 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
6087 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
6088 | char * _arg5 = (char *) "scrolledWindow"; | |
6089 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6090 | wxPoint temp; |
6091 | PyObject * _obj2 = 0; | |
6092 | wxSize temp0; | |
6093 | PyObject * _obj3 = 0; | |
efc5f224 | 6094 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6095 | char _ptemp[128]; |
6096 | ||
6097 | self = self; | |
2f90df85 | 6098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 6099 | return NULL; |
1d99702e RD |
6100 | if (_argo0) { |
6101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
6104 | return NULL; | |
6105 | } | |
6106 | } | |
2f90df85 RD |
6107 | if (_obj2) |
6108 | { | |
6109 | _arg2 = &temp; | |
6110 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6111 | return NULL; |
2f90df85 RD |
6112 | } |
6113 | if (_obj3) | |
6114 | { | |
6115 | _arg3 = &temp0; | |
6116 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6117 | return NULL; |
2f90df85 | 6118 | } |
cf694132 RD |
6119 | { |
6120 | wxPy_BEGIN_ALLOW_THREADS; | |
6121 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
6122 | ||
6123 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6124 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6125 | } if (_result) { |
6126 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6127 | _resultobj = Py_BuildValue("s",_ptemp); | |
6128 | } else { | |
6129 | Py_INCREF(Py_None); | |
6130 | _resultobj = Py_None; | |
6131 | } | |
8ab979d7 RD |
6132 | return _resultobj; |
6133 | } | |
6134 | ||
09f3d4e6 RD |
6135 | #define new_wxPreScrolledWindow() (new wxScrolledWindow()) |
6136 | static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6137 | PyObject * _resultobj; | |
6138 | wxScrolledWindow * _result; | |
6139 | char *_kwnames[] = { NULL }; | |
6140 | char _ptemp[128]; | |
6141 | ||
6142 | self = self; | |
6143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames)) | |
6144 | return NULL; | |
6145 | { | |
6146 | wxPy_BEGIN_ALLOW_THREADS; | |
6147 | _result = (wxScrolledWindow *)new_wxPreScrolledWindow(); | |
6148 | ||
6149 | wxPy_END_ALLOW_THREADS; | |
6150 | if (PyErr_Occurred()) return NULL; | |
6151 | } if (_result) { | |
6152 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6153 | _resultobj = Py_BuildValue("s",_ptemp); | |
6154 | } else { | |
6155 | Py_INCREF(Py_None); | |
6156 | _resultobj = Py_None; | |
6157 | } | |
6158 | return _resultobj; | |
6159 | } | |
6160 | ||
6161 | #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6162 | static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6163 | PyObject * _resultobj; | |
6164 | bool _result; | |
6165 | wxScrolledWindow * _arg0; | |
6166 | wxWindow * _arg1; | |
6167 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6168 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6169 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6170 | long _arg5 = (long ) wxHSCROLL|wxVSCROLL; | |
6171 | char * _arg6 = (char *) "scrolledWindow"; | |
6172 | PyObject * _argo0 = 0; | |
6173 | PyObject * _argo1 = 0; | |
6174 | wxPoint temp; | |
6175 | PyObject * _obj3 = 0; | |
6176 | wxSize temp0; | |
6177 | PyObject * _obj4 = 0; | |
6178 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
6179 | ||
6180 | self = self; | |
6181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
6182 | return NULL; | |
6183 | if (_argo0) { | |
6184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p."); | |
6187 | return NULL; | |
6188 | } | |
6189 | } | |
6190 | if (_argo1) { | |
6191 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6192 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p."); | |
6194 | return NULL; | |
6195 | } | |
6196 | } | |
6197 | if (_obj3) | |
6198 | { | |
6199 | _arg3 = &temp; | |
6200 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6201 | return NULL; | |
6202 | } | |
6203 | if (_obj4) | |
6204 | { | |
6205 | _arg4 = &temp0; | |
6206 | if (! wxSize_helper(_obj4, &_arg4)) | |
6207 | return NULL; | |
6208 | } | |
6209 | { | |
6210 | wxPy_BEGIN_ALLOW_THREADS; | |
6211 | _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
6212 | ||
6213 | wxPy_END_ALLOW_THREADS; | |
6214 | if (PyErr_Occurred()) return NULL; | |
6215 | } _resultobj = Py_BuildValue("i",_result); | |
6216 | return _resultobj; | |
6217 | } | |
6218 | ||
8ab979d7 | 6219 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) |
efc5f224 | 6220 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6221 | PyObject * _resultobj; |
6222 | wxScrolledWindow * _arg0; | |
6223 | bool _arg1; | |
6224 | bool _arg2; | |
1d99702e | 6225 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6226 | int tempbool1; |
6227 | int tempbool2; | |
efc5f224 | 6228 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
6229 | |
6230 | self = self; | |
efc5f224 | 6231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 6232 | return NULL; |
1d99702e RD |
6233 | if (_argo0) { |
6234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
6237 | return NULL; | |
6238 | } | |
6239 | } | |
6240 | _arg1 = (bool ) tempbool1; | |
6241 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
6242 | { |
6243 | wxPy_BEGIN_ALLOW_THREADS; | |
6244 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); | |
6245 | ||
6246 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6247 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6248 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6249 | _resultobj = Py_None; |
6250 | return _resultobj; | |
6251 | } | |
6252 | ||
b7e72427 RD |
6253 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
6254 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6255 | PyObject * _resultobj; | |
6256 | int _result; | |
6257 | wxScrolledWindow * _arg0; | |
6258 | int _arg1; | |
6259 | PyObject * _argo0 = 0; | |
6260 | char *_kwnames[] = { "self","orient", NULL }; | |
6261 | ||
6262 | self = self; | |
6263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6264 | return NULL; | |
6265 | if (_argo0) { | |
6266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6269 | return NULL; | |
6270 | } | |
6271 | } | |
6272 | { | |
6273 | wxPy_BEGIN_ALLOW_THREADS; | |
6274 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); | |
6275 | ||
6276 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6277 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6278 | } _resultobj = Py_BuildValue("i",_result); |
6279 | return _resultobj; | |
6280 | } | |
6281 | ||
8ab979d7 | 6282 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 6283 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6284 | PyObject * _resultobj; |
6285 | wxScrolledWindow * _arg0; | |
6286 | int * _arg1; | |
6287 | int temp; | |
6288 | int * _arg2; | |
6289 | int temp0; | |
1d99702e | 6290 | PyObject * _argo0 = 0; |
efc5f224 | 6291 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6292 | |
6293 | self = self; | |
6294 | { | |
6295 | _arg1 = &temp; | |
6296 | } | |
6297 | { | |
6298 | _arg2 = &temp0; | |
6299 | } | |
efc5f224 | 6300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 6301 | return NULL; |
1d99702e RD |
6302 | if (_argo0) { |
6303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
6306 | return NULL; | |
6307 | } | |
6308 | } | |
cf694132 RD |
6309 | { |
6310 | wxPy_BEGIN_ALLOW_THREADS; | |
6311 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); | |
6312 | ||
6313 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6314 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6315 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6316 | _resultobj = Py_None; |
6317 | { | |
6318 | PyObject *o; | |
6319 | o = PyInt_FromLong((long) (*_arg1)); | |
6320 | _resultobj = t_output_helper(_resultobj, o); | |
6321 | } | |
6322 | { | |
6323 | PyObject *o; | |
6324 | o = PyInt_FromLong((long) (*_arg2)); | |
6325 | _resultobj = t_output_helper(_resultobj, o); | |
6326 | } | |
6327 | return _resultobj; | |
6328 | } | |
6329 | ||
b7e72427 RD |
6330 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
6331 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6332 | PyObject * _resultobj; | |
6333 | wxWindow * _result; | |
6334 | wxScrolledWindow * _arg0; | |
6335 | PyObject * _argo0 = 0; | |
6336 | char *_kwnames[] = { "self", NULL }; | |
b7e72427 RD |
6337 | |
6338 | self = self; | |
6339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6340 | return NULL; | |
6341 | if (_argo0) { | |
6342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6345 | return NULL; | |
6346 | } | |
6347 | } | |
6348 | { | |
6349 | wxPy_BEGIN_ALLOW_THREADS; | |
6350 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); | |
6351 | ||
6352 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6353 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6354 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b7e72427 RD |
6355 | return _resultobj; |
6356 | } | |
6357 | ||
8ab979d7 | 6358 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) |
efc5f224 | 6359 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6360 | PyObject * _resultobj; |
6361 | wxScrolledWindow * _arg0; | |
6362 | int * _arg1; | |
6363 | int temp; | |
6364 | int * _arg2; | |
6365 | int temp0; | |
1d99702e | 6366 | PyObject * _argo0 = 0; |
efc5f224 | 6367 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6368 | |
6369 | self = self; | |
6370 | { | |
6371 | _arg1 = &temp; | |
6372 | } | |
6373 | { | |
6374 | _arg2 = &temp0; | |
6375 | } | |
efc5f224 | 6376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
8ab979d7 | 6377 | return NULL; |
1d99702e RD |
6378 | if (_argo0) { |
6379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
6382 | return NULL; | |
6383 | } | |
6384 | } | |
cf694132 RD |
6385 | { |
6386 | wxPy_BEGIN_ALLOW_THREADS; | |
6387 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); | |
6388 | ||
6389 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6390 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6391 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6392 | _resultobj = Py_None; |
6393 | { | |
6394 | PyObject *o; | |
6395 | o = PyInt_FromLong((long) (*_arg1)); | |
6396 | _resultobj = t_output_helper(_resultobj, o); | |
6397 | } | |
6398 | { | |
6399 | PyObject *o; | |
6400 | o = PyInt_FromLong((long) (*_arg2)); | |
6401 | _resultobj = t_output_helper(_resultobj, o); | |
6402 | } | |
6403 | return _resultobj; | |
6404 | } | |
6405 | ||
6406 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
efc5f224 | 6407 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6408 | PyObject * _resultobj; |
6409 | bool _result; | |
6410 | wxScrolledWindow * _arg0; | |
1d99702e | 6411 | PyObject * _argo0 = 0; |
efc5f224 | 6412 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6413 | |
6414 | self = self; | |
efc5f224 | 6415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 6416 | return NULL; |
1d99702e RD |
6417 | if (_argo0) { |
6418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
6421 | return NULL; | |
6422 | } | |
6423 | } | |
cf694132 RD |
6424 | { |
6425 | wxPy_BEGIN_ALLOW_THREADS; | |
6426 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); | |
6427 | ||
6428 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6429 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6430 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6431 | return _resultobj; |
6432 | } | |
6433 | ||
6434 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 6435 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6436 | PyObject * _resultobj; |
6437 | wxScrolledWindow * _arg0; | |
6438 | wxDC * _arg1; | |
1d99702e RD |
6439 | PyObject * _argo0 = 0; |
6440 | PyObject * _argo1 = 0; | |
efc5f224 | 6441 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
6442 | |
6443 | self = self; | |
efc5f224 | 6444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
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_PrepareDC. Expected _wxScrolledWindow_p."); |
6450 | return NULL; | |
6451 | } | |
6452 | } | |
1d99702e RD |
6453 | if (_argo1) { |
6454 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6455 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
6456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
6457 | return NULL; | |
6458 | } | |
6459 | } | |
cf694132 RD |
6460 | { |
6461 | wxPy_BEGIN_ALLOW_THREADS; | |
6462 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); | |
6463 | ||
6464 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6465 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6466 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6467 | _resultobj = Py_None; |
6468 | return _resultobj; | |
6469 | } | |
6470 | ||
6471 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 6472 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6473 | PyObject * _resultobj; |
6474 | wxScrolledWindow * _arg0; | |
6475 | int _arg1; | |
6476 | int _arg2; | |
1d99702e | 6477 | PyObject * _argo0 = 0; |
efc5f224 | 6478 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6479 | |
6480 | self = self; | |
efc5f224 | 6481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6482 | return NULL; |
1d99702e RD |
6483 | if (_argo0) { |
6484 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
6487 | return NULL; | |
6488 | } | |
6489 | } | |
cf694132 RD |
6490 | { |
6491 | wxPy_BEGIN_ALLOW_THREADS; | |
6492 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); | |
6493 | ||
6494 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6495 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6496 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6497 | _resultobj = Py_None; |
6498 | return _resultobj; | |
6499 | } | |
6500 | ||
f6bcfd97 | 6501 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6502 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6503 | PyObject * _resultobj; |
6504 | wxScrolledWindow * _arg0; | |
6505 | int _arg1; | |
6506 | int _arg2; | |
6507 | int _arg3; | |
6508 | int _arg4; | |
1d99702e RD |
6509 | int _arg5 = (int ) 0; |
6510 | int _arg6 = (int ) 0; | |
f6bcfd97 | 6511 | int _arg7 = (int ) FALSE; |
1d99702e | 6512 | PyObject * _argo0 = 0; |
f6bcfd97 | 6513 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
6514 | |
6515 | self = self; | |
f6bcfd97 | 6516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 6517 | return NULL; |
1d99702e RD |
6518 | if (_argo0) { |
6519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
6522 | return NULL; | |
6523 | } | |
6524 | } | |
cf694132 RD |
6525 | { |
6526 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6527 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 RD |
6528 | |
6529 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6530 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6531 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6532 | _resultobj = Py_None; |
6533 | return _resultobj; | |
6534 | } | |
6535 | ||
b7e72427 RD |
6536 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
6537 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6538 | PyObject * _resultobj; | |
6539 | wxScrolledWindow * _arg0; | |
6540 | int _arg1; | |
6541 | int _arg2; | |
6542 | PyObject * _argo0 = 0; | |
6543 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6544 | ||
6545 | self = self; | |
6546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6547 | return NULL; | |
6548 | if (_argo0) { | |
6549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6552 | return NULL; | |
6553 | } | |
6554 | } | |
6555 | { | |
6556 | wxPy_BEGIN_ALLOW_THREADS; | |
6557 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); | |
6558 | ||
6559 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6560 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6561 | } Py_INCREF(Py_None); |
6562 | _resultobj = Py_None; | |
6563 | return _resultobj; | |
6564 | } | |
6565 | ||
eb715945 RD |
6566 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
6567 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6568 | PyObject * _resultobj; | |
6569 | wxScrolledWindow * _arg0; | |
6570 | wxWindow * _arg1; | |
6571 | PyObject * _argo0 = 0; | |
6572 | PyObject * _argo1 = 0; | |
6573 | char *_kwnames[] = { "self","window", NULL }; | |
6574 | ||
6575 | self = self; | |
6576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6577 | return NULL; | |
6578 | if (_argo0) { | |
6579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6582 | return NULL; | |
6583 | } | |
6584 | } | |
6585 | if (_argo1) { | |
6586 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6587 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6589 | return NULL; | |
6590 | } | |
6591 | } | |
6592 | { | |
6593 | wxPy_BEGIN_ALLOW_THREADS; | |
6594 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); | |
6595 | ||
6596 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6597 | if (PyErr_Occurred()) return NULL; |
eb715945 RD |
6598 | } Py_INCREF(Py_None); |
6599 | _resultobj = Py_None; | |
6600 | return _resultobj; | |
6601 | } | |
6602 | ||
4c9993c3 RD |
6603 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
6604 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6605 | PyObject * _resultobj; | |
6606 | wxScrolledWindow * _arg0; | |
6607 | int * _arg1; | |
6608 | int temp; | |
6609 | int * _arg2; | |
6610 | int temp0; | |
6611 | PyObject * _argo0 = 0; | |
6612 | char *_kwnames[] = { "self", NULL }; | |
6613 | ||
6614 | self = self; | |
6615 | { | |
6616 | _arg1 = &temp; | |
6617 | } | |
6618 | { | |
6619 | _arg2 = &temp0; | |
6620 | } | |
6621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6622 | return NULL; | |
6623 | if (_argo0) { | |
6624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6627 | return NULL; | |
6628 | } | |
6629 | } | |
6630 | { | |
6631 | wxPy_BEGIN_ALLOW_THREADS; | |
6632 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); | |
6633 | ||
6634 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6635 | if (PyErr_Occurred()) return NULL; |
4c9993c3 RD |
6636 | } Py_INCREF(Py_None); |
6637 | _resultobj = Py_None; | |
6638 | { | |
6639 | PyObject *o; | |
6640 | o = PyInt_FromLong((long) (*_arg1)); | |
6641 | _resultobj = t_output_helper(_resultobj, o); | |
6642 | } | |
6643 | { | |
6644 | PyObject *o; | |
6645 | o = PyInt_FromLong((long) (*_arg2)); | |
6646 | _resultobj = t_output_helper(_resultobj, o); | |
6647 | } | |
6648 | return _resultobj; | |
6649 | } | |
6650 | ||
9d8bd15f RD |
6651 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6652 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6653 | PyObject * _resultobj; | |
6654 | wxScrolledWindow * _arg0; | |
6655 | int _arg1; | |
6656 | int _arg2; | |
6657 | int * _arg3; | |
6658 | int temp; | |
6659 | int * _arg4; | |
6660 | int temp0; | |
6661 | PyObject * _argo0 = 0; | |
6662 | char *_kwnames[] = { "self","x","y", NULL }; | |
6663 | ||
6664 | self = self; | |
6665 | { | |
6666 | _arg3 = &temp; | |
6667 | } | |
6668 | { | |
6669 | _arg4 = &temp0; | |
6670 | } | |
6671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6672 | return NULL; | |
6673 | if (_argo0) { | |
6674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
6677 | return NULL; | |
6678 | } | |
6679 | } | |
6680 | { | |
6681 | wxPy_BEGIN_ALLOW_THREADS; | |
6682 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6683 | ||
6684 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6685 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6686 | } Py_INCREF(Py_None); |
6687 | _resultobj = Py_None; | |
6688 | { | |
6689 | PyObject *o; | |
6690 | o = PyInt_FromLong((long) (*_arg3)); | |
6691 | _resultobj = t_output_helper(_resultobj, o); | |
6692 | } | |
6693 | { | |
6694 | PyObject *o; | |
6695 | o = PyInt_FromLong((long) (*_arg4)); | |
6696 | _resultobj = t_output_helper(_resultobj, o); | |
6697 | } | |
6698 | return _resultobj; | |
6699 | } | |
6700 | ||
6701 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6702 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6703 | PyObject * _resultobj; | |
6704 | wxScrolledWindow * _arg0; | |
6705 | int _arg1; | |
6706 | int _arg2; | |
6707 | int * _arg3; | |
6708 | int temp; | |
6709 | int * _arg4; | |
6710 | int temp0; | |
6711 | PyObject * _argo0 = 0; | |
6712 | char *_kwnames[] = { "self","x","y", NULL }; | |
6713 | ||
6714 | self = self; | |
6715 | { | |
6716 | _arg3 = &temp; | |
6717 | } | |
6718 | { | |
6719 | _arg4 = &temp0; | |
6720 | } | |
6721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6722 | return NULL; | |
6723 | if (_argo0) { | |
6724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
6727 | return NULL; | |
6728 | } | |
6729 | } | |
6730 | { | |
6731 | wxPy_BEGIN_ALLOW_THREADS; | |
6732 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6733 | ||
6734 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6735 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6736 | } Py_INCREF(Py_None); |
6737 | _resultobj = Py_None; | |
6738 | { | |
6739 | PyObject *o; | |
6740 | o = PyInt_FromLong((long) (*_arg3)); | |
6741 | _resultobj = t_output_helper(_resultobj, o); | |
6742 | } | |
6743 | { | |
6744 | PyObject *o; | |
6745 | o = PyInt_FromLong((long) (*_arg4)); | |
6746 | _resultobj = t_output_helper(_resultobj, o); | |
6747 | } | |
6748 | return _resultobj; | |
6749 | } | |
6750 | ||
d1679124 RD |
6751 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
6752 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6753 | PyObject * _resultobj; | |
6754 | wxScrolledWindow * _arg0; | |
6755 | double _arg1; | |
6756 | double _arg2; | |
6757 | PyObject * _argo0 = 0; | |
6758 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
6759 | ||
6760 | self = self; | |
6761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6762 | return NULL; | |
6763 | if (_argo0) { | |
6764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
6767 | return NULL; | |
6768 | } | |
6769 | } | |
6770 | { | |
6771 | wxPy_BEGIN_ALLOW_THREADS; | |
6772 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); | |
6773 | ||
6774 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6775 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6776 | } Py_INCREF(Py_None); |
6777 | _resultobj = Py_None; | |
6778 | return _resultobj; | |
6779 | } | |
6780 | ||
6781 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
6782 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6783 | PyObject * _resultobj; | |
6784 | double _result; | |
6785 | wxScrolledWindow * _arg0; | |
6786 | PyObject * _argo0 = 0; | |
6787 | char *_kwnames[] = { "self", NULL }; | |
6788 | ||
6789 | self = self; | |
6790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
6791 | return NULL; | |
6792 | if (_argo0) { | |
6793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
6796 | return NULL; | |
6797 | } | |
6798 | } | |
6799 | { | |
6800 | wxPy_BEGIN_ALLOW_THREADS; | |
6801 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); | |
6802 | ||
6803 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6804 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6805 | } _resultobj = Py_BuildValue("d",_result); |
6806 | return _resultobj; | |
6807 | } | |
6808 | ||
6809 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
6810 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6811 | PyObject * _resultobj; | |
6812 | double _result; | |
6813 | wxScrolledWindow * _arg0; | |
6814 | PyObject * _argo0 = 0; | |
6815 | char *_kwnames[] = { "self", NULL }; | |
6816 | ||
6817 | self = self; | |
6818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
6819 | return NULL; | |
6820 | if (_argo0) { | |
6821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
6824 | return NULL; | |
6825 | } | |
6826 | } | |
6827 | { | |
6828 | wxPy_BEGIN_ALLOW_THREADS; | |
6829 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); | |
6830 | ||
6831 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6832 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6833 | } _resultobj = Py_BuildValue("d",_result); |
6834 | return _resultobj; | |
6835 | } | |
6836 | ||
6837 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
6838 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6839 | PyObject * _resultobj; | |
6840 | wxScrolledWindow * _arg0; | |
6841 | PyObject * _argo0 = 0; | |
6842 | char *_kwnames[] = { "self", NULL }; | |
6843 | ||
6844 | self = self; | |
6845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
6846 | return NULL; | |
6847 | if (_argo0) { | |
6848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
6851 | return NULL; | |
6852 | } | |
6853 | } | |
6854 | { | |
6855 | wxPy_BEGIN_ALLOW_THREADS; | |
6856 | wxScrolledWindow_AdjustScrollbars(_arg0); | |
6857 | ||
6858 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6859 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6860 | } Py_INCREF(Py_None); |
6861 | _resultobj = Py_None; | |
6862 | return _resultobj; | |
6863 | } | |
6864 | ||
8ab979d7 RD |
6865 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
6866 | wxMenu *src; | |
6867 | wxEvtHandler *dest; | |
6868 | src = (wxMenu *) ptr; | |
6869 | dest = (wxEvtHandler *) src; | |
6870 | return (void *) dest; | |
6871 | } | |
6872 | ||
9416aa89 RD |
6873 | static void *SwigwxMenuTowxObject(void *ptr) { |
6874 | wxMenu *src; | |
6875 | wxObject *dest; | |
6876 | src = (wxMenu *) ptr; | |
6877 | dest = (wxObject *) src; | |
6878 | return (void *) dest; | |
6879 | } | |
6880 | ||
8bf5d46e | 6881 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) |
efc5f224 | 6882 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6883 | PyObject * _resultobj; |
6884 | wxMenu * _result; | |
1d99702e RD |
6885 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
6886 | long _arg1 = (long ) 0; | |
8ab979d7 | 6887 | PyObject * _obj0 = 0; |
efc5f224 | 6888 | char *_kwnames[] = { "title","style", NULL }; |
8ab979d7 RD |
6889 | char _ptemp[128]; |
6890 | ||
6891 | self = self; | |
efc5f224 | 6892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
8ab979d7 RD |
6893 | return NULL; |
6894 | if (_obj0) | |
6895 | { | |
185d7c3e RD |
6896 | #if PYTHON_API_VERSION >= 1009 |
6897 | char* tmpPtr; int tmpSize; | |
6898 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 6899 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6900 | return NULL; |
6901 | } | |
6902 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
6903 | return NULL; | |
6904 | _arg0 = new wxString(tmpPtr, tmpSize); | |
6905 | #else | |
8ab979d7 RD |
6906 | if (!PyString_Check(_obj0)) { |
6907 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6908 | return NULL; | |
6909 | } | |
185d7c3e RD |
6910 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
6911 | #endif | |
8ab979d7 | 6912 | } |
cf694132 RD |
6913 | { |
6914 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 6915 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
cf694132 RD |
6916 | |
6917 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6918 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6919 | } if (_result) { |
6920 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
6921 | _resultobj = Py_BuildValue("s",_ptemp); | |
6922 | } else { | |
6923 | Py_INCREF(Py_None); | |
6924 | _resultobj = Py_None; | |
6925 | } | |
8ab979d7 RD |
6926 | { |
6927 | if (_obj0) | |
6928 | delete _arg0; | |
6929 | } | |
6930 | return _resultobj; | |
6931 | } | |
6932 | ||
6933 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6934 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6935 | PyObject * _resultobj; |
6936 | wxMenu * _arg0; | |
6937 | int _arg1; | |
6938 | wxString * _arg2; | |
1d99702e | 6939 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; |
926bb76c | 6940 | int _arg4 = (int ) FALSE; |
1d99702e | 6941 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6942 | PyObject * _obj2 = 0; |
6943 | PyObject * _obj3 = 0; | |
efc5f224 | 6944 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; |
8ab979d7 RD |
6945 | |
6946 | self = self; | |
926bb76c | 6947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
8ab979d7 | 6948 | return NULL; |
1d99702e RD |
6949 | if (_argo0) { |
6950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); |
6953 | return NULL; | |
6954 | } | |
6955 | } | |
6956 | { | |
185d7c3e RD |
6957 | #if PYTHON_API_VERSION >= 1009 |
6958 | char* tmpPtr; int tmpSize; | |
6959 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 6960 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6961 | return NULL; |
6962 | } | |
6963 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6964 | return NULL; | |
6965 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6966 | #else | |
8ab979d7 RD |
6967 | if (!PyString_Check(_obj2)) { |
6968 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6969 | return NULL; | |
6970 | } | |
185d7c3e RD |
6971 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6972 | #endif | |
8ab979d7 RD |
6973 | } |
6974 | if (_obj3) | |
6975 | { | |
185d7c3e RD |
6976 | #if PYTHON_API_VERSION >= 1009 |
6977 | char* tmpPtr; int tmpSize; | |
6978 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 6979 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6980 | return NULL; |
6981 | } | |
6982 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6983 | return NULL; | |
6984 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6985 | #else | |
8ab979d7 RD |
6986 | if (!PyString_Check(_obj3)) { |
6987 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6988 | return NULL; | |
6989 | } | |
185d7c3e RD |
6990 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
6991 | #endif | |
8ab979d7 | 6992 | } |
cf694132 RD |
6993 | { |
6994 | wxPy_BEGIN_ALLOW_THREADS; | |
6995 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
6996 | ||
6997 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6998 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6999 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7000 | _resultobj = Py_None; |
7001 | { | |
7002 | if (_obj2) | |
7003 | delete _arg2; | |
7004 | } | |
7005 | { | |
7006 | if (_obj3) | |
7007 | delete _arg3; | |
7008 | } | |
7009 | return _resultobj; | |
7010 | } | |
7011 | ||
7012 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 7013 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7014 | PyObject * _resultobj; |
7015 | wxMenu * _arg0; | |
7016 | int _arg1; | |
7017 | wxString * _arg2; | |
7018 | wxMenu * _arg3; | |
1d99702e RD |
7019 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; |
7020 | PyObject * _argo0 = 0; | |
8ab979d7 | 7021 | PyObject * _obj2 = 0; |
1d99702e | 7022 | PyObject * _argo3 = 0; |
8ab979d7 | 7023 | PyObject * _obj4 = 0; |
efc5f224 | 7024 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; |
8ab979d7 RD |
7025 | |
7026 | self = self; | |
efc5f224 | 7027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 7028 | return NULL; |
1d99702e RD |
7029 | if (_argo0) { |
7030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
7033 | return NULL; | |
7034 | } | |
7035 | } | |
7036 | { | |
185d7c3e RD |
7037 | #if PYTHON_API_VERSION >= 1009 |
7038 | char* tmpPtr; int tmpSize; | |
7039 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7040 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7041 | return NULL; |
7042 | } | |
7043 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7044 | return NULL; | |
7045 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7046 | #else | |
8ab979d7 RD |
7047 | if (!PyString_Check(_obj2)) { |
7048 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7049 | return NULL; | |
7050 | } | |
185d7c3e RD |
7051 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7052 | #endif | |
8ab979d7 | 7053 | } |
1d99702e RD |
7054 | if (_argo3) { |
7055 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7056 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8ab979d7 RD |
7057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
7058 | return NULL; | |
7059 | } | |
7060 | } | |
7061 | if (_obj4) | |
7062 | { | |
185d7c3e RD |
7063 | #if PYTHON_API_VERSION >= 1009 |
7064 | char* tmpPtr; int tmpSize; | |
7065 | if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) { | |
794c5cb1 | 7066 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7067 | return NULL; |
7068 | } | |
7069 | if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1) | |
7070 | return NULL; | |
7071 | _arg4 = new wxString(tmpPtr, tmpSize); | |
7072 | #else | |
8ab979d7 RD |
7073 | if (!PyString_Check(_obj4)) { |
7074 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7075 | return NULL; | |
7076 | } | |
185d7c3e RD |
7077 | _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4)); |
7078 | #endif | |
8ab979d7 | 7079 | } |
cf694132 RD |
7080 | { |
7081 | wxPy_BEGIN_ALLOW_THREADS; | |
7082 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
7083 | ||
7084 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7085 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7086 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7087 | _resultobj = Py_None; |
7088 | { | |
7089 | if (_obj2) | |
7090 | delete _arg2; | |
7091 | } | |
7092 | { | |
7093 | if (_obj4) | |
7094 | delete _arg4; | |
7095 | } | |
7096 | return _resultobj; | |
7097 | } | |
7098 | ||
af309447 | 7099 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
efc5f224 | 7100 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
7101 | PyObject * _resultobj; |
7102 | wxMenu * _arg0; | |
7103 | wxMenuItem * _arg1; | |
1d99702e RD |
7104 | PyObject * _argo0 = 0; |
7105 | PyObject * _argo1 = 0; | |
efc5f224 | 7106 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
7107 | |
7108 | self = self; | |
efc5f224 | 7109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 7110 | return NULL; |
1d99702e RD |
7111 | if (_argo0) { |
7112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
af309447 RD |
7114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); |
7115 | return NULL; | |
7116 | } | |
7117 | } | |
1d99702e RD |
7118 | if (_argo1) { |
7119 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7120 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
af309447 RD |
7121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); |
7122 | return NULL; | |
7123 | } | |
7124 | } | |
cf694132 RD |
7125 | { |
7126 | wxPy_BEGIN_ALLOW_THREADS; | |
7127 | wxMenu_AppendItem(_arg0,_arg1); | |
7128 | ||
7129 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7130 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7131 | } Py_INCREF(Py_None); |
af309447 RD |
7132 | _resultobj = Py_None; |
7133 | return _resultobj; | |
7134 | } | |
7135 | ||
8ab979d7 | 7136 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
efc5f224 | 7137 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7138 | PyObject * _resultobj; |
7139 | wxMenu * _arg0; | |
1d99702e | 7140 | PyObject * _argo0 = 0; |
efc5f224 | 7141 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7142 | |
7143 | self = self; | |
efc5f224 | 7144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
8ab979d7 | 7145 | return NULL; |
1d99702e RD |
7146 | if (_argo0) { |
7147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
7150 | return NULL; | |
7151 | } | |
7152 | } | |
cf694132 RD |
7153 | { |
7154 | wxPy_BEGIN_ALLOW_THREADS; | |
7155 | wxMenu_AppendSeparator(_arg0); | |
7156 | ||
7157 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7158 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7159 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7160 | _resultobj = Py_None; |
7161 | return _resultobj; | |
7162 | } | |
7163 | ||
7164 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 7165 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7166 | PyObject * _resultobj; |
7167 | wxMenu * _arg0; | |
1d99702e | 7168 | PyObject * _argo0 = 0; |
efc5f224 | 7169 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7170 | |
7171 | self = self; | |
efc5f224 | 7172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 7173 | return NULL; |
1d99702e RD |
7174 | if (_argo0) { |
7175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
7178 | return NULL; | |
7179 | } | |
7180 | } | |
cf694132 RD |
7181 | { |
7182 | wxPy_BEGIN_ALLOW_THREADS; | |
7183 | wxMenu_Break(_arg0); | |
7184 | ||
7185 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7186 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7187 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7188 | _resultobj = Py_None; |
7189 | return _resultobj; | |
7190 | } | |
7191 | ||
7192 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 7193 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7194 | PyObject * _resultobj; |
7195 | wxMenu * _arg0; | |
7196 | int _arg1; | |
7197 | bool _arg2; | |
1d99702e | 7198 | PyObject * _argo0 = 0; |
8ab979d7 | 7199 | int tempbool2; |
efc5f224 | 7200 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
7201 | |
7202 | self = self; | |
efc5f224 | 7203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7204 | return NULL; |
1d99702e RD |
7205 | if (_argo0) { |
7206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
7209 | return NULL; | |
7210 | } | |
7211 | } | |
7212 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
7213 | { |
7214 | wxPy_BEGIN_ALLOW_THREADS; | |
7215 | wxMenu_Check(_arg0,_arg1,_arg2); | |
7216 | ||
7217 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7218 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7219 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7220 | _resultobj = Py_None; |
7221 | return _resultobj; | |
7222 | } | |
7223 | ||
b1462dfa RD |
7224 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
7225 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7226 | PyObject * _resultobj; | |
7227 | bool _result; | |
7228 | wxMenu * _arg0; | |
7229 | int _arg1; | |
7230 | PyObject * _argo0 = 0; | |
7231 | char *_kwnames[] = { "self","id", NULL }; | |
7232 | ||
7233 | self = self; | |
7234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
7235 | return NULL; | |
7236 | if (_argo0) { | |
7237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
7240 | return NULL; | |
7241 | } | |
7242 | } | |
7243 | { | |
7244 | wxPy_BEGIN_ALLOW_THREADS; | |
7245 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
7246 | ||
7247 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7248 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7249 | } _resultobj = Py_BuildValue("i",_result); |
7250 | return _resultobj; | |
7251 | } | |
7252 | ||
8ab979d7 | 7253 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 7254 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7255 | PyObject * _resultobj; |
7256 | wxMenu * _arg0; | |
7257 | int _arg1; | |
7258 | bool _arg2; | |
1d99702e | 7259 | PyObject * _argo0 = 0; |
8ab979d7 | 7260 | int tempbool2; |
efc5f224 | 7261 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
7262 | |
7263 | self = self; | |
efc5f224 | 7264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7265 | return NULL; |
1d99702e RD |
7266 | if (_argo0) { |
7267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
7270 | return NULL; | |
7271 | } | |
7272 | } | |
7273 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
7274 | { |
7275 | wxPy_BEGIN_ALLOW_THREADS; | |
7276 | wxMenu_Enable(_arg0,_arg1,_arg2); | |
7277 | ||
7278 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7279 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7280 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7281 | _resultobj = Py_None; |
7282 | return _resultobj; | |
7283 | } | |
7284 | ||
b1462dfa RD |
7285 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
7286 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7287 | PyObject * _resultobj; | |
7288 | bool _result; | |
7289 | wxMenu * _arg0; | |
7290 | int _arg1; | |
7291 | PyObject * _argo0 = 0; | |
7292 | char *_kwnames[] = { "self","id", NULL }; | |
7293 | ||
7294 | self = self; | |
7295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
7296 | return NULL; | |
7297 | if (_argo0) { | |
7298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
7301 | return NULL; | |
7302 | } | |
7303 | } | |
7304 | { | |
7305 | wxPy_BEGIN_ALLOW_THREADS; | |
7306 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); | |
7307 | ||
7308 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7309 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7310 | } _resultobj = Py_BuildValue("i",_result); |
7311 | return _resultobj; | |
7312 | } | |
7313 | ||
8ab979d7 | 7314 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 7315 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7316 | PyObject * _resultobj; |
7317 | int _result; | |
7318 | wxMenu * _arg0; | |
7319 | wxString * _arg1; | |
1d99702e | 7320 | PyObject * _argo0 = 0; |
8ab979d7 | 7321 | PyObject * _obj1 = 0; |
efc5f224 | 7322 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
7323 | |
7324 | self = self; | |
efc5f224 | 7325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7326 | return NULL; |
1d99702e RD |
7327 | if (_argo0) { |
7328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
7331 | return NULL; | |
7332 | } | |
7333 | } | |
7334 | { | |
185d7c3e RD |
7335 | #if PYTHON_API_VERSION >= 1009 |
7336 | char* tmpPtr; int tmpSize; | |
7337 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7338 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7339 | return NULL; |
7340 | } | |
7341 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7342 | return NULL; | |
7343 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7344 | #else | |
8ab979d7 RD |
7345 | if (!PyString_Check(_obj1)) { |
7346 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7347 | return NULL; | |
7348 | } | |
185d7c3e RD |
7349 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7350 | #endif | |
8ab979d7 | 7351 | } |
cf694132 RD |
7352 | { |
7353 | wxPy_BEGIN_ALLOW_THREADS; | |
7354 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); | |
7355 | ||
7356 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7357 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7358 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7359 | { |
7360 | if (_obj1) | |
7361 | delete _arg1; | |
7362 | } | |
7363 | return _resultobj; | |
7364 | } | |
7365 | ||
b1462dfa RD |
7366 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
7367 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7368 | PyObject * _resultobj; | |
7369 | wxMenuItem * _result; | |
7370 | wxMenu * _arg0; | |
7371 | int _arg1; | |
7372 | PyObject * _argo0 = 0; | |
7373 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
7374 | |
7375 | self = self; | |
7376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
7377 | return NULL; | |
7378 | if (_argo0) { | |
7379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
7382 | return NULL; | |
7383 | } | |
7384 | } | |
7385 | { | |
7386 | wxPy_BEGIN_ALLOW_THREADS; | |
7387 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); | |
7388 | ||
7389 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7390 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7391 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
7392 | return _resultobj; |
7393 | } | |
7394 | ||
8ab979d7 | 7395 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 7396 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7397 | PyObject * _resultobj; |
7398 | wxString * _result; | |
7399 | wxMenu * _arg0; | |
1d99702e | 7400 | PyObject * _argo0 = 0; |
efc5f224 | 7401 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7402 | |
7403 | self = self; | |
efc5f224 | 7404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 7405 | return NULL; |
1d99702e RD |
7406 | if (_argo0) { |
7407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
7410 | return NULL; | |
7411 | } | |
7412 | } | |
8ab979d7 | 7413 | { |
cf694132 RD |
7414 | wxPy_BEGIN_ALLOW_THREADS; |
7415 | _result = new wxString (wxMenu_GetTitle(_arg0)); | |
7416 | ||
7417 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7418 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7419 | }{ |
eec92d76 | 7420 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7421 | } |
7422 | { | |
7423 | delete _result; | |
7424 | } | |
7425 | return _resultobj; | |
7426 | } | |
7427 | ||
7428 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 7429 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7430 | PyObject * _resultobj; |
7431 | wxMenu * _arg0; | |
7432 | wxString * _arg1; | |
1d99702e | 7433 | PyObject * _argo0 = 0; |
8ab979d7 | 7434 | PyObject * _obj1 = 0; |
efc5f224 | 7435 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
7436 | |
7437 | self = self; | |
efc5f224 | 7438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7439 | return NULL; |
1d99702e RD |
7440 | if (_argo0) { |
7441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
7444 | return NULL; | |
7445 | } | |
7446 | } | |
7447 | { | |
185d7c3e RD |
7448 | #if PYTHON_API_VERSION >= 1009 |
7449 | char* tmpPtr; int tmpSize; | |
7450 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7451 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7452 | return NULL; |
7453 | } | |
7454 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7455 | return NULL; | |
7456 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7457 | #else | |
8ab979d7 RD |
7458 | if (!PyString_Check(_obj1)) { |
7459 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7460 | return NULL; | |
7461 | } | |
185d7c3e RD |
7462 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7463 | #endif | |
8ab979d7 | 7464 | } |
cf694132 RD |
7465 | { |
7466 | wxPy_BEGIN_ALLOW_THREADS; | |
7467 | wxMenu_SetTitle(_arg0,*_arg1); | |
7468 | ||
7469 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7470 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7471 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7472 | _resultobj = Py_None; |
7473 | { | |
7474 | if (_obj1) | |
7475 | delete _arg1; | |
7476 | } | |
7477 | return _resultobj; | |
7478 | } | |
7479 | ||
b1462dfa RD |
7480 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
7481 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7482 | PyObject * _resultobj; |
b1462dfa | 7483 | wxString * _result; |
8ab979d7 RD |
7484 | wxMenu * _arg0; |
7485 | int _arg1; | |
1d99702e | 7486 | PyObject * _argo0 = 0; |
efc5f224 | 7487 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7488 | |
7489 | self = self; | |
b1462dfa | 7490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7491 | return NULL; |
1d99702e RD |
7492 | if (_argo0) { |
7493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7496 | return NULL; |
7497 | } | |
7498 | } | |
cf694132 RD |
7499 | { |
7500 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7501 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 RD |
7502 | |
7503 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7504 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7505 | }{ |
eec92d76 | 7506 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
7507 | } |
7508 | { | |
7509 | delete _result; | |
7510 | } | |
8ab979d7 RD |
7511 | return _resultobj; |
7512 | } | |
7513 | ||
b1462dfa RD |
7514 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
7515 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7516 | PyObject * _resultobj; |
8ab979d7 RD |
7517 | wxMenu * _arg0; |
7518 | int _arg1; | |
b1462dfa | 7519 | wxString * _arg2; |
1d99702e | 7520 | PyObject * _argo0 = 0; |
b1462dfa RD |
7521 | PyObject * _obj2 = 0; |
7522 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
7523 | |
7524 | self = self; | |
b1462dfa | 7525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7526 | return NULL; |
1d99702e RD |
7527 | if (_argo0) { |
7528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7531 | return NULL; |
7532 | } | |
7533 | } | |
b1462dfa | 7534 | { |
185d7c3e RD |
7535 | #if PYTHON_API_VERSION >= 1009 |
7536 | char* tmpPtr; int tmpSize; | |
7537 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7538 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7539 | return NULL; |
7540 | } | |
7541 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7542 | return NULL; | |
7543 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7544 | #else | |
b1462dfa RD |
7545 | if (!PyString_Check(_obj2)) { |
7546 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7547 | return NULL; | |
7548 | } | |
185d7c3e RD |
7549 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7550 | #endif | |
b1462dfa | 7551 | } |
8ab979d7 | 7552 | { |
cf694132 | 7553 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7554 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
7555 | |
7556 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7557 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7558 | } Py_INCREF(Py_None); |
7559 | _resultobj = Py_None; | |
8ab979d7 | 7560 | { |
b1462dfa RD |
7561 | if (_obj2) |
7562 | delete _arg2; | |
8ab979d7 RD |
7563 | } |
7564 | return _resultobj; | |
7565 | } | |
7566 | ||
b1462dfa RD |
7567 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
7568 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7569 | PyObject * _resultobj; |
7570 | wxString * _result; | |
7571 | wxMenu * _arg0; | |
7572 | int _arg1; | |
1d99702e | 7573 | PyObject * _argo0 = 0; |
efc5f224 | 7574 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7575 | |
7576 | self = self; | |
b1462dfa | 7577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7578 | return NULL; |
1d99702e RD |
7579 | if (_argo0) { |
7580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
7583 | return NULL; |
7584 | } | |
7585 | } | |
8ab979d7 | 7586 | { |
cf694132 | 7587 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 7588 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
7589 | |
7590 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7591 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7592 | }{ |
eec92d76 | 7593 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7594 | } |
7595 | { | |
7596 | delete _result; | |
7597 | } | |
7598 | return _resultobj; | |
7599 | } | |
7600 | ||
7601 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 7602 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7603 | PyObject * _resultobj; |
7604 | wxMenu * _arg0; | |
7605 | int _arg1; | |
7606 | wxString * _arg2; | |
1d99702e | 7607 | PyObject * _argo0 = 0; |
8ab979d7 | 7608 | PyObject * _obj2 = 0; |
efc5f224 | 7609 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
7610 | |
7611 | self = self; | |
efc5f224 | 7612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7613 | return NULL; |
1d99702e RD |
7614 | if (_argo0) { |
7615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
7618 | return NULL; | |
7619 | } | |
7620 | } | |
7621 | { | |
185d7c3e RD |
7622 | #if PYTHON_API_VERSION >= 1009 |
7623 | char* tmpPtr; int tmpSize; | |
7624 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7625 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7626 | return NULL; |
7627 | } | |
7628 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7629 | return NULL; | |
7630 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7631 | #else | |
8ab979d7 RD |
7632 | if (!PyString_Check(_obj2)) { |
7633 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7634 | return NULL; | |
7635 | } | |
185d7c3e RD |
7636 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7637 | #endif | |
8ab979d7 | 7638 | } |
cf694132 RD |
7639 | { |
7640 | wxPy_BEGIN_ALLOW_THREADS; | |
7641 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); | |
7642 | ||
7643 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7644 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7645 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7646 | _resultobj = Py_None; |
7647 | { | |
7648 | if (_obj2) | |
7649 | delete _arg2; | |
7650 | } | |
7651 | return _resultobj; | |
7652 | } | |
7653 | ||
b1462dfa RD |
7654 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
7655 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7656 | PyObject * _resultobj; |
8ab979d7 | 7657 | wxMenu * _arg0; |
b1462dfa | 7658 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 7659 | PyObject * _argo0 = 0; |
b1462dfa RD |
7660 | PyObject * _argo1 = 0; |
7661 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
7662 | |
7663 | self = self; | |
b1462dfa | 7664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
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 RD |
7669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
7670 | return NULL; | |
7671 | } | |
7672 | } | |
7673 | if (_argo1) { | |
7674 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7675 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
7677 | return NULL; |
7678 | } | |
7679 | } | |
cf694132 RD |
7680 | { |
7681 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7682 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 RD |
7683 | |
7684 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7685 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7686 | } Py_INCREF(Py_None); |
7687 | _resultobj = Py_None; | |
8ab979d7 RD |
7688 | return _resultobj; |
7689 | } | |
7690 | ||
b1462dfa RD |
7691 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7692 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7693 | PyObject * _resultobj; |
7694 | bool _result; | |
7695 | wxMenu * _arg0; | |
7696 | int _arg1; | |
1d99702e | 7697 | PyObject * _argo0 = 0; |
efc5f224 | 7698 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7699 | |
7700 | self = self; | |
b1462dfa | 7701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7702 | return NULL; |
1d99702e RD |
7703 | if (_argo0) { |
7704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
7707 | return NULL; |
7708 | } | |
7709 | } | |
cf694132 RD |
7710 | { |
7711 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7712 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 RD |
7713 | |
7714 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7715 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7716 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7717 | return _resultobj; |
7718 | } | |
7719 | ||
b1462dfa RD |
7720 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7721 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7722 | PyObject * _resultobj; |
b1462dfa | 7723 | bool _result; |
8ab979d7 | 7724 | wxMenu * _arg0; |
b1462dfa | 7725 | wxMenuItem * _arg1; |
1d99702e | 7726 | PyObject * _argo0 = 0; |
b1462dfa RD |
7727 | PyObject * _argo1 = 0; |
7728 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7729 | |
7730 | self = self; | |
b1462dfa | 7731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7732 | return NULL; |
1d99702e RD |
7733 | if (_argo0) { |
7734 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7735 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
7737 | return NULL; |
7738 | } | |
7739 | } | |
b1462dfa RD |
7740 | if (_argo1) { |
7741 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7742 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7744 | return NULL; |
b1462dfa | 7745 | } |
8ab979d7 | 7746 | } |
cf694132 RD |
7747 | { |
7748 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7749 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 RD |
7750 | |
7751 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7752 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7753 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7754 | return _resultobj; |
7755 | } | |
7756 | ||
b1462dfa RD |
7757 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
7758 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7759 | PyObject * _resultobj; |
b1462dfa | 7760 | bool _result; |
8bf5d46e | 7761 | wxMenu * _arg0; |
b1462dfa RD |
7762 | size_t _arg1; |
7763 | wxMenuItem * _arg2; | |
1d99702e | 7764 | PyObject * _argo0 = 0; |
b1462dfa RD |
7765 | PyObject * _argo2 = 0; |
7766 | char *_kwnames[] = { "self","pos","item", NULL }; | |
8ab979d7 RD |
7767 | |
7768 | self = self; | |
b1462dfa | 7769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 7770 | return NULL; |
1d99702e RD |
7771 | if (_argo0) { |
7772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); |
8bf5d46e RD |
7775 | return NULL; |
7776 | } | |
7777 | } | |
b1462dfa RD |
7778 | if (_argo2) { |
7779 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7780 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7782 | return NULL; |
7783 | } | |
7784 | } | |
cf694132 RD |
7785 | { |
7786 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7787 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); |
cf694132 RD |
7788 | |
7789 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7790 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7791 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7792 | return _resultobj; |
7793 | } | |
7794 | ||
b1462dfa RD |
7795 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7796 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 7797 | PyObject * _resultobj; |
b1462dfa | 7798 | wxMenuItem * _result; |
efc5f224 | 7799 | wxMenu * _arg0; |
b1462dfa | 7800 | int _arg1; |
efc5f224 | 7801 | PyObject * _argo0 = 0; |
b1462dfa | 7802 | char *_kwnames[] = { "self","id", NULL }; |
efc5f224 RD |
7803 | |
7804 | self = self; | |
b1462dfa | 7805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
7806 | return NULL; |
7807 | if (_argo0) { | |
7808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
7811 | return NULL; |
7812 | } | |
7813 | } | |
7814 | { | |
7815 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7816 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 RD |
7817 | |
7818 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7819 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7820 | }{ _resultobj = wxPyMake_wxObject(_result); } |
efc5f224 RD |
7821 | return _resultobj; |
7822 | } | |
7823 | ||
b1462dfa RD |
7824 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7825 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7826 | PyObject * _resultobj; |
b1462dfa RD |
7827 | wxMenuItem * _result; |
7828 | wxMenu * _arg0; | |
7829 | wxMenuItem * _arg1; | |
7830 | PyObject * _argo0 = 0; | |
7831 | PyObject * _argo1 = 0; | |
7832 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7833 | |
7834 | self = self; | |
b1462dfa RD |
7835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
7836 | return NULL; | |
7837 | if (_argo0) { | |
7838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
7841 | return NULL; | |
7842 | } | |
7843 | } | |
7844 | if (_argo1) { | |
7845 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7846 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7848 | return NULL; |
b1462dfa RD |
7849 | } |
7850 | } | |
cf694132 RD |
7851 | { |
7852 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7853 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 RD |
7854 | |
7855 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7856 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7857 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
7858 | return _resultobj; |
7859 | } | |
7860 | ||
eb715945 | 7861 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 7862 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7863 | PyObject * _resultobj; |
b1462dfa | 7864 | wxMenu * _arg0; |
1d99702e | 7865 | PyObject * _argo0 = 0; |
b1462dfa | 7866 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7867 | |
7868 | self = self; | |
b1462dfa | 7869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 7870 | return NULL; |
1d99702e RD |
7871 | if (_argo0) { |
7872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
7875 | return NULL; |
7876 | } | |
7877 | } | |
cf694132 RD |
7878 | { |
7879 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7880 | wxMenu_Destroy(_arg0); |
cf694132 RD |
7881 | |
7882 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7883 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7884 | } Py_INCREF(Py_None); |
8ab979d7 | 7885 | _resultobj = Py_None; |
8ab979d7 RD |
7886 | return _resultobj; |
7887 | } | |
7888 | ||
b1462dfa RD |
7889 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7890 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7891 | PyObject * _resultobj; |
b1462dfa RD |
7892 | bool _result; |
7893 | wxMenu * _arg0; | |
8ab979d7 | 7894 | int _arg1; |
1d99702e | 7895 | PyObject * _argo0 = 0; |
b1462dfa | 7896 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7897 | |
7898 | self = self; | |
b1462dfa | 7899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7900 | return NULL; |
1d99702e RD |
7901 | if (_argo0) { |
7902 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7903 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
7905 | return NULL; |
7906 | } | |
7907 | } | |
cf694132 RD |
7908 | { |
7909 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7910 | _result = (bool )wxMenu_DestroyId(_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_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7919 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7920 | PyObject * _resultobj; |
b1462dfa RD |
7921 | bool _result; |
7922 | wxMenu * _arg0; | |
7923 | wxMenuItem * _arg1; | |
1d99702e | 7924 | PyObject * _argo0 = 0; |
b1462dfa RD |
7925 | PyObject * _argo1 = 0; |
7926 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7927 | |
7928 | self = self; | |
b1462dfa | 7929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7930 | return NULL; |
1d99702e RD |
7931 | if (_argo0) { |
7932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
7935 | return NULL; | |
7936 | } | |
7937 | } | |
7938 | if (_argo1) { | |
7939 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7940 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7942 | return NULL; |
7943 | } | |
7944 | } | |
cf694132 RD |
7945 | { |
7946 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7947 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 RD |
7948 | |
7949 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7950 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7951 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7952 | return _resultobj; |
7953 | } | |
7954 | ||
b1462dfa RD |
7955 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
7956 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7957 | PyObject * _resultobj; |
b1462dfa RD |
7958 | size_t _result; |
7959 | wxMenu * _arg0; | |
1d99702e | 7960 | PyObject * _argo0 = 0; |
b1462dfa | 7961 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7962 | |
7963 | self = self; | |
b1462dfa | 7964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 7965 | return NULL; |
1d99702e RD |
7966 | if (_argo0) { |
7967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
7970 | return NULL; |
7971 | } | |
7972 | } | |
cf694132 RD |
7973 | { |
7974 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 7975 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 RD |
7976 | |
7977 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7978 | if (PyErr_Occurred()) return NULL; |
2abc0a0f | 7979 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7980 | return _resultobj; |
7981 | } | |
7982 | ||
b1462dfa RD |
7983 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
7984 | wxMenuItemList& list = self->GetMenuItems(); | |
7985 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
7986 | } | |
7987 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7988 | PyObject * _resultobj; |
b1462dfa RD |
7989 | PyObject * _result; |
7990 | wxMenu * _arg0; | |
1d99702e | 7991 | PyObject * _argo0 = 0; |
b1462dfa | 7992 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7993 | |
7994 | self = self; | |
b1462dfa | 7995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 7996 | return NULL; |
1d99702e RD |
7997 | if (_argo0) { |
7998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
8001 | return NULL; |
8002 | } | |
8003 | } | |
cf694132 RD |
8004 | { |
8005 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8006 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 RD |
8007 | |
8008 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8009 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8010 | }{ |
8011 | _resultobj = _result; | |
8012 | } | |
8ab979d7 RD |
8013 | return _resultobj; |
8014 | } | |
8015 | ||
b1462dfa RD |
8016 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
8017 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8018 | PyObject * _resultobj; |
b1462dfa RD |
8019 | wxMenu * _arg0; |
8020 | wxEvtHandler * _arg1; | |
1d99702e | 8021 | PyObject * _argo0 = 0; |
b1462dfa RD |
8022 | PyObject * _argo1 = 0; |
8023 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
8024 | |
8025 | self = self; | |
b1462dfa | 8026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8027 | return NULL; |
1d99702e RD |
8028 | if (_argo0) { |
8029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
8032 | return NULL; |
8033 | } | |
8034 | } | |
b1462dfa RD |
8035 | if (_argo1) { |
8036 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8037 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
8038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 8039 | return NULL; |
b1462dfa | 8040 | } |
8ab979d7 | 8041 | } |
cf694132 RD |
8042 | { |
8043 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8044 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 RD |
8045 | |
8046 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8047 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8048 | } Py_INCREF(Py_None); |
8049 | _resultobj = Py_None; | |
8ab979d7 RD |
8050 | return _resultobj; |
8051 | } | |
8052 | ||
b1462dfa RD |
8053 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
8054 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8055 | PyObject * _resultobj; |
b1462dfa RD |
8056 | wxEvtHandler * _result; |
8057 | wxMenu * _arg0; | |
1d99702e | 8058 | PyObject * _argo0 = 0; |
b1462dfa | 8059 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8060 | |
8061 | self = self; | |
b1462dfa | 8062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 8063 | return NULL; |
1d99702e RD |
8064 | if (_argo0) { |
8065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
8068 | return NULL; |
8069 | } | |
8070 | } | |
cf694132 RD |
8071 | { |
8072 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8073 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 RD |
8074 | |
8075 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8076 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8077 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8078 | return _resultobj; |
8079 | } | |
8080 | ||
b1462dfa RD |
8081 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
8082 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 8083 | PyObject * _resultobj; |
b1462dfa RD |
8084 | wxMenu * _arg0; |
8085 | wxWindow * _arg1; | |
2f90df85 | 8086 | PyObject * _argo0 = 0; |
b1462dfa RD |
8087 | PyObject * _argo1 = 0; |
8088 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
8089 | |
8090 | self = self; | |
b1462dfa | 8091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
8092 | return NULL; |
8093 | if (_argo0) { | |
8094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
8097 | return NULL; |
8098 | } | |
8099 | } | |
b1462dfa RD |
8100 | if (_argo1) { |
8101 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8102 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 8104 | return NULL; |
b1462dfa | 8105 | } |
2f90df85 | 8106 | } |
2f90df85 RD |
8107 | { |
8108 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8109 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 RD |
8110 | |
8111 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8112 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
8113 | } Py_INCREF(Py_None); |
8114 | _resultobj = Py_None; | |
2f90df85 RD |
8115 | return _resultobj; |
8116 | } | |
8117 | ||
b1462dfa RD |
8118 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
8119 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8120 | PyObject * _resultobj; |
b1462dfa RD |
8121 | wxWindow * _result; |
8122 | wxMenu * _arg0; | |
1d99702e | 8123 | PyObject * _argo0 = 0; |
b1462dfa | 8124 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8125 | |
8126 | self = self; | |
b1462dfa | 8127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 8128 | return NULL; |
1d99702e RD |
8129 | if (_argo0) { |
8130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
8133 | return NULL; |
8134 | } | |
8135 | } | |
cf694132 RD |
8136 | { |
8137 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8138 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 RD |
8139 | |
8140 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8141 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8142 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8143 | return _resultobj; |
8144 | } | |
8145 | ||
b1462dfa RD |
8146 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
8147 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8148 | PyObject * _resultobj; |
b1462dfa RD |
8149 | long _result; |
8150 | wxMenu * _arg0; | |
1d99702e | 8151 | PyObject * _argo0 = 0; |
b1462dfa | 8152 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8153 | |
8154 | self = self; | |
b1462dfa | 8155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 8156 | return NULL; |
1d99702e RD |
8157 | if (_argo0) { |
8158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
8161 | return NULL; |
8162 | } | |
8163 | } | |
8ab979d7 | 8164 | { |
cf694132 | 8165 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8166 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 RD |
8167 | |
8168 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8169 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8170 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8171 | return _resultobj; |
8172 | } | |
8173 | ||
b1462dfa RD |
8174 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
8175 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8176 | PyObject * _resultobj; |
b1462dfa RD |
8177 | bool _result; |
8178 | wxMenu * _arg0; | |
1d99702e | 8179 | PyObject * _argo0 = 0; |
b1462dfa | 8180 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8181 | |
8182 | self = self; | |
b1462dfa | 8183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 8184 | return NULL; |
1d99702e RD |
8185 | if (_argo0) { |
8186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
8189 | return NULL; |
8190 | } | |
8191 | } | |
8ab979d7 | 8192 | { |
cf694132 | 8193 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8194 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 RD |
8195 | |
8196 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8197 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8198 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8199 | return _resultobj; |
8200 | } | |
8201 | ||
b1462dfa RD |
8202 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
8203 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8204 | PyObject * _resultobj; |
b1462dfa RD |
8205 | wxMenu * _arg0; |
8206 | wxMenu * _arg1; | |
1d99702e | 8207 | PyObject * _argo0 = 0; |
b1462dfa RD |
8208 | PyObject * _argo1 = 0; |
8209 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
8210 | |
8211 | self = self; | |
b1462dfa | 8212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8213 | return NULL; |
1d99702e RD |
8214 | if (_argo0) { |
8215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8218 | return NULL; |
8219 | } | |
8220 | } | |
b1462dfa RD |
8221 | if (_argo1) { |
8222 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8223 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 8225 | return NULL; |
b1462dfa | 8226 | } |
8ab979d7 | 8227 | } |
cf694132 RD |
8228 | { |
8229 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8230 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 RD |
8231 | |
8232 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8233 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8234 | } Py_INCREF(Py_None); |
8ab979d7 | 8235 | _resultobj = Py_None; |
8ab979d7 RD |
8236 | return _resultobj; |
8237 | } | |
8238 | ||
b1462dfa RD |
8239 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
8240 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8241 | PyObject * _resultobj; |
b1462dfa RD |
8242 | wxMenu * _result; |
8243 | wxMenu * _arg0; | |
1d99702e | 8244 | PyObject * _argo0 = 0; |
b1462dfa | 8245 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8246 | |
8247 | self = self; | |
b1462dfa | 8248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 8249 | return NULL; |
1d99702e RD |
8250 | if (_argo0) { |
8251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8254 | return NULL; |
8255 | } | |
8256 | } | |
8ab979d7 | 8257 | { |
cf694132 | 8258 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 8259 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 RD |
8260 | |
8261 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8262 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8263 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8264 | return _resultobj; |
8ab979d7 | 8265 | } |
b1462dfa RD |
8266 | |
8267 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
8268 | wxMenuBar *src; | |
8269 | wxWindow *dest; | |
8270 | src = (wxMenuBar *) ptr; | |
8271 | dest = (wxWindow *) src; | |
8272 | return (void *) dest; | |
8273 | } | |
8274 | ||
8275 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
8276 | wxMenuBar *src; | |
8277 | wxEvtHandler *dest; | |
8278 | src = (wxMenuBar *) ptr; | |
8279 | dest = (wxEvtHandler *) src; | |
8280 | return (void *) dest; | |
8ab979d7 | 8281 | } |
b1462dfa | 8282 | |
9416aa89 RD |
8283 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
8284 | wxMenuBar *src; | |
8285 | wxObject *dest; | |
8286 | src = (wxMenuBar *) ptr; | |
8287 | dest = (wxObject *) src; | |
8288 | return (void *) dest; | |
8289 | } | |
8290 | ||
c368d904 | 8291 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
8292 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8293 | PyObject * _resultobj; | |
8294 | wxMenuBar * _result; | |
c368d904 RD |
8295 | long _arg0 = (long ) 0; |
8296 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
8297 | char _ptemp[128]; |
8298 | ||
8299 | self = self; | |
c368d904 | 8300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
8301 | return NULL; |
8302 | { | |
8303 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 8304 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa RD |
8305 | |
8306 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8307 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8308 | } if (_result) { |
8309 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
8310 | _resultobj = Py_BuildValue("s",_ptemp); | |
8311 | } else { | |
8312 | Py_INCREF(Py_None); | |
8313 | _resultobj = Py_None; | |
8314 | } | |
8ab979d7 RD |
8315 | return _resultobj; |
8316 | } | |
8317 | ||
b1462dfa RD |
8318 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
8319 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8320 | PyObject * _resultobj; |
b1462dfa | 8321 | bool _result; |
8ab979d7 | 8322 | wxMenuBar * _arg0; |
b1462dfa | 8323 | wxMenu * _arg1; |
8ab979d7 | 8324 | wxString * _arg2; |
1d99702e | 8325 | PyObject * _argo0 = 0; |
b1462dfa | 8326 | PyObject * _argo1 = 0; |
8ab979d7 | 8327 | PyObject * _obj2 = 0; |
b1462dfa | 8328 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
8329 | |
8330 | self = self; | |
b1462dfa | 8331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8332 | return NULL; |
1d99702e RD |
8333 | if (_argo0) { |
8334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
8337 | return NULL; | |
8338 | } | |
8339 | } | |
8340 | if (_argo1) { | |
8341 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8342 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
8344 | return NULL; |
8345 | } | |
8346 | } | |
8347 | { | |
185d7c3e RD |
8348 | #if PYTHON_API_VERSION >= 1009 |
8349 | char* tmpPtr; int tmpSize; | |
8350 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8351 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8352 | return NULL; |
8353 | } | |
8354 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8355 | return NULL; | |
8356 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8357 | #else | |
8ab979d7 RD |
8358 | if (!PyString_Check(_obj2)) { |
8359 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8360 | return NULL; | |
8361 | } | |
185d7c3e RD |
8362 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8363 | #endif | |
8ab979d7 | 8364 | } |
cf694132 RD |
8365 | { |
8366 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8367 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 RD |
8368 | |
8369 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8370 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8371 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8372 | { |
8373 | if (_obj2) | |
8374 | delete _arg2; | |
8375 | } | |
8376 | return _resultobj; | |
8377 | } | |
8378 | ||
b1462dfa RD |
8379 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
8380 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8381 | PyObject * _resultobj; |
b1462dfa | 8382 | bool _result; |
8ab979d7 | 8383 | wxMenuBar * _arg0; |
b1462dfa RD |
8384 | size_t _arg1; |
8385 | wxMenu * _arg2; | |
8386 | wxString * _arg3; | |
1d99702e | 8387 | PyObject * _argo0 = 0; |
b1462dfa RD |
8388 | PyObject * _argo2 = 0; |
8389 | PyObject * _obj3 = 0; | |
8390 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
8391 | |
8392 | self = self; | |
b1462dfa | 8393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 8394 | return NULL; |
1d99702e RD |
8395 | if (_argo0) { |
8396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
8399 | return NULL; | |
8400 | } | |
8401 | } | |
8402 | if (_argo2) { | |
8403 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8404 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
8406 | return NULL; |
8407 | } | |
8408 | } | |
b1462dfa | 8409 | { |
185d7c3e RD |
8410 | #if PYTHON_API_VERSION >= 1009 |
8411 | char* tmpPtr; int tmpSize; | |
8412 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 8413 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8414 | return NULL; |
8415 | } | |
8416 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8417 | return NULL; | |
8418 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8419 | #else | |
b1462dfa RD |
8420 | if (!PyString_Check(_obj3)) { |
8421 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8422 | return NULL; | |
8423 | } | |
185d7c3e RD |
8424 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8425 | #endif | |
b1462dfa | 8426 | } |
cf694132 RD |
8427 | { |
8428 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8429 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 RD |
8430 | |
8431 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8432 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8433 | } _resultobj = Py_BuildValue("i",_result); |
b1462dfa RD |
8434 | { |
8435 | if (_obj3) | |
8436 | delete _arg3; | |
8437 | } | |
8ab979d7 RD |
8438 | return _resultobj; |
8439 | } | |
8440 | ||
b1462dfa RD |
8441 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
8442 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8443 | PyObject * _resultobj; |
b1462dfa | 8444 | size_t _result; |
8ab979d7 | 8445 | wxMenuBar * _arg0; |
1d99702e | 8446 | PyObject * _argo0 = 0; |
b1462dfa | 8447 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8448 | |
8449 | self = self; | |
b1462dfa | 8450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 8451 | return NULL; |
1d99702e RD |
8452 | if (_argo0) { |
8453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
8456 | return NULL; |
8457 | } | |
8458 | } | |
cf694132 RD |
8459 | { |
8460 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8461 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 RD |
8462 | |
8463 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8464 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8465 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8466 | return _resultobj; |
8467 | } | |
8468 | ||
b1462dfa RD |
8469 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
8470 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 8471 | PyObject * _resultobj; |
b1462dfa | 8472 | wxMenu * _result; |
06c0fba4 | 8473 | wxMenuBar * _arg0; |
b1462dfa | 8474 | size_t _arg1; |
06c0fba4 | 8475 | PyObject * _argo0 = 0; |
b1462dfa | 8476 | char *_kwnames[] = { "self","pos", NULL }; |
06c0fba4 RD |
8477 | |
8478 | self = self; | |
b1462dfa | 8479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
8480 | return NULL; |
8481 | if (_argo0) { | |
8482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
8485 | return NULL; |
8486 | } | |
8487 | } | |
8488 | { | |
8489 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8490 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 RD |
8491 | |
8492 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8493 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8494 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
8495 | return _resultobj; |
8496 | } | |
8497 | ||
2abc0a0f RD |
8498 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
8499 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8500 | PyObject * _resultobj; | |
8501 | wxMenu * _result; | |
8502 | wxMenuBar * _arg0; | |
8503 | size_t _arg1; | |
8504 | wxMenu * _arg2; | |
8505 | wxString * _arg3; | |
8506 | PyObject * _argo0 = 0; | |
8507 | PyObject * _argo2 = 0; | |
8508 | PyObject * _obj3 = 0; | |
8509 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
2abc0a0f RD |
8510 | |
8511 | self = self; | |
8512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
8513 | return NULL; | |
8514 | if (_argo0) { | |
8515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
8518 | return NULL; | |
8519 | } | |
8520 | } | |
8521 | if (_argo2) { | |
8522 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8523 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
8525 | return NULL; | |
8526 | } | |
8527 | } | |
8528 | { | |
185d7c3e RD |
8529 | #if PYTHON_API_VERSION >= 1009 |
8530 | char* tmpPtr; int tmpSize; | |
8531 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 8532 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8533 | return NULL; |
8534 | } | |
8535 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8536 | return NULL; | |
8537 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8538 | #else | |
2abc0a0f RD |
8539 | if (!PyString_Check(_obj3)) { |
8540 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8541 | return NULL; | |
8542 | } | |
185d7c3e RD |
8543 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8544 | #endif | |
2abc0a0f RD |
8545 | } |
8546 | { | |
8547 | wxPy_BEGIN_ALLOW_THREADS; | |
8548 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); | |
8549 | ||
8550 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8551 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8552 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8553 | { |
8554 | if (_obj3) | |
8555 | delete _arg3; | |
8556 | } | |
8557 | return _resultobj; | |
8558 | } | |
8559 | ||
8560 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8561 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8562 | PyObject * _resultobj; | |
8563 | wxMenu * _result; | |
8564 | wxMenuBar * _arg0; | |
8565 | size_t _arg1; | |
8566 | PyObject * _argo0 = 0; | |
8567 | char *_kwnames[] = { "self","pos", NULL }; | |
2abc0a0f RD |
8568 | |
8569 | self = self; | |
8570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
8571 | return NULL; | |
8572 | if (_argo0) { | |
8573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
8576 | return NULL; | |
8577 | } | |
8578 | } | |
8579 | { | |
8580 | wxPy_BEGIN_ALLOW_THREADS; | |
8581 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); | |
8582 | ||
8583 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8584 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8585 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8586 | return _resultobj; |
8587 | } | |
8588 | ||
b1462dfa RD |
8589 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
8590 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8591 | PyObject * _resultobj; |
b1462dfa RD |
8592 | wxMenuBar * _arg0; |
8593 | size_t _arg1; | |
8594 | bool _arg2; | |
8595 | PyObject * _argo0 = 0; | |
8596 | int tempbool2; | |
8597 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
8598 | ||
8599 | self = self; | |
8600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8601 | return NULL; | |
8602 | if (_argo0) { | |
8603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
8606 | return NULL; | |
8607 | } | |
8608 | } | |
8609 | _arg2 = (bool ) tempbool2; | |
8610 | { | |
8611 | wxPy_BEGIN_ALLOW_THREADS; | |
8612 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | |
8613 | ||
8614 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8615 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8616 | } Py_INCREF(Py_None); |
8617 | _resultobj = Py_None; | |
8618 | return _resultobj; | |
8619 | } | |
8620 | ||
8621 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
8622 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8623 | PyObject * _resultobj; | |
8624 | wxMenuBar * _arg0; | |
8625 | size_t _arg1; | |
8626 | wxString * _arg2; | |
1d99702e | 8627 | PyObject * _argo0 = 0; |
cf694132 | 8628 | PyObject * _obj2 = 0; |
b1462dfa | 8629 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
8630 | |
8631 | self = self; | |
b1462dfa | 8632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 8633 | return NULL; |
1d99702e RD |
8634 | if (_argo0) { |
8635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
8638 | return NULL; |
8639 | } | |
8640 | } | |
cf694132 | 8641 | { |
185d7c3e RD |
8642 | #if PYTHON_API_VERSION >= 1009 |
8643 | char* tmpPtr; int tmpSize; | |
8644 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8645 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8646 | return NULL; |
8647 | } | |
8648 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8649 | return NULL; | |
8650 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8651 | #else | |
cf694132 RD |
8652 | if (!PyString_Check(_obj2)) { |
8653 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8654 | return NULL; | |
8655 | } | |
185d7c3e RD |
8656 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8657 | #endif | |
cf694132 | 8658 | } |
cf694132 | 8659 | { |
b1462dfa RD |
8660 | wxPy_BEGIN_ALLOW_THREADS; |
8661 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | |
8662 | ||
8663 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8664 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8665 | } Py_INCREF(Py_None); |
8666 | _resultobj = Py_None; | |
8667 | { | |
8668 | if (_obj2) | |
8669 | delete _arg2; | |
8670 | } | |
8671 | return _resultobj; | |
8672 | } | |
8673 | ||
8674 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
8675 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8676 | PyObject * _resultobj; | |
8677 | wxString * _result; | |
8678 | wxMenuBar * _arg0; | |
8679 | size_t _arg1; | |
8680 | PyObject * _argo0 = 0; | |
8681 | char *_kwnames[] = { "self","pos", NULL }; | |
8682 | ||
8683 | self = self; | |
8684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
8685 | return NULL; | |
8686 | if (_argo0) { | |
8687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
8690 | return NULL; | |
8691 | } | |
8692 | } | |
8693 | { | |
8694 | wxPy_BEGIN_ALLOW_THREADS; | |
8695 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | |
8696 | ||
8697 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8698 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8699 | }{ |
eec92d76 | 8700 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8701 | } |
8702 | { | |
8703 | delete _result; | |
8704 | } | |
8705 | return _resultobj; | |
8706 | } | |
8707 | ||
3a0958b1 RD |
8708 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) |
8709 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8710 | PyObject * _resultobj; | |
8711 | int _result; | |
8712 | wxMenuBar * _arg0; | |
8713 | wxString * _arg1; | |
8714 | PyObject * _argo0 = 0; | |
8715 | PyObject * _obj1 = 0; | |
8716 | char *_kwnames[] = { "self","title", NULL }; | |
8717 | ||
8718 | self = self; | |
8719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) | |
8720 | return NULL; | |
8721 | if (_argo0) { | |
8722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); | |
8725 | return NULL; | |
8726 | } | |
8727 | } | |
8728 | { | |
8729 | #if PYTHON_API_VERSION >= 1009 | |
8730 | char* tmpPtr; int tmpSize; | |
8731 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8732 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8733 | return NULL; | |
8734 | } | |
8735 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8736 | return NULL; | |
8737 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8738 | #else | |
8739 | if (!PyString_Check(_obj1)) { | |
8740 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8741 | return NULL; | |
8742 | } | |
8743 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8744 | #endif | |
8745 | } | |
8746 | { | |
8747 | wxPy_BEGIN_ALLOW_THREADS; | |
8748 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); | |
8749 | ||
8750 | wxPy_END_ALLOW_THREADS; | |
8751 | if (PyErr_Occurred()) return NULL; | |
8752 | } _resultobj = Py_BuildValue("i",_result); | |
8753 | { | |
8754 | if (_obj1) | |
8755 | delete _arg1; | |
8756 | } | |
8757 | return _resultobj; | |
8758 | } | |
8759 | ||
b1462dfa RD |
8760 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) |
8761 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8762 | PyObject * _resultobj; | |
8763 | int _result; | |
8764 | wxMenuBar * _arg0; | |
8765 | wxString * _arg1; | |
8766 | wxString * _arg2; | |
8767 | PyObject * _argo0 = 0; | |
8768 | PyObject * _obj1 = 0; | |
8769 | PyObject * _obj2 = 0; | |
8770 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
8771 | ||
8772 | self = self; | |
8773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8774 | return NULL; | |
8775 | if (_argo0) { | |
8776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
8779 | return NULL; | |
8780 | } | |
8781 | } | |
8782 | { | |
185d7c3e RD |
8783 | #if PYTHON_API_VERSION >= 1009 |
8784 | char* tmpPtr; int tmpSize; | |
8785 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 8786 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8787 | return NULL; |
8788 | } | |
8789 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8790 | return NULL; | |
8791 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8792 | #else | |
b1462dfa | 8793 | if (!PyString_Check(_obj1)) { |
cf694132 RD |
8794 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
8795 | return NULL; | |
8796 | } | |
185d7c3e RD |
8797 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8798 | #endif | |
cf694132 | 8799 | } |
b1462dfa | 8800 | { |
185d7c3e RD |
8801 | #if PYTHON_API_VERSION >= 1009 |
8802 | char* tmpPtr; int tmpSize; | |
8803 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8804 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8805 | return NULL; |
8806 | } | |
8807 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8808 | return NULL; | |
8809 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8810 | #else | |
b1462dfa RD |
8811 | if (!PyString_Check(_obj2)) { |
8812 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8813 | return NULL; | |
8814 | } | |
185d7c3e RD |
8815 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8816 | #endif | |
b1462dfa RD |
8817 | } |
8818 | { | |
8819 | wxPy_BEGIN_ALLOW_THREADS; | |
8820 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); | |
8821 | ||
8822 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8823 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8824 | } _resultobj = Py_BuildValue("i",_result); |
8825 | { | |
8826 | if (_obj1) | |
8827 | delete _arg1; | |
8828 | } | |
8829 | { | |
8830 | if (_obj2) | |
8831 | delete _arg2; | |
8832 | } | |
8833 | return _resultobj; | |
8834 | } | |
8835 | ||
8836 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8837 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8838 | PyObject * _resultobj; | |
8839 | wxMenuItem * _result; | |
8840 | wxMenuBar * _arg0; | |
8841 | int _arg1; | |
8842 | PyObject * _argo0 = 0; | |
8843 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
8844 | |
8845 | self = self; | |
8846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8847 | return NULL; | |
8848 | if (_argo0) { | |
8849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
8852 | return NULL; |
8853 | } | |
8854 | } | |
8855 | { | |
8856 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8857 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 RD |
8858 | |
8859 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8860 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8861 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8862 | return _resultobj; |
cf694132 | 8863 | } |
b1462dfa RD |
8864 | |
8865 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8866 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8867 | PyObject * _resultobj; | |
8868 | wxMenuBar * _arg0; | |
8869 | int _arg1; | |
8870 | bool _arg2; | |
8871 | PyObject * _argo0 = 0; | |
8872 | int tempbool2; | |
8873 | char *_kwnames[] = { "self","id","enable", NULL }; | |
8874 | ||
8875 | self = self; | |
8876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8877 | return NULL; | |
8878 | if (_argo0) { | |
8879 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8880 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
8882 | return NULL; | |
8883 | } | |
8884 | } | |
8885 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8886 | { |
b1462dfa RD |
8887 | wxPy_BEGIN_ALLOW_THREADS; |
8888 | wxMenuBar_Enable(_arg0,_arg1,_arg2); | |
8889 | ||
8890 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8891 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8892 | } Py_INCREF(Py_None); |
8893 | _resultobj = Py_None; | |
8894 | return _resultobj; | |
cf694132 | 8895 | } |
b1462dfa RD |
8896 | |
8897 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
8898 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8899 | PyObject * _resultobj; | |
8900 | wxMenuBar * _arg0; | |
8901 | int _arg1; | |
8902 | bool _arg2; | |
8903 | PyObject * _argo0 = 0; | |
8904 | int tempbool2; | |
8905 | char *_kwnames[] = { "self","id","check", NULL }; | |
8906 | ||
8907 | self = self; | |
8908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8909 | return NULL; | |
8910 | if (_argo0) { | |
8911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
8914 | return NULL; | |
8915 | } | |
8916 | } | |
8917 | _arg2 = (bool ) tempbool2; | |
8918 | { | |
8919 | wxPy_BEGIN_ALLOW_THREADS; | |
8920 | wxMenuBar_Check(_arg0,_arg1,_arg2); | |
8921 | ||
8922 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8923 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8924 | } Py_INCREF(Py_None); |
8925 | _resultobj = Py_None; | |
cf694132 RD |
8926 | return _resultobj; |
8927 | } | |
8928 | ||
b1462dfa RD |
8929 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8930 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8931 | PyObject * _resultobj; |
8932 | bool _result; | |
b1462dfa RD |
8933 | wxMenuBar * _arg0; |
8934 | int _arg1; | |
1d99702e | 8935 | PyObject * _argo0 = 0; |
b1462dfa | 8936 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8937 | |
8938 | self = self; | |
b1462dfa | 8939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8940 | return NULL; |
1d99702e RD |
8941 | if (_argo0) { |
8942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8945 | return NULL; |
8946 | } | |
8947 | } | |
cf694132 RD |
8948 | { |
8949 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8950 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 RD |
8951 | |
8952 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8953 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8954 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8955 | return _resultobj; |
8956 | } | |
8957 | ||
b1462dfa RD |
8958 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8959 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8960 | PyObject * _resultobj; |
8961 | bool _result; | |
b1462dfa RD |
8962 | wxMenuBar * _arg0; |
8963 | int _arg1; | |
1d99702e | 8964 | PyObject * _argo0 = 0; |
b1462dfa | 8965 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8966 | |
8967 | self = self; | |
b1462dfa | 8968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8969 | return NULL; |
1d99702e RD |
8970 | if (_argo0) { |
8971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8974 | return NULL; |
8975 | } | |
8976 | } | |
cf694132 RD |
8977 | { |
8978 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 8979 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 RD |
8980 | |
8981 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8982 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8983 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8984 | return _resultobj; |
8985 | } | |
8986 | ||
b1462dfa RD |
8987 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
8988 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8989 | PyObject * _resultobj; |
b1462dfa RD |
8990 | wxMenuBar * _arg0; |
8991 | int _arg1; | |
8992 | wxString * _arg2; | |
1d99702e | 8993 | PyObject * _argo0 = 0; |
b1462dfa RD |
8994 | PyObject * _obj2 = 0; |
8995 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
8996 | |
8997 | self = self; | |
b1462dfa | 8998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8999 | return NULL; |
1d99702e RD |
9000 | if (_argo0) { |
9001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9004 | return NULL; |
9005 | } | |
9006 | } | |
b1462dfa | 9007 | { |
185d7c3e RD |
9008 | #if PYTHON_API_VERSION >= 1009 |
9009 | char* tmpPtr; int tmpSize; | |
9010 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 9011 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9012 | return NULL; |
9013 | } | |
9014 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9015 | return NULL; | |
9016 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9017 | #else | |
b1462dfa RD |
9018 | if (!PyString_Check(_obj2)) { |
9019 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9020 | return NULL; | |
9021 | } | |
185d7c3e RD |
9022 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9023 | #endif | |
b1462dfa | 9024 | } |
cf694132 RD |
9025 | { |
9026 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9027 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 RD |
9028 | |
9029 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9030 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9031 | } Py_INCREF(Py_None); |
9032 | _resultobj = Py_None; | |
9033 | { | |
9034 | if (_obj2) | |
9035 | delete _arg2; | |
9036 | } | |
8ab979d7 RD |
9037 | return _resultobj; |
9038 | } | |
9039 | ||
b1462dfa RD |
9040 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
9041 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9042 | PyObject * _resultobj; |
b1462dfa RD |
9043 | wxString * _result; |
9044 | wxMenuBar * _arg0; | |
9045 | int _arg1; | |
1d99702e | 9046 | PyObject * _argo0 = 0; |
b1462dfa | 9047 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9048 | |
9049 | self = self; | |
b1462dfa | 9050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9051 | return NULL; |
1d99702e RD |
9052 | if (_argo0) { |
9053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
9056 | return NULL; | |
9057 | } | |
9058 | } | |
9059 | { | |
9060 | wxPy_BEGIN_ALLOW_THREADS; | |
9061 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | |
9062 | ||
9063 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9064 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9065 | }{ |
eec92d76 | 9066 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
9067 | } |
9068 | { | |
9069 | delete _result; | |
9070 | } | |
9071 | return _resultobj; | |
9072 | } | |
9073 | ||
9074 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
9075 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9076 | PyObject * _resultobj; | |
9077 | wxMenuBar * _arg0; | |
9078 | int _arg1; | |
9079 | wxString * _arg2; | |
9080 | PyObject * _argo0 = 0; | |
9081 | PyObject * _obj2 = 0; | |
9082 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
9083 | ||
9084 | self = self; | |
9085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9086 | return NULL; | |
9087 | if (_argo0) { | |
9088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
9091 | return NULL; | |
9092 | } | |
9093 | } | |
9094 | { | |
185d7c3e RD |
9095 | #if PYTHON_API_VERSION >= 1009 |
9096 | char* tmpPtr; int tmpSize; | |
9097 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 9098 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9099 | return NULL; |
9100 | } | |
9101 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9102 | return NULL; | |
9103 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9104 | #else | |
b1462dfa RD |
9105 | if (!PyString_Check(_obj2)) { |
9106 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9107 | return NULL; | |
9108 | } | |
185d7c3e RD |
9109 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9110 | #endif | |
b1462dfa RD |
9111 | } |
9112 | { | |
9113 | wxPy_BEGIN_ALLOW_THREADS; | |
9114 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | |
9115 | ||
9116 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9117 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9118 | } Py_INCREF(Py_None); |
9119 | _resultobj = Py_None; | |
9120 | { | |
9121 | if (_obj2) | |
9122 | delete _arg2; | |
9123 | } | |
9124 | return _resultobj; | |
9125 | } | |
9126 | ||
9127 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
9128 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9129 | PyObject * _resultobj; | |
9130 | wxString * _result; | |
9131 | wxMenuBar * _arg0; | |
9132 | int _arg1; | |
9133 | PyObject * _argo0 = 0; | |
9134 | char *_kwnames[] = { "self","id", NULL }; | |
9135 | ||
9136 | self = self; | |
9137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
9138 | return NULL; | |
9139 | if (_argo0) { | |
9140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9143 | return NULL; |
9144 | } | |
9145 | } | |
cf694132 RD |
9146 | { |
9147 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9148 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 RD |
9149 | |
9150 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9151 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9152 | }{ |
eec92d76 | 9153 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
9154 | } |
9155 | { | |
9156 | delete _result; | |
9157 | } | |
8ab979d7 RD |
9158 | return _resultobj; |
9159 | } | |
9160 | ||
9416aa89 RD |
9161 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
9162 | wxMenuItem *src; | |
9163 | wxObject *dest; | |
9164 | src = (wxMenuItem *) ptr; | |
9165 | dest = (wxObject *) src; | |
9166 | return (void *) dest; | |
9167 | } | |
9168 | ||
b1462dfa RD |
9169 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
9170 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9171 | PyObject * _resultobj; |
b1462dfa RD |
9172 | wxMenuItem * _result; |
9173 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 9174 | int _arg1 = (int ) wxID_SEPARATOR; |
b1462dfa RD |
9175 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; |
9176 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
9177 | bool _arg4 = (bool ) FALSE; | |
9178 | wxMenu * _arg5 = (wxMenu *) NULL; | |
1d99702e | 9179 | PyObject * _argo0 = 0; |
b1462dfa RD |
9180 | PyObject * _obj2 = 0; |
9181 | PyObject * _obj3 = 0; | |
9182 | int tempbool4 = (int) FALSE; | |
9183 | PyObject * _argo5 = 0; | |
9184 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
9185 | char _ptemp[128]; | |
8ab979d7 RD |
9186 | |
9187 | self = self; | |
b1462dfa | 9188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) |
8ab979d7 | 9189 | return NULL; |
1d99702e RD |
9190 | if (_argo0) { |
9191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
9194 | return NULL; | |
9195 | } | |
9196 | } | |
9197 | if (_obj2) | |
9198 | { | |
185d7c3e RD |
9199 | #if PYTHON_API_VERSION >= 1009 |
9200 | char* tmpPtr; int tmpSize; | |
9201 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 9202 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9203 | return NULL; |
9204 | } | |
9205 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9206 | return NULL; | |
9207 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9208 | #else | |
b1462dfa RD |
9209 | if (!PyString_Check(_obj2)) { |
9210 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9211 | return NULL; | |
9212 | } | |
185d7c3e RD |
9213 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9214 | #endif | |
b1462dfa RD |
9215 | } |
9216 | if (_obj3) | |
9217 | { | |
185d7c3e RD |
9218 | #if PYTHON_API_VERSION >= 1009 |
9219 | char* tmpPtr; int tmpSize; | |
9220 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 9221 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9222 | return NULL; |
9223 | } | |
9224 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
9225 | return NULL; | |
9226 | _arg3 = new wxString(tmpPtr, tmpSize); | |
9227 | #else | |
b1462dfa RD |
9228 | if (!PyString_Check(_obj3)) { |
9229 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9230 | return NULL; | |
9231 | } | |
185d7c3e RD |
9232 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
9233 | #endif | |
b1462dfa RD |
9234 | } |
9235 | _arg4 = (bool ) tempbool4; | |
9236 | if (_argo5) { | |
9237 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
9238 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
9239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
9240 | return NULL; |
9241 | } | |
9242 | } | |
cf694132 RD |
9243 | { |
9244 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9245 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 RD |
9246 | |
9247 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9248 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9249 | } if (_result) { |
9250 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
9251 | _resultobj = Py_BuildValue("s",_ptemp); | |
9252 | } else { | |
9253 | Py_INCREF(Py_None); | |
9254 | _resultobj = Py_None; | |
9255 | } | |
9256 | { | |
9257 | if (_obj2) | |
9258 | delete _arg2; | |
9259 | } | |
9260 | { | |
9261 | if (_obj3) | |
9262 | delete _arg3; | |
9263 | } | |
8ab979d7 RD |
9264 | return _resultobj; |
9265 | } | |
9266 | ||
b1462dfa RD |
9267 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
9268 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9269 | PyObject * _resultobj; |
b1462dfa | 9270 | wxMenu * _result; |
8ab979d7 | 9271 | wxMenuItem * _arg0; |
1d99702e | 9272 | PyObject * _argo0 = 0; |
efc5f224 | 9273 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9274 | |
9275 | self = self; | |
b1462dfa | 9276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 9277 | return NULL; |
1d99702e RD |
9278 | if (_argo0) { |
9279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9282 | return NULL; |
9283 | } | |
9284 | } | |
cf694132 RD |
9285 | { |
9286 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9287 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 RD |
9288 | |
9289 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9290 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9291 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9292 | return _resultobj; |
9293 | } | |
9294 | ||
2abc0a0f RD |
9295 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
9296 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9297 | PyObject * _resultobj; |
9298 | wxMenuItem * _arg0; | |
2abc0a0f | 9299 | int _arg1; |
1d99702e | 9300 | PyObject * _argo0 = 0; |
2abc0a0f | 9301 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9302 | |
9303 | self = self; | |
2abc0a0f | 9304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9305 | return NULL; |
1d99702e RD |
9306 | if (_argo0) { |
9307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 9309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9310 | return NULL; |
9311 | } | |
9312 | } | |
cf694132 RD |
9313 | { |
9314 | wxPy_BEGIN_ALLOW_THREADS; | |
2abc0a0f | 9315 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 RD |
9316 | |
9317 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9318 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9319 | } Py_INCREF(Py_None); |
8ab979d7 | 9320 | _resultobj = Py_None; |
8ab979d7 RD |
9321 | return _resultobj; |
9322 | } | |
9323 | ||
b1462dfa RD |
9324 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
9325 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9326 | PyObject * _resultobj; |
b1462dfa | 9327 | int _result; |
8ab979d7 | 9328 | wxMenuItem * _arg0; |
1d99702e | 9329 | PyObject * _argo0 = 0; |
efc5f224 | 9330 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9331 | |
9332 | self = self; | |
b1462dfa | 9333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 9334 | return NULL; |
1d99702e RD |
9335 | if (_argo0) { |
9336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9339 | return NULL; |
9340 | } | |
9341 | } | |
8ab979d7 | 9342 | { |
cf694132 | 9343 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 9344 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 RD |
9345 | |
9346 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9347 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9348 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9349 | return _resultobj; |
9350 | } | |
9351 | ||
b1462dfa RD |
9352 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
9353 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9354 | PyObject * _resultobj; |
b1462dfa | 9355 | bool _result; |
8ab979d7 | 9356 | wxMenuItem * _arg0; |
1d99702e | 9357 | PyObject * _argo0 = 0; |
efc5f224 | 9358 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9359 | |
9360 | self = self; | |
b1462dfa | 9361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 9362 | return NULL; |
1d99702e RD |
9363 | if (_argo0) { |
9364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9367 | return NULL; |
9368 | } | |
9369 | } | |
8ab979d7 | 9370 | { |
cf694132 | 9371 | wxPy_BEGIN_ALLOW_THREADS; |
b1462dfa | 9372 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 RD |
9373 | |
9374 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9375 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9376 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9377 | return _resultobj; |
9378 | } | |
9379 | ||
b1462dfa RD |
9380 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
9381 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9382 | PyObject * _resultobj; |
9383 | wxMenuItem * _arg0; | |
9384 | wxString * _arg1; | |
1d99702e | 9385 | PyObject * _argo0 = 0; |
8ab979d7 | 9386 | PyObject * _obj1 = 0; |
b1462dfa | 9387 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
9388 | |
9389 | self = self; | |
b1462dfa | 9390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9391 | return NULL; |
1d99702e RD |
9392 | if (_argo0) { |
9393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9396 | return NULL; |
9397 | } | |
9398 | } | |
9399 | { | |
185d7c3e RD |
9400 | #if PYTHON_API_VERSION >= 1009 |
9401 | char* tmpPtr; int tmpSize; | |
9402 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9403 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9404 | return NULL; |
9405 | } | |
9406 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9407 | return NULL; | |
9408 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9409 | #else | |
8ab979d7 RD |
9410 | if (!PyString_Check(_obj1)) { |
9411 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9412 | return NULL; | |
9413 | } | |
185d7c3e RD |
9414 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9415 | #endif | |
8ab979d7 | 9416 | } |
cf694132 RD |
9417 | { |
9418 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9419 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 RD |
9420 | |
9421 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9422 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9423 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9424 | _resultobj = Py_None; |
9425 | { | |
9426 | if (_obj1) | |
9427 | delete _arg1; | |
9428 | } | |
9429 | return _resultobj; | |
9430 | } | |
9431 | ||
b1462dfa RD |
9432 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
9433 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9434 | PyObject * _resultobj; |
b1462dfa | 9435 | wxString * _result; |
8ab979d7 | 9436 | wxMenuItem * _arg0; |
1d99702e | 9437 | PyObject * _argo0 = 0; |
b1462dfa | 9438 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9439 | |
9440 | self = self; | |
b1462dfa | 9441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 9442 | return NULL; |
1d99702e RD |
9443 | if (_argo0) { |
9444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9447 | return NULL; |
9448 | } | |
9449 | } | |
cf694132 RD |
9450 | { |
9451 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9452 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 RD |
9453 | |
9454 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9455 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9456 | }{ |
eec92d76 | 9457 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 | 9458 | } |
cf694132 | 9459 | { |
b1462dfa RD |
9460 | delete _result; |
9461 | } | |
cf694132 RD |
9462 | return _resultobj; |
9463 | } | |
9464 | ||
b1462dfa RD |
9465 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
9466 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9467 | PyObject * _resultobj; |
b1462dfa | 9468 | wxString * _result; |
cf694132 | 9469 | wxMenuItem * _arg0; |
1d99702e | 9470 | PyObject * _argo0 = 0; |
efc5f224 | 9471 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9472 | |
9473 | self = self; | |
b1462dfa | 9474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 9475 | return NULL; |
1d99702e RD |
9476 | if (_argo0) { |
9477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
9480 | return NULL; |
9481 | } | |
9482 | } | |
9483 | { | |
9484 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9485 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
9486 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9487 | |
9488 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9489 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9490 | }{ |
eec92d76 | 9491 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
cf694132 | 9492 | } |
cf694132 RD |
9493 | return _resultobj; |
9494 | } | |
9495 | ||
b1462dfa RD |
9496 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
9497 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9498 | PyObject * _resultobj; |
cf694132 | 9499 | wxMenuItem * _arg0; |
b1462dfa | 9500 | bool _arg1; |
1d99702e | 9501 | PyObject * _argo0 = 0; |
b1462dfa RD |
9502 | int tempbool1; |
9503 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
9504 | |
9505 | self = self; | |
b1462dfa | 9506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9507 | return NULL; |
1d99702e RD |
9508 | if (_argo0) { |
9509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9512 | return NULL; |
9513 | } | |
9514 | } | |
b1462dfa | 9515 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9516 | { |
9517 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9518 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 RD |
9519 | |
9520 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9521 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9522 | } Py_INCREF(Py_None); |
9523 | _resultobj = Py_None; | |
cf694132 RD |
9524 | return _resultobj; |
9525 | } | |
9526 | ||
b1462dfa RD |
9527 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
9528 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9529 | PyObject * _resultobj; |
b1462dfa | 9530 | bool _result; |
cf694132 | 9531 | wxMenuItem * _arg0; |
1d99702e | 9532 | PyObject * _argo0 = 0; |
efc5f224 | 9533 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9534 | |
9535 | self = self; | |
b1462dfa | 9536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 9537 | return NULL; |
1d99702e RD |
9538 | if (_argo0) { |
9539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9542 | return NULL; |
9543 | } | |
9544 | } | |
9545 | { | |
9546 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9547 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 RD |
9548 | |
9549 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9550 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9551 | } _resultobj = Py_BuildValue("i",_result); |
9552 | return _resultobj; | |
9553 | } | |
9554 | ||
b1462dfa RD |
9555 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
9556 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9557 | PyObject * _resultobj; |
b1462dfa | 9558 | bool _result; |
cf694132 | 9559 | wxMenuItem * _arg0; |
1d99702e | 9560 | PyObject * _argo0 = 0; |
efc5f224 | 9561 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9562 | |
9563 | self = self; | |
b1462dfa | 9564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 9565 | return NULL; |
1d99702e RD |
9566 | if (_argo0) { |
9567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9570 | return NULL; |
9571 | } | |
9572 | } | |
9573 | { | |
9574 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9575 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 RD |
9576 | |
9577 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9578 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9579 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9580 | return _resultobj; |
9581 | } | |
9582 | ||
b1462dfa RD |
9583 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
9584 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9585 | PyObject * _resultobj; |
9586 | wxMenuItem * _arg0; | |
b1462dfa | 9587 | wxMenu * _arg1; |
1d99702e RD |
9588 | PyObject * _argo0 = 0; |
9589 | PyObject * _argo1 = 0; | |
b1462dfa | 9590 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
9591 | |
9592 | self = self; | |
b1462dfa | 9593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 9594 | return NULL; |
1d99702e RD |
9595 | if (_argo0) { |
9596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9599 | return NULL; |
9600 | } | |
9601 | } | |
1d99702e RD |
9602 | if (_argo1) { |
9603 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9604 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
9605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
9606 | return NULL; |
9607 | } | |
9608 | } | |
9609 | { | |
9610 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9611 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 RD |
9612 | |
9613 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9614 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9615 | } Py_INCREF(Py_None); |
9616 | _resultobj = Py_None; | |
9617 | return _resultobj; | |
9618 | } | |
9619 | ||
b1462dfa RD |
9620 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
9621 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9622 | PyObject * _resultobj; |
b1462dfa | 9623 | wxMenu * _result; |
cf694132 | 9624 | wxMenuItem * _arg0; |
1d99702e | 9625 | PyObject * _argo0 = 0; |
b1462dfa | 9626 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9627 | |
9628 | self = self; | |
b1462dfa | 9629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 9630 | return NULL; |
1d99702e RD |
9631 | if (_argo0) { |
9632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9635 | return NULL; |
9636 | } | |
9637 | } | |
b1462dfa RD |
9638 | { |
9639 | wxPy_BEGIN_ALLOW_THREADS; | |
9640 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); | |
9641 | ||
9642 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9643 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9644 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
9645 | return _resultobj; |
9646 | } | |
9647 | ||
9648 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
9649 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9650 | PyObject * _resultobj; | |
9651 | wxMenuItem * _arg0; | |
9652 | bool _arg1 = (bool ) TRUE; | |
9653 | PyObject * _argo0 = 0; | |
9654 | int tempbool1 = (int) TRUE; | |
9655 | char *_kwnames[] = { "self","enable", NULL }; | |
9656 | ||
9657 | self = self; | |
9658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
9659 | return NULL; | |
9660 | if (_argo0) { | |
9661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
9664 | return NULL; |
9665 | } | |
9666 | } | |
b1462dfa | 9667 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9668 | { |
9669 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9670 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 RD |
9671 | |
9672 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9673 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9674 | } Py_INCREF(Py_None); |
9675 | _resultobj = Py_None; | |
9676 | return _resultobj; | |
9677 | } | |
9678 | ||
b1462dfa RD |
9679 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
9680 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9681 | PyObject * _resultobj; |
b1462dfa | 9682 | bool _result; |
cf694132 | 9683 | wxMenuItem * _arg0; |
1d99702e | 9684 | PyObject * _argo0 = 0; |
b1462dfa | 9685 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9686 | |
9687 | self = self; | |
b1462dfa | 9688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 9689 | return NULL; |
1d99702e RD |
9690 | if (_argo0) { |
9691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
9694 | return NULL; |
9695 | } | |
9696 | } | |
9697 | { | |
9698 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9699 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 RD |
9700 | |
9701 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9702 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9703 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9704 | return _resultobj; |
9705 | } | |
9706 | ||
b1462dfa RD |
9707 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
9708 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9709 | PyObject * _resultobj; |
9710 | wxMenuItem * _arg0; | |
b1462dfa | 9711 | bool _arg1 = (bool ) TRUE; |
1d99702e | 9712 | PyObject * _argo0 = 0; |
b1462dfa RD |
9713 | int tempbool1 = (int) TRUE; |
9714 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
9715 | |
9716 | self = self; | |
b1462dfa | 9717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9718 | return NULL; |
1d99702e RD |
9719 | if (_argo0) { |
9720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
9723 | return NULL; |
9724 | } | |
9725 | } | |
b1462dfa | 9726 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
9727 | { |
9728 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9729 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 RD |
9730 | |
9731 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9732 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9733 | } Py_INCREF(Py_None); |
9734 | _resultobj = Py_None; | |
9735 | return _resultobj; | |
9736 | } | |
9737 | ||
b1462dfa RD |
9738 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
9739 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9740 | PyObject * _resultobj; |
b1462dfa | 9741 | bool _result; |
2abc0a0f | 9742 | wxMenuItem * _arg0; |
2abc0a0f | 9743 | PyObject * _argo0 = 0; |
b1462dfa | 9744 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
9745 | |
9746 | self = self; | |
b1462dfa | 9747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
9748 | return NULL; |
9749 | if (_argo0) { | |
9750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9753 | return NULL; |
9754 | } | |
9755 | } | |
2abc0a0f RD |
9756 | { |
9757 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9758 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f RD |
9759 | |
9760 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9761 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9762 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
9763 | return _resultobj; |
9764 | } | |
9765 | ||
b1462dfa RD |
9766 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
9767 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9768 | PyObject * _resultobj; |
2abc0a0f RD |
9769 | wxMenuItem * _arg0; |
9770 | PyObject * _argo0 = 0; | |
9771 | char *_kwnames[] = { "self", NULL }; | |
9772 | ||
9773 | self = self; | |
b1462dfa | 9774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
9775 | return NULL; |
9776 | if (_argo0) { | |
9777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9780 | return NULL; |
9781 | } | |
9782 | } | |
9783 | { | |
9784 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9785 | wxMenuItem_Toggle(_arg0); |
2abc0a0f RD |
9786 | |
9787 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9788 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9789 | } Py_INCREF(Py_None); |
9790 | _resultobj = Py_None; | |
2abc0a0f RD |
9791 | return _resultobj; |
9792 | } | |
9793 | ||
b1462dfa RD |
9794 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
9795 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9796 | PyObject * _resultobj; |
9797 | wxMenuItem * _arg0; | |
b1462dfa | 9798 | wxString * _arg1; |
1d99702e | 9799 | PyObject * _argo0 = 0; |
b1462dfa RD |
9800 | PyObject * _obj1 = 0; |
9801 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
9802 | |
9803 | self = self; | |
b1462dfa | 9804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 9805 | return NULL; |
1d99702e RD |
9806 | if (_argo0) { |
9807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
9810 | return NULL; |
9811 | } | |
9812 | } | |
b1462dfa | 9813 | { |
185d7c3e RD |
9814 | #if PYTHON_API_VERSION >= 1009 |
9815 | char* tmpPtr; int tmpSize; | |
9816 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9817 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9818 | return NULL; |
9819 | } | |
9820 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9821 | return NULL; | |
9822 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9823 | #else | |
b1462dfa RD |
9824 | if (!PyString_Check(_obj1)) { |
9825 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
cf694132 | 9826 | return NULL; |
cf694132 | 9827 | } |
185d7c3e RD |
9828 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9829 | #endif | |
b1462dfa | 9830 | } |
cf694132 RD |
9831 | { |
9832 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9833 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 RD |
9834 | |
9835 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9836 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9837 | } Py_INCREF(Py_None); |
8ab979d7 | 9838 | _resultobj = Py_None; |
b1462dfa RD |
9839 | { |
9840 | if (_obj1) | |
9841 | delete _arg1; | |
9842 | } | |
8ab979d7 RD |
9843 | return _resultobj; |
9844 | } | |
9845 | ||
b1462dfa RD |
9846 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
9847 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 9848 | PyObject * _resultobj; |
b1462dfa | 9849 | wxString * _result; |
be4d9c1f | 9850 | wxMenuItem * _arg0; |
1d99702e | 9851 | PyObject * _argo0 = 0; |
efc5f224 | 9852 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
9853 | |
9854 | self = self; | |
b1462dfa | 9855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 9856 | return NULL; |
1d99702e RD |
9857 | if (_argo0) { |
9858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
9861 | return NULL; |
9862 | } | |
9863 | } | |
cf694132 RD |
9864 | { |
9865 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa RD |
9866 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
9867 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
9868 | |
9869 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9870 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9871 | }{ |
eec92d76 | 9872 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa | 9873 | } |
be4d9c1f RD |
9874 | return _resultobj; |
9875 | } | |
9876 | ||
b1462dfa RD |
9877 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
9878 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9879 | PyObject * _resultobj; |
b1462dfa | 9880 | wxAcceleratorEntry * _result; |
2abc0a0f | 9881 | wxMenuItem * _arg0; |
2abc0a0f | 9882 | PyObject * _argo0 = 0; |
b1462dfa RD |
9883 | char *_kwnames[] = { "self", NULL }; |
9884 | char _ptemp[128]; | |
2abc0a0f RD |
9885 | |
9886 | self = self; | |
b1462dfa | 9887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
9888 | return NULL; |
9889 | if (_argo0) { | |
9890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9893 | return NULL; |
9894 | } | |
9895 | } | |
2abc0a0f RD |
9896 | { |
9897 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9898 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f RD |
9899 | |
9900 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9901 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9902 | } if (_result) { |
9903 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
9904 | _resultobj = Py_BuildValue("s",_ptemp); | |
9905 | } else { | |
9906 | Py_INCREF(Py_None); | |
9907 | _resultobj = Py_None; | |
9908 | } | |
2abc0a0f RD |
9909 | return _resultobj; |
9910 | } | |
9911 | ||
b1462dfa RD |
9912 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
9913 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
9914 | PyObject * _resultobj; |
9915 | wxMenuItem * _arg0; | |
b1462dfa | 9916 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
9917 | PyObject * _argo0 = 0; |
9918 | PyObject * _argo1 = 0; | |
b1462dfa | 9919 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
9920 | |
9921 | self = self; | |
b1462dfa | 9922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
9923 | return NULL; |
9924 | if (_argo0) { | |
9925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9928 | return NULL; |
9929 | } | |
9930 | } | |
9931 | if (_argo1) { | |
9932 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9933 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
9934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
9935 | return NULL; |
9936 | } | |
9937 | } | |
9938 | { | |
9939 | wxPy_BEGIN_ALLOW_THREADS; | |
b1462dfa | 9940 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f RD |
9941 | |
9942 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9943 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
9944 | } Py_INCREF(Py_None); |
9945 | _resultobj = Py_None; | |
9946 | return _resultobj; | |
9947 | } | |
9948 | ||
1b62f00d RD |
9949 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
9950 | PyObject * _resultobj; | |
9951 | wxString * _result; | |
9952 | wxString * _arg0; | |
9953 | PyObject * _obj0 = 0; | |
9954 | char *_kwnames[] = { "text", NULL }; | |
9955 | ||
9956 | self = self; | |
9957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
9958 | return NULL; | |
9959 | { | |
9960 | #if PYTHON_API_VERSION >= 1009 | |
9961 | char* tmpPtr; int tmpSize; | |
9962 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 9963 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1b62f00d RD |
9964 | return NULL; |
9965 | } | |
9966 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
9967 | return NULL; | |
9968 | _arg0 = new wxString(tmpPtr, tmpSize); | |
9969 | #else | |
9970 | if (!PyString_Check(_obj0)) { | |
9971 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9972 | return NULL; | |
9973 | } | |
9974 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
9975 | #endif | |
9976 | } | |
9977 | { | |
9978 | wxPy_BEGIN_ALLOW_THREADS; | |
9979 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); | |
9980 | ||
9981 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9982 | if (PyErr_Occurred()) return NULL; |
1b62f00d RD |
9983 | }{ |
9984 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9985 | } | |
9986 | { | |
9987 | if (_obj0) | |
9988 | delete _arg0; | |
9989 | } | |
9990 | { | |
9991 | delete _result; | |
9992 | } | |
9993 | return _resultobj; | |
9994 | } | |
9995 | ||
f3d9dc1d RD |
9996 | #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
9997 | static PyObject *_wrap_wxMenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9998 | PyObject * _resultobj; | |
9999 | wxMenuItem * _arg0; | |
10000 | wxFont * _arg1; | |
10001 | PyObject * _argo0 = 0; | |
10002 | PyObject * _argo1 = 0; | |
10003 | char *_kwnames[] = { "self","font", NULL }; | |
10004 | ||
10005 | self = self; | |
10006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
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_SetFont. Expected _wxMenuItem_p."); | |
10012 | return NULL; | |
10013 | } | |
10014 | } | |
10015 | if (_argo1) { | |
10016 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10017 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
10018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p."); | |
10019 | return NULL; | |
10020 | } | |
10021 | } | |
10022 | { | |
10023 | wxPy_BEGIN_ALLOW_THREADS; | |
10024 | wxMenuItem_SetFont(_arg0,*_arg1); | |
10025 | ||
10026 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10027 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10028 | } Py_INCREF(Py_None); |
10029 | _resultobj = Py_None; | |
10030 | return _resultobj; | |
10031 | } | |
10032 | ||
10033 | #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
10034 | static PyObject *_wrap_wxMenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10035 | PyObject * _resultobj; | |
10036 | wxFont * _result; | |
10037 | wxMenuItem * _arg0; | |
10038 | PyObject * _argo0 = 0; | |
10039 | char *_kwnames[] = { "self", NULL }; | |
10040 | char _ptemp[128]; | |
10041 | ||
10042 | self = self; | |
10043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetFont",_kwnames,&_argo0)) | |
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_GetFont. Expected _wxMenuItem_p."); | |
10049 | return NULL; | |
10050 | } | |
10051 | } | |
10052 | { | |
10053 | wxPy_BEGIN_ALLOW_THREADS; | |
c5943253 | 10054 | _result = new wxFont (wxMenuItem_GetFont(_arg0)); |
f3d9dc1d RD |
10055 | |
10056 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10057 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
10058 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
10059 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10060 | return _resultobj; |
10061 | } | |
10062 | ||
10063 | #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
10064 | static PyObject *_wrap_wxMenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10065 | PyObject * _resultobj; | |
10066 | wxMenuItem * _arg0; | |
10067 | wxColour * _arg1; | |
10068 | PyObject * _argo0 = 0; | |
10069 | wxColour temp; | |
10070 | PyObject * _obj1 = 0; | |
10071 | char *_kwnames[] = { "self","colText", NULL }; | |
10072 | ||
10073 | self = self; | |
10074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
10075 | return NULL; | |
10076 | if (_argo0) { | |
10077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p."); | |
10080 | return NULL; | |
10081 | } | |
10082 | } | |
10083 | { | |
10084 | _arg1 = &temp; | |
10085 | if (! wxColour_helper(_obj1, &_arg1)) | |
10086 | return NULL; | |
10087 | } | |
10088 | { | |
10089 | wxPy_BEGIN_ALLOW_THREADS; | |
10090 | wxMenuItem_SetTextColour(_arg0,*_arg1); | |
10091 | ||
10092 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10093 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10094 | } Py_INCREF(Py_None); |
10095 | _resultobj = Py_None; | |
10096 | return _resultobj; | |
10097 | } | |
10098 | ||
10099 | #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
10100 | static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10101 | PyObject * _resultobj; | |
10102 | wxColour * _result; | |
10103 | wxMenuItem * _arg0; | |
10104 | PyObject * _argo0 = 0; | |
10105 | char *_kwnames[] = { "self", NULL }; | |
10106 | char _ptemp[128]; | |
10107 | ||
10108 | self = self; | |
10109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetTextColour",_kwnames,&_argo0)) | |
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_GetTextColour. Expected _wxMenuItem_p."); | |
10115 | return NULL; | |
10116 | } | |
10117 | } | |
10118 | { | |
10119 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 10120 | _result = new wxColour (wxMenuItem_GetTextColour(_arg0)); |
f3d9dc1d RD |
10121 | |
10122 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10123 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
10124 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
10125 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10126 | return _resultobj; |
10127 | } | |
10128 | ||
10129 | #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
10130 | static PyObject *_wrap_wxMenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10131 | PyObject * _resultobj; | |
10132 | wxMenuItem * _arg0; | |
10133 | wxColour * _arg1; | |
10134 | PyObject * _argo0 = 0; | |
10135 | wxColour temp; | |
10136 | PyObject * _obj1 = 0; | |
10137 | char *_kwnames[] = { "self","colBack", NULL }; | |
10138 | ||
10139 | self = self; | |
10140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
10141 | return NULL; | |
10142 | if (_argo0) { | |
10143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p."); | |
10146 | return NULL; | |
10147 | } | |
10148 | } | |
10149 | { | |
10150 | _arg1 = &temp; | |
10151 | if (! wxColour_helper(_obj1, &_arg1)) | |
10152 | return NULL; | |
10153 | } | |
10154 | { | |
10155 | wxPy_BEGIN_ALLOW_THREADS; | |
10156 | wxMenuItem_SetBackgroundColour(_arg0,*_arg1); | |
10157 | ||
10158 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10159 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10160 | } Py_INCREF(Py_None); |
10161 | _resultobj = Py_None; | |
10162 | return _resultobj; | |
10163 | } | |
10164 | ||
10165 | #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
10166 | static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10167 | PyObject * _resultobj; | |
10168 | wxColour * _result; | |
10169 | wxMenuItem * _arg0; | |
10170 | PyObject * _argo0 = 0; | |
10171 | char *_kwnames[] = { "self", NULL }; | |
10172 | char _ptemp[128]; | |
10173 | ||
10174 | self = self; | |
10175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBackgroundColour",_kwnames,&_argo0)) | |
10176 | return NULL; | |
10177 | if (_argo0) { | |
10178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p."); | |
10181 | return NULL; | |
10182 | } | |
10183 | } | |
10184 | { | |
10185 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 10186 | _result = new wxColour (wxMenuItem_GetBackgroundColour(_arg0)); |
f3d9dc1d RD |
10187 | |
10188 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10189 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
10190 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
10191 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10192 | return _resultobj; |
10193 | } | |
10194 | ||
10195 | #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1)) | |
10196 | static PyObject *_wrap_wxMenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10197 | PyObject * _resultobj; | |
10198 | wxMenuItem * _arg0; | |
10199 | wxBitmap * _arg1; | |
10200 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
10201 | PyObject * _argo0 = 0; | |
10202 | PyObject * _argo1 = 0; | |
10203 | PyObject * _argo2 = 0; | |
10204 | char *_kwnames[] = { "self","bmpChecked","bmpUnchecked", NULL }; | |
10205 | ||
10206 | self = self; | |
10207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxMenuItem_SetBitmaps",_kwnames,&_argo0,&_argo1,&_argo2)) | |
10208 | return NULL; | |
10209 | if (_argo0) { | |
10210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p."); | |
10213 | return NULL; | |
10214 | } | |
10215 | } | |
10216 | if (_argo1) { | |
10217 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10218 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
10220 | return NULL; | |
10221 | } | |
10222 | } | |
10223 | if (_argo2) { | |
10224 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10225 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
10226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
10227 | return NULL; | |
10228 | } | |
10229 | } | |
10230 | { | |
10231 | wxPy_BEGIN_ALLOW_THREADS; | |
10232 | wxMenuItem_SetBitmaps(_arg0,*_arg1,*_arg2); | |
10233 | ||
10234 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10235 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10236 | } Py_INCREF(Py_None); |
10237 | _resultobj = Py_None; | |
10238 | return _resultobj; | |
10239 | } | |
10240 | ||
10241 | #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
10242 | static PyObject *_wrap_wxMenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10243 | PyObject * _resultobj; | |
10244 | wxMenuItem * _arg0; | |
10245 | wxBitmap * _arg1; | |
10246 | PyObject * _argo0 = 0; | |
10247 | PyObject * _argo1 = 0; | |
10248 | char *_kwnames[] = { "self","bmpChecked", NULL }; | |
10249 | ||
10250 | self = self; | |
10251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
10252 | return NULL; | |
10253 | if (_argo0) { | |
10254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p."); | |
10257 | return NULL; | |
10258 | } | |
10259 | } | |
10260 | if (_argo1) { | |
10261 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10262 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p."); | |
10264 | return NULL; | |
10265 | } | |
10266 | } | |
10267 | { | |
10268 | wxPy_BEGIN_ALLOW_THREADS; | |
10269 | wxMenuItem_SetBitmap(_arg0,*_arg1); | |
10270 | ||
10271 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10272 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10273 | } Py_INCREF(Py_None); |
10274 | _resultobj = Py_None; | |
10275 | return _resultobj; | |
10276 | } | |
10277 | ||
10278 | #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0)) | |
10279 | static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10280 | PyObject * _resultobj; | |
10281 | wxBitmap * _result; | |
10282 | wxMenuItem * _arg0; | |
10283 | bool _arg1 = (bool ) TRUE; | |
10284 | PyObject * _argo0 = 0; | |
10285 | int tempbool1 = (int) TRUE; | |
10286 | char *_kwnames[] = { "self","bChecked", NULL }; | |
10287 | char _ptemp[128]; | |
10288 | ||
10289 | self = self; | |
10290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_GetBitmap",_kwnames,&_argo0,&tempbool1)) | |
10291 | return NULL; | |
10292 | if (_argo0) { | |
10293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p."); | |
10296 | return NULL; | |
10297 | } | |
10298 | } | |
10299 | _arg1 = (bool ) tempbool1; | |
10300 | { | |
10301 | wxPy_BEGIN_ALLOW_THREADS; | |
c5943253 | 10302 | _result = new wxBitmap (wxMenuItem_GetBitmap(_arg0,_arg1)); |
f3d9dc1d RD |
10303 | |
10304 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10305 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
10306 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
10307 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10308 | return _resultobj; |
10309 | } | |
10310 | ||
10311 | #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0)) | |
10312 | static PyObject *_wrap_wxMenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10313 | PyObject * _resultobj; | |
10314 | wxMenuItem * _arg0; | |
10315 | int _arg1; | |
10316 | PyObject * _argo0 = 0; | |
10317 | char *_kwnames[] = { "self","nWidth", NULL }; | |
10318 | ||
10319 | self = self; | |
10320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetMarginWidth",_kwnames,&_argo0,&_arg1)) | |
10321 | return NULL; | |
10322 | if (_argo0) { | |
10323 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10324 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p."); | |
10326 | return NULL; | |
10327 | } | |
10328 | } | |
10329 | { | |
10330 | wxPy_BEGIN_ALLOW_THREADS; | |
10331 | wxMenuItem_SetMarginWidth(_arg0,_arg1); | |
10332 | ||
10333 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10334 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10335 | } Py_INCREF(Py_None); |
10336 | _resultobj = Py_None; | |
10337 | return _resultobj; | |
10338 | } | |
10339 | ||
10340 | #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth()) | |
10341 | static PyObject *_wrap_wxMenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10342 | PyObject * _resultobj; | |
10343 | int _result; | |
10344 | wxMenuItem * _arg0; | |
10345 | PyObject * _argo0 = 0; | |
10346 | char *_kwnames[] = { "self", NULL }; | |
10347 | ||
10348 | self = self; | |
10349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMarginWidth",_kwnames,&_argo0)) | |
10350 | return NULL; | |
10351 | if (_argo0) { | |
10352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p."); | |
10355 | return NULL; | |
10356 | } | |
10357 | } | |
10358 | { | |
10359 | wxPy_BEGIN_ALLOW_THREADS; | |
10360 | _result = (int )wxMenuItem_GetMarginWidth(_arg0); | |
10361 | ||
10362 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10363 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10364 | } _resultobj = Py_BuildValue("i",_result); |
10365 | return _resultobj; | |
10366 | } | |
10367 | ||
10368 | static PyObject *_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10369 | PyObject * _resultobj; | |
10370 | int _result; | |
10371 | char *_kwnames[] = { NULL }; | |
10372 | ||
10373 | self = self; | |
10374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMenuItem_GetDefaultMarginWidth",_kwnames)) | |
10375 | return NULL; | |
10376 | { | |
10377 | wxPy_BEGIN_ALLOW_THREADS; | |
10378 | _result = (int )wxMenuItem::GetDefaultMarginWidth(); | |
10379 | ||
10380 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10381 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10382 | } _resultobj = Py_BuildValue("i",_result); |
10383 | return _resultobj; | |
10384 | } | |
10385 | ||
10386 | #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn()) | |
10387 | static PyObject *_wrap_wxMenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10388 | PyObject * _resultobj; | |
10389 | bool _result; | |
10390 | wxMenuItem * _arg0; | |
10391 | PyObject * _argo0 = 0; | |
10392 | char *_kwnames[] = { "self", NULL }; | |
10393 | ||
10394 | self = self; | |
10395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsOwnerDrawn",_kwnames,&_argo0)) | |
10396 | return NULL; | |
10397 | if (_argo0) { | |
10398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p."); | |
10401 | return NULL; | |
10402 | } | |
10403 | } | |
10404 | { | |
10405 | wxPy_BEGIN_ALLOW_THREADS; | |
10406 | _result = (bool )wxMenuItem_IsOwnerDrawn(_arg0); | |
10407 | ||
10408 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10409 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10410 | } _resultobj = Py_BuildValue("i",_result); |
10411 | return _resultobj; | |
10412 | } | |
10413 | ||
10414 | #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn()) | |
10415 | static PyObject *_wrap_wxMenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10416 | PyObject * _resultobj; | |
10417 | wxMenuItem * _arg0; | |
10418 | PyObject * _argo0 = 0; | |
10419 | char *_kwnames[] = { "self", NULL }; | |
10420 | ||
10421 | self = self; | |
10422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_ResetOwnerDrawn",_kwnames,&_argo0)) | |
10423 | return NULL; | |
10424 | if (_argo0) { | |
10425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p."); | |
10428 | return NULL; | |
10429 | } | |
10430 | } | |
10431 | { | |
10432 | wxPy_BEGIN_ALLOW_THREADS; | |
10433 | wxMenuItem_ResetOwnerDrawn(_arg0); | |
10434 | ||
10435 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10436 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10437 | } Py_INCREF(Py_None); |
10438 | _resultobj = Py_None; | |
10439 | return _resultobj; | |
10440 | } | |
10441 | ||
8ab979d7 | 10442 | static PyMethodDef windowscMethods[] = { |
f3d9dc1d RD |
10443 | { "wxMenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, |
10444 | { "wxMenuItem_IsOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
10445 | { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10446 | { "wxMenuItem_GetMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10447 | { "wxMenuItem_SetMarginWidth", (PyCFunction) _wrap_wxMenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10448 | { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10449 | { "wxMenuItem_SetBitmap", (PyCFunction) _wrap_wxMenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10450 | { "wxMenuItem_SetBitmaps", (PyCFunction) _wrap_wxMenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
10451 | { "wxMenuItem_GetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10452 | { "wxMenuItem_SetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10453 | { "wxMenuItem_GetTextColour", (PyCFunction) _wrap_wxMenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10454 | { "wxMenuItem_SetTextColour", (PyCFunction) _wrap_wxMenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10455 | { "wxMenuItem_GetFont", (PyCFunction) _wrap_wxMenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10456 | { "wxMenuItem_SetFont", (PyCFunction) _wrap_wxMenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 10457 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10458 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
10459 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
10460 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10461 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10462 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10463 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10464 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10465 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10466 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10467 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10468 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 10469 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10470 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10471 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
10472 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10473 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10474 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10475 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10476 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
10477 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10478 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10479 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10480 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10481 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
10482 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10483 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
10484 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10485 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10486 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10487 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
10488 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
10489 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
3a0958b1 | 10490 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10491 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, |
10492 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
10493 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
10494 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10495 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
10496 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
10497 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
10498 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10499 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
10500 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10501 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
10502 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
10503 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
10504 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10505 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10506 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10507 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10508 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10509 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
10510 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10511 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
10512 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10513 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10514 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
10515 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10516 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
10517 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10518 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10519 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10520 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10521 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10522 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
10523 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10524 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
10525 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 10526 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10527 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10528 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10529 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10530 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10531 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
10532 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
10533 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
10534 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
10535 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
10536 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
10537 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
d1679124 RD |
10538 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10539 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
10540 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
10541 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f RD |
10542 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, |
10543 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
4c9993c3 | 10544 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10545 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10546 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10547 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10548 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
10549 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
10550 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
10551 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10552 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10553 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10554 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10555 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10556 | { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
10557 | { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10558 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10559 | { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
10560 | { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
10561 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
10562 | { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS }, |
10563 | { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10564 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, |
900d9886 | 10565 | { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 | 10566 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10567 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
10568 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
10569 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
10570 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c RD |
10571 | { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS }, |
10572 | { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
10573 | { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
10574 | { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
10575 | { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
10576 | { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
4f3449b4 RD |
10577 | { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS }, |
10578 | { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 | 10579 | { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS }, |
3a0958b1 RD |
10580 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, |
10581 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
10582 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
10583 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 10584 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10585 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
10586 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10587 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
10588 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10589 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10590 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10591 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
10592 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
10593 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
10594 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10595 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10596 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10597 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10598 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10599 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10600 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
10601 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
10602 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
10603 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
10604 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10605 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
83b18bab | 10606 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 10607 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10608 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
10609 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10610 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
10611 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
dbbb98cd | 10612 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10613 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
10614 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
10615 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
10616 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10617 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
10618 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
10619 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10620 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10621 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10622 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10623 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10624 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10625 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10626 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 10627 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10628 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10629 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, |
10630 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
10631 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
10632 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10633 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10634 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 | 10635 | { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10636 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, |
10637 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
10638 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
10639 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10640 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
10641 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10642 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
10643 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10644 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
10645 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
10646 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
10647 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
10648 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
10649 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
10650 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
10651 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
10652 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
10653 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10654 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10655 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
10656 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10657 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
10658 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10659 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
10660 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
10661 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10662 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10663 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10664 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10665 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10666 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
10667 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10668 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
10669 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
10670 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10671 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10672 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
10673 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
10674 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10675 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10676 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 10677 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10678 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
10679 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10680 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 10681 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10682 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10683 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10684 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10685 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
10686 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10687 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10688 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
10689 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
10690 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
10691 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
10692 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
10693 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 10694 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10695 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, |
10696 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
10697 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
10698 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
10699 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
d56cebe7 | 10700 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, |
3ca6a5f0 BP |
10701 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
10702 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10703 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
10704 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
10705 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
10706 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
10707 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
10708 | { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
10709 | { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10710 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, |
0122b7e3 | 10711 | { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10712 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
9416aa89 RD |
10713 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
10714 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10715 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
10716 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10717 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
10718 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 10719 | { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 10720 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10721 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
10722 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
10723 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10724 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
10725 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10726 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10727 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10728 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10729 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 10730 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10731 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
10732 | { NULL, NULL } |
10733 | }; | |
1d99702e RD |
10734 | #ifdef __cplusplus |
10735 | } | |
10736 | #endif | |
10737 | /* | |
10738 | * This table is used by the pointer type-checker | |
10739 | */ | |
10740 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 10741 | { "_signed_long","_long",0}, |
b1462dfa | 10742 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
10743 | { "_wxPrintQuality","_int",0}, |
10744 | { "_wxPrintQuality","_signed_int",0}, | |
10745 | { "_wxPrintQuality","_unsigned_int",0}, | |
10746 | { "_wxPrintQuality","_wxWindowID",0}, | |
10747 | { "_wxPrintQuality","_uint",0}, | |
10748 | { "_wxPrintQuality","_EBool",0}, | |
10749 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10750 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 10751 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
10752 | { "_long","_unsigned_long",0}, |
10753 | { "_long","_signed_long",0}, | |
b1462dfa | 10754 | { "_size_t","_wxCoord",0}, |
1d99702e | 10755 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10756 | { "_size_t","_time_t",0}, |
1d99702e RD |
10757 | { "_size_t","_unsigned_int",0}, |
10758 | { "_size_t","_int",0}, | |
10759 | { "_size_t","_wxWindowID",0}, | |
10760 | { "_size_t","_uint",0}, | |
1d99702e | 10761 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
b1462dfa | 10762 | { "_uint","_wxCoord",0}, |
1d99702e | 10763 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10764 | { "_uint","_time_t",0}, |
1d99702e RD |
10765 | { "_uint","_size_t",0}, |
10766 | { "_uint","_unsigned_int",0}, | |
10767 | { "_uint","_int",0}, | |
10768 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10769 | { "_wxChar","_char",0}, |
f6bcfd97 | 10770 | { "_char","_wxChar",0}, |
cdf14688 | 10771 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 10772 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10773 | { "_EBool","_wxPrintQuality",0}, |
10774 | { "_EBool","_signed_int",0}, | |
10775 | { "_EBool","_int",0}, | |
10776 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 10777 | { "_unsigned_long","_long",0}, |
cdf14688 | 10778 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 10779 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10780 | { "_signed_int","_wxPrintQuality",0}, |
10781 | { "_signed_int","_EBool",0}, | |
10782 | { "_signed_int","_wxWindowID",0}, | |
10783 | { "_signed_int","_int",0}, | |
1d99702e RD |
10784 | { "_WXTYPE","_short",0}, |
10785 | { "_WXTYPE","_signed_short",0}, | |
10786 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
10787 | { "_unsigned_short","_WXTYPE",0}, |
10788 | { "_unsigned_short","_short",0}, | |
9416aa89 | 10789 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, |
9416aa89 | 10790 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, |
9416aa89 | 10791 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, |
9416aa89 | 10792 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, |
9416aa89 | 10793 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, |
9416aa89 | 10794 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, |
9416aa89 | 10795 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, |
9416aa89 | 10796 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, |
9416aa89 | 10797 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, |
1d99702e RD |
10798 | { "_signed_short","_WXTYPE",0}, |
10799 | { "_signed_short","_short",0}, | |
1d99702e | 10800 | { "_unsigned_char","_byte",0}, |
b1462dfa | 10801 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10802 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10803 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10804 | { "_unsigned_int","_size_t",0}, |
10805 | { "_unsigned_int","_uint",0}, | |
10806 | { "_unsigned_int","_wxWindowID",0}, | |
10807 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
10808 | { "_short","_WXTYPE",0}, |
10809 | { "_short","_unsigned_short",0}, | |
10810 | { "_short","_signed_short",0}, | |
b1462dfa | 10811 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10812 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10813 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10814 | { "_wxWindowID","_size_t",0}, |
10815 | { "_wxWindowID","_EBool",0}, | |
10816 | { "_wxWindowID","_uint",0}, | |
10817 | { "_wxWindowID","_int",0}, | |
10818 | { "_wxWindowID","_signed_int",0}, | |
10819 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10820 | { "_int","_wxCoord",0}, |
1d99702e | 10821 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10822 | { "_int","_time_t",0}, |
1d99702e RD |
10823 | { "_int","_size_t",0}, |
10824 | { "_int","_EBool",0}, | |
10825 | { "_int","_uint",0}, | |
10826 | { "_int","_wxWindowID",0}, | |
10827 | { "_int","_unsigned_int",0}, | |
10828 | { "_int","_signed_int",0}, | |
c368d904 RD |
10829 | { "_time_t","_wxCoord",0}, |
10830 | { "_time_t","_wxPrintQuality",0}, | |
10831 | { "_time_t","_unsigned_int",0}, | |
10832 | { "_time_t","_int",0}, | |
10833 | { "_time_t","_wxWindowID",0}, | |
10834 | { "_time_t","_uint",0}, | |
10835 | { "_time_t","_size_t",0}, | |
2f90df85 | 10836 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
b1462dfa RD |
10837 | { "_wxCoord","_int",0}, |
10838 | { "_wxCoord","_signed_int",0}, | |
10839 | { "_wxCoord","_unsigned_int",0}, | |
10840 | { "_wxCoord","_wxWindowID",0}, | |
10841 | { "_wxCoord","_uint",0}, | |
10842 | { "_wxCoord","_EBool",0}, | |
10843 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10844 | { "_wxCoord","_time_t",0}, |
b1462dfa | 10845 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 10846 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
1d99702e | 10847 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, |
1d99702e | 10848 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, |
1d99702e | 10849 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, |
1d99702e | 10850 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, |
2f90df85 | 10851 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
2f90df85 | 10852 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, |
b1462dfa | 10853 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, |
1d99702e | 10854 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
1d99702e | 10855 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, |
1d99702e RD |
10856 | {0,0,0}}; |
10857 | ||
8ab979d7 RD |
10858 | static PyObject *SWIG_globals; |
10859 | #ifdef __cplusplus | |
10860 | extern "C" | |
10861 | #endif | |
1d99702e | 10862 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
10863 | PyObject *m, *d; |
10864 | SWIG_globals = SWIG_newvarlink(); | |
10865 | m = Py_InitModule("windowsc", windowscMethods); | |
10866 | d = PyModule_GetDict(m); | |
1d99702e RD |
10867 | { |
10868 | int i; | |
10869 | for (i = 0; _swig_mapping[i].n1; i++) | |
10870 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10871 | } | |
8ab979d7 | 10872 | } |