]>
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 | |
4268f798 | 110 | 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 | } |
4268f798 | 119 | wxPyEndBlockThreads(); |
19a97bd6 | 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 | { | |
4268f798 | 163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
164 | _result = (wxWindow *)wxWindow_FromHWND(_arg0); |
165 | ||
4268f798 | 166 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
192 | _result = (wxEvtHandler *)new_wxEvtHandler(); |
193 | ||
4268f798 | 194 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
235 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); |
236 | ||
4268f798 | 237 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
271 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); |
272 | ||
4268f798 | 273 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
300 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); |
301 | ||
4268f798 | 302 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
330 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); |
331 | ||
4268f798 | 332 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
359 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); |
360 | ||
4268f798 | 361 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
387 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); |
388 | ||
4268f798 | 389 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
423 | wxEvtHandler_SetNextHandler(_arg0,_arg1); |
424 | ||
4268f798 | 425 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
460 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); |
461 | ||
4268f798 | 462 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
510 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); |
511 | ||
4268f798 | 512 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 RD |
546 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); |
547 | ||
4268f798 | 548 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0122b7e3 RD |
580 | wxEvtHandler__setOORInfo(_arg0,_arg1); |
581 | ||
4268f798 | 582 | wxPyEndAllowThreads(__tstate); |
0122b7e3 RD |
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 | { | |
4268f798 | 616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
617 | _result = (wxValidator *)new_wxValidator(); |
618 | ||
4268f798 | 619 | wxPyEndAllowThreads(__tstate); |
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 | 649 | { |
4268f798 | 650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 | 651 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 | 652 | |
4268f798 | 653 | wxPyEndAllowThreads(__tstate); |
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 | 677 | { |
4268f798 | 678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 | 679 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 | 680 | |
4268f798 | 681 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 | 715 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 | 716 | |
4268f798 | 717 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
734 | _result = (bool )wxValidator::IsSilent(); |
735 | ||
4268f798 | 736 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
752 | wxValidator::SetBellOnError(_arg0); |
753 | ||
4268f798 | 754 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
797 | _result = (wxPyValidator *)new_wxPyValidator(); |
798 | ||
4268f798 | 799 | wxPyEndAllowThreads(__tstate); |
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 | 839 | { |
4268f798 | 840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0122b7e3 | 841 | wxPyValidator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 842 | |
4268f798 | 843 | wxPyEndAllowThreads(__tstate); |
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 | 906 | { |
4268f798 | 907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
908 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
909 | ||
4268f798 | 910 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
934 | _result = (wxWindow *)new_wxPreWindow(); |
935 | ||
4268f798 | 936 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
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 | { | |
4268f798 | 997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
998 | _result = (bool )wxWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
999 | ||
4268f798 | 1000 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
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 | 1023 | { |
4268f798 | 1024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1025 | wxWindow_CaptureMouse(_arg0); |
1026 | ||
4268f798 | 1027 | wxPyEndAllowThreads(__tstate); |
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 | 1052 | { |
4268f798 | 1053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1054 | wxWindow_Center(_arg0,_arg1); |
1055 | ||
4268f798 | 1056 | wxPyEndAllowThreads(__tstate); |
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 | 1081 | { |
4268f798 | 1082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1083 | wxWindow_Centre(_arg0,_arg1); |
1084 | ||
4268f798 | 1085 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 1111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd RD |
1112 | wxWindow_CentreOnParent(_arg0,_arg1); |
1113 | ||
4268f798 | 1114 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 1140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd RD |
1141 | wxWindow_CenterOnParent(_arg0,_arg1); |
1142 | ||
4268f798 | 1143 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 1169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3ca6a5f0 BP |
1170 | wxWindow_CentreOnScreen(_arg0,_arg1); |
1171 | ||
4268f798 | 1172 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 1198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3ca6a5f0 BP |
1199 | wxWindow_CenterOnScreen(_arg0,_arg1); |
1200 | ||
4268f798 | 1201 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 1226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d56cebe7 RD |
1227 | wxWindow_Clear(_arg0); |
1228 | ||
4268f798 | 1229 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
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 | 1267 | { |
4268f798 | 1268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1269 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); |
1270 | ||
4268f798 | 1271 | wxPyEndAllowThreads(__tstate); |
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 | 1315 | { |
4268f798 | 1316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1317 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); |
1318 | ||
4268f798 | 1319 | wxPyEndAllowThreads(__tstate); |
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 | 1345 | { |
4268f798 | 1346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1347 | _result = (bool )wxWindow_Close(_arg0,_arg1); |
1348 | ||
4268f798 | 1349 | wxPyEndAllowThreads(__tstate); |
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 | 1373 | { |
4268f798 | 1374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1375 | _result = (bool )wxWindow_Destroy(_arg0); |
1376 | ||
4268f798 | 1377 | wxPyEndAllowThreads(__tstate); |
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 | 1400 | { |
4268f798 | 1401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1402 | wxWindow_DestroyChildren(_arg0); |
1403 | ||
4268f798 | 1404 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 1430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ac346f50 RD |
1431 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); |
1432 | ||
4268f798 | 1433 | wxPyEndAllowThreads(__tstate); |
ac346f50 RD |
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 | 1459 | { |
4268f798 | 1460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1461 | wxWindow_DragAcceptFiles(_arg0,_arg1); |
1462 | ||
4268f798 | 1463 | wxPyEndAllowThreads(__tstate); |
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 | 1490 | { |
4268f798 | 1491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1492 | wxWindow_Enable(_arg0,_arg1); |
1493 | ||
4268f798 | 1494 | wxPyEndAllowThreads(__tstate); |
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 | 1520 | { |
4268f798 | 1521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1522 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); |
1523 | ||
4268f798 | 1524 | wxPyEndAllowThreads(__tstate); |
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 | 1568 | { |
4268f798 | 1569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1570 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); |
1571 | ||
4268f798 | 1572 | wxPyEndAllowThreads(__tstate); |
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 | 1599 | { |
4268f798 | 1600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1601 | wxWindow_Fit(_arg0); |
1602 | ||
4268f798 | 1603 | wxPyEndAllowThreads(__tstate); |
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 | 1629 | { |
4268f798 | 1630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1631 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); |
1632 | ||
4268f798 | 1633 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 1662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d426c97e RD |
1663 | _result = (PyObject *)wxWindow_GetChildren(_arg0); |
1664 | ||
4268f798 | 1665 | wxPyEndAllowThreads(__tstate); |
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 | 1691 | { |
4268f798 | 1692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1693 | _result = (int )wxWindow_GetCharHeight(_arg0); |
1694 | ||
4268f798 | 1695 | wxPyEndAllowThreads(__tstate); |
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 | 1719 | { |
4268f798 | 1720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1721 | _result = (int )wxWindow_GetCharWidth(_arg0); |
1722 | ||
4268f798 | 1723 | wxPyEndAllowThreads(__tstate); |
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 | 1756 | { |
4268f798 | 1757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1758 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); |
1759 | ||
4268f798 | 1760 | wxPyEndAllowThreads(__tstate); |
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 | 1796 | { |
4268f798 | 1797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1798 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); |
1799 | ||
4268f798 | 1800 | wxPyEndAllowThreads(__tstate); |
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 | 1826 | { |
4268f798 | 1827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1828 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); |
1829 | ||
4268f798 | 1830 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 1861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1afc06c2 RD |
1862 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); |
1863 | ||
4268f798 | 1864 | wxPyEndAllowThreads(__tstate); |
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 | 1889 | { |
4268f798 | 1890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 1891 | _result = new wxFont (wxWindow_GetFont(_arg0)); |
cf694132 | 1892 | |
4268f798 | 1893 | wxPyEndAllowThreads(__tstate); |
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 | 1919 | { |
4268f798 | 1920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1921 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); |
1922 | ||
4268f798 | 1923 | wxPyEndAllowThreads(__tstate); |
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 | 1948 | { |
4268f798 | 1949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1950 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); |
1951 | ||
4268f798 | 1952 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 1979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2abc0a0f RD |
1980 | _result = (long )wxWindow_GetHandle(_arg0); |
1981 | ||
4268f798 | 1982 | wxPyEndAllowThreads(__tstate); |
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 | 2006 | { |
4268f798 | 2007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2008 | _result = (int )wxWindow_GetId(_arg0); |
2009 | ||
4268f798 | 2010 | wxPyEndAllowThreads(__tstate); |
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 | { |
4268f798 | 2035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2036 | _result = new wxString (wxWindow_GetLabel(_arg0)); |
2037 | ||
4268f798 | 2038 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 2087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd RD |
2088 | wxWindow_SetLabel(_arg0,*_arg1); |
2089 | ||
4268f798 | 2090 | wxPyEndAllowThreads(__tstate); |
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 | { |
4268f798 | 2120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2121 | _result = new wxString (wxWindow_GetName(_arg0)); |
2122 | ||
4268f798 | 2123 | wxPyEndAllowThreads(__tstate); |
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 | 2152 | { |
4268f798 | 2153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2154 | _result = (wxWindow *)wxWindow_GetParent(_arg0); |
2155 | ||
4268f798 | 2156 | wxPyEndAllowThreads(__tstate); |
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 | 2189 | { |
4268f798 | 2190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2191 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); |
2192 | ||
4268f798 | 2193 | wxPyEndAllowThreads(__tstate); |
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 | 2229 | { |
4268f798 | 2230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2231 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); |
2232 | ||
4268f798 | 2233 | wxPyEndAllowThreads(__tstate); |
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 | 2259 | { |
4268f798 | 2260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2261 | _result = new wxRect (wxWindow_GetRect(_arg0)); |
2262 | ||
4268f798 | 2263 | wxPyEndAllowThreads(__tstate); |
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 | 2289 | { |
4268f798 | 2290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2291 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); |
2292 | ||
4268f798 | 2293 | wxPyEndAllowThreads(__tstate); |
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 | 2318 | { |
4268f798 | 2319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2320 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); |
2321 | ||
4268f798 | 2322 | wxPyEndAllowThreads(__tstate); |
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 | 2347 | { |
4268f798 | 2348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2349 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); |
2350 | ||
4268f798 | 2351 | wxPyEndAllowThreads(__tstate); |
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 | 2384 | { |
4268f798 | 2385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2386 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); |
2387 | ||
4268f798 | 2388 | wxPyEndAllowThreads(__tstate); |
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 | 2424 | { |
4268f798 | 2425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2426 | _result = new wxSize (wxWindow_GetSize(_arg0)); |
2427 | ||
4268f798 | 2428 | wxPyEndAllowThreads(__tstate); |
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 | 2482 | { |
4268f798 | 2483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2484 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
2485 | ||
4268f798 | 2486 | wxPyEndAllowThreads(__tstate); |
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 | 2573 | { |
4268f798 | 2574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2575 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
2576 | ||
4268f798 | 2577 | wxPyEndAllowThreads(__tstate); |
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 | { |
4268f798 | 2627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2628 | _result = new wxString (wxWindow_GetTitle(_arg0)); |
2629 | ||
4268f798 | 2630 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 2661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8bf5d46e RD |
2662 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); |
2663 | ||
4268f798 | 2664 | wxPyEndAllowThreads(__tstate); |
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 | 2689 | { |
4268f798 | 2690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2691 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); |
2692 | ||
4268f798 | 2693 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 2718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2719 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); |
2720 | ||
4268f798 | 2721 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 2747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2748 | wxWindow_SetWindowStyle(_arg0,_arg1); |
2749 | ||
4268f798 | 2750 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 2776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd RD |
2777 | _result = (bool )wxWindow_Hide(_arg0); |
2778 | ||
4268f798 | 2779 | wxPyEndAllowThreads(__tstate); |
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 | 2802 | { |
4268f798 | 2803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2804 | wxWindow_InitDialog(_arg0); |
2805 | ||
4268f798 | 2806 | wxPyEndAllowThreads(__tstate); |
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 | 2831 | { |
4268f798 | 2832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2833 | _result = (bool )wxWindow_IsEnabled(_arg0); |
2834 | ||
4268f798 | 2835 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 2864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1b55cabf RD |
2865 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); |
2866 | ||
4268f798 | 2867 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 2900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1b55cabf RD |
2901 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); |
2902 | ||
4268f798 | 2903 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 2936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1b55cabf RD |
2937 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); |
2938 | ||
4268f798 | 2939 | wxPyEndAllowThreads(__tstate); |
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 | 2963 | { |
4268f798 | 2964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2965 | _result = (bool )wxWindow_IsRetained(_arg0); |
2966 | ||
4268f798 | 2967 | wxPyEndAllowThreads(__tstate); |
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 | 2991 | { |
4268f798 | 2992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2993 | _result = (bool )wxWindow_IsShown(_arg0); |
2994 | ||
4268f798 | 2995 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 3020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd RD |
3021 | _result = (bool )wxWindow_IsTopLevel(_arg0); |
3022 | ||
4268f798 | 3023 | wxPyEndAllowThreads(__tstate); |
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 | 3046 | { |
4268f798 | 3047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3048 | wxWindow_Layout(_arg0); |
3049 | ||
4268f798 | 3050 | wxPyEndAllowThreads(__tstate); |
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 | 3113 | { |
4268f798 | 3114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3115 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); |
3116 | ||
4268f798 | 3117 | wxPyEndAllowThreads(__tstate); |
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 | 3144 | { |
4268f798 | 3145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3146 | wxWindow_Lower(_arg0); |
3147 | ||
4268f798 | 3148 | wxPyEndAllowThreads(__tstate); |
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 | 3175 | { |
4268f798 | 3176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3177 | wxWindow_MakeModal(_arg0,_arg1); |
3178 | ||
4268f798 | 3179 | wxPyEndAllowThreads(__tstate); |
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 | 3205 | { |
4268f798 | 3206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3207 | wxWindow_MoveXY(_arg0,_arg1,_arg2); |
3208 | ||
4268f798 | 3209 | wxPyEndAllowThreads(__tstate); |
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 | 3241 | { |
4268f798 | 3242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3243 | wxWindow_Move(_arg0,*_arg1); |
3244 | ||
4268f798 | 3245 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 3274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1afc06c2 RD |
3275 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); |
3276 | ||
4268f798 | 3277 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 3310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1afc06c2 RD |
3311 | wxWindow_PushEventHandler(_arg0,_arg1); |
3312 | ||
4268f798 | 3313 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 3350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8bf5d46e RD |
3351 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); |
3352 | ||
4268f798 | 3353 | wxPyEndAllowThreads(__tstate); |
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 | 3394 | { |
4268f798 | 3395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8bf5d46e | 3396 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 | 3397 | |
4268f798 | 3398 | wxPyEndAllowThreads(__tstate); |
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 | 3421 | { |
4268f798 | 3422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3423 | wxWindow_Raise(_arg0); |
3424 | ||
4268f798 | 3425 | wxPyEndAllowThreads(__tstate); |
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 | 3461 | { |
4268f798 | 3462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3463 | wxWindow_Refresh(_arg0,_arg1,_arg2); |
3464 | ||
4268f798 | 3465 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 3498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
3499 | wxWindow_RefreshRect(_arg0,*_arg1); |
3500 | ||
4268f798 | 3501 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
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 | 3525 | { |
4268f798 | 3526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3527 | wxWindow_ReleaseMouse(_arg0); |
3528 | ||
4268f798 | 3529 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 3563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b7e72427 RD |
3564 | wxWindow_RemoveChild(_arg0,_arg1); |
3565 | ||
4268f798 | 3566 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 3601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd RD |
3602 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); |
3603 | ||
4268f798 | 3604 | wxPyEndAllowThreads(__tstate); |
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 | 3641 | { |
4268f798 | 3642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3643 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); |
3644 | ||
4268f798 | 3645 | wxPyEndAllowThreads(__tstate); |
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 | 3689 | { |
4268f798 | 3690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3691 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); |
3692 | ||
4268f798 | 3693 | wxPyEndAllowThreads(__tstate); |
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 | 3728 | { |
4268f798 | 3729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3730 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); |
3731 | ||
4268f798 | 3732 | wxPyEndAllowThreads(__tstate); |
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 | 3759 | { |
4268f798 | 3760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3761 | wxWindow_SetAutoLayout(_arg0,_arg1); |
3762 | ||
4268f798 | 3763 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 3789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9d8bd15f RD |
3790 | _result = (bool )wxWindow_GetAutoLayout(_arg0); |
3791 | ||
4268f798 | 3792 | wxPyEndAllowThreads(__tstate); |
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 | 3823 | { |
4268f798 | 3824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3825 | wxWindow_SetBackgroundColour(_arg0,*_arg1); |
3826 | ||
4268f798 | 3827 | wxPyEndAllowThreads(__tstate); |
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 | 3860 | { |
4268f798 | 3861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3862 | wxWindow_SetConstraints(_arg0,_arg1); |
3863 | ||
4268f798 | 3864 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 3898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
3899 | wxWindow_UnsetConstraints(_arg0,_arg1); |
3900 | ||
4268f798 | 3901 | wxPyEndAllowThreads(__tstate); |
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 | 3925 | { |
4268f798 | 3926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3927 | wxWindow_SetFocus(_arg0); |
3928 | ||
4268f798 | 3929 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 3955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
3956 | _result = (bool )wxWindow_AcceptsFocus(_arg0); |
3957 | ||
4268f798 | 3958 | wxPyEndAllowThreads(__tstate); |
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 | 3990 | { |
4268f798 | 3991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3992 | wxWindow_SetFont(_arg0,*_arg1); |
3993 | ||
4268f798 | 3994 | wxPyEndAllowThreads(__tstate); |
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 | 4026 | { |
4268f798 | 4027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4028 | wxWindow_SetForegroundColour(_arg0,*_arg1); |
4029 | ||
4268f798 | 4030 | wxPyEndAllowThreads(__tstate); |
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 | 4055 | { |
4268f798 | 4056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4057 | wxWindow_SetId(_arg0,_arg1); |
4058 | ||
4268f798 | 4059 | wxPyEndAllowThreads(__tstate); |
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 | 4103 | { |
4268f798 | 4104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4105 | wxWindow_SetName(_arg0,*_arg1); |
4106 | ||
4268f798 | 4107 | wxPyEndAllowThreads(__tstate); |
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 | 4140 | { |
4268f798 | 4141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4142 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
4143 | ||
4268f798 | 4144 | wxPyEndAllowThreads(__tstate); |
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 | 4173 | { |
4268f798 | 4174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4175 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); |
4176 | ||
4268f798 | 4177 | wxPyEndAllowThreads(__tstate); |
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 | 4206 | { |
4268f798 | 4207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4208 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
4209 | ||
4268f798 | 4210 | wxPyEndAllowThreads(__tstate); |
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 | 4244 | { |
4268f798 | 4245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4246 | wxWindow_SetSize(_arg0,*_arg1); |
4247 | ||
4268f798 | 4248 | wxPyEndAllowThreads(__tstate); |
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 | 4282 | { |
4268f798 | 4283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4284 | wxWindow_SetPosition(_arg0,*_arg1); |
4285 | ||
4268f798 | 4286 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 4322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
dbbb98cd RD |
4323 | wxWindow_SetRect(_arg0,*_arg1,_arg2); |
4324 | ||
4268f798 | 4325 | wxPyEndAllowThreads(__tstate); |
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 | 4355 | { |
4268f798 | 4356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4357 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
4358 | ||
4268f798 | 4359 | wxPyEndAllowThreads(__tstate); |
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 | 4385 | { |
4268f798 | 4386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4387 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); |
4388 | ||
4268f798 | 4389 | wxPyEndAllowThreads(__tstate); |
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 | 4421 | { |
4268f798 | 4422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4423 | wxWindow_SetClientSize(_arg0,*_arg1); |
4424 | ||
4268f798 | 4425 | wxPyEndAllowThreads(__tstate); |
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 | 4458 | { |
4268f798 | 4459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4460 | wxWindow_SetCursor(_arg0,*_arg1); |
4461 | ||
4268f798 | 4462 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 4496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1afc06c2 RD |
4497 | wxWindow_SetEventHandler(_arg0,_arg1); |
4498 | ||
4268f798 | 4499 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 4525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
83b18bab RD |
4526 | wxWindow_SetExtraStyle(_arg0,_arg1); |
4527 | ||
4268f798 | 4528 | wxPyEndAllowThreads(__tstate); |
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 | 4572 | { |
4268f798 | 4573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4574 | wxWindow_SetTitle(_arg0,*_arg1); |
4575 | ||
4268f798 | 4576 | wxPyEndAllowThreads(__tstate); |
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 | 4608 | { |
4268f798 | 4609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4610 | _result = (bool )wxWindow_Show(_arg0,_arg1); |
4611 | ||
4268f798 | 4612 | wxPyEndAllowThreads(__tstate); |
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 | 4636 | { |
4268f798 | 4637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4638 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); |
4639 | ||
4268f798 | 4640 | wxPyEndAllowThreads(__tstate); |
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 | 4664 | { |
4268f798 | 4665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4666 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); |
4667 | ||
4268f798 | 4668 | wxPyEndAllowThreads(__tstate); |
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 | 4692 | { |
4268f798 | 4693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4694 | _result = (bool )wxWindow_Validate(_arg0); |
4695 | ||
4268f798 | 4696 | wxPyEndAllowThreads(__tstate); |
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 | 4721 | { |
4268f798 | 4722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4723 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); |
4724 | ||
4268f798 | 4725 | wxPyEndAllowThreads(__tstate); |
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 | 4759 | { |
4268f798 | 4760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4761 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); |
4762 | ||
4268f798 | 4763 | wxPyEndAllowThreads(__tstate); |
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 | 4797 | { |
4268f798 | 4798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4799 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); |
4800 | ||
4268f798 | 4801 | wxPyEndAllowThreads(__tstate); |
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 | 4835 | { |
4268f798 | 4836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4837 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); |
4838 | ||
4268f798 | 4839 | wxPyEndAllowThreads(__tstate); |
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 | 4873 | { |
4268f798 | 4874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4875 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); |
4876 | ||
4268f798 | 4877 | wxPyEndAllowThreads(__tstate); |
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 | 4921 | { |
4268f798 | 4922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4923 | wxWindow_SetToolTipString(_arg0,*_arg1); |
4924 | ||
4268f798 | 4925 | wxPyEndAllowThreads(__tstate); |
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 | 4962 | { |
4268f798 | 4963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4964 | wxWindow_SetToolTip(_arg0,_arg1); |
4965 | ||
4268f798 | 4966 | wxPyEndAllowThreads(__tstate); |
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 | 4991 | { |
4268f798 | 4992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4993 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); |
4994 | ||
4268f798 | 4995 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 5028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
5029 | wxWindow_SetSizer(_arg0,_arg1); |
5030 | ||
4268f798 | 5031 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 5057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
5058 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); |
5059 | ||
4268f798 | 5060 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 5085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
5086 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); |
5087 | ||
4268f798 | 5088 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 5121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
5122 | wxWindow_SetValidator(_arg0,*_arg1); |
5123 | ||
4268f798 | 5124 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 5158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
5159 | wxWindow_SetDropTarget(_arg0,_arg1); |
5160 | ||
4268f798 | 5161 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 5188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
5189 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); |
5190 | ||
4268f798 | 5191 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 5223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
694759cf RD |
5224 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); |
5225 | ||
4268f798 | 5226 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 5260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a1df7a95 RD |
5261 | wxWindow_SetCaret(_arg0,_arg1); |
5262 | ||
4268f798 | 5263 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 5290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a1df7a95 RD |
5291 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); |
5292 | ||
4268f798 | 5293 | wxPyEndAllowThreads(__tstate); |
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 | { | |
4268f798 | 5323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3a0958b1 RD |
5324 | wxWindow_Freeze(_arg0); |
5325 | ||
4268f798 | 5326 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
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 | { | |
4268f798 | 5351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3a0958b1 RD |
5352 | wxWindow_Thaw(_arg0); |
5353 | ||
4268f798 | 5354 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
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 | { | |
4268f798 | 5379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
5380 | wxWindow_Update(_arg0); |
5381 | ||
4268f798 | 5382 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
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 | { | |
4268f798 | 5408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4f3449b4 RD |
5409 | _result = new wxString (wxWindow_GetHelpText(_arg0)); |
5410 | ||
4268f798 | 5411 | wxPyEndAllowThreads(__tstate); |
4f3449b4 RD |
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 | { | |
4268f798 | 5460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4f3449b4 RD |
5461 | wxWindow_SetHelpText(_arg0,*_arg1); |
5462 | ||
4268f798 | 5463 | wxPyEndAllowThreads(__tstate); |
4f3449b4 RD |
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 | { | |
4268f798 | 5494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c7e7022c RD |
5495 | _result = (bool )wxWindow_ScrollLines(_arg0,_arg1); |
5496 | ||
4268f798 | 5497 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
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 | { | |
4268f798 | 5523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c7e7022c RD |
5524 | _result = (bool )wxWindow_ScrollPages(_arg0,_arg1); |
5525 | ||
4268f798 | 5526 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
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 | { | |
4268f798 | 5551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c7e7022c RD |
5552 | _result = (bool )wxWindow_LineUp(_arg0); |
5553 | ||
4268f798 | 5554 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
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 | { | |
4268f798 | 5579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c7e7022c RD |
5580 | _result = (bool )wxWindow_LineDown(_arg0); |
5581 | ||
4268f798 | 5582 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
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 | { | |
4268f798 | 5607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c7e7022c RD |
5608 | _result = (bool )wxWindow_PageUp(_arg0); |
5609 | ||
4268f798 | 5610 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
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 | { | |
4268f798 | 5635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c7e7022c RD |
5636 | _result = (bool )wxWindow_PageDown(_arg0); |
5637 | ||
4268f798 | 5638 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
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 | { | |
4268f798 | 5653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
5654 | _result = (wxWindow *)wxWindow::FindFocus(); |
5655 | ||
4268f798 | 5656 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
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 | { | |
4268f798 | 5671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
5672 | _result = (int )wxWindow::NewControlId(); |
5673 | ||
4268f798 | 5674 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
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 | { | |
4268f798 | 5690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
5691 | _result = (int )wxWindow::NextControlId(_arg0); |
5692 | ||
4268f798 | 5693 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
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 | { | |
4268f798 | 5709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
5710 | _result = (int )wxWindow::PrevControlId(_arg0); |
5711 | ||
4268f798 | 5712 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
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 | { | |
4268f798 | 5745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
76bfdc78 RD |
5746 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); |
5747 | ||
4268f798 | 5748 | wxPyEndAllowThreads(__tstate); |
76bfdc78 RD |
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 | { | |
4268f798 | 5775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
900d9886 RD |
5776 | _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0); |
5777 | ||
4268f798 | 5778 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
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 | ||
07c99b26 RD |
5790 | #define wxWindow_OnPaint(_swigobj,_swigarg0) (_swigobj->OnPaint(_swigarg0)) |
5791 | static PyObject *_wrap_wxWindow_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
78e8819c RD |
5792 | PyObject * _resultobj; |
5793 | wxWindow * _arg0; | |
5794 | wxPaintEvent * _arg1; | |
5795 | PyObject * _argo0 = 0; | |
5796 | PyObject * _argo1 = 0; | |
5797 | char *_kwnames[] = { "self","event", NULL }; | |
5798 | ||
5799 | self = self; | |
07c99b26 | 5800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_OnPaint",_kwnames,&_argo0,&_argo1)) |
78e8819c RD |
5801 | return NULL; |
5802 | if (_argo0) { | |
5803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
07c99b26 | 5805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_OnPaint. Expected _wxWindow_p."); |
78e8819c RD |
5806 | return NULL; |
5807 | } | |
5808 | } | |
5809 | if (_argo1) { | |
5810 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5811 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPaintEvent_p")) { | |
07c99b26 | 5812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_OnPaint. Expected _wxPaintEvent_p."); |
78e8819c RD |
5813 | return NULL; |
5814 | } | |
5815 | } | |
5816 | { | |
4268f798 | 5817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
07c99b26 | 5818 | wxWindow_OnPaint(_arg0,*_arg1); |
78e8819c | 5819 | |
4268f798 | 5820 | wxPyEndAllowThreads(__tstate); |
78e8819c RD |
5821 | if (PyErr_Occurred()) return NULL; |
5822 | } Py_INCREF(Py_None); | |
5823 | _resultobj = Py_None; | |
5824 | return _resultobj; | |
5825 | } | |
5826 | ||
5a2930ab RD |
5827 | #define wxWindow_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
5828 | static PyObject *_wrap_wxWindow_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5829 | PyObject * _resultobj; | |
5830 | wxButton * _result; | |
5831 | wxWindow * _arg0; | |
5832 | PyObject * _argo0 = 0; | |
5833 | char *_kwnames[] = { "self", NULL }; | |
5834 | ||
5835 | self = self; | |
5836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDefaultItem",_kwnames,&_argo0)) | |
5837 | return NULL; | |
5838 | if (_argo0) { | |
5839 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5840 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDefaultItem. Expected _wxWindow_p."); | |
5842 | return NULL; | |
5843 | } | |
5844 | } | |
5845 | { | |
5846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5847 | _result = (wxButton *)wxWindow_GetDefaultItem(_arg0); | |
5848 | ||
5849 | wxPyEndAllowThreads(__tstate); | |
5850 | if (PyErr_Occurred()) return NULL; | |
5851 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5852 | return _resultobj; | |
5853 | } | |
5854 | ||
5855 | #define wxWindow_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
5856 | static PyObject *_wrap_wxWindow_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5857 | PyObject * _resultobj; | |
5858 | wxWindow * _arg0; | |
5859 | wxButton * _arg1; | |
5860 | PyObject * _argo0 = 0; | |
5861 | PyObject * _argo1 = 0; | |
5862 | char *_kwnames[] = { "self","btn", NULL }; | |
5863 | ||
5864 | self = self; | |
5865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDefaultItem",_kwnames,&_argo0,&_argo1)) | |
5866 | return NULL; | |
5867 | if (_argo0) { | |
5868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
5871 | return NULL; | |
5872 | } | |
5873 | } | |
5874 | if (_argo1) { | |
5875 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5876 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
5877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDefaultItem. Expected _wxButton_p."); | |
5878 | return NULL; | |
5879 | } | |
5880 | } | |
5881 | { | |
5882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5883 | wxWindow_SetDefaultItem(_arg0,_arg1); | |
5884 | ||
5885 | wxPyEndAllowThreads(__tstate); | |
5886 | if (PyErr_Occurred()) return NULL; | |
5887 | } Py_INCREF(Py_None); | |
5888 | _resultobj = Py_None; | |
5889 | return _resultobj; | |
5890 | } | |
5891 | ||
8ab979d7 RD |
5892 | static void *SwigwxPanelTowxWindow(void *ptr) { |
5893 | wxPanel *src; | |
5894 | wxWindow *dest; | |
5895 | src = (wxPanel *) ptr; | |
5896 | dest = (wxWindow *) src; | |
5897 | return (void *) dest; | |
5898 | } | |
5899 | ||
5900 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
5901 | wxPanel *src; | |
5902 | wxEvtHandler *dest; | |
5903 | src = (wxPanel *) ptr; | |
5904 | dest = (wxEvtHandler *) src; | |
5905 | return (void *) dest; | |
5906 | } | |
5907 | ||
9416aa89 RD |
5908 | static void *SwigwxPanelTowxObject(void *ptr) { |
5909 | wxPanel *src; | |
5910 | wxObject *dest; | |
5911 | src = (wxPanel *) ptr; | |
5912 | dest = (wxObject *) src; | |
5913 | return (void *) dest; | |
5914 | } | |
5915 | ||
8ab979d7 | 5916 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 5917 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5918 | PyObject * _resultobj; |
5919 | wxPanel * _result; | |
5920 | wxWindow * _arg0; | |
5921 | wxWindowID _arg1; | |
e508a2b6 RD |
5922 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5923 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5924 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
5925 | char * _arg5 = (char *) "panel"; | |
5926 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5927 | wxPoint temp; |
5928 | PyObject * _obj2 = 0; | |
5929 | wxSize temp0; | |
5930 | PyObject * _obj3 = 0; | |
efc5f224 | 5931 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5932 | char _ptemp[128]; |
5933 | ||
5934 | self = self; | |
2f90df85 | 5935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5936 | return NULL; |
1d99702e RD |
5937 | if (_argo0) { |
5938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
5941 | return NULL; | |
5942 | } | |
5943 | } | |
2f90df85 RD |
5944 | if (_obj2) |
5945 | { | |
5946 | _arg2 = &temp; | |
5947 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5948 | return NULL; |
2f90df85 RD |
5949 | } |
5950 | if (_obj3) | |
5951 | { | |
5952 | _arg3 = &temp0; | |
5953 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5954 | return NULL; |
2f90df85 | 5955 | } |
cf694132 | 5956 | { |
4268f798 | 5957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5958 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
5959 | ||
4268f798 | 5960 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5961 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5962 | } if (_result) { |
5963 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5964 | _resultobj = Py_BuildValue("s",_ptemp); | |
5965 | } else { | |
5966 | Py_INCREF(Py_None); | |
5967 | _resultobj = Py_None; | |
5968 | } | |
8ab979d7 RD |
5969 | return _resultobj; |
5970 | } | |
5971 | ||
09f3d4e6 RD |
5972 | #define new_wxPrePanel() (new wxPanel()) |
5973 | static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5974 | PyObject * _resultobj; | |
5975 | wxPanel * _result; | |
5976 | char *_kwnames[] = { NULL }; | |
5977 | char _ptemp[128]; | |
5978 | ||
5979 | self = self; | |
5980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames)) | |
5981 | return NULL; | |
5982 | { | |
4268f798 | 5983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
5984 | _result = (wxPanel *)new_wxPrePanel(); |
5985 | ||
4268f798 | 5986 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5987 | if (PyErr_Occurred()) return NULL; |
5988 | } if (_result) { | |
5989 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5990 | _resultobj = Py_BuildValue("s",_ptemp); | |
5991 | } else { | |
5992 | Py_INCREF(Py_None); | |
5993 | _resultobj = Py_None; | |
5994 | } | |
5995 | return _resultobj; | |
5996 | } | |
5997 | ||
5998 | #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
5999 | static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6000 | PyObject * _resultobj; | |
6001 | bool _result; | |
6002 | wxPanel * _arg0; | |
6003 | wxWindow * _arg1; | |
6004 | wxWindowID _arg2; | |
6005 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6006 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6007 | long _arg5 = (long ) wxTAB_TRAVERSAL; | |
6008 | char * _arg6 = (char *) "panel"; | |
6009 | PyObject * _argo0 = 0; | |
6010 | PyObject * _argo1 = 0; | |
6011 | wxPoint temp; | |
6012 | PyObject * _obj3 = 0; | |
6013 | wxSize temp0; | |
6014 | PyObject * _obj4 = 0; | |
6015 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
6016 | ||
6017 | self = self; | |
6018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
6019 | return NULL; | |
6020 | if (_argo0) { | |
6021 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6022 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
6023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p."); | |
6024 | return NULL; | |
6025 | } | |
6026 | } | |
6027 | if (_argo1) { | |
6028 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6029 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p."); | |
6031 | return NULL; | |
6032 | } | |
6033 | } | |
6034 | if (_obj3) | |
6035 | { | |
6036 | _arg3 = &temp; | |
6037 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6038 | return NULL; | |
6039 | } | |
6040 | if (_obj4) | |
6041 | { | |
6042 | _arg4 = &temp0; | |
6043 | if (! wxSize_helper(_obj4, &_arg4)) | |
6044 | return NULL; | |
6045 | } | |
6046 | { | |
4268f798 | 6047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
6048 | _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
6049 | ||
4268f798 | 6050 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6051 | if (PyErr_Occurred()) return NULL; |
6052 | } _resultobj = Py_BuildValue("i",_result); | |
6053 | return _resultobj; | |
6054 | } | |
6055 | ||
8ab979d7 | 6056 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 6057 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6058 | PyObject * _resultobj; |
6059 | wxPanel * _arg0; | |
1d99702e | 6060 | PyObject * _argo0 = 0; |
efc5f224 | 6061 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6062 | |
6063 | self = self; | |
efc5f224 | 6064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 6065 | return NULL; |
1d99702e RD |
6066 | if (_argo0) { |
6067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
6069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
6070 | return NULL; | |
6071 | } | |
6072 | } | |
cf694132 | 6073 | { |
4268f798 | 6074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6075 | wxPanel_InitDialog(_arg0); |
6076 | ||
4268f798 | 6077 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6078 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6079 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6080 | _resultobj = Py_None; |
6081 | return _resultobj; | |
6082 | } | |
6083 | ||
bb0054cd RD |
6084 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
6085 | wxScrolledWindow *src; | |
6086 | wxPanel *dest; | |
6087 | src = (wxScrolledWindow *) ptr; | |
6088 | dest = (wxPanel *) src; | |
6089 | return (void *) dest; | |
6090 | } | |
6091 | ||
8ab979d7 RD |
6092 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
6093 | wxScrolledWindow *src; | |
6094 | wxWindow *dest; | |
6095 | src = (wxScrolledWindow *) ptr; | |
6096 | dest = (wxWindow *) src; | |
6097 | return (void *) dest; | |
6098 | } | |
6099 | ||
6100 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
6101 | wxScrolledWindow *src; | |
6102 | wxEvtHandler *dest; | |
6103 | src = (wxScrolledWindow *) ptr; | |
6104 | dest = (wxEvtHandler *) src; | |
6105 | return (void *) dest; | |
6106 | } | |
6107 | ||
9416aa89 RD |
6108 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
6109 | wxScrolledWindow *src; | |
6110 | wxObject *dest; | |
6111 | src = (wxScrolledWindow *) ptr; | |
6112 | dest = (wxObject *) src; | |
6113 | return (void *) dest; | |
6114 | } | |
6115 | ||
8ab979d7 | 6116 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6117 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6118 | PyObject * _resultobj; |
6119 | wxScrolledWindow * _result; | |
6120 | wxWindow * _arg0; | |
1d99702e | 6121 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
6122 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6123 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
6124 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
6125 | char * _arg5 = (char *) "scrolledWindow"; | |
6126 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6127 | wxPoint temp; |
6128 | PyObject * _obj2 = 0; | |
6129 | wxSize temp0; | |
6130 | PyObject * _obj3 = 0; | |
efc5f224 | 6131 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6132 | char _ptemp[128]; |
6133 | ||
6134 | self = self; | |
2f90df85 | 6135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 6136 | return NULL; |
1d99702e RD |
6137 | if (_argo0) { |
6138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
6141 | return NULL; | |
6142 | } | |
6143 | } | |
2f90df85 RD |
6144 | if (_obj2) |
6145 | { | |
6146 | _arg2 = &temp; | |
6147 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6148 | return NULL; |
2f90df85 RD |
6149 | } |
6150 | if (_obj3) | |
6151 | { | |
6152 | _arg3 = &temp0; | |
6153 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6154 | return NULL; |
2f90df85 | 6155 | } |
cf694132 | 6156 | { |
4268f798 | 6157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6158 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
6159 | ||
4268f798 | 6160 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6161 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6162 | } if (_result) { |
6163 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6164 | _resultobj = Py_BuildValue("s",_ptemp); | |
6165 | } else { | |
6166 | Py_INCREF(Py_None); | |
6167 | _resultobj = Py_None; | |
6168 | } | |
8ab979d7 RD |
6169 | return _resultobj; |
6170 | } | |
6171 | ||
09f3d4e6 RD |
6172 | #define new_wxPreScrolledWindow() (new wxScrolledWindow()) |
6173 | static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6174 | PyObject * _resultobj; | |
6175 | wxScrolledWindow * _result; | |
6176 | char *_kwnames[] = { NULL }; | |
6177 | char _ptemp[128]; | |
6178 | ||
6179 | self = self; | |
6180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames)) | |
6181 | return NULL; | |
6182 | { | |
4268f798 | 6183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
6184 | _result = (wxScrolledWindow *)new_wxPreScrolledWindow(); |
6185 | ||
4268f798 | 6186 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6187 | if (PyErr_Occurred()) return NULL; |
6188 | } if (_result) { | |
6189 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6190 | _resultobj = Py_BuildValue("s",_ptemp); | |
6191 | } else { | |
6192 | Py_INCREF(Py_None); | |
6193 | _resultobj = Py_None; | |
6194 | } | |
6195 | return _resultobj; | |
6196 | } | |
6197 | ||
6198 | #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6199 | static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6200 | PyObject * _resultobj; | |
6201 | bool _result; | |
6202 | wxScrolledWindow * _arg0; | |
6203 | wxWindow * _arg1; | |
6204 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6205 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6206 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6207 | long _arg5 = (long ) wxHSCROLL|wxVSCROLL; | |
6208 | char * _arg6 = (char *) "scrolledWindow"; | |
6209 | PyObject * _argo0 = 0; | |
6210 | PyObject * _argo1 = 0; | |
6211 | wxPoint temp; | |
6212 | PyObject * _obj3 = 0; | |
6213 | wxSize temp0; | |
6214 | PyObject * _obj4 = 0; | |
6215 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
6216 | ||
6217 | self = self; | |
6218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
6219 | return NULL; | |
6220 | if (_argo0) { | |
6221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p."); | |
6224 | return NULL; | |
6225 | } | |
6226 | } | |
6227 | if (_argo1) { | |
6228 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6229 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p."); | |
6231 | return NULL; | |
6232 | } | |
6233 | } | |
6234 | if (_obj3) | |
6235 | { | |
6236 | _arg3 = &temp; | |
6237 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6238 | return NULL; | |
6239 | } | |
6240 | if (_obj4) | |
6241 | { | |
6242 | _arg4 = &temp0; | |
6243 | if (! wxSize_helper(_obj4, &_arg4)) | |
6244 | return NULL; | |
6245 | } | |
6246 | { | |
4268f798 | 6247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
6248 | _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
6249 | ||
4268f798 | 6250 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6251 | if (PyErr_Occurred()) return NULL; |
6252 | } _resultobj = Py_BuildValue("i",_result); | |
6253 | return _resultobj; | |
6254 | } | |
6255 | ||
8ab979d7 | 6256 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) |
efc5f224 | 6257 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6258 | PyObject * _resultobj; |
6259 | wxScrolledWindow * _arg0; | |
6260 | bool _arg1; | |
6261 | bool _arg2; | |
1d99702e | 6262 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6263 | int tempbool1; |
6264 | int tempbool2; | |
efc5f224 | 6265 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
6266 | |
6267 | self = self; | |
efc5f224 | 6268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 6269 | return NULL; |
1d99702e RD |
6270 | if (_argo0) { |
6271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
6274 | return NULL; | |
6275 | } | |
6276 | } | |
6277 | _arg1 = (bool ) tempbool1; | |
6278 | _arg2 = (bool ) tempbool2; | |
cf694132 | 6279 | { |
4268f798 | 6280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6281 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); |
6282 | ||
4268f798 | 6283 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6284 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6285 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6286 | _resultobj = Py_None; |
6287 | return _resultobj; | |
6288 | } | |
6289 | ||
b7e72427 RD |
6290 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
6291 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6292 | PyObject * _resultobj; | |
6293 | int _result; | |
6294 | wxScrolledWindow * _arg0; | |
6295 | int _arg1; | |
6296 | PyObject * _argo0 = 0; | |
6297 | char *_kwnames[] = { "self","orient", NULL }; | |
6298 | ||
6299 | self = self; | |
6300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6301 | return NULL; | |
6302 | if (_argo0) { | |
6303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6306 | return NULL; | |
6307 | } | |
6308 | } | |
6309 | { | |
4268f798 | 6310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b7e72427 RD |
6311 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); |
6312 | ||
4268f798 | 6313 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6314 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6315 | } _resultobj = Py_BuildValue("i",_result); |
6316 | return _resultobj; | |
6317 | } | |
6318 | ||
8ab979d7 | 6319 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 6320 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6321 | PyObject * _resultobj; |
6322 | wxScrolledWindow * _arg0; | |
6323 | int * _arg1; | |
6324 | int temp; | |
6325 | int * _arg2; | |
6326 | int temp0; | |
1d99702e | 6327 | PyObject * _argo0 = 0; |
efc5f224 | 6328 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6329 | |
6330 | self = self; | |
6331 | { | |
6332 | _arg1 = &temp; | |
6333 | } | |
6334 | { | |
6335 | _arg2 = &temp0; | |
6336 | } | |
efc5f224 | 6337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 6338 | return NULL; |
1d99702e RD |
6339 | if (_argo0) { |
6340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
6343 | return NULL; | |
6344 | } | |
6345 | } | |
cf694132 | 6346 | { |
4268f798 | 6347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6348 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); |
6349 | ||
4268f798 | 6350 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6351 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6352 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6353 | _resultobj = Py_None; |
6354 | { | |
6355 | PyObject *o; | |
6356 | o = PyInt_FromLong((long) (*_arg1)); | |
6357 | _resultobj = t_output_helper(_resultobj, o); | |
6358 | } | |
6359 | { | |
6360 | PyObject *o; | |
6361 | o = PyInt_FromLong((long) (*_arg2)); | |
6362 | _resultobj = t_output_helper(_resultobj, o); | |
6363 | } | |
6364 | return _resultobj; | |
6365 | } | |
6366 | ||
b7e72427 RD |
6367 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
6368 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6369 | PyObject * _resultobj; | |
6370 | wxWindow * _result; | |
6371 | wxScrolledWindow * _arg0; | |
6372 | PyObject * _argo0 = 0; | |
6373 | char *_kwnames[] = { "self", NULL }; | |
b7e72427 RD |
6374 | |
6375 | self = self; | |
6376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6377 | return NULL; | |
6378 | if (_argo0) { | |
6379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6382 | return NULL; | |
6383 | } | |
6384 | } | |
6385 | { | |
4268f798 | 6386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b7e72427 RD |
6387 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); |
6388 | ||
4268f798 | 6389 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6390 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6391 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b7e72427 RD |
6392 | return _resultobj; |
6393 | } | |
6394 | ||
8ab979d7 | 6395 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) |
efc5f224 | 6396 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6397 | PyObject * _resultobj; |
6398 | wxScrolledWindow * _arg0; | |
6399 | int * _arg1; | |
6400 | int temp; | |
6401 | int * _arg2; | |
6402 | int temp0; | |
1d99702e | 6403 | PyObject * _argo0 = 0; |
efc5f224 | 6404 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6405 | |
6406 | self = self; | |
6407 | { | |
6408 | _arg1 = &temp; | |
6409 | } | |
6410 | { | |
6411 | _arg2 = &temp0; | |
6412 | } | |
efc5f224 | 6413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
8ab979d7 | 6414 | return NULL; |
1d99702e RD |
6415 | if (_argo0) { |
6416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
6419 | return NULL; | |
6420 | } | |
6421 | } | |
cf694132 | 6422 | { |
4268f798 | 6423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6424 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); |
6425 | ||
4268f798 | 6426 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6427 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6428 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6429 | _resultobj = Py_None; |
6430 | { | |
6431 | PyObject *o; | |
6432 | o = PyInt_FromLong((long) (*_arg1)); | |
6433 | _resultobj = t_output_helper(_resultobj, o); | |
6434 | } | |
6435 | { | |
6436 | PyObject *o; | |
6437 | o = PyInt_FromLong((long) (*_arg2)); | |
6438 | _resultobj = t_output_helper(_resultobj, o); | |
6439 | } | |
6440 | return _resultobj; | |
6441 | } | |
6442 | ||
6443 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
efc5f224 | 6444 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6445 | PyObject * _resultobj; |
6446 | bool _result; | |
6447 | wxScrolledWindow * _arg0; | |
1d99702e | 6448 | PyObject * _argo0 = 0; |
efc5f224 | 6449 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6450 | |
6451 | self = self; | |
efc5f224 | 6452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 6453 | return NULL; |
1d99702e RD |
6454 | if (_argo0) { |
6455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
6458 | return NULL; | |
6459 | } | |
6460 | } | |
cf694132 | 6461 | { |
4268f798 | 6462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6463 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); |
6464 | ||
4268f798 | 6465 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6466 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6467 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6468 | return _resultobj; |
6469 | } | |
6470 | ||
6471 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 6472 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6473 | PyObject * _resultobj; |
6474 | wxScrolledWindow * _arg0; | |
6475 | wxDC * _arg1; | |
1d99702e RD |
6476 | PyObject * _argo0 = 0; |
6477 | PyObject * _argo1 = 0; | |
efc5f224 | 6478 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
6479 | |
6480 | self = self; | |
efc5f224 | 6481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
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_PrepareDC. Expected _wxScrolledWindow_p."); |
6487 | return NULL; | |
6488 | } | |
6489 | } | |
1d99702e RD |
6490 | if (_argo1) { |
6491 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6492 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
6493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
6494 | return NULL; | |
6495 | } | |
6496 | } | |
cf694132 | 6497 | { |
4268f798 | 6498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6499 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); |
6500 | ||
4268f798 | 6501 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6502 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6503 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6504 | _resultobj = Py_None; |
6505 | return _resultobj; | |
6506 | } | |
6507 | ||
6508 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 6509 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6510 | PyObject * _resultobj; |
6511 | wxScrolledWindow * _arg0; | |
6512 | int _arg1; | |
6513 | int _arg2; | |
1d99702e | 6514 | PyObject * _argo0 = 0; |
efc5f224 | 6515 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6516 | |
6517 | self = self; | |
efc5f224 | 6518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6519 | return NULL; |
1d99702e RD |
6520 | if (_argo0) { |
6521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
6524 | return NULL; | |
6525 | } | |
6526 | } | |
cf694132 | 6527 | { |
4268f798 | 6528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6529 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); |
6530 | ||
4268f798 | 6531 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6532 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6533 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6534 | _resultobj = Py_None; |
6535 | return _resultobj; | |
6536 | } | |
6537 | ||
f6bcfd97 | 6538 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6539 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6540 | PyObject * _resultobj; |
6541 | wxScrolledWindow * _arg0; | |
6542 | int _arg1; | |
6543 | int _arg2; | |
6544 | int _arg3; | |
6545 | int _arg4; | |
1d99702e RD |
6546 | int _arg5 = (int ) 0; |
6547 | int _arg6 = (int ) 0; | |
f6bcfd97 | 6548 | int _arg7 = (int ) FALSE; |
1d99702e | 6549 | PyObject * _argo0 = 0; |
f6bcfd97 | 6550 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
6551 | |
6552 | self = self; | |
f6bcfd97 | 6553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 6554 | return NULL; |
1d99702e RD |
6555 | if (_argo0) { |
6556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
6559 | return NULL; | |
6560 | } | |
6561 | } | |
cf694132 | 6562 | { |
4268f798 | 6563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 6564 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 | 6565 | |
4268f798 | 6566 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6567 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6568 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6569 | _resultobj = Py_None; |
6570 | return _resultobj; | |
6571 | } | |
6572 | ||
b7e72427 RD |
6573 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
6574 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6575 | PyObject * _resultobj; | |
6576 | wxScrolledWindow * _arg0; | |
6577 | int _arg1; | |
6578 | int _arg2; | |
6579 | PyObject * _argo0 = 0; | |
6580 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6581 | ||
6582 | self = self; | |
6583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6584 | return NULL; | |
6585 | if (_argo0) { | |
6586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6589 | return NULL; | |
6590 | } | |
6591 | } | |
6592 | { | |
4268f798 | 6593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b7e72427 RD |
6594 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); |
6595 | ||
4268f798 | 6596 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6597 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6598 | } Py_INCREF(Py_None); |
6599 | _resultobj = Py_None; | |
6600 | return _resultobj; | |
6601 | } | |
6602 | ||
eb715945 RD |
6603 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
6604 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6605 | PyObject * _resultobj; | |
6606 | wxScrolledWindow * _arg0; | |
6607 | wxWindow * _arg1; | |
6608 | PyObject * _argo0 = 0; | |
6609 | PyObject * _argo1 = 0; | |
6610 | char *_kwnames[] = { "self","window", NULL }; | |
6611 | ||
6612 | self = self; | |
6613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6614 | return NULL; | |
6615 | if (_argo0) { | |
6616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6619 | return NULL; | |
6620 | } | |
6621 | } | |
6622 | if (_argo1) { | |
6623 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6624 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6626 | return NULL; | |
6627 | } | |
6628 | } | |
6629 | { | |
4268f798 | 6630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eb715945 RD |
6631 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); |
6632 | ||
4268f798 | 6633 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6634 | if (PyErr_Occurred()) return NULL; |
eb715945 RD |
6635 | } Py_INCREF(Py_None); |
6636 | _resultobj = Py_None; | |
6637 | return _resultobj; | |
6638 | } | |
6639 | ||
4c9993c3 RD |
6640 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
6641 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6642 | PyObject * _resultobj; | |
6643 | wxScrolledWindow * _arg0; | |
6644 | int * _arg1; | |
6645 | int temp; | |
6646 | int * _arg2; | |
6647 | int temp0; | |
6648 | PyObject * _argo0 = 0; | |
6649 | char *_kwnames[] = { "self", NULL }; | |
6650 | ||
6651 | self = self; | |
6652 | { | |
6653 | _arg1 = &temp; | |
6654 | } | |
6655 | { | |
6656 | _arg2 = &temp0; | |
6657 | } | |
6658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6659 | return NULL; | |
6660 | if (_argo0) { | |
6661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6664 | return NULL; | |
6665 | } | |
6666 | } | |
6667 | { | |
4268f798 | 6668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4c9993c3 RD |
6669 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); |
6670 | ||
4268f798 | 6671 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6672 | if (PyErr_Occurred()) return NULL; |
4c9993c3 RD |
6673 | } Py_INCREF(Py_None); |
6674 | _resultobj = Py_None; | |
6675 | { | |
6676 | PyObject *o; | |
6677 | o = PyInt_FromLong((long) (*_arg1)); | |
6678 | _resultobj = t_output_helper(_resultobj, o); | |
6679 | } | |
6680 | { | |
6681 | PyObject *o; | |
6682 | o = PyInt_FromLong((long) (*_arg2)); | |
6683 | _resultobj = t_output_helper(_resultobj, o); | |
6684 | } | |
6685 | return _resultobj; | |
6686 | } | |
6687 | ||
9d8bd15f RD |
6688 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6689 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6690 | PyObject * _resultobj; | |
6691 | wxScrolledWindow * _arg0; | |
6692 | int _arg1; | |
6693 | int _arg2; | |
6694 | int * _arg3; | |
6695 | int temp; | |
6696 | int * _arg4; | |
6697 | int temp0; | |
6698 | PyObject * _argo0 = 0; | |
6699 | char *_kwnames[] = { "self","x","y", NULL }; | |
6700 | ||
6701 | self = self; | |
6702 | { | |
6703 | _arg3 = &temp; | |
6704 | } | |
6705 | { | |
6706 | _arg4 = &temp0; | |
6707 | } | |
6708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6709 | return NULL; | |
6710 | if (_argo0) { | |
6711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
6714 | return NULL; | |
6715 | } | |
6716 | } | |
6717 | { | |
4268f798 | 6718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9d8bd15f RD |
6719 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); |
6720 | ||
4268f798 | 6721 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6722 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6723 | } Py_INCREF(Py_None); |
6724 | _resultobj = Py_None; | |
6725 | { | |
6726 | PyObject *o; | |
6727 | o = PyInt_FromLong((long) (*_arg3)); | |
6728 | _resultobj = t_output_helper(_resultobj, o); | |
6729 | } | |
6730 | { | |
6731 | PyObject *o; | |
6732 | o = PyInt_FromLong((long) (*_arg4)); | |
6733 | _resultobj = t_output_helper(_resultobj, o); | |
6734 | } | |
6735 | return _resultobj; | |
6736 | } | |
6737 | ||
6738 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6739 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6740 | PyObject * _resultobj; | |
6741 | wxScrolledWindow * _arg0; | |
6742 | int _arg1; | |
6743 | int _arg2; | |
6744 | int * _arg3; | |
6745 | int temp; | |
6746 | int * _arg4; | |
6747 | int temp0; | |
6748 | PyObject * _argo0 = 0; | |
6749 | char *_kwnames[] = { "self","x","y", NULL }; | |
6750 | ||
6751 | self = self; | |
6752 | { | |
6753 | _arg3 = &temp; | |
6754 | } | |
6755 | { | |
6756 | _arg4 = &temp0; | |
6757 | } | |
6758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6759 | return NULL; | |
6760 | if (_argo0) { | |
6761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
6764 | return NULL; | |
6765 | } | |
6766 | } | |
6767 | { | |
4268f798 | 6768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9d8bd15f RD |
6769 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); |
6770 | ||
4268f798 | 6771 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6772 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6773 | } Py_INCREF(Py_None); |
6774 | _resultobj = Py_None; | |
6775 | { | |
6776 | PyObject *o; | |
6777 | o = PyInt_FromLong((long) (*_arg3)); | |
6778 | _resultobj = t_output_helper(_resultobj, o); | |
6779 | } | |
6780 | { | |
6781 | PyObject *o; | |
6782 | o = PyInt_FromLong((long) (*_arg4)); | |
6783 | _resultobj = t_output_helper(_resultobj, o); | |
6784 | } | |
6785 | return _resultobj; | |
6786 | } | |
6787 | ||
d1679124 RD |
6788 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
6789 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6790 | PyObject * _resultobj; | |
6791 | wxScrolledWindow * _arg0; | |
6792 | double _arg1; | |
6793 | double _arg2; | |
6794 | PyObject * _argo0 = 0; | |
6795 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
6796 | ||
6797 | self = self; | |
6798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6799 | return NULL; | |
6800 | if (_argo0) { | |
6801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
6804 | return NULL; | |
6805 | } | |
6806 | } | |
6807 | { | |
4268f798 | 6808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d1679124 RD |
6809 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); |
6810 | ||
4268f798 | 6811 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6812 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6813 | } Py_INCREF(Py_None); |
6814 | _resultobj = Py_None; | |
6815 | return _resultobj; | |
6816 | } | |
6817 | ||
6818 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
6819 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6820 | PyObject * _resultobj; | |
6821 | double _result; | |
6822 | wxScrolledWindow * _arg0; | |
6823 | PyObject * _argo0 = 0; | |
6824 | char *_kwnames[] = { "self", NULL }; | |
6825 | ||
6826 | self = self; | |
6827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
6828 | return NULL; | |
6829 | if (_argo0) { | |
6830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
6833 | return NULL; | |
6834 | } | |
6835 | } | |
6836 | { | |
4268f798 | 6837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d1679124 RD |
6838 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); |
6839 | ||
4268f798 | 6840 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6841 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6842 | } _resultobj = Py_BuildValue("d",_result); |
6843 | return _resultobj; | |
6844 | } | |
6845 | ||
6846 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
6847 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6848 | PyObject * _resultobj; | |
6849 | double _result; | |
6850 | wxScrolledWindow * _arg0; | |
6851 | PyObject * _argo0 = 0; | |
6852 | char *_kwnames[] = { "self", NULL }; | |
6853 | ||
6854 | self = self; | |
6855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
6856 | return NULL; | |
6857 | if (_argo0) { | |
6858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
6861 | return NULL; | |
6862 | } | |
6863 | } | |
6864 | { | |
4268f798 | 6865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d1679124 RD |
6866 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); |
6867 | ||
4268f798 | 6868 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6869 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6870 | } _resultobj = Py_BuildValue("d",_result); |
6871 | return _resultobj; | |
6872 | } | |
6873 | ||
6874 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
6875 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6876 | PyObject * _resultobj; | |
6877 | wxScrolledWindow * _arg0; | |
6878 | PyObject * _argo0 = 0; | |
6879 | char *_kwnames[] = { "self", NULL }; | |
6880 | ||
6881 | self = self; | |
6882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
6883 | return NULL; | |
6884 | if (_argo0) { | |
6885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
6888 | return NULL; | |
6889 | } | |
6890 | } | |
6891 | { | |
4268f798 | 6892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d1679124 RD |
6893 | wxScrolledWindow_AdjustScrollbars(_arg0); |
6894 | ||
4268f798 | 6895 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6896 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6897 | } Py_INCREF(Py_None); |
6898 | _resultobj = Py_None; | |
6899 | return _resultobj; | |
6900 | } | |
6901 | ||
8ab979d7 RD |
6902 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
6903 | wxMenu *src; | |
6904 | wxEvtHandler *dest; | |
6905 | src = (wxMenu *) ptr; | |
6906 | dest = (wxEvtHandler *) src; | |
6907 | return (void *) dest; | |
6908 | } | |
6909 | ||
9416aa89 RD |
6910 | static void *SwigwxMenuTowxObject(void *ptr) { |
6911 | wxMenu *src; | |
6912 | wxObject *dest; | |
6913 | src = (wxMenu *) ptr; | |
6914 | dest = (wxObject *) src; | |
6915 | return (void *) dest; | |
6916 | } | |
6917 | ||
8bf5d46e | 6918 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) |
efc5f224 | 6919 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6920 | PyObject * _resultobj; |
6921 | wxMenu * _result; | |
1d99702e RD |
6922 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
6923 | long _arg1 = (long ) 0; | |
8ab979d7 | 6924 | PyObject * _obj0 = 0; |
efc5f224 | 6925 | char *_kwnames[] = { "title","style", NULL }; |
8ab979d7 RD |
6926 | char _ptemp[128]; |
6927 | ||
6928 | self = self; | |
efc5f224 | 6929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
8ab979d7 RD |
6930 | return NULL; |
6931 | if (_obj0) | |
6932 | { | |
185d7c3e RD |
6933 | #if PYTHON_API_VERSION >= 1009 |
6934 | char* tmpPtr; int tmpSize; | |
6935 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 6936 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6937 | return NULL; |
6938 | } | |
6939 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
6940 | return NULL; | |
6941 | _arg0 = new wxString(tmpPtr, tmpSize); | |
6942 | #else | |
8ab979d7 RD |
6943 | if (!PyString_Check(_obj0)) { |
6944 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6945 | return NULL; | |
6946 | } | |
185d7c3e RD |
6947 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
6948 | #endif | |
8ab979d7 | 6949 | } |
cf694132 | 6950 | { |
4268f798 | 6951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8bf5d46e | 6952 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
cf694132 | 6953 | |
4268f798 | 6954 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6955 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6956 | } if (_result) { |
6957 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
6958 | _resultobj = Py_BuildValue("s",_ptemp); | |
6959 | } else { | |
6960 | Py_INCREF(Py_None); | |
6961 | _resultobj = Py_None; | |
6962 | } | |
8ab979d7 RD |
6963 | { |
6964 | if (_obj0) | |
6965 | delete _arg0; | |
6966 | } | |
6967 | return _resultobj; | |
6968 | } | |
6969 | ||
6970 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 6971 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6972 | PyObject * _resultobj; |
6973 | wxMenu * _arg0; | |
6974 | int _arg1; | |
6975 | wxString * _arg2; | |
1d99702e | 6976 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; |
926bb76c | 6977 | int _arg4 = (int ) FALSE; |
1d99702e | 6978 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6979 | PyObject * _obj2 = 0; |
6980 | PyObject * _obj3 = 0; | |
efc5f224 | 6981 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; |
8ab979d7 RD |
6982 | |
6983 | self = self; | |
926bb76c | 6984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
8ab979d7 | 6985 | return NULL; |
1d99702e RD |
6986 | if (_argo0) { |
6987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
6989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); |
6990 | return NULL; | |
6991 | } | |
6992 | } | |
6993 | { | |
185d7c3e RD |
6994 | #if PYTHON_API_VERSION >= 1009 |
6995 | char* tmpPtr; int tmpSize; | |
6996 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 6997 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6998 | return NULL; |
6999 | } | |
7000 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7001 | return NULL; | |
7002 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7003 | #else | |
8ab979d7 RD |
7004 | if (!PyString_Check(_obj2)) { |
7005 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7006 | return NULL; | |
7007 | } | |
185d7c3e RD |
7008 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7009 | #endif | |
8ab979d7 RD |
7010 | } |
7011 | if (_obj3) | |
7012 | { | |
185d7c3e RD |
7013 | #if PYTHON_API_VERSION >= 1009 |
7014 | char* tmpPtr; int tmpSize; | |
7015 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 7016 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7017 | return NULL; |
7018 | } | |
7019 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
7020 | return NULL; | |
7021 | _arg3 = new wxString(tmpPtr, tmpSize); | |
7022 | #else | |
8ab979d7 RD |
7023 | if (!PyString_Check(_obj3)) { |
7024 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7025 | return NULL; | |
7026 | } | |
185d7c3e RD |
7027 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
7028 | #endif | |
8ab979d7 | 7029 | } |
cf694132 | 7030 | { |
4268f798 | 7031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7032 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
7033 | ||
4268f798 | 7034 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7035 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7036 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7037 | _resultobj = Py_None; |
7038 | { | |
7039 | if (_obj2) | |
7040 | delete _arg2; | |
7041 | } | |
7042 | { | |
7043 | if (_obj3) | |
7044 | delete _arg3; | |
7045 | } | |
7046 | return _resultobj; | |
7047 | } | |
7048 | ||
7049 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 7050 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7051 | PyObject * _resultobj; |
7052 | wxMenu * _arg0; | |
7053 | int _arg1; | |
7054 | wxString * _arg2; | |
7055 | wxMenu * _arg3; | |
1d99702e RD |
7056 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; |
7057 | PyObject * _argo0 = 0; | |
8ab979d7 | 7058 | PyObject * _obj2 = 0; |
1d99702e | 7059 | PyObject * _argo3 = 0; |
8ab979d7 | 7060 | PyObject * _obj4 = 0; |
efc5f224 | 7061 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; |
8ab979d7 RD |
7062 | |
7063 | self = self; | |
efc5f224 | 7064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 7065 | return NULL; |
1d99702e RD |
7066 | if (_argo0) { |
7067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
7070 | return NULL; | |
7071 | } | |
7072 | } | |
7073 | { | |
185d7c3e RD |
7074 | #if PYTHON_API_VERSION >= 1009 |
7075 | char* tmpPtr; int tmpSize; | |
7076 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7077 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7078 | return NULL; |
7079 | } | |
7080 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7081 | return NULL; | |
7082 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7083 | #else | |
8ab979d7 RD |
7084 | if (!PyString_Check(_obj2)) { |
7085 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7086 | return NULL; | |
7087 | } | |
185d7c3e RD |
7088 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7089 | #endif | |
8ab979d7 | 7090 | } |
1d99702e RD |
7091 | if (_argo3) { |
7092 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7093 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8ab979d7 RD |
7094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
7095 | return NULL; | |
7096 | } | |
7097 | } | |
7098 | if (_obj4) | |
7099 | { | |
185d7c3e RD |
7100 | #if PYTHON_API_VERSION >= 1009 |
7101 | char* tmpPtr; int tmpSize; | |
7102 | if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) { | |
794c5cb1 | 7103 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7104 | return NULL; |
7105 | } | |
7106 | if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1) | |
7107 | return NULL; | |
7108 | _arg4 = new wxString(tmpPtr, tmpSize); | |
7109 | #else | |
8ab979d7 RD |
7110 | if (!PyString_Check(_obj4)) { |
7111 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7112 | return NULL; | |
7113 | } | |
185d7c3e RD |
7114 | _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4)); |
7115 | #endif | |
8ab979d7 | 7116 | } |
cf694132 | 7117 | { |
4268f798 | 7118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7119 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); |
7120 | ||
4268f798 | 7121 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7122 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7123 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7124 | _resultobj = Py_None; |
7125 | { | |
7126 | if (_obj2) | |
7127 | delete _arg2; | |
7128 | } | |
7129 | { | |
7130 | if (_obj4) | |
7131 | delete _arg4; | |
7132 | } | |
7133 | return _resultobj; | |
7134 | } | |
7135 | ||
af309447 | 7136 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
efc5f224 | 7137 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
7138 | PyObject * _resultobj; |
7139 | wxMenu * _arg0; | |
7140 | wxMenuItem * _arg1; | |
1d99702e RD |
7141 | PyObject * _argo0 = 0; |
7142 | PyObject * _argo1 = 0; | |
efc5f224 | 7143 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
7144 | |
7145 | self = self; | |
efc5f224 | 7146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 7147 | return NULL; |
1d99702e RD |
7148 | if (_argo0) { |
7149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
af309447 RD |
7151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); |
7152 | return NULL; | |
7153 | } | |
7154 | } | |
1d99702e RD |
7155 | if (_argo1) { |
7156 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7157 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
af309447 RD |
7158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); |
7159 | return NULL; | |
7160 | } | |
7161 | } | |
cf694132 | 7162 | { |
4268f798 | 7163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7164 | wxMenu_AppendItem(_arg0,_arg1); |
7165 | ||
4268f798 | 7166 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7167 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7168 | } Py_INCREF(Py_None); |
af309447 RD |
7169 | _resultobj = Py_None; |
7170 | return _resultobj; | |
7171 | } | |
7172 | ||
8ab979d7 | 7173 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
efc5f224 | 7174 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7175 | PyObject * _resultobj; |
7176 | wxMenu * _arg0; | |
1d99702e | 7177 | PyObject * _argo0 = 0; |
efc5f224 | 7178 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7179 | |
7180 | self = self; | |
efc5f224 | 7181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
8ab979d7 | 7182 | return NULL; |
1d99702e RD |
7183 | if (_argo0) { |
7184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
7187 | return NULL; | |
7188 | } | |
7189 | } | |
cf694132 | 7190 | { |
4268f798 | 7191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7192 | wxMenu_AppendSeparator(_arg0); |
7193 | ||
4268f798 | 7194 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7195 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7196 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7197 | _resultobj = Py_None; |
7198 | return _resultobj; | |
7199 | } | |
7200 | ||
7201 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 7202 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7203 | PyObject * _resultobj; |
7204 | wxMenu * _arg0; | |
1d99702e | 7205 | PyObject * _argo0 = 0; |
efc5f224 | 7206 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7207 | |
7208 | self = self; | |
efc5f224 | 7209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 7210 | return NULL; |
1d99702e RD |
7211 | if (_argo0) { |
7212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
7215 | return NULL; | |
7216 | } | |
7217 | } | |
cf694132 | 7218 | { |
4268f798 | 7219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7220 | wxMenu_Break(_arg0); |
7221 | ||
4268f798 | 7222 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7223 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7224 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7225 | _resultobj = Py_None; |
7226 | return _resultobj; | |
7227 | } | |
7228 | ||
7229 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 7230 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7231 | PyObject * _resultobj; |
7232 | wxMenu * _arg0; | |
7233 | int _arg1; | |
7234 | bool _arg2; | |
1d99702e | 7235 | PyObject * _argo0 = 0; |
8ab979d7 | 7236 | int tempbool2; |
efc5f224 | 7237 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
7238 | |
7239 | self = self; | |
efc5f224 | 7240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7241 | return NULL; |
1d99702e RD |
7242 | if (_argo0) { |
7243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
7246 | return NULL; | |
7247 | } | |
7248 | } | |
7249 | _arg2 = (bool ) tempbool2; | |
cf694132 | 7250 | { |
4268f798 | 7251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7252 | wxMenu_Check(_arg0,_arg1,_arg2); |
7253 | ||
4268f798 | 7254 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7255 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7256 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7257 | _resultobj = Py_None; |
7258 | return _resultobj; | |
7259 | } | |
7260 | ||
b1462dfa RD |
7261 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
7262 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7263 | PyObject * _resultobj; | |
7264 | bool _result; | |
7265 | wxMenu * _arg0; | |
7266 | int _arg1; | |
7267 | PyObject * _argo0 = 0; | |
7268 | char *_kwnames[] = { "self","id", NULL }; | |
7269 | ||
7270 | self = self; | |
7271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
7272 | return NULL; | |
7273 | if (_argo0) { | |
7274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
7277 | return NULL; | |
7278 | } | |
7279 | } | |
7280 | { | |
4268f798 | 7281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
7282 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); |
7283 | ||
4268f798 | 7284 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7285 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7286 | } _resultobj = Py_BuildValue("i",_result); |
7287 | return _resultobj; | |
7288 | } | |
7289 | ||
8ab979d7 | 7290 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 7291 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7292 | PyObject * _resultobj; |
7293 | wxMenu * _arg0; | |
7294 | int _arg1; | |
7295 | bool _arg2; | |
1d99702e | 7296 | PyObject * _argo0 = 0; |
8ab979d7 | 7297 | int tempbool2; |
efc5f224 | 7298 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
7299 | |
7300 | self = self; | |
efc5f224 | 7301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7302 | return NULL; |
1d99702e RD |
7303 | if (_argo0) { |
7304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
7307 | return NULL; | |
7308 | } | |
7309 | } | |
7310 | _arg2 = (bool ) tempbool2; | |
cf694132 | 7311 | { |
4268f798 | 7312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7313 | wxMenu_Enable(_arg0,_arg1,_arg2); |
7314 | ||
4268f798 | 7315 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7316 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7317 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7318 | _resultobj = Py_None; |
7319 | return _resultobj; | |
7320 | } | |
7321 | ||
b1462dfa RD |
7322 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
7323 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7324 | PyObject * _resultobj; | |
7325 | bool _result; | |
7326 | wxMenu * _arg0; | |
7327 | int _arg1; | |
7328 | PyObject * _argo0 = 0; | |
7329 | char *_kwnames[] = { "self","id", NULL }; | |
7330 | ||
7331 | self = self; | |
7332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
7333 | return NULL; | |
7334 | if (_argo0) { | |
7335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
7338 | return NULL; | |
7339 | } | |
7340 | } | |
7341 | { | |
4268f798 | 7342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
7343 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); |
7344 | ||
4268f798 | 7345 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7346 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7347 | } _resultobj = Py_BuildValue("i",_result); |
7348 | return _resultobj; | |
7349 | } | |
7350 | ||
8ab979d7 | 7351 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 7352 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7353 | PyObject * _resultobj; |
7354 | int _result; | |
7355 | wxMenu * _arg0; | |
7356 | wxString * _arg1; | |
1d99702e | 7357 | PyObject * _argo0 = 0; |
8ab979d7 | 7358 | PyObject * _obj1 = 0; |
efc5f224 | 7359 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
7360 | |
7361 | self = self; | |
efc5f224 | 7362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7363 | return NULL; |
1d99702e RD |
7364 | if (_argo0) { |
7365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
7368 | return NULL; | |
7369 | } | |
7370 | } | |
7371 | { | |
185d7c3e RD |
7372 | #if PYTHON_API_VERSION >= 1009 |
7373 | char* tmpPtr; int tmpSize; | |
7374 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7375 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7376 | return NULL; |
7377 | } | |
7378 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7379 | return NULL; | |
7380 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7381 | #else | |
8ab979d7 RD |
7382 | if (!PyString_Check(_obj1)) { |
7383 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7384 | return NULL; | |
7385 | } | |
185d7c3e RD |
7386 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7387 | #endif | |
8ab979d7 | 7388 | } |
cf694132 | 7389 | { |
4268f798 | 7390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7391 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); |
7392 | ||
4268f798 | 7393 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7394 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7395 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7396 | { |
7397 | if (_obj1) | |
7398 | delete _arg1; | |
7399 | } | |
7400 | return _resultobj; | |
7401 | } | |
7402 | ||
b1462dfa RD |
7403 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
7404 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7405 | PyObject * _resultobj; | |
7406 | wxMenuItem * _result; | |
7407 | wxMenu * _arg0; | |
7408 | int _arg1; | |
7409 | PyObject * _argo0 = 0; | |
7410 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
7411 | |
7412 | self = self; | |
7413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
7414 | return NULL; | |
7415 | if (_argo0) { | |
7416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
7419 | return NULL; | |
7420 | } | |
7421 | } | |
7422 | { | |
4268f798 | 7423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
7424 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); |
7425 | ||
4268f798 | 7426 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7427 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7428 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
7429 | return _resultobj; |
7430 | } | |
7431 | ||
8ab979d7 | 7432 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 7433 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7434 | PyObject * _resultobj; |
7435 | wxString * _result; | |
7436 | wxMenu * _arg0; | |
1d99702e | 7437 | PyObject * _argo0 = 0; |
efc5f224 | 7438 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7439 | |
7440 | self = self; | |
efc5f224 | 7441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 7442 | return NULL; |
1d99702e RD |
7443 | if (_argo0) { |
7444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
7447 | return NULL; | |
7448 | } | |
7449 | } | |
8ab979d7 | 7450 | { |
4268f798 | 7451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7452 | _result = new wxString (wxMenu_GetTitle(_arg0)); |
7453 | ||
4268f798 | 7454 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7455 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7456 | }{ |
eec92d76 | 7457 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7458 | } |
7459 | { | |
7460 | delete _result; | |
7461 | } | |
7462 | return _resultobj; | |
7463 | } | |
7464 | ||
7465 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 7466 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7467 | PyObject * _resultobj; |
7468 | wxMenu * _arg0; | |
7469 | wxString * _arg1; | |
1d99702e | 7470 | PyObject * _argo0 = 0; |
8ab979d7 | 7471 | PyObject * _obj1 = 0; |
efc5f224 | 7472 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
7473 | |
7474 | self = self; | |
efc5f224 | 7475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7476 | return NULL; |
1d99702e RD |
7477 | if (_argo0) { |
7478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
7481 | return NULL; | |
7482 | } | |
7483 | } | |
7484 | { | |
185d7c3e RD |
7485 | #if PYTHON_API_VERSION >= 1009 |
7486 | char* tmpPtr; int tmpSize; | |
7487 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7488 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7489 | return NULL; |
7490 | } | |
7491 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7492 | return NULL; | |
7493 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7494 | #else | |
8ab979d7 RD |
7495 | if (!PyString_Check(_obj1)) { |
7496 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7497 | return NULL; | |
7498 | } | |
185d7c3e RD |
7499 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7500 | #endif | |
8ab979d7 | 7501 | } |
cf694132 | 7502 | { |
4268f798 | 7503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7504 | wxMenu_SetTitle(_arg0,*_arg1); |
7505 | ||
4268f798 | 7506 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7507 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7508 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7509 | _resultobj = Py_None; |
7510 | { | |
7511 | if (_obj1) | |
7512 | delete _arg1; | |
7513 | } | |
7514 | return _resultobj; | |
7515 | } | |
7516 | ||
b1462dfa RD |
7517 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
7518 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7519 | PyObject * _resultobj; |
b1462dfa | 7520 | wxString * _result; |
8ab979d7 RD |
7521 | wxMenu * _arg0; |
7522 | int _arg1; | |
1d99702e | 7523 | PyObject * _argo0 = 0; |
efc5f224 | 7524 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7525 | |
7526 | self = self; | |
b1462dfa | 7527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7528 | return NULL; |
1d99702e RD |
7529 | if (_argo0) { |
7530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7533 | return NULL; |
7534 | } | |
7535 | } | |
cf694132 | 7536 | { |
4268f798 | 7537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7538 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 | 7539 | |
4268f798 | 7540 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7541 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7542 | }{ |
eec92d76 | 7543 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
7544 | } |
7545 | { | |
7546 | delete _result; | |
7547 | } | |
8ab979d7 RD |
7548 | return _resultobj; |
7549 | } | |
7550 | ||
b1462dfa RD |
7551 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
7552 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7553 | PyObject * _resultobj; |
8ab979d7 RD |
7554 | wxMenu * _arg0; |
7555 | int _arg1; | |
b1462dfa | 7556 | wxString * _arg2; |
1d99702e | 7557 | PyObject * _argo0 = 0; |
b1462dfa RD |
7558 | PyObject * _obj2 = 0; |
7559 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
7560 | |
7561 | self = self; | |
b1462dfa | 7562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7563 | return NULL; |
1d99702e RD |
7564 | if (_argo0) { |
7565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7568 | return NULL; |
7569 | } | |
7570 | } | |
b1462dfa | 7571 | { |
185d7c3e RD |
7572 | #if PYTHON_API_VERSION >= 1009 |
7573 | char* tmpPtr; int tmpSize; | |
7574 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7575 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7576 | return NULL; |
7577 | } | |
7578 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7579 | return NULL; | |
7580 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7581 | #else | |
b1462dfa RD |
7582 | if (!PyString_Check(_obj2)) { |
7583 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7584 | return NULL; | |
7585 | } | |
185d7c3e RD |
7586 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7587 | #endif | |
b1462dfa | 7588 | } |
8ab979d7 | 7589 | { |
4268f798 | 7590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7591 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 7592 | |
4268f798 | 7593 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7594 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7595 | } Py_INCREF(Py_None); |
7596 | _resultobj = Py_None; | |
8ab979d7 | 7597 | { |
b1462dfa RD |
7598 | if (_obj2) |
7599 | delete _arg2; | |
8ab979d7 RD |
7600 | } |
7601 | return _resultobj; | |
7602 | } | |
7603 | ||
b1462dfa RD |
7604 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
7605 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7606 | PyObject * _resultobj; |
7607 | wxString * _result; | |
7608 | wxMenu * _arg0; | |
7609 | int _arg1; | |
1d99702e | 7610 | PyObject * _argo0 = 0; |
efc5f224 | 7611 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7612 | |
7613 | self = self; | |
b1462dfa | 7614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7615 | return NULL; |
1d99702e RD |
7616 | if (_argo0) { |
7617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
7620 | return NULL; |
7621 | } | |
7622 | } | |
8ab979d7 | 7623 | { |
4268f798 | 7624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7625 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 | 7626 | |
4268f798 | 7627 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7628 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7629 | }{ |
eec92d76 | 7630 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7631 | } |
7632 | { | |
7633 | delete _result; | |
7634 | } | |
7635 | return _resultobj; | |
7636 | } | |
7637 | ||
7638 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 7639 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7640 | PyObject * _resultobj; |
7641 | wxMenu * _arg0; | |
7642 | int _arg1; | |
7643 | wxString * _arg2; | |
1d99702e | 7644 | PyObject * _argo0 = 0; |
8ab979d7 | 7645 | PyObject * _obj2 = 0; |
efc5f224 | 7646 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
7647 | |
7648 | self = self; | |
efc5f224 | 7649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7650 | return NULL; |
1d99702e RD |
7651 | if (_argo0) { |
7652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
7655 | return NULL; | |
7656 | } | |
7657 | } | |
7658 | { | |
185d7c3e RD |
7659 | #if PYTHON_API_VERSION >= 1009 |
7660 | char* tmpPtr; int tmpSize; | |
7661 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7662 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7663 | return NULL; |
7664 | } | |
7665 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7666 | return NULL; | |
7667 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7668 | #else | |
8ab979d7 RD |
7669 | if (!PyString_Check(_obj2)) { |
7670 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7671 | return NULL; | |
7672 | } | |
185d7c3e RD |
7673 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7674 | #endif | |
8ab979d7 | 7675 | } |
cf694132 | 7676 | { |
4268f798 | 7677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7678 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); |
7679 | ||
4268f798 | 7680 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7681 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7682 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7683 | _resultobj = Py_None; |
7684 | { | |
7685 | if (_obj2) | |
7686 | delete _arg2; | |
7687 | } | |
7688 | return _resultobj; | |
7689 | } | |
7690 | ||
b1462dfa RD |
7691 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
7692 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7693 | PyObject * _resultobj; |
8ab979d7 | 7694 | wxMenu * _arg0; |
b1462dfa | 7695 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 7696 | PyObject * _argo0 = 0; |
b1462dfa RD |
7697 | PyObject * _argo1 = 0; |
7698 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
7699 | |
7700 | self = self; | |
b1462dfa | 7701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
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 RD |
7706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
7707 | return NULL; | |
7708 | } | |
7709 | } | |
7710 | if (_argo1) { | |
7711 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7712 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
7714 | return NULL; |
7715 | } | |
7716 | } | |
cf694132 | 7717 | { |
4268f798 | 7718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7719 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 | 7720 | |
4268f798 | 7721 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7722 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7723 | } Py_INCREF(Py_None); |
7724 | _resultobj = Py_None; | |
8ab979d7 RD |
7725 | return _resultobj; |
7726 | } | |
7727 | ||
b1462dfa RD |
7728 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7729 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7730 | PyObject * _resultobj; |
7731 | bool _result; | |
7732 | wxMenu * _arg0; | |
7733 | int _arg1; | |
1d99702e | 7734 | PyObject * _argo0 = 0; |
efc5f224 | 7735 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7736 | |
7737 | self = self; | |
b1462dfa | 7738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7739 | return NULL; |
1d99702e RD |
7740 | if (_argo0) { |
7741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
7744 | return NULL; |
7745 | } | |
7746 | } | |
cf694132 | 7747 | { |
4268f798 | 7748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7749 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 | 7750 | |
4268f798 | 7751 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7752 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7753 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7754 | return _resultobj; |
7755 | } | |
7756 | ||
b1462dfa RD |
7757 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7758 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7759 | PyObject * _resultobj; |
b1462dfa | 7760 | bool _result; |
8ab979d7 | 7761 | wxMenu * _arg0; |
b1462dfa | 7762 | wxMenuItem * _arg1; |
1d99702e | 7763 | PyObject * _argo0 = 0; |
b1462dfa RD |
7764 | PyObject * _argo1 = 0; |
7765 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7766 | |
7767 | self = self; | |
b1462dfa | 7768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7769 | return NULL; |
1d99702e RD |
7770 | if (_argo0) { |
7771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
7774 | return NULL; |
7775 | } | |
7776 | } | |
b1462dfa RD |
7777 | if (_argo1) { |
7778 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7779 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7781 | return NULL; |
b1462dfa | 7782 | } |
8ab979d7 | 7783 | } |
cf694132 | 7784 | { |
4268f798 | 7785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7786 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 | 7787 | |
4268f798 | 7788 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7789 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7790 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7791 | return _resultobj; |
7792 | } | |
7793 | ||
b1462dfa RD |
7794 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
7795 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7796 | PyObject * _resultobj; |
b1462dfa | 7797 | bool _result; |
8bf5d46e | 7798 | wxMenu * _arg0; |
b1462dfa RD |
7799 | size_t _arg1; |
7800 | wxMenuItem * _arg2; | |
1d99702e | 7801 | PyObject * _argo0 = 0; |
b1462dfa RD |
7802 | PyObject * _argo2 = 0; |
7803 | char *_kwnames[] = { "self","pos","item", NULL }; | |
8ab979d7 RD |
7804 | |
7805 | self = self; | |
b1462dfa | 7806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 7807 | return NULL; |
1d99702e RD |
7808 | if (_argo0) { |
7809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); |
8bf5d46e RD |
7812 | return NULL; |
7813 | } | |
7814 | } | |
b1462dfa RD |
7815 | if (_argo2) { |
7816 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7817 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7819 | return NULL; |
7820 | } | |
7821 | } | |
cf694132 | 7822 | { |
4268f798 | 7823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7824 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); |
cf694132 | 7825 | |
4268f798 | 7826 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7827 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7828 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7829 | return _resultobj; |
7830 | } | |
7831 | ||
b1462dfa RD |
7832 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7833 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 7834 | PyObject * _resultobj; |
b1462dfa | 7835 | wxMenuItem * _result; |
efc5f224 | 7836 | wxMenu * _arg0; |
b1462dfa | 7837 | int _arg1; |
efc5f224 | 7838 | PyObject * _argo0 = 0; |
b1462dfa | 7839 | char *_kwnames[] = { "self","id", NULL }; |
efc5f224 RD |
7840 | |
7841 | self = self; | |
b1462dfa | 7842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
7843 | return NULL; |
7844 | if (_argo0) { | |
7845 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7846 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
7848 | return NULL; |
7849 | } | |
7850 | } | |
7851 | { | |
4268f798 | 7852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7853 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 | 7854 | |
4268f798 | 7855 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7856 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7857 | }{ _resultobj = wxPyMake_wxObject(_result); } |
efc5f224 RD |
7858 | return _resultobj; |
7859 | } | |
7860 | ||
b1462dfa RD |
7861 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7862 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7863 | PyObject * _resultobj; |
b1462dfa RD |
7864 | wxMenuItem * _result; |
7865 | wxMenu * _arg0; | |
7866 | wxMenuItem * _arg1; | |
7867 | PyObject * _argo0 = 0; | |
7868 | PyObject * _argo1 = 0; | |
7869 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7870 | |
7871 | self = self; | |
b1462dfa RD |
7872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
7873 | return NULL; | |
7874 | if (_argo0) { | |
7875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
7878 | return NULL; | |
7879 | } | |
7880 | } | |
7881 | if (_argo1) { | |
7882 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7883 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7885 | return NULL; |
b1462dfa RD |
7886 | } |
7887 | } | |
cf694132 | 7888 | { |
4268f798 | 7889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7890 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 | 7891 | |
4268f798 | 7892 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7893 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7894 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
7895 | return _resultobj; |
7896 | } | |
7897 | ||
eb715945 | 7898 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 7899 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7900 | PyObject * _resultobj; |
b1462dfa | 7901 | wxMenu * _arg0; |
1d99702e | 7902 | PyObject * _argo0 = 0; |
b1462dfa | 7903 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7904 | |
7905 | self = self; | |
b1462dfa | 7906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 7907 | return NULL; |
1d99702e RD |
7908 | if (_argo0) { |
7909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
7912 | return NULL; |
7913 | } | |
7914 | } | |
cf694132 | 7915 | { |
4268f798 | 7916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7917 | wxMenu_Destroy(_arg0); |
cf694132 | 7918 | |
4268f798 | 7919 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7920 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7921 | } Py_INCREF(Py_None); |
8ab979d7 | 7922 | _resultobj = Py_None; |
8ab979d7 RD |
7923 | return _resultobj; |
7924 | } | |
7925 | ||
b1462dfa RD |
7926 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7927 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7928 | PyObject * _resultobj; |
b1462dfa RD |
7929 | bool _result; |
7930 | wxMenu * _arg0; | |
8ab979d7 | 7931 | int _arg1; |
1d99702e | 7932 | PyObject * _argo0 = 0; |
b1462dfa | 7933 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7934 | |
7935 | self = self; | |
b1462dfa | 7936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7937 | return NULL; |
1d99702e RD |
7938 | if (_argo0) { |
7939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
7942 | return NULL; |
7943 | } | |
7944 | } | |
cf694132 | 7945 | { |
4268f798 | 7946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7947 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 | 7948 | |
4268f798 | 7949 | wxPyEndAllowThreads(__tstate); |
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_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7956 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7957 | PyObject * _resultobj; |
b1462dfa RD |
7958 | bool _result; |
7959 | wxMenu * _arg0; | |
7960 | wxMenuItem * _arg1; | |
1d99702e | 7961 | PyObject * _argo0 = 0; |
b1462dfa RD |
7962 | PyObject * _argo1 = 0; |
7963 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7964 | |
7965 | self = self; | |
b1462dfa | 7966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7967 | return NULL; |
1d99702e RD |
7968 | if (_argo0) { |
7969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
7972 | return NULL; | |
7973 | } | |
7974 | } | |
7975 | if (_argo1) { | |
7976 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7977 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7979 | return NULL; |
7980 | } | |
7981 | } | |
cf694132 | 7982 | { |
4268f798 | 7983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7984 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 | 7985 | |
4268f798 | 7986 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7987 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7988 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7989 | return _resultobj; |
7990 | } | |
7991 | ||
b1462dfa RD |
7992 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
7993 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7994 | PyObject * _resultobj; |
b1462dfa RD |
7995 | size_t _result; |
7996 | wxMenu * _arg0; | |
1d99702e | 7997 | PyObject * _argo0 = 0; |
b1462dfa | 7998 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7999 | |
8000 | self = self; | |
b1462dfa | 8001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 8002 | return NULL; |
1d99702e RD |
8003 | if (_argo0) { |
8004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
8007 | return NULL; |
8008 | } | |
8009 | } | |
cf694132 | 8010 | { |
4268f798 | 8011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8012 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 | 8013 | |
4268f798 | 8014 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8015 | if (PyErr_Occurred()) return NULL; |
2abc0a0f | 8016 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8017 | return _resultobj; |
8018 | } | |
8019 | ||
b1462dfa RD |
8020 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
8021 | wxMenuItemList& list = self->GetMenuItems(); | |
8022 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
8023 | } | |
8024 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8025 | PyObject * _resultobj; |
b1462dfa RD |
8026 | PyObject * _result; |
8027 | wxMenu * _arg0; | |
1d99702e | 8028 | PyObject * _argo0 = 0; |
b1462dfa | 8029 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8030 | |
8031 | self = self; | |
b1462dfa | 8032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 8033 | return NULL; |
1d99702e RD |
8034 | if (_argo0) { |
8035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
8038 | return NULL; |
8039 | } | |
8040 | } | |
cf694132 | 8041 | { |
4268f798 | 8042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8043 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 | 8044 | |
4268f798 | 8045 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8046 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8047 | }{ |
8048 | _resultobj = _result; | |
8049 | } | |
8ab979d7 RD |
8050 | return _resultobj; |
8051 | } | |
8052 | ||
b1462dfa RD |
8053 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
8054 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8055 | PyObject * _resultobj; |
b1462dfa RD |
8056 | wxMenu * _arg0; |
8057 | wxEvtHandler * _arg1; | |
1d99702e | 8058 | PyObject * _argo0 = 0; |
b1462dfa RD |
8059 | PyObject * _argo1 = 0; |
8060 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
8061 | |
8062 | self = self; | |
b1462dfa | 8063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8064 | return NULL; |
1d99702e RD |
8065 | if (_argo0) { |
8066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
8069 | return NULL; |
8070 | } | |
8071 | } | |
b1462dfa RD |
8072 | if (_argo1) { |
8073 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8074 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
8075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 8076 | return NULL; |
b1462dfa | 8077 | } |
8ab979d7 | 8078 | } |
cf694132 | 8079 | { |
4268f798 | 8080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8081 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 | 8082 | |
4268f798 | 8083 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8084 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8085 | } Py_INCREF(Py_None); |
8086 | _resultobj = Py_None; | |
8ab979d7 RD |
8087 | return _resultobj; |
8088 | } | |
8089 | ||
b1462dfa RD |
8090 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
8091 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8092 | PyObject * _resultobj; |
b1462dfa RD |
8093 | wxEvtHandler * _result; |
8094 | wxMenu * _arg0; | |
1d99702e | 8095 | PyObject * _argo0 = 0; |
b1462dfa | 8096 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8097 | |
8098 | self = self; | |
b1462dfa | 8099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 8100 | return NULL; |
1d99702e RD |
8101 | if (_argo0) { |
8102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
8105 | return NULL; |
8106 | } | |
8107 | } | |
cf694132 | 8108 | { |
4268f798 | 8109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8110 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 | 8111 | |
4268f798 | 8112 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8113 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8114 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8115 | return _resultobj; |
8116 | } | |
8117 | ||
b1462dfa RD |
8118 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
8119 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 8120 | PyObject * _resultobj; |
b1462dfa RD |
8121 | wxMenu * _arg0; |
8122 | wxWindow * _arg1; | |
2f90df85 | 8123 | PyObject * _argo0 = 0; |
b1462dfa RD |
8124 | PyObject * _argo1 = 0; |
8125 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
8126 | |
8127 | self = self; | |
b1462dfa | 8128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
8129 | return NULL; |
8130 | if (_argo0) { | |
8131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
8134 | return NULL; |
8135 | } | |
8136 | } | |
b1462dfa RD |
8137 | if (_argo1) { |
8138 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8139 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 8141 | return NULL; |
b1462dfa | 8142 | } |
2f90df85 | 8143 | } |
2f90df85 | 8144 | { |
4268f798 | 8145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8146 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 | 8147 | |
4268f798 | 8148 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8149 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
8150 | } Py_INCREF(Py_None); |
8151 | _resultobj = Py_None; | |
2f90df85 RD |
8152 | return _resultobj; |
8153 | } | |
8154 | ||
b1462dfa RD |
8155 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
8156 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8157 | PyObject * _resultobj; |
b1462dfa RD |
8158 | wxWindow * _result; |
8159 | wxMenu * _arg0; | |
1d99702e | 8160 | PyObject * _argo0 = 0; |
b1462dfa | 8161 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8162 | |
8163 | self = self; | |
b1462dfa | 8164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 8165 | return NULL; |
1d99702e RD |
8166 | if (_argo0) { |
8167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
8170 | return NULL; |
8171 | } | |
8172 | } | |
cf694132 | 8173 | { |
4268f798 | 8174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8175 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 | 8176 | |
4268f798 | 8177 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8178 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8179 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8180 | return _resultobj; |
8181 | } | |
8182 | ||
b1462dfa RD |
8183 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
8184 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8185 | PyObject * _resultobj; |
b1462dfa RD |
8186 | long _result; |
8187 | wxMenu * _arg0; | |
1d99702e | 8188 | PyObject * _argo0 = 0; |
b1462dfa | 8189 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8190 | |
8191 | self = self; | |
b1462dfa | 8192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 8193 | return NULL; |
1d99702e RD |
8194 | if (_argo0) { |
8195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
8198 | return NULL; |
8199 | } | |
8200 | } | |
8ab979d7 | 8201 | { |
4268f798 | 8202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8203 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 | 8204 | |
4268f798 | 8205 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8206 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8207 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8208 | return _resultobj; |
8209 | } | |
8210 | ||
b1462dfa RD |
8211 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
8212 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8213 | PyObject * _resultobj; |
b1462dfa RD |
8214 | bool _result; |
8215 | wxMenu * _arg0; | |
1d99702e | 8216 | PyObject * _argo0 = 0; |
b1462dfa | 8217 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8218 | |
8219 | self = self; | |
b1462dfa | 8220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 8221 | return NULL; |
1d99702e RD |
8222 | if (_argo0) { |
8223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
8226 | return NULL; |
8227 | } | |
8228 | } | |
8ab979d7 | 8229 | { |
4268f798 | 8230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8231 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 | 8232 | |
4268f798 | 8233 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8234 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8235 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8236 | return _resultobj; |
8237 | } | |
8238 | ||
b1462dfa RD |
8239 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
8240 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8241 | PyObject * _resultobj; |
b1462dfa RD |
8242 | wxMenu * _arg0; |
8243 | wxMenu * _arg1; | |
1d99702e | 8244 | PyObject * _argo0 = 0; |
b1462dfa RD |
8245 | PyObject * _argo1 = 0; |
8246 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
8247 | |
8248 | self = self; | |
b1462dfa | 8249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8250 | return NULL; |
1d99702e RD |
8251 | if (_argo0) { |
8252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8255 | return NULL; |
8256 | } | |
8257 | } | |
b1462dfa RD |
8258 | if (_argo1) { |
8259 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8260 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 8262 | return NULL; |
b1462dfa | 8263 | } |
8ab979d7 | 8264 | } |
cf694132 | 8265 | { |
4268f798 | 8266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8267 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 | 8268 | |
4268f798 | 8269 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8270 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8271 | } Py_INCREF(Py_None); |
8ab979d7 | 8272 | _resultobj = Py_None; |
8ab979d7 RD |
8273 | return _resultobj; |
8274 | } | |
8275 | ||
b1462dfa RD |
8276 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
8277 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8278 | PyObject * _resultobj; |
b1462dfa RD |
8279 | wxMenu * _result; |
8280 | wxMenu * _arg0; | |
1d99702e | 8281 | PyObject * _argo0 = 0; |
b1462dfa | 8282 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8283 | |
8284 | self = self; | |
b1462dfa | 8285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 8286 | return NULL; |
1d99702e RD |
8287 | if (_argo0) { |
8288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8291 | return NULL; |
8292 | } | |
8293 | } | |
8ab979d7 | 8294 | { |
4268f798 | 8295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8296 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 | 8297 | |
4268f798 | 8298 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8299 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8300 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8301 | return _resultobj; |
8ab979d7 | 8302 | } |
b1462dfa RD |
8303 | |
8304 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
8305 | wxMenuBar *src; | |
8306 | wxWindow *dest; | |
8307 | src = (wxMenuBar *) ptr; | |
8308 | dest = (wxWindow *) src; | |
8309 | return (void *) dest; | |
8310 | } | |
8311 | ||
8312 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
8313 | wxMenuBar *src; | |
8314 | wxEvtHandler *dest; | |
8315 | src = (wxMenuBar *) ptr; | |
8316 | dest = (wxEvtHandler *) src; | |
8317 | return (void *) dest; | |
8ab979d7 | 8318 | } |
b1462dfa | 8319 | |
9416aa89 RD |
8320 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
8321 | wxMenuBar *src; | |
8322 | wxObject *dest; | |
8323 | src = (wxMenuBar *) ptr; | |
8324 | dest = (wxObject *) src; | |
8325 | return (void *) dest; | |
8326 | } | |
8327 | ||
c368d904 | 8328 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
8329 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8330 | PyObject * _resultobj; | |
8331 | wxMenuBar * _result; | |
c368d904 RD |
8332 | long _arg0 = (long ) 0; |
8333 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
8334 | char _ptemp[128]; |
8335 | ||
8336 | self = self; | |
c368d904 | 8337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
8338 | return NULL; |
8339 | { | |
4268f798 | 8340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 | 8341 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa | 8342 | |
4268f798 | 8343 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8344 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8345 | } if (_result) { |
8346 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
8347 | _resultobj = Py_BuildValue("s",_ptemp); | |
8348 | } else { | |
8349 | Py_INCREF(Py_None); | |
8350 | _resultobj = Py_None; | |
8351 | } | |
8ab979d7 RD |
8352 | return _resultobj; |
8353 | } | |
8354 | ||
b1462dfa RD |
8355 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
8356 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8357 | PyObject * _resultobj; |
b1462dfa | 8358 | bool _result; |
8ab979d7 | 8359 | wxMenuBar * _arg0; |
b1462dfa | 8360 | wxMenu * _arg1; |
8ab979d7 | 8361 | wxString * _arg2; |
1d99702e | 8362 | PyObject * _argo0 = 0; |
b1462dfa | 8363 | PyObject * _argo1 = 0; |
8ab979d7 | 8364 | PyObject * _obj2 = 0; |
b1462dfa | 8365 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
8366 | |
8367 | self = self; | |
b1462dfa | 8368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8369 | return NULL; |
1d99702e RD |
8370 | if (_argo0) { |
8371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
8374 | return NULL; | |
8375 | } | |
8376 | } | |
8377 | if (_argo1) { | |
8378 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8379 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
8381 | return NULL; |
8382 | } | |
8383 | } | |
8384 | { | |
185d7c3e RD |
8385 | #if PYTHON_API_VERSION >= 1009 |
8386 | char* tmpPtr; int tmpSize; | |
8387 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8388 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8389 | return NULL; |
8390 | } | |
8391 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8392 | return NULL; | |
8393 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8394 | #else | |
8ab979d7 RD |
8395 | if (!PyString_Check(_obj2)) { |
8396 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8397 | return NULL; | |
8398 | } | |
185d7c3e RD |
8399 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8400 | #endif | |
8ab979d7 | 8401 | } |
cf694132 | 8402 | { |
4268f798 | 8403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8404 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 | 8405 | |
4268f798 | 8406 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8407 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8408 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8409 | { |
8410 | if (_obj2) | |
8411 | delete _arg2; | |
8412 | } | |
8413 | return _resultobj; | |
8414 | } | |
8415 | ||
b1462dfa RD |
8416 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
8417 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8418 | PyObject * _resultobj; |
b1462dfa | 8419 | bool _result; |
8ab979d7 | 8420 | wxMenuBar * _arg0; |
b1462dfa RD |
8421 | size_t _arg1; |
8422 | wxMenu * _arg2; | |
8423 | wxString * _arg3; | |
1d99702e | 8424 | PyObject * _argo0 = 0; |
b1462dfa RD |
8425 | PyObject * _argo2 = 0; |
8426 | PyObject * _obj3 = 0; | |
8427 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
8428 | |
8429 | self = self; | |
b1462dfa | 8430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 8431 | return NULL; |
1d99702e RD |
8432 | if (_argo0) { |
8433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
8436 | return NULL; | |
8437 | } | |
8438 | } | |
8439 | if (_argo2) { | |
8440 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8441 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
8443 | return NULL; |
8444 | } | |
8445 | } | |
b1462dfa | 8446 | { |
185d7c3e RD |
8447 | #if PYTHON_API_VERSION >= 1009 |
8448 | char* tmpPtr; int tmpSize; | |
8449 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 8450 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8451 | return NULL; |
8452 | } | |
8453 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8454 | return NULL; | |
8455 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8456 | #else | |
b1462dfa RD |
8457 | if (!PyString_Check(_obj3)) { |
8458 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8459 | return NULL; | |
8460 | } | |
185d7c3e RD |
8461 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8462 | #endif | |
b1462dfa | 8463 | } |
cf694132 | 8464 | { |
4268f798 | 8465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8466 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 8467 | |
4268f798 | 8468 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8469 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8470 | } _resultobj = Py_BuildValue("i",_result); |
b1462dfa RD |
8471 | { |
8472 | if (_obj3) | |
8473 | delete _arg3; | |
8474 | } | |
8ab979d7 RD |
8475 | return _resultobj; |
8476 | } | |
8477 | ||
b1462dfa RD |
8478 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
8479 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8480 | PyObject * _resultobj; |
b1462dfa | 8481 | size_t _result; |
8ab979d7 | 8482 | wxMenuBar * _arg0; |
1d99702e | 8483 | PyObject * _argo0 = 0; |
b1462dfa | 8484 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8485 | |
8486 | self = self; | |
b1462dfa | 8487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 8488 | return NULL; |
1d99702e RD |
8489 | if (_argo0) { |
8490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
8493 | return NULL; |
8494 | } | |
8495 | } | |
cf694132 | 8496 | { |
4268f798 | 8497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8498 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 | 8499 | |
4268f798 | 8500 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8501 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8502 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8503 | return _resultobj; |
8504 | } | |
8505 | ||
b1462dfa RD |
8506 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
8507 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 8508 | PyObject * _resultobj; |
b1462dfa | 8509 | wxMenu * _result; |
06c0fba4 | 8510 | wxMenuBar * _arg0; |
b1462dfa | 8511 | size_t _arg1; |
06c0fba4 | 8512 | PyObject * _argo0 = 0; |
b1462dfa | 8513 | char *_kwnames[] = { "self","pos", NULL }; |
06c0fba4 RD |
8514 | |
8515 | self = self; | |
b1462dfa | 8516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
8517 | return NULL; |
8518 | if (_argo0) { | |
8519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
8522 | return NULL; |
8523 | } | |
8524 | } | |
8525 | { | |
4268f798 | 8526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8527 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 | 8528 | |
4268f798 | 8529 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8530 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8531 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
8532 | return _resultobj; |
8533 | } | |
8534 | ||
2abc0a0f RD |
8535 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
8536 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8537 | PyObject * _resultobj; | |
8538 | wxMenu * _result; | |
8539 | wxMenuBar * _arg0; | |
8540 | size_t _arg1; | |
8541 | wxMenu * _arg2; | |
8542 | wxString * _arg3; | |
8543 | PyObject * _argo0 = 0; | |
8544 | PyObject * _argo2 = 0; | |
8545 | PyObject * _obj3 = 0; | |
8546 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
2abc0a0f RD |
8547 | |
8548 | self = self; | |
8549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
8550 | return NULL; | |
8551 | if (_argo0) { | |
8552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
8555 | return NULL; | |
8556 | } | |
8557 | } | |
8558 | if (_argo2) { | |
8559 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8560 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
8562 | return NULL; | |
8563 | } | |
8564 | } | |
8565 | { | |
185d7c3e RD |
8566 | #if PYTHON_API_VERSION >= 1009 |
8567 | char* tmpPtr; int tmpSize; | |
8568 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 8569 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8570 | return NULL; |
8571 | } | |
8572 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8573 | return NULL; | |
8574 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8575 | #else | |
2abc0a0f RD |
8576 | if (!PyString_Check(_obj3)) { |
8577 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8578 | return NULL; | |
8579 | } | |
185d7c3e RD |
8580 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8581 | #endif | |
2abc0a0f RD |
8582 | } |
8583 | { | |
4268f798 | 8584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2abc0a0f RD |
8585 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); |
8586 | ||
4268f798 | 8587 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8588 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8589 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8590 | { |
8591 | if (_obj3) | |
8592 | delete _arg3; | |
8593 | } | |
8594 | return _resultobj; | |
8595 | } | |
8596 | ||
8597 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8598 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8599 | PyObject * _resultobj; | |
8600 | wxMenu * _result; | |
8601 | wxMenuBar * _arg0; | |
8602 | size_t _arg1; | |
8603 | PyObject * _argo0 = 0; | |
8604 | char *_kwnames[] = { "self","pos", NULL }; | |
2abc0a0f RD |
8605 | |
8606 | self = self; | |
8607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
8608 | return NULL; | |
8609 | if (_argo0) { | |
8610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
8613 | return NULL; | |
8614 | } | |
8615 | } | |
8616 | { | |
4268f798 | 8617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2abc0a0f RD |
8618 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); |
8619 | ||
4268f798 | 8620 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8621 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8622 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8623 | return _resultobj; |
8624 | } | |
8625 | ||
b1462dfa RD |
8626 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
8627 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8628 | PyObject * _resultobj; |
b1462dfa RD |
8629 | wxMenuBar * _arg0; |
8630 | size_t _arg1; | |
8631 | bool _arg2; | |
8632 | PyObject * _argo0 = 0; | |
8633 | int tempbool2; | |
8634 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
8635 | ||
8636 | self = self; | |
8637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8638 | return NULL; | |
8639 | if (_argo0) { | |
8640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
8643 | return NULL; | |
8644 | } | |
8645 | } | |
8646 | _arg2 = (bool ) tempbool2; | |
8647 | { | |
4268f798 | 8648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
8649 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); |
8650 | ||
4268f798 | 8651 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8652 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8653 | } Py_INCREF(Py_None); |
8654 | _resultobj = Py_None; | |
8655 | return _resultobj; | |
8656 | } | |
8657 | ||
8658 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
8659 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8660 | PyObject * _resultobj; | |
8661 | wxMenuBar * _arg0; | |
8662 | size_t _arg1; | |
8663 | wxString * _arg2; | |
1d99702e | 8664 | PyObject * _argo0 = 0; |
cf694132 | 8665 | PyObject * _obj2 = 0; |
b1462dfa | 8666 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
8667 | |
8668 | self = self; | |
b1462dfa | 8669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 8670 | return NULL; |
1d99702e RD |
8671 | if (_argo0) { |
8672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
8675 | return NULL; |
8676 | } | |
8677 | } | |
cf694132 | 8678 | { |
185d7c3e RD |
8679 | #if PYTHON_API_VERSION >= 1009 |
8680 | char* tmpPtr; int tmpSize; | |
8681 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8682 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8683 | return NULL; |
8684 | } | |
8685 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8686 | return NULL; | |
8687 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8688 | #else | |
cf694132 RD |
8689 | if (!PyString_Check(_obj2)) { |
8690 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8691 | return NULL; | |
8692 | } | |
185d7c3e RD |
8693 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8694 | #endif | |
cf694132 | 8695 | } |
cf694132 | 8696 | { |
4268f798 | 8697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
8698 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); |
8699 | ||
4268f798 | 8700 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8701 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8702 | } Py_INCREF(Py_None); |
8703 | _resultobj = Py_None; | |
8704 | { | |
8705 | if (_obj2) | |
8706 | delete _arg2; | |
8707 | } | |
8708 | return _resultobj; | |
8709 | } | |
8710 | ||
8711 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
8712 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8713 | PyObject * _resultobj; | |
8714 | wxString * _result; | |
8715 | wxMenuBar * _arg0; | |
8716 | size_t _arg1; | |
8717 | PyObject * _argo0 = 0; | |
8718 | char *_kwnames[] = { "self","pos", NULL }; | |
8719 | ||
8720 | self = self; | |
8721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
8722 | return NULL; | |
8723 | if (_argo0) { | |
8724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
8727 | return NULL; | |
8728 | } | |
8729 | } | |
8730 | { | |
4268f798 | 8731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
8732 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); |
8733 | ||
4268f798 | 8734 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8735 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8736 | }{ |
eec92d76 | 8737 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8738 | } |
8739 | { | |
8740 | delete _result; | |
8741 | } | |
8742 | return _resultobj; | |
8743 | } | |
8744 | ||
3a0958b1 RD |
8745 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) |
8746 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8747 | PyObject * _resultobj; | |
8748 | int _result; | |
8749 | wxMenuBar * _arg0; | |
8750 | wxString * _arg1; | |
8751 | PyObject * _argo0 = 0; | |
8752 | PyObject * _obj1 = 0; | |
8753 | char *_kwnames[] = { "self","title", NULL }; | |
8754 | ||
8755 | self = self; | |
8756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) | |
8757 | return NULL; | |
8758 | if (_argo0) { | |
8759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); | |
8762 | return NULL; | |
8763 | } | |
8764 | } | |
8765 | { | |
8766 | #if PYTHON_API_VERSION >= 1009 | |
8767 | char* tmpPtr; int tmpSize; | |
8768 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8769 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8770 | return NULL; | |
8771 | } | |
8772 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8773 | return NULL; | |
8774 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8775 | #else | |
8776 | if (!PyString_Check(_obj1)) { | |
8777 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8778 | return NULL; | |
8779 | } | |
8780 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8781 | #endif | |
8782 | } | |
8783 | { | |
4268f798 | 8784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3a0958b1 RD |
8785 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); |
8786 | ||
4268f798 | 8787 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
8788 | if (PyErr_Occurred()) return NULL; |
8789 | } _resultobj = Py_BuildValue("i",_result); | |
8790 | { | |
8791 | if (_obj1) | |
8792 | delete _arg1; | |
8793 | } | |
8794 | return _resultobj; | |
8795 | } | |
8796 | ||
b1462dfa RD |
8797 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) |
8798 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8799 | PyObject * _resultobj; | |
8800 | int _result; | |
8801 | wxMenuBar * _arg0; | |
8802 | wxString * _arg1; | |
8803 | wxString * _arg2; | |
8804 | PyObject * _argo0 = 0; | |
8805 | PyObject * _obj1 = 0; | |
8806 | PyObject * _obj2 = 0; | |
8807 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
8808 | ||
8809 | self = self; | |
8810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8811 | return NULL; | |
8812 | if (_argo0) { | |
8813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
8816 | return NULL; | |
8817 | } | |
8818 | } | |
8819 | { | |
185d7c3e RD |
8820 | #if PYTHON_API_VERSION >= 1009 |
8821 | char* tmpPtr; int tmpSize; | |
8822 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 8823 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8824 | return NULL; |
8825 | } | |
8826 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8827 | return NULL; | |
8828 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8829 | #else | |
b1462dfa | 8830 | if (!PyString_Check(_obj1)) { |
cf694132 RD |
8831 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
8832 | return NULL; | |
8833 | } | |
185d7c3e RD |
8834 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8835 | #endif | |
cf694132 | 8836 | } |
b1462dfa | 8837 | { |
185d7c3e RD |
8838 | #if PYTHON_API_VERSION >= 1009 |
8839 | char* tmpPtr; int tmpSize; | |
8840 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8841 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8842 | return NULL; |
8843 | } | |
8844 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8845 | return NULL; | |
8846 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8847 | #else | |
b1462dfa RD |
8848 | if (!PyString_Check(_obj2)) { |
8849 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8850 | return NULL; | |
8851 | } | |
185d7c3e RD |
8852 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8853 | #endif | |
b1462dfa RD |
8854 | } |
8855 | { | |
4268f798 | 8856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
8857 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); |
8858 | ||
4268f798 | 8859 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8860 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8861 | } _resultobj = Py_BuildValue("i",_result); |
8862 | { | |
8863 | if (_obj1) | |
8864 | delete _arg1; | |
8865 | } | |
8866 | { | |
8867 | if (_obj2) | |
8868 | delete _arg2; | |
8869 | } | |
8870 | return _resultobj; | |
8871 | } | |
8872 | ||
8873 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8874 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8875 | PyObject * _resultobj; | |
8876 | wxMenuItem * _result; | |
8877 | wxMenuBar * _arg0; | |
8878 | int _arg1; | |
8879 | PyObject * _argo0 = 0; | |
8880 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
8881 | |
8882 | self = self; | |
8883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8884 | return NULL; | |
8885 | if (_argo0) { | |
8886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
8889 | return NULL; |
8890 | } | |
8891 | } | |
8892 | { | |
4268f798 | 8893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8894 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 | 8895 | |
4268f798 | 8896 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8897 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8898 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8899 | return _resultobj; |
cf694132 | 8900 | } |
b1462dfa RD |
8901 | |
8902 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8903 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8904 | PyObject * _resultobj; | |
8905 | wxMenuBar * _arg0; | |
8906 | int _arg1; | |
8907 | bool _arg2; | |
8908 | PyObject * _argo0 = 0; | |
8909 | int tempbool2; | |
8910 | char *_kwnames[] = { "self","id","enable", NULL }; | |
8911 | ||
8912 | self = self; | |
8913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8914 | return NULL; | |
8915 | if (_argo0) { | |
8916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
8919 | return NULL; | |
8920 | } | |
8921 | } | |
8922 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8923 | { |
4268f798 | 8924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
8925 | wxMenuBar_Enable(_arg0,_arg1,_arg2); |
8926 | ||
4268f798 | 8927 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8928 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8929 | } Py_INCREF(Py_None); |
8930 | _resultobj = Py_None; | |
8931 | return _resultobj; | |
cf694132 | 8932 | } |
b1462dfa RD |
8933 | |
8934 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
8935 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8936 | PyObject * _resultobj; | |
8937 | wxMenuBar * _arg0; | |
8938 | int _arg1; | |
8939 | bool _arg2; | |
8940 | PyObject * _argo0 = 0; | |
8941 | int tempbool2; | |
8942 | char *_kwnames[] = { "self","id","check", NULL }; | |
8943 | ||
8944 | self = self; | |
8945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8946 | return NULL; | |
8947 | if (_argo0) { | |
8948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
8951 | return NULL; | |
8952 | } | |
8953 | } | |
8954 | _arg2 = (bool ) tempbool2; | |
8955 | { | |
4268f798 | 8956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
8957 | wxMenuBar_Check(_arg0,_arg1,_arg2); |
8958 | ||
4268f798 | 8959 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8960 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8961 | } Py_INCREF(Py_None); |
8962 | _resultobj = Py_None; | |
cf694132 RD |
8963 | return _resultobj; |
8964 | } | |
8965 | ||
b1462dfa RD |
8966 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8967 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8968 | PyObject * _resultobj; |
8969 | bool _result; | |
b1462dfa RD |
8970 | wxMenuBar * _arg0; |
8971 | int _arg1; | |
1d99702e | 8972 | PyObject * _argo0 = 0; |
b1462dfa | 8973 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8974 | |
8975 | self = self; | |
b1462dfa | 8976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8977 | return NULL; |
1d99702e RD |
8978 | if (_argo0) { |
8979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8982 | return NULL; |
8983 | } | |
8984 | } | |
cf694132 | 8985 | { |
4268f798 | 8986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8987 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 | 8988 | |
4268f798 | 8989 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8990 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8991 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8992 | return _resultobj; |
8993 | } | |
8994 | ||
b1462dfa RD |
8995 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8996 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8997 | PyObject * _resultobj; |
8998 | bool _result; | |
b1462dfa RD |
8999 | wxMenuBar * _arg0; |
9000 | int _arg1; | |
1d99702e | 9001 | PyObject * _argo0 = 0; |
b1462dfa | 9002 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9003 | |
9004 | self = self; | |
b1462dfa | 9005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9006 | return NULL; |
1d99702e RD |
9007 | if (_argo0) { |
9008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9011 | return NULL; |
9012 | } | |
9013 | } | |
cf694132 | 9014 | { |
4268f798 | 9015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9016 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 | 9017 | |
4268f798 | 9018 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9019 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9020 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9021 | return _resultobj; |
9022 | } | |
9023 | ||
b1462dfa RD |
9024 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
9025 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9026 | PyObject * _resultobj; |
b1462dfa RD |
9027 | wxMenuBar * _arg0; |
9028 | int _arg1; | |
9029 | wxString * _arg2; | |
1d99702e | 9030 | PyObject * _argo0 = 0; |
b1462dfa RD |
9031 | PyObject * _obj2 = 0; |
9032 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
9033 | |
9034 | self = self; | |
b1462dfa | 9035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 9036 | return NULL; |
1d99702e RD |
9037 | if (_argo0) { |
9038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9041 | return NULL; |
9042 | } | |
9043 | } | |
b1462dfa | 9044 | { |
185d7c3e RD |
9045 | #if PYTHON_API_VERSION >= 1009 |
9046 | char* tmpPtr; int tmpSize; | |
9047 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 9048 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9049 | return NULL; |
9050 | } | |
9051 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9052 | return NULL; | |
9053 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9054 | #else | |
b1462dfa RD |
9055 | if (!PyString_Check(_obj2)) { |
9056 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9057 | return NULL; | |
9058 | } | |
185d7c3e RD |
9059 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9060 | #endif | |
b1462dfa | 9061 | } |
cf694132 | 9062 | { |
4268f798 | 9063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9064 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 9065 | |
4268f798 | 9066 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9067 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9068 | } Py_INCREF(Py_None); |
9069 | _resultobj = Py_None; | |
9070 | { | |
9071 | if (_obj2) | |
9072 | delete _arg2; | |
9073 | } | |
8ab979d7 RD |
9074 | return _resultobj; |
9075 | } | |
9076 | ||
b1462dfa RD |
9077 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
9078 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9079 | PyObject * _resultobj; |
b1462dfa RD |
9080 | wxString * _result; |
9081 | wxMenuBar * _arg0; | |
9082 | int _arg1; | |
1d99702e | 9083 | PyObject * _argo0 = 0; |
b1462dfa | 9084 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9085 | |
9086 | self = self; | |
b1462dfa | 9087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9088 | return NULL; |
1d99702e RD |
9089 | if (_argo0) { |
9090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
9093 | return NULL; | |
9094 | } | |
9095 | } | |
9096 | { | |
4268f798 | 9097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
9098 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); |
9099 | ||
4268f798 | 9100 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9101 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9102 | }{ |
eec92d76 | 9103 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
9104 | } |
9105 | { | |
9106 | delete _result; | |
9107 | } | |
9108 | return _resultobj; | |
9109 | } | |
9110 | ||
9111 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
9112 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9113 | PyObject * _resultobj; | |
9114 | wxMenuBar * _arg0; | |
9115 | int _arg1; | |
9116 | wxString * _arg2; | |
9117 | PyObject * _argo0 = 0; | |
9118 | PyObject * _obj2 = 0; | |
9119 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
9120 | ||
9121 | self = self; | |
9122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9123 | return NULL; | |
9124 | if (_argo0) { | |
9125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
9128 | return NULL; | |
9129 | } | |
9130 | } | |
9131 | { | |
185d7c3e RD |
9132 | #if PYTHON_API_VERSION >= 1009 |
9133 | char* tmpPtr; int tmpSize; | |
9134 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 9135 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9136 | return NULL; |
9137 | } | |
9138 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9139 | return NULL; | |
9140 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9141 | #else | |
b1462dfa RD |
9142 | if (!PyString_Check(_obj2)) { |
9143 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9144 | return NULL; | |
9145 | } | |
185d7c3e RD |
9146 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9147 | #endif | |
b1462dfa RD |
9148 | } |
9149 | { | |
4268f798 | 9150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
9151 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); |
9152 | ||
4268f798 | 9153 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9154 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9155 | } Py_INCREF(Py_None); |
9156 | _resultobj = Py_None; | |
9157 | { | |
9158 | if (_obj2) | |
9159 | delete _arg2; | |
9160 | } | |
9161 | return _resultobj; | |
9162 | } | |
9163 | ||
9164 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
9165 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9166 | PyObject * _resultobj; | |
9167 | wxString * _result; | |
9168 | wxMenuBar * _arg0; | |
9169 | int _arg1; | |
9170 | PyObject * _argo0 = 0; | |
9171 | char *_kwnames[] = { "self","id", NULL }; | |
9172 | ||
9173 | self = self; | |
9174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
9175 | return NULL; | |
9176 | if (_argo0) { | |
9177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9180 | return NULL; |
9181 | } | |
9182 | } | |
cf694132 | 9183 | { |
4268f798 | 9184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9185 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 | 9186 | |
4268f798 | 9187 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9188 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9189 | }{ |
eec92d76 | 9190 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
9191 | } |
9192 | { | |
9193 | delete _result; | |
9194 | } | |
8ab979d7 RD |
9195 | return _resultobj; |
9196 | } | |
9197 | ||
9416aa89 RD |
9198 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
9199 | wxMenuItem *src; | |
9200 | wxObject *dest; | |
9201 | src = (wxMenuItem *) ptr; | |
9202 | dest = (wxObject *) src; | |
9203 | return (void *) dest; | |
9204 | } | |
9205 | ||
b1462dfa RD |
9206 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
9207 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9208 | PyObject * _resultobj; |
b1462dfa RD |
9209 | wxMenuItem * _result; |
9210 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 9211 | int _arg1 = (int ) wxID_SEPARATOR; |
b1462dfa RD |
9212 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; |
9213 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
9214 | bool _arg4 = (bool ) FALSE; | |
9215 | wxMenu * _arg5 = (wxMenu *) NULL; | |
1d99702e | 9216 | PyObject * _argo0 = 0; |
b1462dfa RD |
9217 | PyObject * _obj2 = 0; |
9218 | PyObject * _obj3 = 0; | |
9219 | int tempbool4 = (int) FALSE; | |
9220 | PyObject * _argo5 = 0; | |
9221 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
9222 | char _ptemp[128]; | |
8ab979d7 RD |
9223 | |
9224 | self = self; | |
b1462dfa | 9225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) |
8ab979d7 | 9226 | return NULL; |
1d99702e RD |
9227 | if (_argo0) { |
9228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
9231 | return NULL; | |
9232 | } | |
9233 | } | |
9234 | if (_obj2) | |
9235 | { | |
185d7c3e RD |
9236 | #if PYTHON_API_VERSION >= 1009 |
9237 | char* tmpPtr; int tmpSize; | |
9238 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 9239 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9240 | return NULL; |
9241 | } | |
9242 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9243 | return NULL; | |
9244 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9245 | #else | |
b1462dfa RD |
9246 | if (!PyString_Check(_obj2)) { |
9247 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9248 | return NULL; | |
9249 | } | |
185d7c3e RD |
9250 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9251 | #endif | |
b1462dfa RD |
9252 | } |
9253 | if (_obj3) | |
9254 | { | |
185d7c3e RD |
9255 | #if PYTHON_API_VERSION >= 1009 |
9256 | char* tmpPtr; int tmpSize; | |
9257 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 9258 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9259 | return NULL; |
9260 | } | |
9261 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
9262 | return NULL; | |
9263 | _arg3 = new wxString(tmpPtr, tmpSize); | |
9264 | #else | |
b1462dfa RD |
9265 | if (!PyString_Check(_obj3)) { |
9266 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9267 | return NULL; | |
9268 | } | |
185d7c3e RD |
9269 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
9270 | #endif | |
b1462dfa RD |
9271 | } |
9272 | _arg4 = (bool ) tempbool4; | |
9273 | if (_argo5) { | |
9274 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
9275 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
9276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
9277 | return NULL; |
9278 | } | |
9279 | } | |
cf694132 | 9280 | { |
4268f798 | 9281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9282 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 | 9283 | |
4268f798 | 9284 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9285 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9286 | } if (_result) { |
9287 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
9288 | _resultobj = Py_BuildValue("s",_ptemp); | |
9289 | } else { | |
9290 | Py_INCREF(Py_None); | |
9291 | _resultobj = Py_None; | |
9292 | } | |
9293 | { | |
9294 | if (_obj2) | |
9295 | delete _arg2; | |
9296 | } | |
9297 | { | |
9298 | if (_obj3) | |
9299 | delete _arg3; | |
9300 | } | |
8ab979d7 RD |
9301 | return _resultobj; |
9302 | } | |
9303 | ||
b1462dfa RD |
9304 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
9305 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9306 | PyObject * _resultobj; |
b1462dfa | 9307 | wxMenu * _result; |
8ab979d7 | 9308 | wxMenuItem * _arg0; |
1d99702e | 9309 | PyObject * _argo0 = 0; |
efc5f224 | 9310 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9311 | |
9312 | self = self; | |
b1462dfa | 9313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 9314 | return NULL; |
1d99702e RD |
9315 | if (_argo0) { |
9316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9319 | return NULL; |
9320 | } | |
9321 | } | |
cf694132 | 9322 | { |
4268f798 | 9323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9324 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 | 9325 | |
4268f798 | 9326 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9327 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9328 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9329 | return _resultobj; |
9330 | } | |
9331 | ||
2abc0a0f RD |
9332 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
9333 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9334 | PyObject * _resultobj; |
9335 | wxMenuItem * _arg0; | |
2abc0a0f | 9336 | int _arg1; |
1d99702e | 9337 | PyObject * _argo0 = 0; |
2abc0a0f | 9338 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9339 | |
9340 | self = self; | |
2abc0a0f | 9341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9342 | return NULL; |
1d99702e RD |
9343 | if (_argo0) { |
9344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 9346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9347 | return NULL; |
9348 | } | |
9349 | } | |
cf694132 | 9350 | { |
4268f798 | 9351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2abc0a0f | 9352 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 | 9353 | |
4268f798 | 9354 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9355 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9356 | } Py_INCREF(Py_None); |
8ab979d7 | 9357 | _resultobj = Py_None; |
8ab979d7 RD |
9358 | return _resultobj; |
9359 | } | |
9360 | ||
b1462dfa RD |
9361 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
9362 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9363 | PyObject * _resultobj; |
b1462dfa | 9364 | int _result; |
8ab979d7 | 9365 | wxMenuItem * _arg0; |
1d99702e | 9366 | PyObject * _argo0 = 0; |
efc5f224 | 9367 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9368 | |
9369 | self = self; | |
b1462dfa | 9370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 9371 | return NULL; |
1d99702e RD |
9372 | if (_argo0) { |
9373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9376 | return NULL; |
9377 | } | |
9378 | } | |
8ab979d7 | 9379 | { |
4268f798 | 9380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9381 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 | 9382 | |
4268f798 | 9383 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9384 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9385 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9386 | return _resultobj; |
9387 | } | |
9388 | ||
b1462dfa RD |
9389 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
9390 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9391 | PyObject * _resultobj; |
b1462dfa | 9392 | bool _result; |
8ab979d7 | 9393 | wxMenuItem * _arg0; |
1d99702e | 9394 | PyObject * _argo0 = 0; |
efc5f224 | 9395 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9396 | |
9397 | self = self; | |
b1462dfa | 9398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 9399 | return NULL; |
1d99702e RD |
9400 | if (_argo0) { |
9401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9404 | return NULL; |
9405 | } | |
9406 | } | |
8ab979d7 | 9407 | { |
4268f798 | 9408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9409 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 | 9410 | |
4268f798 | 9411 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9412 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9413 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9414 | return _resultobj; |
9415 | } | |
9416 | ||
b1462dfa RD |
9417 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
9418 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9419 | PyObject * _resultobj; |
9420 | wxMenuItem * _arg0; | |
9421 | wxString * _arg1; | |
1d99702e | 9422 | PyObject * _argo0 = 0; |
8ab979d7 | 9423 | PyObject * _obj1 = 0; |
b1462dfa | 9424 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
9425 | |
9426 | self = self; | |
b1462dfa | 9427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9428 | return NULL; |
1d99702e RD |
9429 | if (_argo0) { |
9430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9433 | return NULL; |
9434 | } | |
9435 | } | |
9436 | { | |
185d7c3e RD |
9437 | #if PYTHON_API_VERSION >= 1009 |
9438 | char* tmpPtr; int tmpSize; | |
9439 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9440 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9441 | return NULL; |
9442 | } | |
9443 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9444 | return NULL; | |
9445 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9446 | #else | |
8ab979d7 RD |
9447 | if (!PyString_Check(_obj1)) { |
9448 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9449 | return NULL; | |
9450 | } | |
185d7c3e RD |
9451 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9452 | #endif | |
8ab979d7 | 9453 | } |
cf694132 | 9454 | { |
4268f798 | 9455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9456 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 | 9457 | |
4268f798 | 9458 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9459 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9460 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9461 | _resultobj = Py_None; |
9462 | { | |
9463 | if (_obj1) | |
9464 | delete _arg1; | |
9465 | } | |
9466 | return _resultobj; | |
9467 | } | |
9468 | ||
b1462dfa RD |
9469 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
9470 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9471 | PyObject * _resultobj; |
b1462dfa | 9472 | wxString * _result; |
8ab979d7 | 9473 | wxMenuItem * _arg0; |
1d99702e | 9474 | PyObject * _argo0 = 0; |
b1462dfa | 9475 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9476 | |
9477 | self = self; | |
b1462dfa | 9478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 9479 | return NULL; |
1d99702e RD |
9480 | if (_argo0) { |
9481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9484 | return NULL; |
9485 | } | |
9486 | } | |
cf694132 | 9487 | { |
4268f798 | 9488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9489 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 | 9490 | |
4268f798 | 9491 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9492 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9493 | }{ |
eec92d76 | 9494 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 | 9495 | } |
cf694132 | 9496 | { |
b1462dfa RD |
9497 | delete _result; |
9498 | } | |
cf694132 RD |
9499 | return _resultobj; |
9500 | } | |
9501 | ||
b1462dfa RD |
9502 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
9503 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9504 | PyObject * _resultobj; |
b1462dfa | 9505 | wxString * _result; |
cf694132 | 9506 | wxMenuItem * _arg0; |
1d99702e | 9507 | PyObject * _argo0 = 0; |
efc5f224 | 9508 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9509 | |
9510 | self = self; | |
b1462dfa | 9511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 9512 | return NULL; |
1d99702e RD |
9513 | if (_argo0) { |
9514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
9517 | return NULL; |
9518 | } | |
9519 | } | |
9520 | { | |
4268f798 | 9521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
9522 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
9523 | _result = (wxString *) &_result_ref; | |
cf694132 | 9524 | |
4268f798 | 9525 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9526 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9527 | }{ |
eec92d76 | 9528 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
cf694132 | 9529 | } |
cf694132 RD |
9530 | return _resultobj; |
9531 | } | |
9532 | ||
b1462dfa RD |
9533 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
9534 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9535 | PyObject * _resultobj; |
cf694132 | 9536 | wxMenuItem * _arg0; |
b1462dfa | 9537 | bool _arg1; |
1d99702e | 9538 | PyObject * _argo0 = 0; |
b1462dfa RD |
9539 | int tempbool1; |
9540 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
9541 | |
9542 | self = self; | |
b1462dfa | 9543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9544 | return NULL; |
1d99702e RD |
9545 | if (_argo0) { |
9546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9549 | return NULL; |
9550 | } | |
9551 | } | |
b1462dfa | 9552 | _arg1 = (bool ) tempbool1; |
cf694132 | 9553 | { |
4268f798 | 9554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9555 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 | 9556 | |
4268f798 | 9557 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9558 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9559 | } Py_INCREF(Py_None); |
9560 | _resultobj = Py_None; | |
cf694132 RD |
9561 | return _resultobj; |
9562 | } | |
9563 | ||
b1462dfa RD |
9564 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
9565 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9566 | PyObject * _resultobj; |
b1462dfa | 9567 | bool _result; |
cf694132 | 9568 | wxMenuItem * _arg0; |
1d99702e | 9569 | PyObject * _argo0 = 0; |
efc5f224 | 9570 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9571 | |
9572 | self = self; | |
b1462dfa | 9573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 9574 | return NULL; |
1d99702e RD |
9575 | if (_argo0) { |
9576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9579 | return NULL; |
9580 | } | |
9581 | } | |
9582 | { | |
4268f798 | 9583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9584 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 | 9585 | |
4268f798 | 9586 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9587 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9588 | } _resultobj = Py_BuildValue("i",_result); |
9589 | return _resultobj; | |
9590 | } | |
9591 | ||
b1462dfa RD |
9592 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
9593 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9594 | PyObject * _resultobj; |
b1462dfa | 9595 | bool _result; |
cf694132 | 9596 | wxMenuItem * _arg0; |
1d99702e | 9597 | PyObject * _argo0 = 0; |
efc5f224 | 9598 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9599 | |
9600 | self = self; | |
b1462dfa | 9601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 9602 | return NULL; |
1d99702e RD |
9603 | if (_argo0) { |
9604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9607 | return NULL; |
9608 | } | |
9609 | } | |
9610 | { | |
4268f798 | 9611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9612 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 | 9613 | |
4268f798 | 9614 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9615 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9616 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9617 | return _resultobj; |
9618 | } | |
9619 | ||
b1462dfa RD |
9620 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
9621 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9622 | PyObject * _resultobj; |
9623 | wxMenuItem * _arg0; | |
b1462dfa | 9624 | wxMenu * _arg1; |
1d99702e RD |
9625 | PyObject * _argo0 = 0; |
9626 | PyObject * _argo1 = 0; | |
b1462dfa | 9627 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
9628 | |
9629 | self = self; | |
b1462dfa | 9630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 9631 | return NULL; |
1d99702e RD |
9632 | if (_argo0) { |
9633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9636 | return NULL; |
9637 | } | |
9638 | } | |
1d99702e RD |
9639 | if (_argo1) { |
9640 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9641 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
9642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
9643 | return NULL; |
9644 | } | |
9645 | } | |
9646 | { | |
4268f798 | 9647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9648 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 | 9649 | |
4268f798 | 9650 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9651 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9652 | } Py_INCREF(Py_None); |
9653 | _resultobj = Py_None; | |
9654 | return _resultobj; | |
9655 | } | |
9656 | ||
b1462dfa RD |
9657 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
9658 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9659 | PyObject * _resultobj; |
b1462dfa | 9660 | wxMenu * _result; |
cf694132 | 9661 | wxMenuItem * _arg0; |
1d99702e | 9662 | PyObject * _argo0 = 0; |
b1462dfa | 9663 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9664 | |
9665 | self = self; | |
b1462dfa | 9666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 9667 | return NULL; |
1d99702e RD |
9668 | if (_argo0) { |
9669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9672 | return NULL; |
9673 | } | |
9674 | } | |
b1462dfa | 9675 | { |
4268f798 | 9676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
9677 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); |
9678 | ||
4268f798 | 9679 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9680 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9681 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
9682 | return _resultobj; |
9683 | } | |
9684 | ||
9685 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
9686 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9687 | PyObject * _resultobj; | |
9688 | wxMenuItem * _arg0; | |
9689 | bool _arg1 = (bool ) TRUE; | |
9690 | PyObject * _argo0 = 0; | |
9691 | int tempbool1 = (int) TRUE; | |
9692 | char *_kwnames[] = { "self","enable", NULL }; | |
9693 | ||
9694 | self = self; | |
9695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
9696 | return NULL; | |
9697 | if (_argo0) { | |
9698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
9701 | return NULL; |
9702 | } | |
9703 | } | |
b1462dfa | 9704 | _arg1 = (bool ) tempbool1; |
cf694132 | 9705 | { |
4268f798 | 9706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9707 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 | 9708 | |
4268f798 | 9709 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9710 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9711 | } Py_INCREF(Py_None); |
9712 | _resultobj = Py_None; | |
9713 | return _resultobj; | |
9714 | } | |
9715 | ||
b1462dfa RD |
9716 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
9717 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9718 | PyObject * _resultobj; |
b1462dfa | 9719 | bool _result; |
cf694132 | 9720 | wxMenuItem * _arg0; |
1d99702e | 9721 | PyObject * _argo0 = 0; |
b1462dfa | 9722 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9723 | |
9724 | self = self; | |
b1462dfa | 9725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 9726 | return NULL; |
1d99702e RD |
9727 | if (_argo0) { |
9728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
9731 | return NULL; |
9732 | } | |
9733 | } | |
9734 | { | |
4268f798 | 9735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9736 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 | 9737 | |
4268f798 | 9738 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9739 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9740 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9741 | return _resultobj; |
9742 | } | |
9743 | ||
b1462dfa RD |
9744 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
9745 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9746 | PyObject * _resultobj; |
9747 | wxMenuItem * _arg0; | |
b1462dfa | 9748 | bool _arg1 = (bool ) TRUE; |
1d99702e | 9749 | PyObject * _argo0 = 0; |
b1462dfa RD |
9750 | int tempbool1 = (int) TRUE; |
9751 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
9752 | |
9753 | self = self; | |
b1462dfa | 9754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9755 | return NULL; |
1d99702e RD |
9756 | if (_argo0) { |
9757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
9760 | return NULL; |
9761 | } | |
9762 | } | |
b1462dfa | 9763 | _arg1 = (bool ) tempbool1; |
cf694132 | 9764 | { |
4268f798 | 9765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9766 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 | 9767 | |
4268f798 | 9768 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9769 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9770 | } Py_INCREF(Py_None); |
9771 | _resultobj = Py_None; | |
9772 | return _resultobj; | |
9773 | } | |
9774 | ||
b1462dfa RD |
9775 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
9776 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9777 | PyObject * _resultobj; |
b1462dfa | 9778 | bool _result; |
2abc0a0f | 9779 | wxMenuItem * _arg0; |
2abc0a0f | 9780 | PyObject * _argo0 = 0; |
b1462dfa | 9781 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
9782 | |
9783 | self = self; | |
b1462dfa | 9784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
9785 | return NULL; |
9786 | if (_argo0) { | |
9787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9790 | return NULL; |
9791 | } | |
9792 | } | |
2abc0a0f | 9793 | { |
4268f798 | 9794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9795 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f | 9796 | |
4268f798 | 9797 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9798 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9799 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
9800 | return _resultobj; |
9801 | } | |
9802 | ||
b1462dfa RD |
9803 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
9804 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9805 | PyObject * _resultobj; |
2abc0a0f RD |
9806 | wxMenuItem * _arg0; |
9807 | PyObject * _argo0 = 0; | |
9808 | char *_kwnames[] = { "self", NULL }; | |
9809 | ||
9810 | self = self; | |
b1462dfa | 9811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
9812 | return NULL; |
9813 | if (_argo0) { | |
9814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9817 | return NULL; |
9818 | } | |
9819 | } | |
9820 | { | |
4268f798 | 9821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9822 | wxMenuItem_Toggle(_arg0); |
2abc0a0f | 9823 | |
4268f798 | 9824 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9825 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9826 | } Py_INCREF(Py_None); |
9827 | _resultobj = Py_None; | |
2abc0a0f RD |
9828 | return _resultobj; |
9829 | } | |
9830 | ||
b1462dfa RD |
9831 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
9832 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9833 | PyObject * _resultobj; |
9834 | wxMenuItem * _arg0; | |
b1462dfa | 9835 | wxString * _arg1; |
1d99702e | 9836 | PyObject * _argo0 = 0; |
b1462dfa RD |
9837 | PyObject * _obj1 = 0; |
9838 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
9839 | |
9840 | self = self; | |
b1462dfa | 9841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 9842 | return NULL; |
1d99702e RD |
9843 | if (_argo0) { |
9844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
9847 | return NULL; |
9848 | } | |
9849 | } | |
b1462dfa | 9850 | { |
185d7c3e RD |
9851 | #if PYTHON_API_VERSION >= 1009 |
9852 | char* tmpPtr; int tmpSize; | |
9853 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9854 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9855 | return NULL; |
9856 | } | |
9857 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9858 | return NULL; | |
9859 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9860 | #else | |
b1462dfa RD |
9861 | if (!PyString_Check(_obj1)) { |
9862 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
cf694132 | 9863 | return NULL; |
cf694132 | 9864 | } |
185d7c3e RD |
9865 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9866 | #endif | |
b1462dfa | 9867 | } |
cf694132 | 9868 | { |
4268f798 | 9869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9870 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 | 9871 | |
4268f798 | 9872 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9873 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9874 | } Py_INCREF(Py_None); |
8ab979d7 | 9875 | _resultobj = Py_None; |
b1462dfa RD |
9876 | { |
9877 | if (_obj1) | |
9878 | delete _arg1; | |
9879 | } | |
8ab979d7 RD |
9880 | return _resultobj; |
9881 | } | |
9882 | ||
b1462dfa RD |
9883 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
9884 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 9885 | PyObject * _resultobj; |
b1462dfa | 9886 | wxString * _result; |
be4d9c1f | 9887 | wxMenuItem * _arg0; |
1d99702e | 9888 | PyObject * _argo0 = 0; |
efc5f224 | 9889 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
9890 | |
9891 | self = self; | |
b1462dfa | 9892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 9893 | return NULL; |
1d99702e RD |
9894 | if (_argo0) { |
9895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
9898 | return NULL; |
9899 | } | |
9900 | } | |
cf694132 | 9901 | { |
4268f798 | 9902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
9903 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
9904 | _result = (wxString *) &_result_ref; | |
cf694132 | 9905 | |
4268f798 | 9906 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9907 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9908 | }{ |
eec92d76 | 9909 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa | 9910 | } |
be4d9c1f RD |
9911 | return _resultobj; |
9912 | } | |
9913 | ||
b1462dfa RD |
9914 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
9915 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9916 | PyObject * _resultobj; |
b1462dfa | 9917 | wxAcceleratorEntry * _result; |
2abc0a0f | 9918 | wxMenuItem * _arg0; |
2abc0a0f | 9919 | PyObject * _argo0 = 0; |
b1462dfa RD |
9920 | char *_kwnames[] = { "self", NULL }; |
9921 | char _ptemp[128]; | |
2abc0a0f RD |
9922 | |
9923 | self = self; | |
b1462dfa | 9924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
9925 | return NULL; |
9926 | if (_argo0) { | |
9927 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9928 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9930 | return NULL; |
9931 | } | |
9932 | } | |
2abc0a0f | 9933 | { |
4268f798 | 9934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9935 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f | 9936 | |
4268f798 | 9937 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9938 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9939 | } if (_result) { |
9940 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
9941 | _resultobj = Py_BuildValue("s",_ptemp); | |
9942 | } else { | |
9943 | Py_INCREF(Py_None); | |
9944 | _resultobj = Py_None; | |
9945 | } | |
2abc0a0f RD |
9946 | return _resultobj; |
9947 | } | |
9948 | ||
b1462dfa RD |
9949 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
9950 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
9951 | PyObject * _resultobj; |
9952 | wxMenuItem * _arg0; | |
b1462dfa | 9953 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
9954 | PyObject * _argo0 = 0; |
9955 | PyObject * _argo1 = 0; | |
b1462dfa | 9956 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
9957 | |
9958 | self = self; | |
b1462dfa | 9959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
9960 | return NULL; |
9961 | if (_argo0) { | |
9962 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9963 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9965 | return NULL; |
9966 | } | |
9967 | } | |
9968 | if (_argo1) { | |
9969 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9970 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
9971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
9972 | return NULL; |
9973 | } | |
9974 | } | |
9975 | { | |
4268f798 | 9976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9977 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f | 9978 | |
4268f798 | 9979 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9980 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
9981 | } Py_INCREF(Py_None); |
9982 | _resultobj = Py_None; | |
9983 | return _resultobj; | |
9984 | } | |
9985 | ||
1b62f00d RD |
9986 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
9987 | PyObject * _resultobj; | |
9988 | wxString * _result; | |
9989 | wxString * _arg0; | |
9990 | PyObject * _obj0 = 0; | |
9991 | char *_kwnames[] = { "text", NULL }; | |
9992 | ||
9993 | self = self; | |
9994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
9995 | return NULL; | |
9996 | { | |
9997 | #if PYTHON_API_VERSION >= 1009 | |
9998 | char* tmpPtr; int tmpSize; | |
9999 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 10000 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1b62f00d RD |
10001 | return NULL; |
10002 | } | |
10003 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
10004 | return NULL; | |
10005 | _arg0 = new wxString(tmpPtr, tmpSize); | |
10006 | #else | |
10007 | if (!PyString_Check(_obj0)) { | |
10008 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10009 | return NULL; | |
10010 | } | |
10011 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
10012 | #endif | |
10013 | } | |
10014 | { | |
4268f798 | 10015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1b62f00d RD |
10016 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); |
10017 | ||
4268f798 | 10018 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10019 | if (PyErr_Occurred()) return NULL; |
1b62f00d RD |
10020 | }{ |
10021 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10022 | } | |
10023 | { | |
10024 | if (_obj0) | |
10025 | delete _arg0; | |
10026 | } | |
10027 | { | |
10028 | delete _result; | |
10029 | } | |
10030 | return _resultobj; | |
10031 | } | |
10032 | ||
f3d9dc1d RD |
10033 | #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
10034 | static PyObject *_wrap_wxMenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10035 | PyObject * _resultobj; | |
10036 | wxMenuItem * _arg0; | |
10037 | wxFont * _arg1; | |
10038 | PyObject * _argo0 = 0; | |
10039 | PyObject * _argo1 = 0; | |
10040 | char *_kwnames[] = { "self","font", NULL }; | |
10041 | ||
10042 | self = self; | |
10043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
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_SetFont. Expected _wxMenuItem_p."); | |
10049 | return NULL; | |
10050 | } | |
10051 | } | |
10052 | if (_argo1) { | |
10053 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10054 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
10055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p."); | |
10056 | return NULL; | |
10057 | } | |
10058 | } | |
10059 | { | |
4268f798 | 10060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10061 | wxMenuItem_SetFont(_arg0,*_arg1); |
10062 | ||
4268f798 | 10063 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10064 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10065 | } Py_INCREF(Py_None); |
10066 | _resultobj = Py_None; | |
10067 | return _resultobj; | |
10068 | } | |
10069 | ||
10070 | #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
10071 | static PyObject *_wrap_wxMenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10072 | PyObject * _resultobj; | |
10073 | wxFont * _result; | |
10074 | wxMenuItem * _arg0; | |
10075 | PyObject * _argo0 = 0; | |
10076 | char *_kwnames[] = { "self", NULL }; | |
10077 | char _ptemp[128]; | |
10078 | ||
10079 | self = self; | |
10080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetFont",_kwnames,&_argo0)) | |
10081 | return NULL; | |
10082 | if (_argo0) { | |
10083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p."); | |
10086 | return NULL; | |
10087 | } | |
10088 | } | |
10089 | { | |
4268f798 | 10090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 10091 | _result = new wxFont (wxMenuItem_GetFont(_arg0)); |
f3d9dc1d | 10092 | |
4268f798 | 10093 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10094 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
10095 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
10096 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10097 | return _resultobj; |
10098 | } | |
10099 | ||
10100 | #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
10101 | static PyObject *_wrap_wxMenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10102 | PyObject * _resultobj; | |
10103 | wxMenuItem * _arg0; | |
10104 | wxColour * _arg1; | |
10105 | PyObject * _argo0 = 0; | |
10106 | wxColour temp; | |
10107 | PyObject * _obj1 = 0; | |
10108 | char *_kwnames[] = { "self","colText", NULL }; | |
10109 | ||
10110 | self = self; | |
10111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
10112 | return NULL; | |
10113 | if (_argo0) { | |
10114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p."); | |
10117 | return NULL; | |
10118 | } | |
10119 | } | |
10120 | { | |
10121 | _arg1 = &temp; | |
10122 | if (! wxColour_helper(_obj1, &_arg1)) | |
10123 | return NULL; | |
10124 | } | |
10125 | { | |
4268f798 | 10126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10127 | wxMenuItem_SetTextColour(_arg0,*_arg1); |
10128 | ||
4268f798 | 10129 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10130 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10131 | } Py_INCREF(Py_None); |
10132 | _resultobj = Py_None; | |
10133 | return _resultobj; | |
10134 | } | |
10135 | ||
10136 | #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
10137 | static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10138 | PyObject * _resultobj; | |
10139 | wxColour * _result; | |
10140 | wxMenuItem * _arg0; | |
10141 | PyObject * _argo0 = 0; | |
10142 | char *_kwnames[] = { "self", NULL }; | |
10143 | char _ptemp[128]; | |
10144 | ||
10145 | self = self; | |
10146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetTextColour",_kwnames,&_argo0)) | |
10147 | return NULL; | |
10148 | if (_argo0) { | |
10149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p."); | |
10152 | return NULL; | |
10153 | } | |
10154 | } | |
10155 | { | |
4268f798 | 10156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25832b3f | 10157 | _result = new wxColour (wxMenuItem_GetTextColour(_arg0)); |
f3d9dc1d | 10158 | |
4268f798 | 10159 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10160 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
10161 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
10162 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10163 | return _resultobj; |
10164 | } | |
10165 | ||
10166 | #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
10167 | static PyObject *_wrap_wxMenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10168 | PyObject * _resultobj; | |
10169 | wxMenuItem * _arg0; | |
10170 | wxColour * _arg1; | |
10171 | PyObject * _argo0 = 0; | |
10172 | wxColour temp; | |
10173 | PyObject * _obj1 = 0; | |
10174 | char *_kwnames[] = { "self","colBack", NULL }; | |
10175 | ||
10176 | self = self; | |
10177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
10178 | return NULL; | |
10179 | if (_argo0) { | |
10180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p."); | |
10183 | return NULL; | |
10184 | } | |
10185 | } | |
10186 | { | |
10187 | _arg1 = &temp; | |
10188 | if (! wxColour_helper(_obj1, &_arg1)) | |
10189 | return NULL; | |
10190 | } | |
10191 | { | |
4268f798 | 10192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10193 | wxMenuItem_SetBackgroundColour(_arg0,*_arg1); |
10194 | ||
4268f798 | 10195 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10196 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10197 | } Py_INCREF(Py_None); |
10198 | _resultobj = Py_None; | |
10199 | return _resultobj; | |
10200 | } | |
10201 | ||
10202 | #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
10203 | static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10204 | PyObject * _resultobj; | |
10205 | wxColour * _result; | |
10206 | wxMenuItem * _arg0; | |
10207 | PyObject * _argo0 = 0; | |
10208 | char *_kwnames[] = { "self", NULL }; | |
10209 | char _ptemp[128]; | |
10210 | ||
10211 | self = self; | |
10212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBackgroundColour",_kwnames,&_argo0)) | |
10213 | return NULL; | |
10214 | if (_argo0) { | |
10215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p."); | |
10218 | return NULL; | |
10219 | } | |
10220 | } | |
10221 | { | |
4268f798 | 10222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25832b3f | 10223 | _result = new wxColour (wxMenuItem_GetBackgroundColour(_arg0)); |
f3d9dc1d | 10224 | |
4268f798 | 10225 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10226 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
10227 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
10228 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10229 | return _resultobj; |
10230 | } | |
10231 | ||
10232 | #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1)) | |
10233 | static PyObject *_wrap_wxMenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10234 | PyObject * _resultobj; | |
10235 | wxMenuItem * _arg0; | |
10236 | wxBitmap * _arg1; | |
10237 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
10238 | PyObject * _argo0 = 0; | |
10239 | PyObject * _argo1 = 0; | |
10240 | PyObject * _argo2 = 0; | |
10241 | char *_kwnames[] = { "self","bmpChecked","bmpUnchecked", NULL }; | |
10242 | ||
10243 | self = self; | |
10244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxMenuItem_SetBitmaps",_kwnames,&_argo0,&_argo1,&_argo2)) | |
10245 | return NULL; | |
10246 | if (_argo0) { | |
10247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p."); | |
10250 | return NULL; | |
10251 | } | |
10252 | } | |
10253 | if (_argo1) { | |
10254 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10255 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
10257 | return NULL; | |
10258 | } | |
10259 | } | |
10260 | if (_argo2) { | |
10261 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10262 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
10263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
10264 | return NULL; | |
10265 | } | |
10266 | } | |
10267 | { | |
4268f798 | 10268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10269 | wxMenuItem_SetBitmaps(_arg0,*_arg1,*_arg2); |
10270 | ||
4268f798 | 10271 | wxPyEndAllowThreads(__tstate); |
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_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
10279 | static PyObject *_wrap_wxMenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10280 | PyObject * _resultobj; | |
10281 | wxMenuItem * _arg0; | |
10282 | wxBitmap * _arg1; | |
10283 | PyObject * _argo0 = 0; | |
10284 | PyObject * _argo1 = 0; | |
10285 | char *_kwnames[] = { "self","bmpChecked", NULL }; | |
10286 | ||
10287 | self = self; | |
10288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
10289 | return NULL; | |
10290 | if (_argo0) { | |
10291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p."); | |
10294 | return NULL; | |
10295 | } | |
10296 | } | |
10297 | if (_argo1) { | |
10298 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10299 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p."); | |
10301 | return NULL; | |
10302 | } | |
10303 | } | |
10304 | { | |
4268f798 | 10305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10306 | wxMenuItem_SetBitmap(_arg0,*_arg1); |
10307 | ||
4268f798 | 10308 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10309 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10310 | } Py_INCREF(Py_None); |
10311 | _resultobj = Py_None; | |
10312 | return _resultobj; | |
10313 | } | |
10314 | ||
10315 | #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0)) | |
10316 | static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10317 | PyObject * _resultobj; | |
10318 | wxBitmap * _result; | |
10319 | wxMenuItem * _arg0; | |
10320 | bool _arg1 = (bool ) TRUE; | |
10321 | PyObject * _argo0 = 0; | |
10322 | int tempbool1 = (int) TRUE; | |
10323 | char *_kwnames[] = { "self","bChecked", NULL }; | |
10324 | char _ptemp[128]; | |
10325 | ||
10326 | self = self; | |
10327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_GetBitmap",_kwnames,&_argo0,&tempbool1)) | |
10328 | return NULL; | |
10329 | if (_argo0) { | |
10330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p."); | |
10333 | return NULL; | |
10334 | } | |
10335 | } | |
10336 | _arg1 = (bool ) tempbool1; | |
10337 | { | |
4268f798 | 10338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 10339 | _result = new wxBitmap (wxMenuItem_GetBitmap(_arg0,_arg1)); |
f3d9dc1d | 10340 | |
4268f798 | 10341 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10342 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
10343 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
10344 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10345 | return _resultobj; |
10346 | } | |
10347 | ||
10348 | #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0)) | |
10349 | static PyObject *_wrap_wxMenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10350 | PyObject * _resultobj; | |
10351 | wxMenuItem * _arg0; | |
10352 | int _arg1; | |
10353 | PyObject * _argo0 = 0; | |
10354 | char *_kwnames[] = { "self","nWidth", NULL }; | |
10355 | ||
10356 | self = self; | |
10357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetMarginWidth",_kwnames,&_argo0,&_arg1)) | |
10358 | return NULL; | |
10359 | if (_argo0) { | |
10360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p."); | |
10363 | return NULL; | |
10364 | } | |
10365 | } | |
10366 | { | |
4268f798 | 10367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10368 | wxMenuItem_SetMarginWidth(_arg0,_arg1); |
10369 | ||
4268f798 | 10370 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10371 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10372 | } Py_INCREF(Py_None); |
10373 | _resultobj = Py_None; | |
10374 | return _resultobj; | |
10375 | } | |
10376 | ||
10377 | #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth()) | |
10378 | static PyObject *_wrap_wxMenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10379 | PyObject * _resultobj; | |
10380 | int _result; | |
10381 | wxMenuItem * _arg0; | |
10382 | PyObject * _argo0 = 0; | |
10383 | char *_kwnames[] = { "self", NULL }; | |
10384 | ||
10385 | self = self; | |
10386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMarginWidth",_kwnames,&_argo0)) | |
10387 | return NULL; | |
10388 | if (_argo0) { | |
10389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p."); | |
10392 | return NULL; | |
10393 | } | |
10394 | } | |
10395 | { | |
4268f798 | 10396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10397 | _result = (int )wxMenuItem_GetMarginWidth(_arg0); |
10398 | ||
4268f798 | 10399 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10400 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10401 | } _resultobj = Py_BuildValue("i",_result); |
10402 | return _resultobj; | |
10403 | } | |
10404 | ||
10405 | static PyObject *_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10406 | PyObject * _resultobj; | |
10407 | int _result; | |
10408 | char *_kwnames[] = { NULL }; | |
10409 | ||
10410 | self = self; | |
10411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMenuItem_GetDefaultMarginWidth",_kwnames)) | |
10412 | return NULL; | |
10413 | { | |
4268f798 | 10414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10415 | _result = (int )wxMenuItem::GetDefaultMarginWidth(); |
10416 | ||
4268f798 | 10417 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10418 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10419 | } _resultobj = Py_BuildValue("i",_result); |
10420 | return _resultobj; | |
10421 | } | |
10422 | ||
10423 | #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn()) | |
10424 | static PyObject *_wrap_wxMenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10425 | PyObject * _resultobj; | |
10426 | bool _result; | |
10427 | wxMenuItem * _arg0; | |
10428 | PyObject * _argo0 = 0; | |
10429 | char *_kwnames[] = { "self", NULL }; | |
10430 | ||
10431 | self = self; | |
10432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsOwnerDrawn",_kwnames,&_argo0)) | |
10433 | return NULL; | |
10434 | if (_argo0) { | |
10435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p."); | |
10438 | return NULL; | |
10439 | } | |
10440 | } | |
10441 | { | |
4268f798 | 10442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10443 | _result = (bool )wxMenuItem_IsOwnerDrawn(_arg0); |
10444 | ||
4268f798 | 10445 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10446 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10447 | } _resultobj = Py_BuildValue("i",_result); |
10448 | return _resultobj; | |
10449 | } | |
10450 | ||
10451 | #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn()) | |
10452 | static PyObject *_wrap_wxMenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10453 | PyObject * _resultobj; | |
10454 | wxMenuItem * _arg0; | |
10455 | PyObject * _argo0 = 0; | |
10456 | char *_kwnames[] = { "self", NULL }; | |
10457 | ||
10458 | self = self; | |
10459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_ResetOwnerDrawn",_kwnames,&_argo0)) | |
10460 | return NULL; | |
10461 | if (_argo0) { | |
10462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p."); | |
10465 | return NULL; | |
10466 | } | |
10467 | } | |
10468 | { | |
4268f798 | 10469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10470 | wxMenuItem_ResetOwnerDrawn(_arg0); |
10471 | ||
4268f798 | 10472 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10473 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10474 | } Py_INCREF(Py_None); |
10475 | _resultobj = Py_None; | |
10476 | return _resultobj; | |
10477 | } | |
10478 | ||
8ab979d7 | 10479 | static PyMethodDef windowscMethods[] = { |
f3d9dc1d RD |
10480 | { "wxMenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, |
10481 | { "wxMenuItem_IsOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
10482 | { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10483 | { "wxMenuItem_GetMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10484 | { "wxMenuItem_SetMarginWidth", (PyCFunction) _wrap_wxMenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10485 | { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10486 | { "wxMenuItem_SetBitmap", (PyCFunction) _wrap_wxMenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10487 | { "wxMenuItem_SetBitmaps", (PyCFunction) _wrap_wxMenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
10488 | { "wxMenuItem_GetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10489 | { "wxMenuItem_SetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10490 | { "wxMenuItem_GetTextColour", (PyCFunction) _wrap_wxMenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10491 | { "wxMenuItem_SetTextColour", (PyCFunction) _wrap_wxMenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10492 | { "wxMenuItem_GetFont", (PyCFunction) _wrap_wxMenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10493 | { "wxMenuItem_SetFont", (PyCFunction) _wrap_wxMenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 10494 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10495 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
10496 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
10497 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10498 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10499 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10500 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10501 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10502 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10503 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10504 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10505 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 10506 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10507 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10508 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
10509 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10510 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10511 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10512 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10513 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
10514 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10515 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10516 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10517 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10518 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
10519 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10520 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
10521 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10522 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10523 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10524 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
10525 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
10526 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
3a0958b1 | 10527 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10528 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, |
10529 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
10530 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
10531 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10532 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
10533 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
10534 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
10535 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10536 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
10537 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10538 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
10539 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
10540 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
10541 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10542 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10543 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10544 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10545 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10546 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
10547 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10548 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
10549 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10550 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10551 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
10552 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10553 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
10554 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10555 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10556 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10557 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10558 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10559 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
10560 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10561 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
10562 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 10563 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10564 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10565 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10566 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10567 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10568 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
10569 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
10570 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
10571 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
10572 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
10573 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
10574 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
d1679124 RD |
10575 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10576 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
10577 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
10578 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f RD |
10579 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, |
10580 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
4c9993c3 | 10581 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10582 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10583 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10584 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10585 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
10586 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
10587 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
10588 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10589 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10590 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10591 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10592 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10593 | { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
10594 | { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10595 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10596 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10597 | { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS }, |
10598 | { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10599 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, |
5a2930ab RD |
10600 | { "wxWindow_SetDefaultItem", (PyCFunction) _wrap_wxWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
10601 | { "wxWindow_GetDefaultItem", (PyCFunction) _wrap_wxWindow_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
07c99b26 | 10602 | { "wxWindow_OnPaint", (PyCFunction) _wrap_wxWindow_OnPaint, METH_VARARGS | METH_KEYWORDS }, |
900d9886 | 10603 | { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 | 10604 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10605 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
10606 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
10607 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
10608 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c RD |
10609 | { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS }, |
10610 | { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
10611 | { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
10612 | { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
10613 | { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
10614 | { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
4f3449b4 RD |
10615 | { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS }, |
10616 | { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 | 10617 | { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS }, |
3a0958b1 RD |
10618 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, |
10619 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
10620 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
10621 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 10622 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10623 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
10624 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10625 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
10626 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10627 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10628 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10629 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
10630 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
10631 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
10632 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10633 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10634 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10635 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10636 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10637 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10638 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
10639 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
10640 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
10641 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
10642 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10643 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
83b18bab | 10644 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 10645 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10646 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
10647 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10648 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
10649 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
dbbb98cd | 10650 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10651 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
10652 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
10653 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
10654 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10655 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
10656 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
10657 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10658 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10659 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10660 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10661 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10662 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10663 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10664 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 10665 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10666 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10667 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, |
10668 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
10669 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
10670 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10671 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10672 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 | 10673 | { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10674 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, |
10675 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
10676 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
10677 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10678 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
10679 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10680 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
10681 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10682 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
10683 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
10684 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
10685 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
10686 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
10687 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
10688 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
10689 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
10690 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
10691 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10692 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10693 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
10694 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10695 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
10696 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10697 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
10698 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
10699 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10700 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10701 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10702 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10703 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10704 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
10705 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10706 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
10707 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
10708 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10709 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10710 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
10711 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
10712 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10713 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10714 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 10715 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10716 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
10717 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10718 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 10719 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10720 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10721 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10722 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10723 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
10724 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10725 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10726 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
10727 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
10728 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
10729 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
10730 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
10731 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 10732 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10733 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, |
10734 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
10735 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
10736 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
10737 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
d56cebe7 | 10738 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, |
3ca6a5f0 BP |
10739 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
10740 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10741 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
10742 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
10743 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
10744 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
10745 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
10746 | { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
10747 | { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10748 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, |
0122b7e3 | 10749 | { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10750 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
9416aa89 RD |
10751 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
10752 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10753 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
10754 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10755 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
10756 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 10757 | { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 10758 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10759 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
10760 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
10761 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10762 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
10763 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10764 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10765 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10766 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10767 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 10768 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10769 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
10770 | { NULL, NULL } |
10771 | }; | |
1d99702e RD |
10772 | #ifdef __cplusplus |
10773 | } | |
10774 | #endif | |
10775 | /* | |
10776 | * This table is used by the pointer type-checker | |
10777 | */ | |
10778 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 10779 | { "_signed_long","_long",0}, |
b1462dfa | 10780 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
10781 | { "_wxPrintQuality","_int",0}, |
10782 | { "_wxPrintQuality","_signed_int",0}, | |
10783 | { "_wxPrintQuality","_unsigned_int",0}, | |
10784 | { "_wxPrintQuality","_wxWindowID",0}, | |
10785 | { "_wxPrintQuality","_uint",0}, | |
10786 | { "_wxPrintQuality","_EBool",0}, | |
10787 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10788 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 10789 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
10790 | { "_long","_unsigned_long",0}, |
10791 | { "_long","_signed_long",0}, | |
b1462dfa | 10792 | { "_size_t","_wxCoord",0}, |
1d99702e | 10793 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10794 | { "_size_t","_time_t",0}, |
1d99702e RD |
10795 | { "_size_t","_unsigned_int",0}, |
10796 | { "_size_t","_int",0}, | |
10797 | { "_size_t","_wxWindowID",0}, | |
10798 | { "_size_t","_uint",0}, | |
1d99702e | 10799 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
b1462dfa | 10800 | { "_uint","_wxCoord",0}, |
1d99702e | 10801 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10802 | { "_uint","_time_t",0}, |
1d99702e RD |
10803 | { "_uint","_size_t",0}, |
10804 | { "_uint","_unsigned_int",0}, | |
10805 | { "_uint","_int",0}, | |
10806 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10807 | { "_wxChar","_char",0}, |
f6bcfd97 | 10808 | { "_char","_wxChar",0}, |
cdf14688 | 10809 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 10810 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10811 | { "_EBool","_wxPrintQuality",0}, |
10812 | { "_EBool","_signed_int",0}, | |
10813 | { "_EBool","_int",0}, | |
10814 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 10815 | { "_unsigned_long","_long",0}, |
cdf14688 | 10816 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 10817 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10818 | { "_signed_int","_wxPrintQuality",0}, |
10819 | { "_signed_int","_EBool",0}, | |
10820 | { "_signed_int","_wxWindowID",0}, | |
10821 | { "_signed_int","_int",0}, | |
1d99702e RD |
10822 | { "_WXTYPE","_short",0}, |
10823 | { "_WXTYPE","_signed_short",0}, | |
10824 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
10825 | { "_unsigned_short","_WXTYPE",0}, |
10826 | { "_unsigned_short","_short",0}, | |
9416aa89 | 10827 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, |
9416aa89 | 10828 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, |
9416aa89 | 10829 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, |
9416aa89 | 10830 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, |
9416aa89 | 10831 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, |
9416aa89 | 10832 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, |
9416aa89 | 10833 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, |
9416aa89 | 10834 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, |
9416aa89 | 10835 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, |
1d99702e RD |
10836 | { "_signed_short","_WXTYPE",0}, |
10837 | { "_signed_short","_short",0}, | |
1d99702e | 10838 | { "_unsigned_char","_byte",0}, |
b1462dfa | 10839 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10840 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10841 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10842 | { "_unsigned_int","_size_t",0}, |
10843 | { "_unsigned_int","_uint",0}, | |
10844 | { "_unsigned_int","_wxWindowID",0}, | |
10845 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
10846 | { "_short","_WXTYPE",0}, |
10847 | { "_short","_unsigned_short",0}, | |
10848 | { "_short","_signed_short",0}, | |
b1462dfa | 10849 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10850 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10851 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10852 | { "_wxWindowID","_size_t",0}, |
10853 | { "_wxWindowID","_EBool",0}, | |
10854 | { "_wxWindowID","_uint",0}, | |
10855 | { "_wxWindowID","_int",0}, | |
10856 | { "_wxWindowID","_signed_int",0}, | |
10857 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10858 | { "_int","_wxCoord",0}, |
1d99702e | 10859 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10860 | { "_int","_time_t",0}, |
1d99702e RD |
10861 | { "_int","_size_t",0}, |
10862 | { "_int","_EBool",0}, | |
10863 | { "_int","_uint",0}, | |
10864 | { "_int","_wxWindowID",0}, | |
10865 | { "_int","_unsigned_int",0}, | |
10866 | { "_int","_signed_int",0}, | |
c368d904 RD |
10867 | { "_time_t","_wxCoord",0}, |
10868 | { "_time_t","_wxPrintQuality",0}, | |
10869 | { "_time_t","_unsigned_int",0}, | |
10870 | { "_time_t","_int",0}, | |
10871 | { "_time_t","_wxWindowID",0}, | |
10872 | { "_time_t","_uint",0}, | |
10873 | { "_time_t","_size_t",0}, | |
2f90df85 | 10874 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
b1462dfa RD |
10875 | { "_wxCoord","_int",0}, |
10876 | { "_wxCoord","_signed_int",0}, | |
10877 | { "_wxCoord","_unsigned_int",0}, | |
10878 | { "_wxCoord","_wxWindowID",0}, | |
10879 | { "_wxCoord","_uint",0}, | |
10880 | { "_wxCoord","_EBool",0}, | |
10881 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10882 | { "_wxCoord","_time_t",0}, |
b1462dfa | 10883 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 10884 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
1d99702e | 10885 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, |
1d99702e | 10886 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, |
1d99702e | 10887 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, |
1d99702e | 10888 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, |
2f90df85 | 10889 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
2f90df85 | 10890 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, |
b1462dfa | 10891 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, |
1d99702e | 10892 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
1d99702e | 10893 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, |
1d99702e RD |
10894 | {0,0,0}}; |
10895 | ||
8ab979d7 RD |
10896 | static PyObject *SWIG_globals; |
10897 | #ifdef __cplusplus | |
10898 | extern "C" | |
10899 | #endif | |
1d99702e | 10900 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
10901 | PyObject *m, *d; |
10902 | SWIG_globals = SWIG_newvarlink(); | |
10903 | m = Py_InitModule("windowsc", windowscMethods); | |
10904 | d = PyModule_GetDict(m); | |
1d99702e RD |
10905 | { |
10906 | int i; | |
10907 | for (i = 0; _swig_mapping[i].n1; i++) | |
10908 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10909 | } | |
8ab979d7 | 10910 | } |