]>
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 | ||
c6c593e8 RD |
3320 | #define wxWindow_RemoveEventHandler(_swigobj,_swigarg0) (_swigobj->RemoveEventHandler(_swigarg0)) |
3321 | static PyObject *_wrap_wxWindow_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3322 | PyObject * _resultobj; | |
3323 | bool _result; | |
3324 | wxWindow * _arg0; | |
3325 | wxEvtHandler * _arg1; | |
3326 | PyObject * _argo0 = 0; | |
3327 | PyObject * _argo1 = 0; | |
3328 | char *_kwnames[] = { "self","handler", NULL }; | |
3329 | ||
3330 | self = self; | |
3331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveEventHandler",_kwnames,&_argo0,&_argo1)) | |
3332 | return NULL; | |
3333 | if (_argo0) { | |
3334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveEventHandler. Expected _wxWindow_p."); | |
3337 | return NULL; | |
3338 | } | |
3339 | } | |
3340 | if (_argo1) { | |
3341 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3342 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveEventHandler. Expected _wxEvtHandler_p."); | |
3344 | return NULL; | |
3345 | } | |
3346 | } | |
3347 | { | |
3348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3349 | _result = (bool )wxWindow_RemoveEventHandler(_arg0,_arg1); | |
3350 | ||
3351 | wxPyEndAllowThreads(__tstate); | |
3352 | if (PyErr_Occurred()) return NULL; | |
3353 | } _resultobj = Py_BuildValue("i",_result); | |
3354 | return _resultobj; | |
3355 | } | |
3356 | ||
8bf5d46e | 3357 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3358 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3359 | PyObject * _resultobj; |
3360 | bool _result; | |
3361 | wxWindow * _arg0; | |
3362 | wxMenu * _arg1; | |
3363 | int _arg2; | |
3364 | int _arg3; | |
1d99702e RD |
3365 | PyObject * _argo0 = 0; |
3366 | PyObject * _argo1 = 0; | |
efc5f224 | 3367 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3368 | |
3369 | self = self; | |
efc5f224 | 3370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3371 | return NULL; |
1d99702e RD |
3372 | if (_argo0) { |
3373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3376 | return NULL; | |
3377 | } | |
3378 | } | |
1d99702e RD |
3379 | if (_argo1) { |
3380 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3381 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3383 | return NULL; | |
3384 | } | |
3385 | } | |
3386 | { | |
4268f798 | 3387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8bf5d46e RD |
3388 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); |
3389 | ||
4268f798 | 3390 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3391 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
3392 | } _resultobj = Py_BuildValue("i",_result); |
3393 | return _resultobj; | |
3394 | } | |
3395 | ||
3396 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3397 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3398 | PyObject * _resultobj; |
3399 | bool _result; | |
3400 | wxWindow * _arg0; | |
3401 | wxMenu * _arg1; | |
3402 | wxPoint * _arg2; | |
1d99702e RD |
3403 | PyObject * _argo0 = 0; |
3404 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3405 | wxPoint temp; |
3406 | PyObject * _obj2 = 0; | |
efc5f224 | 3407 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3408 | |
3409 | self = self; | |
2f90df85 | 3410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3411 | return NULL; |
1d99702e RD |
3412 | if (_argo0) { |
3413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3416 | return NULL; | |
3417 | } | |
3418 | } | |
1d99702e RD |
3419 | if (_argo1) { |
3420 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3421 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3423 | return NULL; | |
3424 | } | |
3425 | } | |
2f90df85 RD |
3426 | { |
3427 | _arg2 = &temp; | |
3428 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3429 | return NULL; |
2f90df85 | 3430 | } |
cf694132 | 3431 | { |
4268f798 | 3432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8bf5d46e | 3433 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 | 3434 | |
4268f798 | 3435 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3436 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3437 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3438 | return _resultobj; |
3439 | } | |
3440 | ||
3441 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3442 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3443 | PyObject * _resultobj; |
3444 | wxWindow * _arg0; | |
1d99702e | 3445 | PyObject * _argo0 = 0; |
efc5f224 | 3446 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3447 | |
3448 | self = self; | |
efc5f224 | 3449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3450 | return NULL; |
1d99702e RD |
3451 | if (_argo0) { |
3452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3455 | return NULL; | |
3456 | } | |
3457 | } | |
cf694132 | 3458 | { |
4268f798 | 3459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3460 | wxWindow_Raise(_arg0); |
3461 | ||
4268f798 | 3462 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3463 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3464 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3465 | _resultobj = Py_None; |
3466 | return _resultobj; | |
3467 | } | |
3468 | ||
3469 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3470 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3471 | PyObject * _resultobj; |
3472 | wxWindow * _arg0; | |
1d99702e RD |
3473 | bool _arg1 = (bool ) TRUE; |
3474 | wxRect * _arg2 = (wxRect *) NULL; | |
3475 | PyObject * _argo0 = 0; | |
3476 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3477 | wxRect temp; |
3478 | PyObject * _obj2 = 0; | |
efc5f224 | 3479 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3480 | |
3481 | self = self; | |
2f90df85 | 3482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3483 | return NULL; |
1d99702e RD |
3484 | if (_argo0) { |
3485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3488 | return NULL; | |
3489 | } | |
3490 | } | |
3491 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3492 | if (_obj2) |
3493 | { | |
3494 | _arg2 = &temp; | |
3495 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3496 | return NULL; |
2f90df85 | 3497 | } |
cf694132 | 3498 | { |
4268f798 | 3499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3500 | wxWindow_Refresh(_arg0,_arg1,_arg2); |
3501 | ||
4268f798 | 3502 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3503 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3504 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3505 | _resultobj = Py_None; |
3506 | return _resultobj; | |
3507 | } | |
3508 | ||
09f3d4e6 RD |
3509 | #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0)) |
3510 | static PyObject *_wrap_wxWindow_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3511 | PyObject * _resultobj; | |
3512 | wxWindow * _arg0; | |
3513 | wxRect * _arg1; | |
3514 | PyObject * _argo0 = 0; | |
3515 | wxRect temp; | |
3516 | PyObject * _obj1 = 0; | |
3517 | char *_kwnames[] = { "self","rect", NULL }; | |
3518 | ||
3519 | self = self; | |
3520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RefreshRect",_kwnames,&_argo0,&_obj1)) | |
3521 | return NULL; | |
3522 | if (_argo0) { | |
3523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p."); | |
3526 | return NULL; | |
3527 | } | |
3528 | } | |
3529 | { | |
3530 | _arg1 = &temp; | |
3531 | if (! wxRect_helper(_obj1, &_arg1)) | |
3532 | return NULL; | |
3533 | } | |
3534 | { | |
4268f798 | 3535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
3536 | wxWindow_RefreshRect(_arg0,*_arg1); |
3537 | ||
4268f798 | 3538 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
3539 | if (PyErr_Occurred()) return NULL; |
3540 | } Py_INCREF(Py_None); | |
3541 | _resultobj = Py_None; | |
3542 | return _resultobj; | |
3543 | } | |
3544 | ||
8ab979d7 | 3545 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) |
efc5f224 | 3546 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3547 | PyObject * _resultobj; |
3548 | wxWindow * _arg0; | |
1d99702e | 3549 | PyObject * _argo0 = 0; |
efc5f224 | 3550 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3551 | |
3552 | self = self; | |
efc5f224 | 3553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
8ab979d7 | 3554 | return NULL; |
1d99702e RD |
3555 | if (_argo0) { |
3556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); |
3559 | return NULL; | |
3560 | } | |
3561 | } | |
cf694132 | 3562 | { |
4268f798 | 3563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3564 | wxWindow_ReleaseMouse(_arg0); |
3565 | ||
4268f798 | 3566 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3567 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3568 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3569 | _resultobj = Py_None; |
3570 | return _resultobj; | |
3571 | } | |
3572 | ||
b7e72427 RD |
3573 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3574 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3575 | PyObject * _resultobj; | |
3576 | wxWindow * _arg0; | |
3577 | wxWindow * _arg1; | |
3578 | PyObject * _argo0 = 0; | |
3579 | PyObject * _argo1 = 0; | |
3580 | char *_kwnames[] = { "self","child", NULL }; | |
3581 | ||
3582 | self = self; | |
3583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3584 | return NULL; | |
3585 | if (_argo0) { | |
3586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3589 | return NULL; | |
3590 | } | |
3591 | } | |
3592 | if (_argo1) { | |
3593 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3594 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3596 | return NULL; | |
3597 | } | |
3598 | } | |
3599 | { | |
4268f798 | 3600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b7e72427 RD |
3601 | wxWindow_RemoveChild(_arg0,_arg1); |
3602 | ||
4268f798 | 3603 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3604 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
3605 | } Py_INCREF(Py_None); |
3606 | _resultobj = Py_None; | |
3607 | return _resultobj; | |
3608 | } | |
3609 | ||
bb0054cd | 3610 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3611 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3612 | PyObject * _resultobj; |
3613 | bool _result; | |
3614 | wxWindow * _arg0; | |
3615 | wxWindow * _arg1; | |
1d99702e RD |
3616 | PyObject * _argo0 = 0; |
3617 | PyObject * _argo1 = 0; | |
efc5f224 | 3618 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3619 | |
3620 | self = self; | |
efc5f224 | 3621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3622 | return NULL; |
1d99702e RD |
3623 | if (_argo0) { |
3624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3627 | return NULL; | |
3628 | } | |
3629 | } | |
1d99702e RD |
3630 | if (_argo1) { |
3631 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3632 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3634 | return NULL; | |
3635 | } | |
3636 | } | |
3637 | { | |
4268f798 | 3638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd RD |
3639 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); |
3640 | ||
4268f798 | 3641 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3642 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3643 | } _resultobj = Py_BuildValue("i",_result); |
3644 | return _resultobj; | |
3645 | } | |
3646 | ||
af309447 | 3647 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3648 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3649 | PyObject * _resultobj; |
3650 | wxWindow * _arg0; | |
3651 | int * _arg1; | |
3652 | int * _arg2; | |
1d99702e | 3653 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3654 | int temp; |
3655 | PyObject * _obj1 = 0; | |
3656 | int temp0; | |
3657 | PyObject * _obj2 = 0; | |
efc5f224 | 3658 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3659 | |
3660 | self = self; | |
efc5f224 | 3661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3662 | return NULL; |
1d99702e RD |
3663 | if (_argo0) { |
3664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3667 | return NULL; |
3668 | } | |
3669 | } | |
3670 | { | |
3671 | temp = (int) PyInt_AsLong(_obj1); | |
3672 | _arg1 = &temp; | |
3673 | } | |
3674 | { | |
3675 | temp0 = (int) PyInt_AsLong(_obj2); | |
3676 | _arg2 = &temp0; | |
3677 | } | |
cf694132 | 3678 | { |
4268f798 | 3679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3680 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); |
3681 | ||
4268f798 | 3682 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3683 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3684 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3685 | _resultobj = Py_None; |
3686 | { | |
3687 | PyObject *o; | |
3688 | o = PyInt_FromLong((long) (*_arg1)); | |
3689 | _resultobj = t_output_helper(_resultobj, o); | |
3690 | } | |
3691 | { | |
3692 | PyObject *o; | |
3693 | o = PyInt_FromLong((long) (*_arg2)); | |
3694 | _resultobj = t_output_helper(_resultobj, o); | |
3695 | } | |
3696 | return _resultobj; | |
3697 | } | |
3698 | ||
af309447 | 3699 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3700 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3701 | PyObject * _resultobj; |
3702 | wxPoint * _result; | |
3703 | wxWindow * _arg0; | |
3704 | wxPoint * _arg1; | |
1d99702e | 3705 | PyObject * _argo0 = 0; |
2f90df85 RD |
3706 | wxPoint temp; |
3707 | PyObject * _obj1 = 0; | |
efc5f224 | 3708 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3709 | char _ptemp[128]; |
3710 | ||
3711 | self = self; | |
2f90df85 | 3712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3713 | return NULL; |
1d99702e RD |
3714 | if (_argo0) { |
3715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3718 | return NULL; | |
3719 | } | |
3720 | } | |
2f90df85 RD |
3721 | { |
3722 | _arg1 = &temp; | |
3723 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3724 | return NULL; |
2f90df85 | 3725 | } |
cf694132 | 3726 | { |
4268f798 | 3727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3728 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); |
3729 | ||
4268f798 | 3730 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3731 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3732 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
3733 | _resultobj = Py_BuildValue("s",_ptemp); |
3734 | return _resultobj; | |
3735 | } | |
3736 | ||
8ab979d7 | 3737 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3738 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3739 | PyObject * _resultobj; |
3740 | wxWindow * _arg0; | |
3741 | int _arg1; | |
3742 | int _arg2; | |
1d99702e RD |
3743 | wxRect * _arg3 = (wxRect *) NULL; |
3744 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3745 | wxRect temp; |
3746 | PyObject * _obj3 = 0; | |
efc5f224 | 3747 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3748 | |
3749 | self = self; | |
2f90df85 | 3750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3751 | return NULL; |
1d99702e RD |
3752 | if (_argo0) { |
3753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3756 | return NULL; | |
3757 | } | |
3758 | } | |
2f90df85 RD |
3759 | if (_obj3) |
3760 | { | |
3761 | _arg3 = &temp; | |
3762 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3763 | return NULL; |
2f90df85 | 3764 | } |
cf694132 | 3765 | { |
4268f798 | 3766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3767 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); |
3768 | ||
4268f798 | 3769 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3770 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3771 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3772 | _resultobj = Py_None; |
3773 | return _resultobj; | |
3774 | } | |
3775 | ||
3776 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) | |
efc5f224 | 3777 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3778 | PyObject * _resultobj; |
3779 | wxWindow * _arg0; | |
3780 | bool _arg1; | |
1d99702e | 3781 | PyObject * _argo0 = 0; |
8ab979d7 | 3782 | int tempbool1; |
efc5f224 | 3783 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3784 | |
3785 | self = self; | |
efc5f224 | 3786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3787 | return NULL; |
1d99702e RD |
3788 | if (_argo0) { |
3789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3792 | return NULL; | |
3793 | } | |
3794 | } | |
3795 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3796 | { |
4268f798 | 3797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3798 | wxWindow_SetAutoLayout(_arg0,_arg1); |
3799 | ||
4268f798 | 3800 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3801 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3802 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3803 | _resultobj = Py_None; |
3804 | return _resultobj; | |
3805 | } | |
3806 | ||
9d8bd15f RD |
3807 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3808 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3809 | PyObject * _resultobj; | |
3810 | bool _result; | |
3811 | wxWindow * _arg0; | |
3812 | PyObject * _argo0 = 0; | |
3813 | char *_kwnames[] = { "self", NULL }; | |
3814 | ||
3815 | self = self; | |
3816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3817 | return NULL; | |
3818 | if (_argo0) { | |
3819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3822 | return NULL; | |
3823 | } | |
3824 | } | |
3825 | { | |
4268f798 | 3826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9d8bd15f RD |
3827 | _result = (bool )wxWindow_GetAutoLayout(_arg0); |
3828 | ||
4268f798 | 3829 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3830 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
3831 | } _resultobj = Py_BuildValue("i",_result); |
3832 | return _resultobj; | |
3833 | } | |
3834 | ||
8ab979d7 | 3835 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3836 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3837 | PyObject * _resultobj; |
3838 | wxWindow * _arg0; | |
3839 | wxColour * _arg1; | |
1d99702e | 3840 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3841 | wxColour temp; |
3842 | PyObject * _obj1 = 0; | |
efc5f224 | 3843 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3844 | |
3845 | self = self; | |
f6bcfd97 | 3846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3847 | return NULL; |
1d99702e RD |
3848 | if (_argo0) { |
3849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3852 | return NULL; | |
3853 | } | |
3854 | } | |
f6bcfd97 BP |
3855 | { |
3856 | _arg1 = &temp; | |
3857 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3858 | return NULL; |
f6bcfd97 | 3859 | } |
cf694132 | 3860 | { |
4268f798 | 3861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3862 | wxWindow_SetBackgroundColour(_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 | ||
3871 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 3872 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3873 | PyObject * _resultobj; |
3874 | wxWindow * _arg0; | |
3875 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
3876 | PyObject * _argo0 = 0; |
3877 | PyObject * _argo1 = 0; | |
efc5f224 | 3878 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
3879 | |
3880 | self = self; | |
efc5f224 | 3881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3882 | return NULL; |
1d99702e RD |
3883 | if (_argo0) { |
3884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3887 | return NULL; | |
3888 | } | |
3889 | } | |
1d99702e RD |
3890 | if (_argo1) { |
3891 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3892 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
3893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3894 | return NULL; | |
3895 | } | |
3896 | } | |
cf694132 | 3897 | { |
4268f798 | 3898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3899 | wxWindow_SetConstraints(_arg0,_arg1); |
3900 | ||
4268f798 | 3901 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3902 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3903 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3904 | _resultobj = Py_None; |
3905 | return _resultobj; | |
3906 | } | |
3907 | ||
2f90df85 RD |
3908 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
3909 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3910 | PyObject * _resultobj; | |
3911 | wxWindow * _arg0; | |
3912 | wxLayoutConstraints * _arg1; | |
3913 | PyObject * _argo0 = 0; | |
3914 | PyObject * _argo1 = 0; | |
3915 | char *_kwnames[] = { "self","constraints", NULL }; | |
3916 | ||
3917 | self = self; | |
3918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3919 | return NULL; | |
3920 | if (_argo0) { | |
3921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3924 | return NULL; | |
3925 | } | |
3926 | } | |
3927 | if (_argo1) { | |
3928 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3929 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3931 | return NULL; | |
3932 | } | |
3933 | } | |
3934 | { | |
4268f798 | 3935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
3936 | wxWindow_UnsetConstraints(_arg0,_arg1); |
3937 | ||
4268f798 | 3938 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3939 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
3940 | } Py_INCREF(Py_None); |
3941 | _resultobj = Py_None; | |
3942 | return _resultobj; | |
3943 | } | |
3944 | ||
8ab979d7 | 3945 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 3946 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3947 | PyObject * _resultobj; |
3948 | wxWindow * _arg0; | |
1d99702e | 3949 | PyObject * _argo0 = 0; |
efc5f224 | 3950 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3951 | |
3952 | self = self; | |
efc5f224 | 3953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 3954 | return NULL; |
1d99702e RD |
3955 | if (_argo0) { |
3956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
3959 | return NULL; | |
3960 | } | |
3961 | } | |
cf694132 | 3962 | { |
4268f798 | 3963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3964 | wxWindow_SetFocus(_arg0); |
3965 | ||
4268f798 | 3966 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3967 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3968 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3969 | _resultobj = Py_None; |
3970 | return _resultobj; | |
3971 | } | |
3972 | ||
2f90df85 RD |
3973 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
3974 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3975 | PyObject * _resultobj; | |
3976 | bool _result; | |
3977 | wxWindow * _arg0; | |
3978 | PyObject * _argo0 = 0; | |
3979 | char *_kwnames[] = { "self", NULL }; | |
3980 | ||
3981 | self = self; | |
3982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3983 | return NULL; | |
3984 | if (_argo0) { | |
3985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3988 | return NULL; | |
3989 | } | |
3990 | } | |
3991 | { | |
4268f798 | 3992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
3993 | _result = (bool )wxWindow_AcceptsFocus(_arg0); |
3994 | ||
4268f798 | 3995 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3996 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
3997 | } _resultobj = Py_BuildValue("i",_result); |
3998 | return _resultobj; | |
3999 | } | |
4000 | ||
8ab979d7 | 4001 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 4002 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4003 | PyObject * _resultobj; |
4004 | wxWindow * _arg0; | |
4005 | wxFont * _arg1; | |
1d99702e RD |
4006 | PyObject * _argo0 = 0; |
4007 | PyObject * _argo1 = 0; | |
efc5f224 | 4008 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
4009 | |
4010 | self = self; | |
efc5f224 | 4011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4012 | return NULL; |
1d99702e RD |
4013 | if (_argo0) { |
4014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
4017 | return NULL; | |
4018 | } | |
4019 | } | |
1d99702e RD |
4020 | if (_argo1) { |
4021 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4022 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
4023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
4024 | return NULL; | |
4025 | } | |
4026 | } | |
cf694132 | 4027 | { |
4268f798 | 4028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4029 | wxWindow_SetFont(_arg0,*_arg1); |
4030 | ||
4268f798 | 4031 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4032 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4033 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4034 | _resultobj = Py_None; |
4035 | return _resultobj; | |
4036 | } | |
4037 | ||
4038 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 4039 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4040 | PyObject * _resultobj; |
4041 | wxWindow * _arg0; | |
4042 | wxColour * _arg1; | |
1d99702e | 4043 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4044 | wxColour temp; |
4045 | PyObject * _obj1 = 0; | |
efc5f224 | 4046 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
4047 | |
4048 | self = self; | |
f6bcfd97 | 4049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4050 | return NULL; |
1d99702e RD |
4051 | if (_argo0) { |
4052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
4055 | return NULL; | |
4056 | } | |
4057 | } | |
f6bcfd97 BP |
4058 | { |
4059 | _arg1 = &temp; | |
4060 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4061 | return NULL; |
f6bcfd97 | 4062 | } |
cf694132 | 4063 | { |
4268f798 | 4064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4065 | wxWindow_SetForegroundColour(_arg0,*_arg1); |
4066 | ||
4268f798 | 4067 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4068 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4069 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4070 | _resultobj = Py_None; |
4071 | return _resultobj; | |
4072 | } | |
4073 | ||
4074 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 4075 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4076 | PyObject * _resultobj; |
4077 | wxWindow * _arg0; | |
4078 | int _arg1; | |
1d99702e | 4079 | PyObject * _argo0 = 0; |
efc5f224 | 4080 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
4081 | |
4082 | self = self; | |
efc5f224 | 4083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4084 | return NULL; |
1d99702e RD |
4085 | if (_argo0) { |
4086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
4089 | return NULL; | |
4090 | } | |
4091 | } | |
cf694132 | 4092 | { |
4268f798 | 4093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4094 | wxWindow_SetId(_arg0,_arg1); |
4095 | ||
4268f798 | 4096 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4097 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4098 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4099 | _resultobj = Py_None; |
4100 | return _resultobj; | |
4101 | } | |
4102 | ||
4103 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 4104 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4105 | PyObject * _resultobj; |
4106 | wxWindow * _arg0; | |
4107 | wxString * _arg1; | |
1d99702e | 4108 | PyObject * _argo0 = 0; |
8ab979d7 | 4109 | PyObject * _obj1 = 0; |
efc5f224 | 4110 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
4111 | |
4112 | self = self; | |
efc5f224 | 4113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4114 | return NULL; |
1d99702e RD |
4115 | if (_argo0) { |
4116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
4119 | return NULL; | |
4120 | } | |
4121 | } | |
4122 | { | |
185d7c3e RD |
4123 | #if PYTHON_API_VERSION >= 1009 |
4124 | char* tmpPtr; int tmpSize; | |
4125 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4126 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4127 | return NULL; |
4128 | } | |
4129 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4130 | return NULL; | |
4131 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4132 | #else | |
8ab979d7 RD |
4133 | if (!PyString_Check(_obj1)) { |
4134 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4135 | return NULL; | |
4136 | } | |
185d7c3e RD |
4137 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4138 | #endif | |
8ab979d7 | 4139 | } |
cf694132 | 4140 | { |
4268f798 | 4141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4142 | wxWindow_SetName(_arg0,*_arg1); |
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 | { | |
4149 | if (_obj1) | |
4150 | delete _arg1; | |
4151 | } | |
4152 | return _resultobj; | |
4153 | } | |
4154 | ||
8ab979d7 | 4155 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4156 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4157 | PyObject * _resultobj; |
4158 | wxWindow * _arg0; | |
4159 | int _arg1; | |
4160 | int _arg2; | |
4161 | int _arg3; | |
4162 | int _arg4; | |
eb715945 | 4163 | int _arg5 = (int ) TRUE; |
1d99702e | 4164 | PyObject * _argo0 = 0; |
efc5f224 | 4165 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4166 | |
4167 | self = self; | |
eb715945 | 4168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4169 | return NULL; |
1d99702e RD |
4170 | if (_argo0) { |
4171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4174 | return NULL; | |
4175 | } | |
4176 | } | |
cf694132 | 4177 | { |
4268f798 | 4178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4179 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
4180 | ||
4268f798 | 4181 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4182 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4183 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4184 | _resultobj = Py_None; |
4185 | return _resultobj; | |
4186 | } | |
4187 | ||
4188 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4189 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4190 | PyObject * _resultobj; |
4191 | wxWindow * _arg0; | |
4192 | int _arg1; | |
4193 | int _arg2; | |
1d99702e RD |
4194 | bool _arg3 = (bool ) TRUE; |
4195 | PyObject * _argo0 = 0; | |
4196 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4197 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4198 | |
4199 | self = self; | |
efc5f224 | 4200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4201 | return NULL; |
1d99702e RD |
4202 | if (_argo0) { |
4203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4206 | return NULL; | |
4207 | } | |
4208 | } | |
4209 | _arg3 = (bool ) tempbool3; | |
cf694132 | 4210 | { |
4268f798 | 4211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4212 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); |
4213 | ||
4268f798 | 4214 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4215 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4216 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4217 | _resultobj = Py_None; |
4218 | return _resultobj; | |
4219 | } | |
4220 | ||
4221 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4222 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4223 | PyObject * _resultobj; |
4224 | wxWindow * _arg0; | |
4225 | int _arg1; | |
4226 | int _arg2; | |
4227 | int _arg3; | |
4228 | int _arg4; | |
1d99702e RD |
4229 | int _arg5 = (int ) wxSIZE_AUTO; |
4230 | PyObject * _argo0 = 0; | |
efc5f224 | 4231 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4232 | |
4233 | self = self; | |
efc5f224 | 4234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4235 | return NULL; |
1d99702e RD |
4236 | if (_argo0) { |
4237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4240 | return NULL; | |
4241 | } | |
4242 | } | |
cf694132 | 4243 | { |
4268f798 | 4244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4245 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
4246 | ||
4268f798 | 4247 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4248 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4249 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4250 | _resultobj = Py_None; |
4251 | return _resultobj; | |
4252 | } | |
4253 | ||
4254 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4255 | self->SetSize(size); |
8ab979d7 | 4256 | } |
efc5f224 | 4257 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4258 | PyObject * _resultobj; |
4259 | wxWindow * _arg0; | |
4260 | wxSize * _arg1; | |
1d99702e | 4261 | PyObject * _argo0 = 0; |
2f90df85 RD |
4262 | wxSize temp; |
4263 | PyObject * _obj1 = 0; | |
efc5f224 | 4264 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4265 | |
4266 | self = self; | |
2f90df85 | 4267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4268 | return NULL; |
1d99702e RD |
4269 | if (_argo0) { |
4270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4273 | return NULL; | |
4274 | } | |
4275 | } | |
2f90df85 RD |
4276 | { |
4277 | _arg1 = &temp; | |
4278 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4279 | return NULL; |
2f90df85 | 4280 | } |
cf694132 | 4281 | { |
4268f798 | 4282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4283 | wxWindow_SetSize(_arg0,*_arg1); |
4284 | ||
4268f798 | 4285 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4286 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4287 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4288 | _resultobj = Py_None; |
4289 | return _resultobj; | |
4290 | } | |
4291 | ||
4292 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) { | |
b7e72427 | 4293 | self->Move(pos); |
8ab979d7 | 4294 | } |
efc5f224 | 4295 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4296 | PyObject * _resultobj; |
4297 | wxWindow * _arg0; | |
4298 | wxPoint * _arg1; | |
1d99702e | 4299 | PyObject * _argo0 = 0; |
2f90df85 RD |
4300 | wxPoint temp; |
4301 | PyObject * _obj1 = 0; | |
efc5f224 | 4302 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
4303 | |
4304 | self = self; | |
2f90df85 | 4305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4306 | return NULL; |
1d99702e RD |
4307 | if (_argo0) { |
4308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4311 | return NULL; | |
4312 | } | |
4313 | } | |
2f90df85 RD |
4314 | { |
4315 | _arg1 = &temp; | |
4316 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4317 | return NULL; |
2f90df85 | 4318 | } |
cf694132 | 4319 | { |
4268f798 | 4320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4321 | wxWindow_SetPosition(_arg0,*_arg1); |
4322 | ||
4268f798 | 4323 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4324 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4325 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4326 | _resultobj = Py_None; |
4327 | return _resultobj; | |
4328 | } | |
4329 | ||
dbbb98cd RD |
4330 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4331 | self->SetSize(rect, sizeFlags); | |
4332 | } | |
4333 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4334 | PyObject * _resultobj; | |
4335 | wxWindow * _arg0; | |
4336 | wxRect * _arg1; | |
4337 | int _arg2 = (int ) wxSIZE_AUTO; | |
4338 | PyObject * _argo0 = 0; | |
4339 | wxRect temp; | |
4340 | PyObject * _obj1 = 0; | |
4341 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4342 | ||
4343 | self = self; | |
4344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4345 | return NULL; | |
4346 | if (_argo0) { | |
4347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4350 | return NULL; | |
4351 | } | |
4352 | } | |
4353 | { | |
4354 | _arg1 = &temp; | |
4355 | if (! wxRect_helper(_obj1, &_arg1)) | |
4356 | return NULL; | |
4357 | } | |
4358 | { | |
4268f798 | 4359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
dbbb98cd RD |
4360 | wxWindow_SetRect(_arg0,*_arg1,_arg2); |
4361 | ||
4268f798 | 4362 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4363 | if (PyErr_Occurred()) return NULL; |
dbbb98cd RD |
4364 | } Py_INCREF(Py_None); |
4365 | _resultobj = Py_None; | |
4366 | return _resultobj; | |
4367 | } | |
4368 | ||
8ab979d7 | 4369 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4370 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4371 | PyObject * _resultobj; |
4372 | wxWindow * _arg0; | |
1d99702e RD |
4373 | int _arg1 = (int ) -1; |
4374 | int _arg2 = (int ) -1; | |
4375 | int _arg3 = (int ) -1; | |
4376 | int _arg4 = (int ) -1; | |
4377 | int _arg5 = (int ) -1; | |
4378 | int _arg6 = (int ) -1; | |
4379 | PyObject * _argo0 = 0; | |
efc5f224 | 4380 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4381 | |
4382 | self = self; | |
efc5f224 | 4383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4384 | return NULL; |
1d99702e RD |
4385 | if (_argo0) { |
4386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4389 | return NULL; | |
4390 | } | |
4391 | } | |
cf694132 | 4392 | { |
4268f798 | 4393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4394 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
4395 | ||
4268f798 | 4396 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4397 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4398 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4399 | _resultobj = Py_None; |
4400 | return _resultobj; | |
4401 | } | |
4402 | ||
af309447 | 4403 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4404 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4405 | PyObject * _resultobj; |
4406 | wxWindow * _arg0; | |
4407 | int _arg1; | |
4408 | int _arg2; | |
1d99702e | 4409 | PyObject * _argo0 = 0; |
efc5f224 | 4410 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4411 | |
4412 | self = self; | |
efc5f224 | 4413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4414 | return NULL; |
1d99702e RD |
4415 | if (_argo0) { |
4416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4419 | return NULL; | |
4420 | } | |
4421 | } | |
cf694132 | 4422 | { |
4268f798 | 4423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4424 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); |
4425 | ||
4268f798 | 4426 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4427 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4428 | } Py_INCREF(Py_None); |
af309447 RD |
4429 | _resultobj = Py_None; |
4430 | return _resultobj; | |
4431 | } | |
4432 | ||
4433 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4434 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4435 | PyObject * _resultobj; |
4436 | wxWindow * _arg0; | |
4437 | wxSize * _arg1; | |
1d99702e | 4438 | PyObject * _argo0 = 0; |
2f90df85 RD |
4439 | wxSize temp; |
4440 | PyObject * _obj1 = 0; | |
efc5f224 | 4441 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4442 | |
4443 | self = self; | |
2f90df85 | 4444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4445 | return NULL; |
1d99702e RD |
4446 | if (_argo0) { |
4447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4450 | return NULL; | |
4451 | } | |
4452 | } | |
2f90df85 RD |
4453 | { |
4454 | _arg1 = &temp; | |
4455 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4456 | return NULL; |
2f90df85 | 4457 | } |
cf694132 | 4458 | { |
4268f798 | 4459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4460 | wxWindow_SetClientSize(_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 | ||
4469 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4470 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4471 | PyObject * _resultobj; |
4472 | wxWindow * _arg0; | |
4473 | wxCursor * _arg1; | |
1d99702e RD |
4474 | PyObject * _argo0 = 0; |
4475 | PyObject * _argo1 = 0; | |
efc5f224 | 4476 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4477 | |
4478 | self = self; | |
efc5f224 | 4479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4480 | return NULL; |
1d99702e RD |
4481 | if (_argo0) { |
4482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4485 | return NULL; | |
4486 | } | |
4487 | } | |
1d99702e RD |
4488 | if (_argo1) { |
4489 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4490 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4492 | return NULL; | |
4493 | } | |
4494 | } | |
cf694132 | 4495 | { |
4268f798 | 4496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4497 | wxWindow_SetCursor(_arg0,*_arg1); |
4498 | ||
4268f798 | 4499 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4500 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4501 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4502 | _resultobj = Py_None; |
4503 | return _resultobj; | |
4504 | } | |
4505 | ||
1afc06c2 RD |
4506 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4507 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4508 | PyObject * _resultobj; | |
4509 | wxWindow * _arg0; | |
4510 | wxEvtHandler * _arg1; | |
4511 | PyObject * _argo0 = 0; | |
4512 | PyObject * _argo1 = 0; | |
4513 | char *_kwnames[] = { "self","handler", NULL }; | |
4514 | ||
4515 | self = self; | |
4516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4517 | return NULL; | |
4518 | if (_argo0) { | |
4519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4522 | return NULL; | |
4523 | } | |
4524 | } | |
4525 | if (_argo1) { | |
4526 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4527 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4529 | return NULL; | |
4530 | } | |
4531 | } | |
4532 | { | |
4268f798 | 4533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1afc06c2 RD |
4534 | wxWindow_SetEventHandler(_arg0,_arg1); |
4535 | ||
4268f798 | 4536 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4537 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
4538 | } Py_INCREF(Py_None); |
4539 | _resultobj = Py_None; | |
4540 | return _resultobj; | |
4541 | } | |
4542 | ||
83b18bab RD |
4543 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
4544 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4545 | PyObject * _resultobj; | |
4546 | wxWindow * _arg0; | |
4547 | long _arg1; | |
4548 | PyObject * _argo0 = 0; | |
4549 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4550 | ||
4551 | self = self; | |
4552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4553 | return NULL; | |
4554 | if (_argo0) { | |
4555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4558 | return NULL; | |
4559 | } | |
4560 | } | |
4561 | { | |
4268f798 | 4562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
83b18bab RD |
4563 | wxWindow_SetExtraStyle(_arg0,_arg1); |
4564 | ||
4268f798 | 4565 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4566 | if (PyErr_Occurred()) return NULL; |
83b18bab RD |
4567 | } Py_INCREF(Py_None); |
4568 | _resultobj = Py_None; | |
4569 | return _resultobj; | |
4570 | } | |
4571 | ||
8ab979d7 | 4572 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4573 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4574 | PyObject * _resultobj; |
4575 | wxWindow * _arg0; | |
4576 | wxString * _arg1; | |
1d99702e | 4577 | PyObject * _argo0 = 0; |
8ab979d7 | 4578 | PyObject * _obj1 = 0; |
efc5f224 | 4579 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4580 | |
4581 | self = self; | |
efc5f224 | 4582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4583 | return NULL; |
1d99702e RD |
4584 | if (_argo0) { |
4585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4588 | return NULL; | |
4589 | } | |
4590 | } | |
4591 | { | |
185d7c3e RD |
4592 | #if PYTHON_API_VERSION >= 1009 |
4593 | char* tmpPtr; int tmpSize; | |
4594 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4595 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4596 | return NULL; |
4597 | } | |
4598 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4599 | return NULL; | |
4600 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4601 | #else | |
8ab979d7 RD |
4602 | if (!PyString_Check(_obj1)) { |
4603 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4604 | return NULL; | |
4605 | } | |
185d7c3e RD |
4606 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4607 | #endif | |
8ab979d7 | 4608 | } |
cf694132 | 4609 | { |
4268f798 | 4610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4611 | wxWindow_SetTitle(_arg0,*_arg1); |
4612 | ||
4268f798 | 4613 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4614 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4615 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4616 | _resultobj = Py_None; |
4617 | { | |
4618 | if (_obj1) | |
4619 | delete _arg1; | |
4620 | } | |
4621 | return _resultobj; | |
4622 | } | |
4623 | ||
4624 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4625 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4626 | PyObject * _resultobj; |
4627 | bool _result; | |
4628 | wxWindow * _arg0; | |
7b7ac0ab | 4629 | bool _arg1 = (bool ) TRUE; |
1d99702e | 4630 | PyObject * _argo0 = 0; |
7b7ac0ab | 4631 | int tempbool1 = (int) TRUE; |
efc5f224 | 4632 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4633 | |
4634 | self = self; | |
7b7ac0ab | 4635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4636 | return NULL; |
1d99702e RD |
4637 | if (_argo0) { |
4638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
4641 | return NULL; | |
4642 | } | |
4643 | } | |
4644 | _arg1 = (bool ) tempbool1; | |
cf694132 | 4645 | { |
4268f798 | 4646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4647 | _result = (bool )wxWindow_Show(_arg0,_arg1); |
4648 | ||
4268f798 | 4649 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4650 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4651 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4652 | return _resultobj; |
4653 | } | |
4654 | ||
4655 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4656 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4657 | PyObject * _resultobj; |
4658 | bool _result; | |
4659 | wxWindow * _arg0; | |
1d99702e | 4660 | PyObject * _argo0 = 0; |
efc5f224 | 4661 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4662 | |
4663 | self = self; | |
efc5f224 | 4664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4665 | return NULL; |
1d99702e RD |
4666 | if (_argo0) { |
4667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4670 | return NULL; | |
4671 | } | |
4672 | } | |
cf694132 | 4673 | { |
4268f798 | 4674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4675 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); |
4676 | ||
4268f798 | 4677 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4678 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4679 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4680 | return _resultobj; |
4681 | } | |
4682 | ||
4683 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4684 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4685 | PyObject * _resultobj; |
4686 | bool _result; | |
4687 | wxWindow * _arg0; | |
1d99702e | 4688 | PyObject * _argo0 = 0; |
efc5f224 | 4689 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4690 | |
4691 | self = self; | |
efc5f224 | 4692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4693 | return NULL; |
1d99702e RD |
4694 | if (_argo0) { |
4695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4698 | return NULL; | |
4699 | } | |
4700 | } | |
cf694132 | 4701 | { |
4268f798 | 4702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4703 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); |
4704 | ||
4268f798 | 4705 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4706 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4707 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4708 | return _resultobj; |
4709 | } | |
4710 | ||
4711 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) | |
efc5f224 | 4712 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4713 | PyObject * _resultobj; |
4714 | bool _result; | |
4715 | wxWindow * _arg0; | |
1d99702e | 4716 | PyObject * _argo0 = 0; |
efc5f224 | 4717 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4718 | |
4719 | self = self; | |
efc5f224 | 4720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 4721 | return NULL; |
1d99702e RD |
4722 | if (_argo0) { |
4723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
4726 | return NULL; | |
4727 | } | |
4728 | } | |
cf694132 | 4729 | { |
4268f798 | 4730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4731 | _result = (bool )wxWindow_Validate(_arg0); |
4732 | ||
4268f798 | 4733 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4734 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4735 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4736 | return _resultobj; |
4737 | } | |
4738 | ||
4739 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
efc5f224 | 4740 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4741 | PyObject * _resultobj; |
4742 | wxWindow * _arg0; | |
4743 | int _arg1; | |
4744 | int _arg2; | |
1d99702e | 4745 | PyObject * _argo0 = 0; |
efc5f224 | 4746 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
4747 | |
4748 | self = self; | |
efc5f224 | 4749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4750 | return NULL; |
1d99702e RD |
4751 | if (_argo0) { |
4752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); |
4755 | return NULL; | |
4756 | } | |
4757 | } | |
cf694132 | 4758 | { |
4268f798 | 4759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4760 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); |
4761 | ||
4268f798 | 4762 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4763 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4764 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4765 | _resultobj = Py_None; |
4766 | return _resultobj; | |
4767 | } | |
4768 | ||
b8b8dda7 | 4769 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 4770 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4771 | PyObject * _resultobj; |
4772 | wxPoint * _result; | |
4773 | wxWindow * _arg0; | |
4774 | wxPoint * _arg1; | |
1d99702e | 4775 | PyObject * _argo0 = 0; |
2f90df85 RD |
4776 | wxPoint temp; |
4777 | PyObject * _obj1 = 0; | |
efc5f224 | 4778 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4779 | char _ptemp[128]; |
4780 | ||
4781 | self = self; | |
2f90df85 | 4782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4783 | return NULL; |
1d99702e RD |
4784 | if (_argo0) { |
4785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
4788 | return NULL; | |
4789 | } | |
4790 | } | |
2f90df85 RD |
4791 | { |
4792 | _arg1 = &temp; | |
4793 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4794 | return NULL; |
2f90df85 | 4795 | } |
cf694132 | 4796 | { |
4268f798 | 4797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4798 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); |
4799 | ||
4268f798 | 4800 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4801 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4802 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4803 | _resultobj = Py_BuildValue("s",_ptemp); |
4804 | return _resultobj; | |
4805 | } | |
4806 | ||
4807 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 4808 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4809 | PyObject * _resultobj; |
4810 | wxSize * _result; | |
4811 | wxWindow * _arg0; | |
4812 | wxSize * _arg1; | |
1d99702e | 4813 | PyObject * _argo0 = 0; |
2f90df85 RD |
4814 | wxSize temp; |
4815 | PyObject * _obj1 = 0; | |
efc5f224 | 4816 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4817 | char _ptemp[128]; |
4818 | ||
4819 | self = self; | |
2f90df85 | 4820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4821 | return NULL; |
1d99702e RD |
4822 | if (_argo0) { |
4823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
4826 | return NULL; | |
4827 | } | |
4828 | } | |
2f90df85 RD |
4829 | { |
4830 | _arg1 = &temp; | |
4831 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4832 | return NULL; |
2f90df85 | 4833 | } |
cf694132 | 4834 | { |
4268f798 | 4835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4836 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); |
4837 | ||
4268f798 | 4838 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4839 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4840 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4841 | _resultobj = Py_BuildValue("s",_ptemp); |
4842 | return _resultobj; | |
4843 | } | |
4844 | ||
4845 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4846 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4847 | PyObject * _resultobj; |
4848 | wxPoint * _result; | |
4849 | wxWindow * _arg0; | |
4850 | wxPoint * _arg1; | |
1d99702e | 4851 | PyObject * _argo0 = 0; |
2f90df85 RD |
4852 | wxPoint temp; |
4853 | PyObject * _obj1 = 0; | |
efc5f224 | 4854 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4855 | char _ptemp[128]; |
4856 | ||
4857 | self = self; | |
2f90df85 | 4858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4859 | return NULL; |
1d99702e RD |
4860 | if (_argo0) { |
4861 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4862 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
4864 | return NULL; | |
4865 | } | |
4866 | } | |
2f90df85 RD |
4867 | { |
4868 | _arg1 = &temp; | |
4869 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4870 | return NULL; |
2f90df85 | 4871 | } |
cf694132 | 4872 | { |
4268f798 | 4873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4874 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); |
4875 | ||
4268f798 | 4876 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4877 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4878 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4879 | _resultobj = Py_BuildValue("s",_ptemp); |
4880 | return _resultobj; | |
4881 | } | |
4882 | ||
4883 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4884 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4885 | PyObject * _resultobj; |
4886 | wxSize * _result; | |
4887 | wxWindow * _arg0; | |
4888 | wxSize * _arg1; | |
1d99702e | 4889 | PyObject * _argo0 = 0; |
2f90df85 RD |
4890 | wxSize temp; |
4891 | PyObject * _obj1 = 0; | |
efc5f224 | 4892 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4893 | char _ptemp[128]; |
4894 | ||
4895 | self = self; | |
2f90df85 | 4896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4897 | return NULL; |
1d99702e RD |
4898 | if (_argo0) { |
4899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
4902 | return NULL; | |
4903 | } | |
4904 | } | |
2f90df85 RD |
4905 | { |
4906 | _arg1 = &temp; | |
4907 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4908 | return NULL; |
2f90df85 | 4909 | } |
cf694132 | 4910 | { |
4268f798 | 4911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4912 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); |
4913 | ||
4268f798 | 4914 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4915 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4916 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4917 | _resultobj = Py_BuildValue("s",_ptemp); |
4918 | return _resultobj; | |
4919 | } | |
4920 | ||
af309447 | 4921 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 4922 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4923 | PyObject * _resultobj; |
4924 | wxWindow * _arg0; | |
4925 | wxString * _arg1; | |
1d99702e | 4926 | PyObject * _argo0 = 0; |
af309447 | 4927 | PyObject * _obj1 = 0; |
efc5f224 | 4928 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
4929 | |
4930 | self = self; | |
efc5f224 | 4931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 4932 | return NULL; |
1d99702e RD |
4933 | if (_argo0) { |
4934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
4937 | return NULL; | |
4938 | } | |
4939 | } | |
4940 | { | |
185d7c3e RD |
4941 | #if PYTHON_API_VERSION >= 1009 |
4942 | char* tmpPtr; int tmpSize; | |
4943 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4944 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4945 | return NULL; |
4946 | } | |
4947 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4948 | return NULL; | |
4949 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4950 | #else | |
af309447 RD |
4951 | if (!PyString_Check(_obj1)) { |
4952 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4953 | return NULL; | |
4954 | } | |
185d7c3e RD |
4955 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4956 | #endif | |
af309447 | 4957 | } |
cf694132 | 4958 | { |
4268f798 | 4959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4960 | wxWindow_SetToolTipString(_arg0,*_arg1); |
4961 | ||
4268f798 | 4962 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4963 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4964 | } Py_INCREF(Py_None); |
af309447 RD |
4965 | _resultobj = Py_None; |
4966 | { | |
4967 | if (_obj1) | |
4968 | delete _arg1; | |
4969 | } | |
4970 | return _resultobj; | |
4971 | } | |
4972 | ||
4973 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 4974 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4975 | PyObject * _resultobj; |
4976 | wxWindow * _arg0; | |
4977 | wxToolTip * _arg1; | |
1d99702e RD |
4978 | PyObject * _argo0 = 0; |
4979 | PyObject * _argo1 = 0; | |
efc5f224 | 4980 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
4981 | |
4982 | self = self; | |
efc5f224 | 4983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 4984 | return NULL; |
1d99702e RD |
4985 | if (_argo0) { |
4986 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4987 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
4989 | return NULL; | |
4990 | } | |
4991 | } | |
1d99702e RD |
4992 | if (_argo1) { |
4993 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4994 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
4995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
4996 | return NULL; | |
4997 | } | |
4998 | } | |
cf694132 | 4999 | { |
4268f798 | 5000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5001 | wxWindow_SetToolTip(_arg0,_arg1); |
5002 | ||
4268f798 | 5003 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5004 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5005 | } Py_INCREF(Py_None); |
af309447 RD |
5006 | _resultobj = Py_None; |
5007 | return _resultobj; | |
5008 | } | |
5009 | ||
5010 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 5011 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5012 | PyObject * _resultobj; |
5013 | wxToolTip * _result; | |
5014 | wxWindow * _arg0; | |
1d99702e | 5015 | PyObject * _argo0 = 0; |
efc5f224 | 5016 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
5017 | |
5018 | self = self; | |
efc5f224 | 5019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 5020 | return NULL; |
1d99702e RD |
5021 | if (_argo0) { |
5022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
5025 | return NULL; | |
5026 | } | |
5027 | } | |
cf694132 | 5028 | { |
4268f798 | 5029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5030 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); |
5031 | ||
4268f798 | 5032 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5033 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5034 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
5035 | return _resultobj; |
5036 | } | |
5037 | ||
2f90df85 RD |
5038 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) |
5039 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5040 | PyObject * _resultobj; | |
5041 | wxWindow * _arg0; | |
5042 | wxSizer * _arg1; | |
5043 | PyObject * _argo0 = 0; | |
5044 | PyObject * _argo1 = 0; | |
5045 | char *_kwnames[] = { "self","sizer", NULL }; | |
5046 | ||
5047 | self = self; | |
5048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
5049 | return NULL; | |
5050 | if (_argo0) { | |
5051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
5054 | return NULL; | |
5055 | } | |
5056 | } | |
5057 | if (_argo1) { | |
5058 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5059 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
5061 | return NULL; | |
5062 | } | |
5063 | } | |
5064 | { | |
4268f798 | 5065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
5066 | wxWindow_SetSizer(_arg0,_arg1); |
5067 | ||
4268f798 | 5068 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5069 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5070 | } Py_INCREF(Py_None); |
5071 | _resultobj = Py_None; | |
5072 | return _resultobj; | |
5073 | } | |
5074 | ||
f6bcfd97 BP |
5075 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
5076 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5077 | PyObject * _resultobj; | |
5078 | wxSizer * _result; | |
5079 | wxWindow * _arg0; | |
5080 | PyObject * _argo0 = 0; | |
5081 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
5082 | |
5083 | self = self; | |
5084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
5085 | return NULL; | |
5086 | if (_argo0) { | |
5087 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
5090 | return NULL; | |
5091 | } | |
5092 | } | |
5093 | { | |
4268f798 | 5094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
5095 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); |
5096 | ||
4268f798 | 5097 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5098 | if (PyErr_Occurred()) return NULL; |
2f4e9287 | 5099 | }{ _resultobj = wxPyMake_wxSizer(_result); } |
f6bcfd97 BP |
5100 | return _resultobj; |
5101 | } | |
5102 | ||
2f90df85 RD |
5103 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
5104 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5105 | PyObject * _resultobj; | |
5106 | wxValidator * _result; | |
5107 | wxWindow * _arg0; | |
5108 | PyObject * _argo0 = 0; | |
5109 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
5110 | |
5111 | self = self; | |
5112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
5113 | return NULL; | |
5114 | if (_argo0) { | |
5115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
5118 | return NULL; | |
5119 | } | |
5120 | } | |
5121 | { | |
4268f798 | 5122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
5123 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); |
5124 | ||
4268f798 | 5125 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5126 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5127 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
5128 | return _resultobj; |
5129 | } | |
5130 | ||
5131 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5132 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5133 | PyObject * _resultobj; | |
5134 | wxWindow * _arg0; | |
5135 | wxValidator * _arg1; | |
5136 | PyObject * _argo0 = 0; | |
5137 | PyObject * _argo1 = 0; | |
5138 | char *_kwnames[] = { "self","validator", NULL }; | |
5139 | ||
5140 | self = self; | |
5141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_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_SetValidator. 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,"_wxValidator_p")) { | |
5153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5154 | return NULL; | |
5155 | } | |
5156 | } | |
5157 | { | |
4268f798 | 5158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
5159 | wxWindow_SetValidator(_arg0,*_arg1); |
5160 | ||
4268f798 | 5161 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5162 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5163 | } Py_INCREF(Py_None); |
5164 | _resultobj = Py_None; | |
5165 | return _resultobj; | |
5166 | } | |
5167 | ||
b1462dfa RD |
5168 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5169 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5170 | PyObject * _resultobj; | |
5171 | wxWindow * _arg0; | |
5172 | wxDropTarget * _arg1; | |
5173 | PyObject * _argo0 = 0; | |
5174 | PyObject * _argo1 = 0; | |
5175 | char *_kwnames[] = { "self","target", NULL }; | |
5176 | ||
5177 | self = self; | |
5178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
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_SetDropTarget. Expected _wxWindow_p."); | |
5184 | return NULL; | |
5185 | } | |
5186 | } | |
5187 | if (_argo1) { | |
5188 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5189 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5191 | return NULL; | |
5192 | } | |
5193 | } | |
5194 | { | |
4268f798 | 5195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
5196 | wxWindow_SetDropTarget(_arg0,_arg1); |
5197 | ||
4268f798 | 5198 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5199 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5200 | } Py_INCREF(Py_None); |
5201 | _resultobj = Py_None; | |
5202 | return _resultobj; | |
5203 | } | |
5204 | ||
5205 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5206 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5207 | PyObject * _resultobj; | |
5208 | wxDropTarget * _result; | |
5209 | wxWindow * _arg0; | |
5210 | PyObject * _argo0 = 0; | |
5211 | char *_kwnames[] = { "self", NULL }; | |
5212 | char _ptemp[128]; | |
5213 | ||
5214 | self = self; | |
5215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5216 | return NULL; | |
5217 | if (_argo0) { | |
5218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5221 | return NULL; | |
5222 | } | |
5223 | } | |
5224 | { | |
4268f798 | 5225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
5226 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); |
5227 | ||
4268f798 | 5228 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5229 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5230 | } if (_result) { |
5231 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5232 | _resultobj = Py_BuildValue("s",_ptemp); | |
5233 | } else { | |
5234 | Py_INCREF(Py_None); | |
5235 | _resultobj = Py_None; | |
5236 | } | |
5237 | return _resultobj; | |
5238 | } | |
5239 | ||
694759cf RD |
5240 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5241 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5242 | PyObject * _resultobj; | |
5243 | wxSize * _result; | |
5244 | wxWindow * _arg0; | |
5245 | PyObject * _argo0 = 0; | |
5246 | char *_kwnames[] = { "self", NULL }; | |
5247 | char _ptemp[128]; | |
5248 | ||
5249 | self = self; | |
5250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5251 | return NULL; | |
5252 | if (_argo0) { | |
5253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5256 | return NULL; | |
5257 | } | |
5258 | } | |
5259 | { | |
4268f798 | 5260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
694759cf RD |
5261 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); |
5262 | ||
4268f798 | 5263 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5264 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5265 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5266 | _resultobj = Py_BuildValue("s",_ptemp); | |
5267 | return _resultobj; | |
5268 | } | |
5269 | ||
a1df7a95 RD |
5270 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5271 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5272 | PyObject * _resultobj; | |
5273 | wxWindow * _arg0; | |
5274 | wxCaret * _arg1; | |
5275 | PyObject * _argo0 = 0; | |
5276 | PyObject * _argo1 = 0; | |
5277 | char *_kwnames[] = { "self","caret", NULL }; | |
5278 | ||
5279 | self = self; | |
5280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
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_SetCaret. Expected _wxWindow_p."); | |
5286 | return NULL; | |
5287 | } | |
5288 | } | |
5289 | if (_argo1) { | |
5290 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5291 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5293 | return NULL; | |
5294 | } | |
5295 | } | |
5296 | { | |
4268f798 | 5297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a1df7a95 RD |
5298 | wxWindow_SetCaret(_arg0,_arg1); |
5299 | ||
4268f798 | 5300 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5301 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5302 | } Py_INCREF(Py_None); |
5303 | _resultobj = Py_None; | |
5304 | return _resultobj; | |
5305 | } | |
5306 | ||
5307 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5308 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5309 | PyObject * _resultobj; | |
5310 | wxCaret * _result; | |
5311 | wxWindow * _arg0; | |
5312 | PyObject * _argo0 = 0; | |
5313 | char *_kwnames[] = { "self", NULL }; | |
5314 | char _ptemp[128]; | |
5315 | ||
5316 | self = self; | |
5317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5318 | return NULL; | |
5319 | if (_argo0) { | |
5320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5323 | return NULL; | |
5324 | } | |
5325 | } | |
5326 | { | |
4268f798 | 5327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a1df7a95 RD |
5328 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); |
5329 | ||
4268f798 | 5330 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5331 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5332 | } if (_result) { |
5333 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5334 | _resultobj = Py_BuildValue("s",_ptemp); | |
5335 | } else { | |
5336 | Py_INCREF(Py_None); | |
5337 | _resultobj = Py_None; | |
5338 | } | |
5339 | return _resultobj; | |
5340 | } | |
5341 | ||
3a0958b1 RD |
5342 | #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze()) |
5343 | static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5344 | PyObject * _resultobj; | |
5345 | wxWindow * _arg0; | |
5346 | PyObject * _argo0 = 0; | |
5347 | char *_kwnames[] = { "self", NULL }; | |
5348 | ||
5349 | self = self; | |
5350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0)) | |
5351 | return NULL; | |
5352 | if (_argo0) { | |
5353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p."); | |
5356 | return NULL; | |
5357 | } | |
5358 | } | |
5359 | { | |
4268f798 | 5360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3a0958b1 RD |
5361 | wxWindow_Freeze(_arg0); |
5362 | ||
4268f798 | 5363 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
5364 | if (PyErr_Occurred()) return NULL; |
5365 | } Py_INCREF(Py_None); | |
5366 | _resultobj = Py_None; | |
5367 | return _resultobj; | |
5368 | } | |
5369 | ||
5370 | #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw()) | |
5371 | static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5372 | PyObject * _resultobj; | |
5373 | wxWindow * _arg0; | |
5374 | PyObject * _argo0 = 0; | |
5375 | char *_kwnames[] = { "self", NULL }; | |
5376 | ||
5377 | self = self; | |
5378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0)) | |
5379 | return NULL; | |
5380 | if (_argo0) { | |
5381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p."); | |
5384 | return NULL; | |
5385 | } | |
5386 | } | |
5387 | { | |
4268f798 | 5388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3a0958b1 RD |
5389 | wxWindow_Thaw(_arg0); |
5390 | ||
4268f798 | 5391 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
5392 | if (PyErr_Occurred()) return NULL; |
5393 | } Py_INCREF(Py_None); | |
5394 | _resultobj = Py_None; | |
5395 | return _resultobj; | |
5396 | } | |
5397 | ||
09f3d4e6 RD |
5398 | #define wxWindow_Update(_swigobj) (_swigobj->Update()) |
5399 | static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5400 | PyObject * _resultobj; | |
5401 | wxWindow * _arg0; | |
5402 | PyObject * _argo0 = 0; | |
5403 | char *_kwnames[] = { "self", NULL }; | |
5404 | ||
5405 | self = self; | |
5406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0)) | |
5407 | return NULL; | |
5408 | if (_argo0) { | |
5409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p."); | |
5412 | return NULL; | |
5413 | } | |
5414 | } | |
5415 | { | |
4268f798 | 5416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
5417 | wxWindow_Update(_arg0); |
5418 | ||
4268f798 | 5419 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5420 | if (PyErr_Occurred()) return NULL; |
5421 | } Py_INCREF(Py_None); | |
5422 | _resultobj = Py_None; | |
5423 | return _resultobj; | |
5424 | } | |
5425 | ||
4f3449b4 RD |
5426 | #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText()) |
5427 | static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5428 | PyObject * _resultobj; | |
5429 | wxString * _result; | |
5430 | wxWindow * _arg0; | |
5431 | PyObject * _argo0 = 0; | |
5432 | char *_kwnames[] = { "self", NULL }; | |
5433 | ||
5434 | self = self; | |
5435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0)) | |
5436 | return NULL; | |
5437 | if (_argo0) { | |
5438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p."); | |
5441 | return NULL; | |
5442 | } | |
5443 | } | |
5444 | { | |
4268f798 | 5445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4f3449b4 RD |
5446 | _result = new wxString (wxWindow_GetHelpText(_arg0)); |
5447 | ||
4268f798 | 5448 | wxPyEndAllowThreads(__tstate); |
4f3449b4 RD |
5449 | if (PyErr_Occurred()) return NULL; |
5450 | }{ | |
5451 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5452 | } | |
5453 | { | |
5454 | delete _result; | |
5455 | } | |
5456 | return _resultobj; | |
5457 | } | |
5458 | ||
5459 | #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0)) | |
5460 | static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5461 | PyObject * _resultobj; | |
5462 | wxWindow * _arg0; | |
5463 | wxString * _arg1; | |
5464 | PyObject * _argo0 = 0; | |
5465 | PyObject * _obj1 = 0; | |
5466 | char *_kwnames[] = { "self","helpText", NULL }; | |
5467 | ||
5468 | self = self; | |
5469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1)) | |
5470 | return NULL; | |
5471 | if (_argo0) { | |
5472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p."); | |
5475 | return NULL; | |
5476 | } | |
5477 | } | |
5478 | { | |
5479 | #if PYTHON_API_VERSION >= 1009 | |
5480 | char* tmpPtr; int tmpSize; | |
5481 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5482 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5483 | return NULL; | |
5484 | } | |
5485 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5486 | return NULL; | |
5487 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5488 | #else | |
5489 | if (!PyString_Check(_obj1)) { | |
5490 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5491 | return NULL; | |
5492 | } | |
5493 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5494 | #endif | |
5495 | } | |
5496 | { | |
4268f798 | 5497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4f3449b4 RD |
5498 | wxWindow_SetHelpText(_arg0,*_arg1); |
5499 | ||
4268f798 | 5500 | wxPyEndAllowThreads(__tstate); |
4f3449b4 RD |
5501 | if (PyErr_Occurred()) return NULL; |
5502 | } Py_INCREF(Py_None); | |
5503 | _resultobj = Py_None; | |
5504 | { | |
5505 | if (_obj1) | |
5506 | delete _arg1; | |
5507 | } | |
5508 | return _resultobj; | |
5509 | } | |
5510 | ||
c7e7022c RD |
5511 | #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0)) |
5512 | static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5513 | PyObject * _resultobj; | |
5514 | bool _result; | |
5515 | wxWindow * _arg0; | |
5516 | int _arg1; | |
5517 | PyObject * _argo0 = 0; | |
5518 | char *_kwnames[] = { "self","lines", NULL }; | |
5519 | ||
5520 | self = self; | |
5521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1)) | |
5522 | return NULL; | |
5523 | if (_argo0) { | |
5524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p."); | |
5527 | return NULL; | |
5528 | } | |
5529 | } | |
5530 | { | |
4268f798 | 5531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c7e7022c RD |
5532 | _result = (bool )wxWindow_ScrollLines(_arg0,_arg1); |
5533 | ||
4268f798 | 5534 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5535 | if (PyErr_Occurred()) return NULL; |
5536 | } _resultobj = Py_BuildValue("i",_result); | |
5537 | return _resultobj; | |
5538 | } | |
5539 | ||
5540 | #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0)) | |
5541 | static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5542 | PyObject * _resultobj; | |
5543 | bool _result; | |
5544 | wxWindow * _arg0; | |
5545 | int _arg1; | |
5546 | PyObject * _argo0 = 0; | |
5547 | char *_kwnames[] = { "self","pages", NULL }; | |
5548 | ||
5549 | self = self; | |
5550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1)) | |
5551 | return NULL; | |
5552 | if (_argo0) { | |
5553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p."); | |
5556 | return NULL; | |
5557 | } | |
5558 | } | |
5559 | { | |
4268f798 | 5560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c7e7022c RD |
5561 | _result = (bool )wxWindow_ScrollPages(_arg0,_arg1); |
5562 | ||
4268f798 | 5563 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5564 | if (PyErr_Occurred()) return NULL; |
5565 | } _resultobj = Py_BuildValue("i",_result); | |
5566 | return _resultobj; | |
5567 | } | |
5568 | ||
5569 | #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp()) | |
5570 | static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5571 | PyObject * _resultobj; | |
5572 | bool _result; | |
5573 | wxWindow * _arg0; | |
5574 | PyObject * _argo0 = 0; | |
5575 | char *_kwnames[] = { "self", NULL }; | |
5576 | ||
5577 | self = self; | |
5578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0)) | |
5579 | return NULL; | |
5580 | if (_argo0) { | |
5581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p."); | |
5584 | return NULL; | |
5585 | } | |
5586 | } | |
5587 | { | |
4268f798 | 5588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c7e7022c RD |
5589 | _result = (bool )wxWindow_LineUp(_arg0); |
5590 | ||
4268f798 | 5591 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5592 | if (PyErr_Occurred()) return NULL; |
5593 | } _resultobj = Py_BuildValue("i",_result); | |
5594 | return _resultobj; | |
5595 | } | |
5596 | ||
5597 | #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown()) | |
5598 | static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5599 | PyObject * _resultobj; | |
5600 | bool _result; | |
5601 | wxWindow * _arg0; | |
5602 | PyObject * _argo0 = 0; | |
5603 | char *_kwnames[] = { "self", NULL }; | |
5604 | ||
5605 | self = self; | |
5606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0)) | |
5607 | return NULL; | |
5608 | if (_argo0) { | |
5609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p."); | |
5612 | return NULL; | |
5613 | } | |
5614 | } | |
5615 | { | |
4268f798 | 5616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c7e7022c RD |
5617 | _result = (bool )wxWindow_LineDown(_arg0); |
5618 | ||
4268f798 | 5619 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5620 | if (PyErr_Occurred()) return NULL; |
5621 | } _resultobj = Py_BuildValue("i",_result); | |
5622 | return _resultobj; | |
5623 | } | |
5624 | ||
5625 | #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp()) | |
5626 | static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5627 | PyObject * _resultobj; | |
5628 | bool _result; | |
5629 | wxWindow * _arg0; | |
5630 | PyObject * _argo0 = 0; | |
5631 | char *_kwnames[] = { "self", NULL }; | |
5632 | ||
5633 | self = self; | |
5634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0)) | |
5635 | return NULL; | |
5636 | if (_argo0) { | |
5637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p."); | |
5640 | return NULL; | |
5641 | } | |
5642 | } | |
5643 | { | |
4268f798 | 5644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c7e7022c RD |
5645 | _result = (bool )wxWindow_PageUp(_arg0); |
5646 | ||
4268f798 | 5647 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5648 | if (PyErr_Occurred()) return NULL; |
5649 | } _resultobj = Py_BuildValue("i",_result); | |
5650 | return _resultobj; | |
5651 | } | |
5652 | ||
5653 | #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown()) | |
5654 | static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5655 | PyObject * _resultobj; | |
5656 | bool _result; | |
5657 | wxWindow * _arg0; | |
5658 | PyObject * _argo0 = 0; | |
5659 | char *_kwnames[] = { "self", NULL }; | |
5660 | ||
5661 | self = self; | |
5662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0)) | |
5663 | return NULL; | |
5664 | if (_argo0) { | |
5665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p."); | |
5668 | return NULL; | |
5669 | } | |
5670 | } | |
5671 | { | |
4268f798 | 5672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c7e7022c RD |
5673 | _result = (bool )wxWindow_PageDown(_arg0); |
5674 | ||
4268f798 | 5675 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5676 | if (PyErr_Occurred()) return NULL; |
5677 | } _resultobj = Py_BuildValue("i",_result); | |
5678 | return _resultobj; | |
5679 | } | |
5680 | ||
09f3d4e6 RD |
5681 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
5682 | PyObject * _resultobj; | |
5683 | wxWindow * _result; | |
5684 | char *_kwnames[] = { NULL }; | |
5685 | ||
5686 | self = self; | |
5687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
5688 | return NULL; | |
5689 | { | |
4268f798 | 5690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
5691 | _result = (wxWindow *)wxWindow::FindFocus(); |
5692 | ||
4268f798 | 5693 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5694 | if (PyErr_Occurred()) return NULL; |
5695 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5696 | return _resultobj; | |
5697 | } | |
5698 | ||
5699 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5700 | PyObject * _resultobj; | |
5701 | int _result; | |
5702 | char *_kwnames[] = { NULL }; | |
5703 | ||
5704 | self = self; | |
5705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
5706 | return NULL; | |
5707 | { | |
4268f798 | 5708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
5709 | _result = (int )wxWindow::NewControlId(); |
5710 | ||
4268f798 | 5711 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5712 | if (PyErr_Occurred()) return NULL; |
5713 | } _resultobj = Py_BuildValue("i",_result); | |
5714 | return _resultobj; | |
5715 | } | |
5716 | ||
5717 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5718 | PyObject * _resultobj; | |
5719 | int _result; | |
5720 | int _arg0; | |
5721 | char *_kwnames[] = { "id", NULL }; | |
5722 | ||
5723 | self = self; | |
5724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
5725 | return NULL; | |
5726 | { | |
4268f798 | 5727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
5728 | _result = (int )wxWindow::NextControlId(_arg0); |
5729 | ||
4268f798 | 5730 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5731 | if (PyErr_Occurred()) return NULL; |
5732 | } _resultobj = Py_BuildValue("i",_result); | |
5733 | return _resultobj; | |
5734 | } | |
5735 | ||
5736 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5737 | PyObject * _resultobj; | |
5738 | int _result; | |
5739 | int _arg0; | |
5740 | char *_kwnames[] = { "id", NULL }; | |
5741 | ||
5742 | self = self; | |
5743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
5744 | return NULL; | |
5745 | { | |
4268f798 | 5746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
5747 | _result = (int )wxWindow::PrevControlId(_arg0); |
5748 | ||
4268f798 | 5749 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5750 | if (PyErr_Occurred()) return NULL; |
5751 | } _resultobj = Py_BuildValue("i",_result); | |
5752 | return _resultobj; | |
5753 | } | |
5754 | ||
76bfdc78 RD |
5755 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
5756 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5757 | PyObject * _resultobj; | |
5758 | wxWindow * _arg0; | |
5759 | wxAcceleratorTable * _arg1; | |
5760 | PyObject * _argo0 = 0; | |
5761 | PyObject * _argo1 = 0; | |
5762 | char *_kwnames[] = { "self","accel", NULL }; | |
5763 | ||
5764 | self = self; | |
5765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) | |
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_SetAcceleratorTable. Expected _wxWindow_p."); | |
5771 | return NULL; | |
5772 | } | |
5773 | } | |
5774 | if (_argo1) { | |
5775 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5776 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
5777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); | |
5778 | return NULL; | |
5779 | } | |
5780 | } | |
5781 | { | |
4268f798 | 5782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
76bfdc78 RD |
5783 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); |
5784 | ||
4268f798 | 5785 | wxPyEndAllowThreads(__tstate); |
76bfdc78 RD |
5786 | if (PyErr_Occurred()) return NULL; |
5787 | } Py_INCREF(Py_None); | |
5788 | _resultobj = Py_None; | |
5789 | return _resultobj; | |
5790 | } | |
5791 | ||
900d9886 RD |
5792 | #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable()) |
5793 | static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5794 | PyObject * _resultobj; | |
5795 | wxAcceleratorTable * _result; | |
5796 | wxWindow * _arg0; | |
5797 | PyObject * _argo0 = 0; | |
5798 | char *_kwnames[] = { "self", NULL }; | |
5799 | char _ptemp[128]; | |
5800 | ||
5801 | self = self; | |
5802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0)) | |
5803 | return NULL; | |
5804 | if (_argo0) { | |
5805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p."); | |
5808 | return NULL; | |
5809 | } | |
5810 | } | |
5811 | { | |
4268f798 | 5812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
900d9886 RD |
5813 | _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0); |
5814 | ||
4268f798 | 5815 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
5816 | if (PyErr_Occurred()) return NULL; |
5817 | } if (_result) { | |
5818 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p"); | |
5819 | _resultobj = Py_BuildValue("s",_ptemp); | |
5820 | } else { | |
5821 | Py_INCREF(Py_None); | |
5822 | _resultobj = Py_None; | |
5823 | } | |
5824 | return _resultobj; | |
5825 | } | |
5826 | ||
07c99b26 RD |
5827 | #define wxWindow_OnPaint(_swigobj,_swigarg0) (_swigobj->OnPaint(_swigarg0)) |
5828 | static PyObject *_wrap_wxWindow_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
78e8819c RD |
5829 | PyObject * _resultobj; |
5830 | wxWindow * _arg0; | |
5831 | wxPaintEvent * _arg1; | |
5832 | PyObject * _argo0 = 0; | |
5833 | PyObject * _argo1 = 0; | |
5834 | char *_kwnames[] = { "self","event", NULL }; | |
5835 | ||
5836 | self = self; | |
07c99b26 | 5837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_OnPaint",_kwnames,&_argo0,&_argo1)) |
78e8819c RD |
5838 | return NULL; |
5839 | if (_argo0) { | |
5840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
07c99b26 | 5842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_OnPaint. Expected _wxWindow_p."); |
78e8819c RD |
5843 | return NULL; |
5844 | } | |
5845 | } | |
5846 | if (_argo1) { | |
5847 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5848 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPaintEvent_p")) { | |
07c99b26 | 5849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_OnPaint. Expected _wxPaintEvent_p."); |
78e8819c RD |
5850 | return NULL; |
5851 | } | |
5852 | } | |
5853 | { | |
4268f798 | 5854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
07c99b26 | 5855 | wxWindow_OnPaint(_arg0,*_arg1); |
78e8819c | 5856 | |
4268f798 | 5857 | wxPyEndAllowThreads(__tstate); |
78e8819c RD |
5858 | if (PyErr_Occurred()) return NULL; |
5859 | } Py_INCREF(Py_None); | |
5860 | _resultobj = Py_None; | |
5861 | return _resultobj; | |
5862 | } | |
5863 | ||
5a2930ab RD |
5864 | #define wxWindow_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
5865 | static PyObject *_wrap_wxWindow_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5866 | PyObject * _resultobj; | |
5867 | wxButton * _result; | |
5868 | wxWindow * _arg0; | |
5869 | PyObject * _argo0 = 0; | |
5870 | char *_kwnames[] = { "self", NULL }; | |
5871 | ||
5872 | self = self; | |
5873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDefaultItem",_kwnames,&_argo0)) | |
5874 | return NULL; | |
5875 | if (_argo0) { | |
5876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDefaultItem. Expected _wxWindow_p."); | |
5879 | return NULL; | |
5880 | } | |
5881 | } | |
5882 | { | |
5883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5884 | _result = (wxButton *)wxWindow_GetDefaultItem(_arg0); | |
5885 | ||
5886 | wxPyEndAllowThreads(__tstate); | |
5887 | if (PyErr_Occurred()) return NULL; | |
5888 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5889 | return _resultobj; | |
5890 | } | |
5891 | ||
5892 | #define wxWindow_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
5893 | static PyObject *_wrap_wxWindow_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5894 | PyObject * _resultobj; | |
5895 | wxWindow * _arg0; | |
5896 | wxButton * _arg1; | |
5897 | PyObject * _argo0 = 0; | |
5898 | PyObject * _argo1 = 0; | |
5899 | char *_kwnames[] = { "self","btn", NULL }; | |
5900 | ||
5901 | self = self; | |
5902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDefaultItem",_kwnames,&_argo0,&_argo1)) | |
5903 | return NULL; | |
5904 | if (_argo0) { | |
5905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
5908 | return NULL; | |
5909 | } | |
5910 | } | |
5911 | if (_argo1) { | |
5912 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5913 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
5914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDefaultItem. Expected _wxButton_p."); | |
5915 | return NULL; | |
5916 | } | |
5917 | } | |
5918 | { | |
5919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5920 | wxWindow_SetDefaultItem(_arg0,_arg1); | |
5921 | ||
5922 | wxPyEndAllowThreads(__tstate); | |
5923 | if (PyErr_Occurred()) return NULL; | |
5924 | } Py_INCREF(Py_None); | |
5925 | _resultobj = Py_None; | |
5926 | return _resultobj; | |
5927 | } | |
5928 | ||
8ab979d7 RD |
5929 | static void *SwigwxPanelTowxWindow(void *ptr) { |
5930 | wxPanel *src; | |
5931 | wxWindow *dest; | |
5932 | src = (wxPanel *) ptr; | |
5933 | dest = (wxWindow *) src; | |
5934 | return (void *) dest; | |
5935 | } | |
5936 | ||
5937 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
5938 | wxPanel *src; | |
5939 | wxEvtHandler *dest; | |
5940 | src = (wxPanel *) ptr; | |
5941 | dest = (wxEvtHandler *) src; | |
5942 | return (void *) dest; | |
5943 | } | |
5944 | ||
9416aa89 RD |
5945 | static void *SwigwxPanelTowxObject(void *ptr) { |
5946 | wxPanel *src; | |
5947 | wxObject *dest; | |
5948 | src = (wxPanel *) ptr; | |
5949 | dest = (wxObject *) src; | |
5950 | return (void *) dest; | |
5951 | } | |
5952 | ||
8ab979d7 | 5953 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 5954 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5955 | PyObject * _resultobj; |
5956 | wxPanel * _result; | |
5957 | wxWindow * _arg0; | |
5958 | wxWindowID _arg1; | |
e508a2b6 RD |
5959 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5960 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5961 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
5962 | char * _arg5 = (char *) "panel"; | |
5963 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5964 | wxPoint temp; |
5965 | PyObject * _obj2 = 0; | |
5966 | wxSize temp0; | |
5967 | PyObject * _obj3 = 0; | |
efc5f224 | 5968 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
5969 | char _ptemp[128]; |
5970 | ||
5971 | self = self; | |
2f90df85 | 5972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 5973 | return NULL; |
1d99702e RD |
5974 | if (_argo0) { |
5975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
5978 | return NULL; | |
5979 | } | |
5980 | } | |
2f90df85 RD |
5981 | if (_obj2) |
5982 | { | |
5983 | _arg2 = &temp; | |
5984 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5985 | return NULL; |
2f90df85 RD |
5986 | } |
5987 | if (_obj3) | |
5988 | { | |
5989 | _arg3 = &temp0; | |
5990 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5991 | return NULL; |
2f90df85 | 5992 | } |
cf694132 | 5993 | { |
4268f798 | 5994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5995 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
5996 | ||
4268f798 | 5997 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5998 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5999 | } if (_result) { |
6000 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6001 | _resultobj = Py_BuildValue("s",_ptemp); | |
6002 | } else { | |
6003 | Py_INCREF(Py_None); | |
6004 | _resultobj = Py_None; | |
6005 | } | |
8ab979d7 RD |
6006 | return _resultobj; |
6007 | } | |
6008 | ||
09f3d4e6 RD |
6009 | #define new_wxPrePanel() (new wxPanel()) |
6010 | static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6011 | PyObject * _resultobj; | |
6012 | wxPanel * _result; | |
6013 | char *_kwnames[] = { NULL }; | |
6014 | char _ptemp[128]; | |
6015 | ||
6016 | self = self; | |
6017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames)) | |
6018 | return NULL; | |
6019 | { | |
4268f798 | 6020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
6021 | _result = (wxPanel *)new_wxPrePanel(); |
6022 | ||
4268f798 | 6023 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6024 | if (PyErr_Occurred()) return NULL; |
6025 | } if (_result) { | |
6026 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6027 | _resultobj = Py_BuildValue("s",_ptemp); | |
6028 | } else { | |
6029 | Py_INCREF(Py_None); | |
6030 | _resultobj = Py_None; | |
6031 | } | |
6032 | return _resultobj; | |
6033 | } | |
6034 | ||
6035 | #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6036 | static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6037 | PyObject * _resultobj; | |
6038 | bool _result; | |
6039 | wxPanel * _arg0; | |
6040 | wxWindow * _arg1; | |
6041 | wxWindowID _arg2; | |
6042 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6043 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6044 | long _arg5 = (long ) wxTAB_TRAVERSAL; | |
6045 | char * _arg6 = (char *) "panel"; | |
6046 | PyObject * _argo0 = 0; | |
6047 | PyObject * _argo1 = 0; | |
6048 | wxPoint temp; | |
6049 | PyObject * _obj3 = 0; | |
6050 | wxSize temp0; | |
6051 | PyObject * _obj4 = 0; | |
6052 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
6053 | ||
6054 | self = self; | |
6055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
6056 | return NULL; | |
6057 | if (_argo0) { | |
6058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
6060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p."); | |
6061 | return NULL; | |
6062 | } | |
6063 | } | |
6064 | if (_argo1) { | |
6065 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6066 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p."); | |
6068 | return NULL; | |
6069 | } | |
6070 | } | |
6071 | if (_obj3) | |
6072 | { | |
6073 | _arg3 = &temp; | |
6074 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6075 | return NULL; | |
6076 | } | |
6077 | if (_obj4) | |
6078 | { | |
6079 | _arg4 = &temp0; | |
6080 | if (! wxSize_helper(_obj4, &_arg4)) | |
6081 | return NULL; | |
6082 | } | |
6083 | { | |
4268f798 | 6084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
6085 | _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
6086 | ||
4268f798 | 6087 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6088 | if (PyErr_Occurred()) return NULL; |
6089 | } _resultobj = Py_BuildValue("i",_result); | |
6090 | return _resultobj; | |
6091 | } | |
6092 | ||
8ab979d7 | 6093 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 6094 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6095 | PyObject * _resultobj; |
6096 | wxPanel * _arg0; | |
1d99702e | 6097 | PyObject * _argo0 = 0; |
efc5f224 | 6098 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6099 | |
6100 | self = self; | |
efc5f224 | 6101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 6102 | return NULL; |
1d99702e RD |
6103 | if (_argo0) { |
6104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
6106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
6107 | return NULL; | |
6108 | } | |
6109 | } | |
cf694132 | 6110 | { |
4268f798 | 6111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6112 | wxPanel_InitDialog(_arg0); |
6113 | ||
4268f798 | 6114 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6115 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6116 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6117 | _resultobj = Py_None; |
6118 | return _resultobj; | |
6119 | } | |
6120 | ||
bb0054cd RD |
6121 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
6122 | wxScrolledWindow *src; | |
6123 | wxPanel *dest; | |
6124 | src = (wxScrolledWindow *) ptr; | |
6125 | dest = (wxPanel *) src; | |
6126 | return (void *) dest; | |
6127 | } | |
6128 | ||
8ab979d7 RD |
6129 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
6130 | wxScrolledWindow *src; | |
6131 | wxWindow *dest; | |
6132 | src = (wxScrolledWindow *) ptr; | |
6133 | dest = (wxWindow *) src; | |
6134 | return (void *) dest; | |
6135 | } | |
6136 | ||
6137 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
6138 | wxScrolledWindow *src; | |
6139 | wxEvtHandler *dest; | |
6140 | src = (wxScrolledWindow *) ptr; | |
6141 | dest = (wxEvtHandler *) src; | |
6142 | return (void *) dest; | |
6143 | } | |
6144 | ||
9416aa89 RD |
6145 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
6146 | wxScrolledWindow *src; | |
6147 | wxObject *dest; | |
6148 | src = (wxScrolledWindow *) ptr; | |
6149 | dest = (wxObject *) src; | |
6150 | return (void *) dest; | |
6151 | } | |
6152 | ||
8ab979d7 | 6153 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6154 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6155 | PyObject * _resultobj; |
6156 | wxScrolledWindow * _result; | |
6157 | wxWindow * _arg0; | |
1d99702e | 6158 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
6159 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6160 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
6161 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
6162 | char * _arg5 = (char *) "scrolledWindow"; | |
6163 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6164 | wxPoint temp; |
6165 | PyObject * _obj2 = 0; | |
6166 | wxSize temp0; | |
6167 | PyObject * _obj3 = 0; | |
efc5f224 | 6168 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6169 | char _ptemp[128]; |
6170 | ||
6171 | self = self; | |
2f90df85 | 6172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 6173 | return NULL; |
1d99702e RD |
6174 | if (_argo0) { |
6175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
6178 | return NULL; | |
6179 | } | |
6180 | } | |
2f90df85 RD |
6181 | if (_obj2) |
6182 | { | |
6183 | _arg2 = &temp; | |
6184 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6185 | return NULL; |
2f90df85 RD |
6186 | } |
6187 | if (_obj3) | |
6188 | { | |
6189 | _arg3 = &temp0; | |
6190 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6191 | return NULL; |
2f90df85 | 6192 | } |
cf694132 | 6193 | { |
4268f798 | 6194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6195 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
6196 | ||
4268f798 | 6197 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6198 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6199 | } if (_result) { |
6200 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6201 | _resultobj = Py_BuildValue("s",_ptemp); | |
6202 | } else { | |
6203 | Py_INCREF(Py_None); | |
6204 | _resultobj = Py_None; | |
6205 | } | |
8ab979d7 RD |
6206 | return _resultobj; |
6207 | } | |
6208 | ||
09f3d4e6 RD |
6209 | #define new_wxPreScrolledWindow() (new wxScrolledWindow()) |
6210 | static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6211 | PyObject * _resultobj; | |
6212 | wxScrolledWindow * _result; | |
6213 | char *_kwnames[] = { NULL }; | |
6214 | char _ptemp[128]; | |
6215 | ||
6216 | self = self; | |
6217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames)) | |
6218 | return NULL; | |
6219 | { | |
4268f798 | 6220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
6221 | _result = (wxScrolledWindow *)new_wxPreScrolledWindow(); |
6222 | ||
4268f798 | 6223 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6224 | if (PyErr_Occurred()) return NULL; |
6225 | } if (_result) { | |
6226 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6227 | _resultobj = Py_BuildValue("s",_ptemp); | |
6228 | } else { | |
6229 | Py_INCREF(Py_None); | |
6230 | _resultobj = Py_None; | |
6231 | } | |
6232 | return _resultobj; | |
6233 | } | |
6234 | ||
6235 | #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6236 | static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6237 | PyObject * _resultobj; | |
6238 | bool _result; | |
6239 | wxScrolledWindow * _arg0; | |
6240 | wxWindow * _arg1; | |
6241 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6242 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6243 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6244 | long _arg5 = (long ) wxHSCROLL|wxVSCROLL; | |
6245 | char * _arg6 = (char *) "scrolledWindow"; | |
6246 | PyObject * _argo0 = 0; | |
6247 | PyObject * _argo1 = 0; | |
6248 | wxPoint temp; | |
6249 | PyObject * _obj3 = 0; | |
6250 | wxSize temp0; | |
6251 | PyObject * _obj4 = 0; | |
6252 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
6253 | ||
6254 | self = self; | |
6255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
6256 | return NULL; | |
6257 | if (_argo0) { | |
6258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p."); | |
6261 | return NULL; | |
6262 | } | |
6263 | } | |
6264 | if (_argo1) { | |
6265 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6266 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p."); | |
6268 | return NULL; | |
6269 | } | |
6270 | } | |
6271 | if (_obj3) | |
6272 | { | |
6273 | _arg3 = &temp; | |
6274 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6275 | return NULL; | |
6276 | } | |
6277 | if (_obj4) | |
6278 | { | |
6279 | _arg4 = &temp0; | |
6280 | if (! wxSize_helper(_obj4, &_arg4)) | |
6281 | return NULL; | |
6282 | } | |
6283 | { | |
4268f798 | 6284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
6285 | _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
6286 | ||
4268f798 | 6287 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6288 | if (PyErr_Occurred()) return NULL; |
6289 | } _resultobj = Py_BuildValue("i",_result); | |
6290 | return _resultobj; | |
6291 | } | |
6292 | ||
8ab979d7 | 6293 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) |
efc5f224 | 6294 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6295 | PyObject * _resultobj; |
6296 | wxScrolledWindow * _arg0; | |
6297 | bool _arg1; | |
6298 | bool _arg2; | |
1d99702e | 6299 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6300 | int tempbool1; |
6301 | int tempbool2; | |
efc5f224 | 6302 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
6303 | |
6304 | self = self; | |
efc5f224 | 6305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 6306 | return NULL; |
1d99702e RD |
6307 | if (_argo0) { |
6308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
6311 | return NULL; | |
6312 | } | |
6313 | } | |
6314 | _arg1 = (bool ) tempbool1; | |
6315 | _arg2 = (bool ) tempbool2; | |
cf694132 | 6316 | { |
4268f798 | 6317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6318 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); |
6319 | ||
4268f798 | 6320 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6321 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6322 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6323 | _resultobj = Py_None; |
6324 | return _resultobj; | |
6325 | } | |
6326 | ||
b7e72427 RD |
6327 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
6328 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6329 | PyObject * _resultobj; | |
6330 | int _result; | |
6331 | wxScrolledWindow * _arg0; | |
6332 | int _arg1; | |
6333 | PyObject * _argo0 = 0; | |
6334 | char *_kwnames[] = { "self","orient", NULL }; | |
6335 | ||
6336 | self = self; | |
6337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6338 | return NULL; | |
6339 | if (_argo0) { | |
6340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6343 | return NULL; | |
6344 | } | |
6345 | } | |
6346 | { | |
4268f798 | 6347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b7e72427 RD |
6348 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); |
6349 | ||
4268f798 | 6350 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6351 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6352 | } _resultobj = Py_BuildValue("i",_result); |
6353 | return _resultobj; | |
6354 | } | |
6355 | ||
8ab979d7 | 6356 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 6357 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6358 | PyObject * _resultobj; |
6359 | wxScrolledWindow * _arg0; | |
6360 | int * _arg1; | |
6361 | int temp; | |
6362 | int * _arg2; | |
6363 | int temp0; | |
1d99702e | 6364 | PyObject * _argo0 = 0; |
efc5f224 | 6365 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6366 | |
6367 | self = self; | |
6368 | { | |
6369 | _arg1 = &temp; | |
6370 | } | |
6371 | { | |
6372 | _arg2 = &temp0; | |
6373 | } | |
efc5f224 | 6374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 6375 | return NULL; |
1d99702e RD |
6376 | if (_argo0) { |
6377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
6380 | return NULL; | |
6381 | } | |
6382 | } | |
cf694132 | 6383 | { |
4268f798 | 6384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6385 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); |
6386 | ||
4268f798 | 6387 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6388 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6389 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6390 | _resultobj = Py_None; |
6391 | { | |
6392 | PyObject *o; | |
6393 | o = PyInt_FromLong((long) (*_arg1)); | |
6394 | _resultobj = t_output_helper(_resultobj, o); | |
6395 | } | |
6396 | { | |
6397 | PyObject *o; | |
6398 | o = PyInt_FromLong((long) (*_arg2)); | |
6399 | _resultobj = t_output_helper(_resultobj, o); | |
6400 | } | |
6401 | return _resultobj; | |
6402 | } | |
6403 | ||
b7e72427 RD |
6404 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
6405 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6406 | PyObject * _resultobj; | |
6407 | wxWindow * _result; | |
6408 | wxScrolledWindow * _arg0; | |
6409 | PyObject * _argo0 = 0; | |
6410 | char *_kwnames[] = { "self", NULL }; | |
b7e72427 RD |
6411 | |
6412 | self = self; | |
6413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6414 | return NULL; | |
6415 | if (_argo0) { | |
6416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6419 | return NULL; | |
6420 | } | |
6421 | } | |
6422 | { | |
4268f798 | 6423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b7e72427 RD |
6424 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); |
6425 | ||
4268f798 | 6426 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6427 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6428 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b7e72427 RD |
6429 | return _resultobj; |
6430 | } | |
6431 | ||
8ab979d7 | 6432 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) |
efc5f224 | 6433 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6434 | PyObject * _resultobj; |
6435 | wxScrolledWindow * _arg0; | |
6436 | int * _arg1; | |
6437 | int temp; | |
6438 | int * _arg2; | |
6439 | int temp0; | |
1d99702e | 6440 | PyObject * _argo0 = 0; |
efc5f224 | 6441 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6442 | |
6443 | self = self; | |
6444 | { | |
6445 | _arg1 = &temp; | |
6446 | } | |
6447 | { | |
6448 | _arg2 = &temp0; | |
6449 | } | |
efc5f224 | 6450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
8ab979d7 | 6451 | return NULL; |
1d99702e RD |
6452 | if (_argo0) { |
6453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
6456 | return NULL; | |
6457 | } | |
6458 | } | |
cf694132 | 6459 | { |
4268f798 | 6460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6461 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); |
6462 | ||
4268f798 | 6463 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6464 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6465 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6466 | _resultobj = Py_None; |
6467 | { | |
6468 | PyObject *o; | |
6469 | o = PyInt_FromLong((long) (*_arg1)); | |
6470 | _resultobj = t_output_helper(_resultobj, o); | |
6471 | } | |
6472 | { | |
6473 | PyObject *o; | |
6474 | o = PyInt_FromLong((long) (*_arg2)); | |
6475 | _resultobj = t_output_helper(_resultobj, o); | |
6476 | } | |
6477 | return _resultobj; | |
6478 | } | |
6479 | ||
6480 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
efc5f224 | 6481 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6482 | PyObject * _resultobj; |
6483 | bool _result; | |
6484 | wxScrolledWindow * _arg0; | |
1d99702e | 6485 | PyObject * _argo0 = 0; |
efc5f224 | 6486 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6487 | |
6488 | self = self; | |
efc5f224 | 6489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 6490 | return NULL; |
1d99702e RD |
6491 | if (_argo0) { |
6492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
6495 | return NULL; | |
6496 | } | |
6497 | } | |
cf694132 | 6498 | { |
4268f798 | 6499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6500 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); |
6501 | ||
4268f798 | 6502 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6503 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6504 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6505 | return _resultobj; |
6506 | } | |
6507 | ||
6508 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 6509 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6510 | PyObject * _resultobj; |
6511 | wxScrolledWindow * _arg0; | |
6512 | wxDC * _arg1; | |
1d99702e RD |
6513 | PyObject * _argo0 = 0; |
6514 | PyObject * _argo1 = 0; | |
efc5f224 | 6515 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
6516 | |
6517 | self = self; | |
efc5f224 | 6518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
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_PrepareDC. Expected _wxScrolledWindow_p."); |
6524 | return NULL; | |
6525 | } | |
6526 | } | |
1d99702e RD |
6527 | if (_argo1) { |
6528 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6529 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
6530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
6531 | return NULL; | |
6532 | } | |
6533 | } | |
cf694132 | 6534 | { |
4268f798 | 6535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6536 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); |
6537 | ||
4268f798 | 6538 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6539 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6540 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6541 | _resultobj = Py_None; |
6542 | return _resultobj; | |
6543 | } | |
6544 | ||
6545 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 6546 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6547 | PyObject * _resultobj; |
6548 | wxScrolledWindow * _arg0; | |
6549 | int _arg1; | |
6550 | int _arg2; | |
1d99702e | 6551 | PyObject * _argo0 = 0; |
efc5f224 | 6552 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6553 | |
6554 | self = self; | |
efc5f224 | 6555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6556 | return NULL; |
1d99702e RD |
6557 | if (_argo0) { |
6558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
6561 | return NULL; | |
6562 | } | |
6563 | } | |
cf694132 | 6564 | { |
4268f798 | 6565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6566 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); |
6567 | ||
4268f798 | 6568 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6569 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6570 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6571 | _resultobj = Py_None; |
6572 | return _resultobj; | |
6573 | } | |
6574 | ||
f6bcfd97 | 6575 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6576 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6577 | PyObject * _resultobj; |
6578 | wxScrolledWindow * _arg0; | |
6579 | int _arg1; | |
6580 | int _arg2; | |
6581 | int _arg3; | |
6582 | int _arg4; | |
1d99702e RD |
6583 | int _arg5 = (int ) 0; |
6584 | int _arg6 = (int ) 0; | |
f6bcfd97 | 6585 | int _arg7 = (int ) FALSE; |
1d99702e | 6586 | PyObject * _argo0 = 0; |
f6bcfd97 | 6587 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
6588 | |
6589 | self = self; | |
f6bcfd97 | 6590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 6591 | return NULL; |
1d99702e RD |
6592 | if (_argo0) { |
6593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
6596 | return NULL; | |
6597 | } | |
6598 | } | |
cf694132 | 6599 | { |
4268f798 | 6600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 6601 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 | 6602 | |
4268f798 | 6603 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6604 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6605 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6606 | _resultobj = Py_None; |
6607 | return _resultobj; | |
6608 | } | |
6609 | ||
b7e72427 RD |
6610 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
6611 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6612 | PyObject * _resultobj; | |
6613 | wxScrolledWindow * _arg0; | |
6614 | int _arg1; | |
6615 | int _arg2; | |
6616 | PyObject * _argo0 = 0; | |
6617 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6618 | ||
6619 | self = self; | |
6620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6621 | return NULL; | |
6622 | if (_argo0) { | |
6623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6626 | return NULL; | |
6627 | } | |
6628 | } | |
6629 | { | |
4268f798 | 6630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b7e72427 RD |
6631 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); |
6632 | ||
4268f798 | 6633 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6634 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6635 | } Py_INCREF(Py_None); |
6636 | _resultobj = Py_None; | |
6637 | return _resultobj; | |
6638 | } | |
6639 | ||
eb715945 RD |
6640 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
6641 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6642 | PyObject * _resultobj; | |
6643 | wxScrolledWindow * _arg0; | |
6644 | wxWindow * _arg1; | |
6645 | PyObject * _argo0 = 0; | |
6646 | PyObject * _argo1 = 0; | |
6647 | char *_kwnames[] = { "self","window", NULL }; | |
6648 | ||
6649 | self = self; | |
6650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6651 | return NULL; | |
6652 | if (_argo0) { | |
6653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6656 | return NULL; | |
6657 | } | |
6658 | } | |
6659 | if (_argo1) { | |
6660 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6661 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6663 | return NULL; | |
6664 | } | |
6665 | } | |
6666 | { | |
4268f798 | 6667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eb715945 RD |
6668 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); |
6669 | ||
4268f798 | 6670 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6671 | if (PyErr_Occurred()) return NULL; |
eb715945 RD |
6672 | } Py_INCREF(Py_None); |
6673 | _resultobj = Py_None; | |
6674 | return _resultobj; | |
6675 | } | |
6676 | ||
4c9993c3 RD |
6677 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
6678 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6679 | PyObject * _resultobj; | |
6680 | wxScrolledWindow * _arg0; | |
6681 | int * _arg1; | |
6682 | int temp; | |
6683 | int * _arg2; | |
6684 | int temp0; | |
6685 | PyObject * _argo0 = 0; | |
6686 | char *_kwnames[] = { "self", NULL }; | |
6687 | ||
6688 | self = self; | |
6689 | { | |
6690 | _arg1 = &temp; | |
6691 | } | |
6692 | { | |
6693 | _arg2 = &temp0; | |
6694 | } | |
6695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6696 | return NULL; | |
6697 | if (_argo0) { | |
6698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6701 | return NULL; | |
6702 | } | |
6703 | } | |
6704 | { | |
4268f798 | 6705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4c9993c3 RD |
6706 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); |
6707 | ||
4268f798 | 6708 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6709 | if (PyErr_Occurred()) return NULL; |
4c9993c3 RD |
6710 | } Py_INCREF(Py_None); |
6711 | _resultobj = Py_None; | |
6712 | { | |
6713 | PyObject *o; | |
6714 | o = PyInt_FromLong((long) (*_arg1)); | |
6715 | _resultobj = t_output_helper(_resultobj, o); | |
6716 | } | |
6717 | { | |
6718 | PyObject *o; | |
6719 | o = PyInt_FromLong((long) (*_arg2)); | |
6720 | _resultobj = t_output_helper(_resultobj, o); | |
6721 | } | |
6722 | return _resultobj; | |
6723 | } | |
6724 | ||
9d8bd15f RD |
6725 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6726 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6727 | PyObject * _resultobj; | |
6728 | wxScrolledWindow * _arg0; | |
6729 | int _arg1; | |
6730 | int _arg2; | |
6731 | int * _arg3; | |
6732 | int temp; | |
6733 | int * _arg4; | |
6734 | int temp0; | |
6735 | PyObject * _argo0 = 0; | |
6736 | char *_kwnames[] = { "self","x","y", NULL }; | |
6737 | ||
6738 | self = self; | |
6739 | { | |
6740 | _arg3 = &temp; | |
6741 | } | |
6742 | { | |
6743 | _arg4 = &temp0; | |
6744 | } | |
6745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6746 | return NULL; | |
6747 | if (_argo0) { | |
6748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
6751 | return NULL; | |
6752 | } | |
6753 | } | |
6754 | { | |
4268f798 | 6755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9d8bd15f RD |
6756 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); |
6757 | ||
4268f798 | 6758 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6759 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6760 | } Py_INCREF(Py_None); |
6761 | _resultobj = Py_None; | |
6762 | { | |
6763 | PyObject *o; | |
6764 | o = PyInt_FromLong((long) (*_arg3)); | |
6765 | _resultobj = t_output_helper(_resultobj, o); | |
6766 | } | |
6767 | { | |
6768 | PyObject *o; | |
6769 | o = PyInt_FromLong((long) (*_arg4)); | |
6770 | _resultobj = t_output_helper(_resultobj, o); | |
6771 | } | |
6772 | return _resultobj; | |
6773 | } | |
6774 | ||
6775 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6776 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6777 | PyObject * _resultobj; | |
6778 | wxScrolledWindow * _arg0; | |
6779 | int _arg1; | |
6780 | int _arg2; | |
6781 | int * _arg3; | |
6782 | int temp; | |
6783 | int * _arg4; | |
6784 | int temp0; | |
6785 | PyObject * _argo0 = 0; | |
6786 | char *_kwnames[] = { "self","x","y", NULL }; | |
6787 | ||
6788 | self = self; | |
6789 | { | |
6790 | _arg3 = &temp; | |
6791 | } | |
6792 | { | |
6793 | _arg4 = &temp0; | |
6794 | } | |
6795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6796 | return NULL; | |
6797 | if (_argo0) { | |
6798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
6801 | return NULL; | |
6802 | } | |
6803 | } | |
6804 | { | |
4268f798 | 6805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9d8bd15f RD |
6806 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); |
6807 | ||
4268f798 | 6808 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6809 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6810 | } Py_INCREF(Py_None); |
6811 | _resultobj = Py_None; | |
6812 | { | |
6813 | PyObject *o; | |
6814 | o = PyInt_FromLong((long) (*_arg3)); | |
6815 | _resultobj = t_output_helper(_resultobj, o); | |
6816 | } | |
6817 | { | |
6818 | PyObject *o; | |
6819 | o = PyInt_FromLong((long) (*_arg4)); | |
6820 | _resultobj = t_output_helper(_resultobj, o); | |
6821 | } | |
6822 | return _resultobj; | |
6823 | } | |
6824 | ||
d1679124 RD |
6825 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
6826 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6827 | PyObject * _resultobj; | |
6828 | wxScrolledWindow * _arg0; | |
6829 | double _arg1; | |
6830 | double _arg2; | |
6831 | PyObject * _argo0 = 0; | |
6832 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
6833 | ||
6834 | self = self; | |
6835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6836 | return NULL; | |
6837 | if (_argo0) { | |
6838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
6841 | return NULL; | |
6842 | } | |
6843 | } | |
6844 | { | |
4268f798 | 6845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d1679124 RD |
6846 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); |
6847 | ||
4268f798 | 6848 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6849 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6850 | } Py_INCREF(Py_None); |
6851 | _resultobj = Py_None; | |
6852 | return _resultobj; | |
6853 | } | |
6854 | ||
6855 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
6856 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6857 | PyObject * _resultobj; | |
6858 | double _result; | |
6859 | wxScrolledWindow * _arg0; | |
6860 | PyObject * _argo0 = 0; | |
6861 | char *_kwnames[] = { "self", NULL }; | |
6862 | ||
6863 | self = self; | |
6864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
6865 | return NULL; | |
6866 | if (_argo0) { | |
6867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
6870 | return NULL; | |
6871 | } | |
6872 | } | |
6873 | { | |
4268f798 | 6874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d1679124 RD |
6875 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); |
6876 | ||
4268f798 | 6877 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6878 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6879 | } _resultobj = Py_BuildValue("d",_result); |
6880 | return _resultobj; | |
6881 | } | |
6882 | ||
6883 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
6884 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6885 | PyObject * _resultobj; | |
6886 | double _result; | |
6887 | wxScrolledWindow * _arg0; | |
6888 | PyObject * _argo0 = 0; | |
6889 | char *_kwnames[] = { "self", NULL }; | |
6890 | ||
6891 | self = self; | |
6892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
6893 | return NULL; | |
6894 | if (_argo0) { | |
6895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
6898 | return NULL; | |
6899 | } | |
6900 | } | |
6901 | { | |
4268f798 | 6902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d1679124 RD |
6903 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); |
6904 | ||
4268f798 | 6905 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6906 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6907 | } _resultobj = Py_BuildValue("d",_result); |
6908 | return _resultobj; | |
6909 | } | |
6910 | ||
6911 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
6912 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6913 | PyObject * _resultobj; | |
6914 | wxScrolledWindow * _arg0; | |
6915 | PyObject * _argo0 = 0; | |
6916 | char *_kwnames[] = { "self", NULL }; | |
6917 | ||
6918 | self = self; | |
6919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
6920 | return NULL; | |
6921 | if (_argo0) { | |
6922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
6925 | return NULL; | |
6926 | } | |
6927 | } | |
6928 | { | |
4268f798 | 6929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d1679124 RD |
6930 | wxScrolledWindow_AdjustScrollbars(_arg0); |
6931 | ||
4268f798 | 6932 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6933 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
6934 | } Py_INCREF(Py_None); |
6935 | _resultobj = Py_None; | |
6936 | return _resultobj; | |
6937 | } | |
6938 | ||
8ab979d7 RD |
6939 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
6940 | wxMenu *src; | |
6941 | wxEvtHandler *dest; | |
6942 | src = (wxMenu *) ptr; | |
6943 | dest = (wxEvtHandler *) src; | |
6944 | return (void *) dest; | |
6945 | } | |
6946 | ||
9416aa89 RD |
6947 | static void *SwigwxMenuTowxObject(void *ptr) { |
6948 | wxMenu *src; | |
6949 | wxObject *dest; | |
6950 | src = (wxMenu *) ptr; | |
6951 | dest = (wxObject *) src; | |
6952 | return (void *) dest; | |
6953 | } | |
6954 | ||
8bf5d46e | 6955 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) |
efc5f224 | 6956 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6957 | PyObject * _resultobj; |
6958 | wxMenu * _result; | |
1d99702e RD |
6959 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
6960 | long _arg1 = (long ) 0; | |
8ab979d7 | 6961 | PyObject * _obj0 = 0; |
efc5f224 | 6962 | char *_kwnames[] = { "title","style", NULL }; |
8ab979d7 RD |
6963 | char _ptemp[128]; |
6964 | ||
6965 | self = self; | |
efc5f224 | 6966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
8ab979d7 RD |
6967 | return NULL; |
6968 | if (_obj0) | |
6969 | { | |
185d7c3e RD |
6970 | #if PYTHON_API_VERSION >= 1009 |
6971 | char* tmpPtr; int tmpSize; | |
6972 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 6973 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6974 | return NULL; |
6975 | } | |
6976 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
6977 | return NULL; | |
6978 | _arg0 = new wxString(tmpPtr, tmpSize); | |
6979 | #else | |
8ab979d7 RD |
6980 | if (!PyString_Check(_obj0)) { |
6981 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6982 | return NULL; | |
6983 | } | |
185d7c3e RD |
6984 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
6985 | #endif | |
8ab979d7 | 6986 | } |
cf694132 | 6987 | { |
4268f798 | 6988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8bf5d46e | 6989 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
cf694132 | 6990 | |
4268f798 | 6991 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6992 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6993 | } if (_result) { |
6994 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
6995 | _resultobj = Py_BuildValue("s",_ptemp); | |
6996 | } else { | |
6997 | Py_INCREF(Py_None); | |
6998 | _resultobj = Py_None; | |
6999 | } | |
8ab979d7 RD |
7000 | { |
7001 | if (_obj0) | |
7002 | delete _arg0; | |
7003 | } | |
7004 | return _resultobj; | |
7005 | } | |
7006 | ||
7007 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 7008 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7009 | PyObject * _resultobj; |
7010 | wxMenu * _arg0; | |
7011 | int _arg1; | |
7012 | wxString * _arg2; | |
1d99702e | 7013 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; |
926bb76c | 7014 | int _arg4 = (int ) FALSE; |
1d99702e | 7015 | PyObject * _argo0 = 0; |
8ab979d7 RD |
7016 | PyObject * _obj2 = 0; |
7017 | PyObject * _obj3 = 0; | |
efc5f224 | 7018 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; |
8ab979d7 RD |
7019 | |
7020 | self = self; | |
926bb76c | 7021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
8ab979d7 | 7022 | return NULL; |
1d99702e RD |
7023 | if (_argo0) { |
7024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); |
7027 | return NULL; | |
7028 | } | |
7029 | } | |
7030 | { | |
185d7c3e RD |
7031 | #if PYTHON_API_VERSION >= 1009 |
7032 | char* tmpPtr; int tmpSize; | |
7033 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7034 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7035 | return NULL; |
7036 | } | |
7037 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7038 | return NULL; | |
7039 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7040 | #else | |
8ab979d7 RD |
7041 | if (!PyString_Check(_obj2)) { |
7042 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7043 | return NULL; | |
7044 | } | |
185d7c3e RD |
7045 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7046 | #endif | |
8ab979d7 RD |
7047 | } |
7048 | if (_obj3) | |
7049 | { | |
185d7c3e RD |
7050 | #if PYTHON_API_VERSION >= 1009 |
7051 | char* tmpPtr; int tmpSize; | |
7052 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 7053 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7054 | return NULL; |
7055 | } | |
7056 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
7057 | return NULL; | |
7058 | _arg3 = new wxString(tmpPtr, tmpSize); | |
7059 | #else | |
8ab979d7 RD |
7060 | if (!PyString_Check(_obj3)) { |
7061 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7062 | return NULL; | |
7063 | } | |
185d7c3e RD |
7064 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
7065 | #endif | |
8ab979d7 | 7066 | } |
cf694132 | 7067 | { |
4268f798 | 7068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7069 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
7070 | ||
4268f798 | 7071 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7072 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7073 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7074 | _resultobj = Py_None; |
7075 | { | |
7076 | if (_obj2) | |
7077 | delete _arg2; | |
7078 | } | |
7079 | { | |
7080 | if (_obj3) | |
7081 | delete _arg3; | |
7082 | } | |
7083 | return _resultobj; | |
7084 | } | |
7085 | ||
7086 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 7087 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7088 | PyObject * _resultobj; |
7089 | wxMenu * _arg0; | |
7090 | int _arg1; | |
7091 | wxString * _arg2; | |
7092 | wxMenu * _arg3; | |
1d99702e RD |
7093 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; |
7094 | PyObject * _argo0 = 0; | |
8ab979d7 | 7095 | PyObject * _obj2 = 0; |
1d99702e | 7096 | PyObject * _argo3 = 0; |
8ab979d7 | 7097 | PyObject * _obj4 = 0; |
efc5f224 | 7098 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; |
8ab979d7 RD |
7099 | |
7100 | self = self; | |
efc5f224 | 7101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 7102 | return NULL; |
1d99702e RD |
7103 | if (_argo0) { |
7104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
7107 | return NULL; | |
7108 | } | |
7109 | } | |
7110 | { | |
185d7c3e RD |
7111 | #if PYTHON_API_VERSION >= 1009 |
7112 | char* tmpPtr; int tmpSize; | |
7113 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7114 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7115 | return NULL; |
7116 | } | |
7117 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7118 | return NULL; | |
7119 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7120 | #else | |
8ab979d7 RD |
7121 | if (!PyString_Check(_obj2)) { |
7122 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7123 | return NULL; | |
7124 | } | |
185d7c3e RD |
7125 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7126 | #endif | |
8ab979d7 | 7127 | } |
1d99702e RD |
7128 | if (_argo3) { |
7129 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7130 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8ab979d7 RD |
7131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
7132 | return NULL; | |
7133 | } | |
7134 | } | |
7135 | if (_obj4) | |
7136 | { | |
185d7c3e RD |
7137 | #if PYTHON_API_VERSION >= 1009 |
7138 | char* tmpPtr; int tmpSize; | |
7139 | if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) { | |
794c5cb1 | 7140 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7141 | return NULL; |
7142 | } | |
7143 | if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1) | |
7144 | return NULL; | |
7145 | _arg4 = new wxString(tmpPtr, tmpSize); | |
7146 | #else | |
8ab979d7 RD |
7147 | if (!PyString_Check(_obj4)) { |
7148 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7149 | return NULL; | |
7150 | } | |
185d7c3e RD |
7151 | _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4)); |
7152 | #endif | |
8ab979d7 | 7153 | } |
cf694132 | 7154 | { |
4268f798 | 7155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7156 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); |
7157 | ||
4268f798 | 7158 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7159 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7160 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7161 | _resultobj = Py_None; |
7162 | { | |
7163 | if (_obj2) | |
7164 | delete _arg2; | |
7165 | } | |
7166 | { | |
7167 | if (_obj4) | |
7168 | delete _arg4; | |
7169 | } | |
7170 | return _resultobj; | |
7171 | } | |
7172 | ||
af309447 | 7173 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
efc5f224 | 7174 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
7175 | PyObject * _resultobj; |
7176 | wxMenu * _arg0; | |
7177 | wxMenuItem * _arg1; | |
1d99702e RD |
7178 | PyObject * _argo0 = 0; |
7179 | PyObject * _argo1 = 0; | |
efc5f224 | 7180 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
7181 | |
7182 | self = self; | |
efc5f224 | 7183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 7184 | return NULL; |
1d99702e RD |
7185 | if (_argo0) { |
7186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
af309447 RD |
7188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); |
7189 | return NULL; | |
7190 | } | |
7191 | } | |
1d99702e RD |
7192 | if (_argo1) { |
7193 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7194 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
af309447 RD |
7195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); |
7196 | return NULL; | |
7197 | } | |
7198 | } | |
cf694132 | 7199 | { |
4268f798 | 7200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7201 | wxMenu_AppendItem(_arg0,_arg1); |
7202 | ||
4268f798 | 7203 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7204 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7205 | } Py_INCREF(Py_None); |
af309447 RD |
7206 | _resultobj = Py_None; |
7207 | return _resultobj; | |
7208 | } | |
7209 | ||
8ab979d7 | 7210 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
efc5f224 | 7211 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7212 | PyObject * _resultobj; |
7213 | wxMenu * _arg0; | |
1d99702e | 7214 | PyObject * _argo0 = 0; |
efc5f224 | 7215 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7216 | |
7217 | self = self; | |
efc5f224 | 7218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
8ab979d7 | 7219 | return NULL; |
1d99702e RD |
7220 | if (_argo0) { |
7221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
7224 | return NULL; | |
7225 | } | |
7226 | } | |
cf694132 | 7227 | { |
4268f798 | 7228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7229 | wxMenu_AppendSeparator(_arg0); |
7230 | ||
4268f798 | 7231 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7232 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7233 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7234 | _resultobj = Py_None; |
7235 | return _resultobj; | |
7236 | } | |
7237 | ||
7238 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 7239 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7240 | PyObject * _resultobj; |
7241 | wxMenu * _arg0; | |
1d99702e | 7242 | PyObject * _argo0 = 0; |
efc5f224 | 7243 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7244 | |
7245 | self = self; | |
efc5f224 | 7246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 7247 | return NULL; |
1d99702e RD |
7248 | if (_argo0) { |
7249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
7252 | return NULL; | |
7253 | } | |
7254 | } | |
cf694132 | 7255 | { |
4268f798 | 7256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7257 | wxMenu_Break(_arg0); |
7258 | ||
4268f798 | 7259 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7260 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7261 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7262 | _resultobj = Py_None; |
7263 | return _resultobj; | |
7264 | } | |
7265 | ||
7266 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 7267 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7268 | PyObject * _resultobj; |
7269 | wxMenu * _arg0; | |
7270 | int _arg1; | |
7271 | bool _arg2; | |
1d99702e | 7272 | PyObject * _argo0 = 0; |
8ab979d7 | 7273 | int tempbool2; |
efc5f224 | 7274 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
7275 | |
7276 | self = self; | |
efc5f224 | 7277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7278 | return NULL; |
1d99702e RD |
7279 | if (_argo0) { |
7280 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7281 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
7283 | return NULL; | |
7284 | } | |
7285 | } | |
7286 | _arg2 = (bool ) tempbool2; | |
cf694132 | 7287 | { |
4268f798 | 7288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7289 | wxMenu_Check(_arg0,_arg1,_arg2); |
7290 | ||
4268f798 | 7291 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7292 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7293 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7294 | _resultobj = Py_None; |
7295 | return _resultobj; | |
7296 | } | |
7297 | ||
b1462dfa RD |
7298 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
7299 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7300 | PyObject * _resultobj; | |
7301 | bool _result; | |
7302 | wxMenu * _arg0; | |
7303 | int _arg1; | |
7304 | PyObject * _argo0 = 0; | |
7305 | char *_kwnames[] = { "self","id", NULL }; | |
7306 | ||
7307 | self = self; | |
7308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
7309 | return NULL; | |
7310 | if (_argo0) { | |
7311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
7314 | return NULL; | |
7315 | } | |
7316 | } | |
7317 | { | |
4268f798 | 7318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
7319 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); |
7320 | ||
4268f798 | 7321 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7322 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7323 | } _resultobj = Py_BuildValue("i",_result); |
7324 | return _resultobj; | |
7325 | } | |
7326 | ||
8ab979d7 | 7327 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 7328 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7329 | PyObject * _resultobj; |
7330 | wxMenu * _arg0; | |
7331 | int _arg1; | |
7332 | bool _arg2; | |
1d99702e | 7333 | PyObject * _argo0 = 0; |
8ab979d7 | 7334 | int tempbool2; |
efc5f224 | 7335 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
7336 | |
7337 | self = self; | |
efc5f224 | 7338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7339 | return NULL; |
1d99702e RD |
7340 | if (_argo0) { |
7341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
7344 | return NULL; | |
7345 | } | |
7346 | } | |
7347 | _arg2 = (bool ) tempbool2; | |
cf694132 | 7348 | { |
4268f798 | 7349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7350 | wxMenu_Enable(_arg0,_arg1,_arg2); |
7351 | ||
4268f798 | 7352 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7353 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7354 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7355 | _resultobj = Py_None; |
7356 | return _resultobj; | |
7357 | } | |
7358 | ||
b1462dfa RD |
7359 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
7360 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7361 | PyObject * _resultobj; | |
7362 | bool _result; | |
7363 | wxMenu * _arg0; | |
7364 | int _arg1; | |
7365 | PyObject * _argo0 = 0; | |
7366 | char *_kwnames[] = { "self","id", NULL }; | |
7367 | ||
7368 | self = self; | |
7369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
7370 | return NULL; | |
7371 | if (_argo0) { | |
7372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
7375 | return NULL; | |
7376 | } | |
7377 | } | |
7378 | { | |
4268f798 | 7379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
7380 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); |
7381 | ||
4268f798 | 7382 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7383 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7384 | } _resultobj = Py_BuildValue("i",_result); |
7385 | return _resultobj; | |
7386 | } | |
7387 | ||
8ab979d7 | 7388 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 7389 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7390 | PyObject * _resultobj; |
7391 | int _result; | |
7392 | wxMenu * _arg0; | |
7393 | wxString * _arg1; | |
1d99702e | 7394 | PyObject * _argo0 = 0; |
8ab979d7 | 7395 | PyObject * _obj1 = 0; |
efc5f224 | 7396 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
7397 | |
7398 | self = self; | |
efc5f224 | 7399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7400 | return NULL; |
1d99702e RD |
7401 | if (_argo0) { |
7402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
7405 | return NULL; | |
7406 | } | |
7407 | } | |
7408 | { | |
185d7c3e RD |
7409 | #if PYTHON_API_VERSION >= 1009 |
7410 | char* tmpPtr; int tmpSize; | |
7411 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7412 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7413 | return NULL; |
7414 | } | |
7415 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7416 | return NULL; | |
7417 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7418 | #else | |
8ab979d7 RD |
7419 | if (!PyString_Check(_obj1)) { |
7420 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7421 | return NULL; | |
7422 | } | |
185d7c3e RD |
7423 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7424 | #endif | |
8ab979d7 | 7425 | } |
cf694132 | 7426 | { |
4268f798 | 7427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7428 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); |
7429 | ||
4268f798 | 7430 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7431 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7432 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7433 | { |
7434 | if (_obj1) | |
7435 | delete _arg1; | |
7436 | } | |
7437 | return _resultobj; | |
7438 | } | |
7439 | ||
b1462dfa RD |
7440 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
7441 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7442 | PyObject * _resultobj; | |
7443 | wxMenuItem * _result; | |
7444 | wxMenu * _arg0; | |
7445 | int _arg1; | |
7446 | PyObject * _argo0 = 0; | |
7447 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
7448 | |
7449 | self = self; | |
7450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
7451 | return NULL; | |
7452 | if (_argo0) { | |
7453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
7456 | return NULL; | |
7457 | } | |
7458 | } | |
7459 | { | |
4268f798 | 7460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
7461 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); |
7462 | ||
4268f798 | 7463 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7464 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7465 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
7466 | return _resultobj; |
7467 | } | |
7468 | ||
8ab979d7 | 7469 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 7470 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7471 | PyObject * _resultobj; |
7472 | wxString * _result; | |
7473 | wxMenu * _arg0; | |
1d99702e | 7474 | PyObject * _argo0 = 0; |
efc5f224 | 7475 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7476 | |
7477 | self = self; | |
efc5f224 | 7478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 7479 | return NULL; |
1d99702e RD |
7480 | if (_argo0) { |
7481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
7484 | return NULL; | |
7485 | } | |
7486 | } | |
8ab979d7 | 7487 | { |
4268f798 | 7488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7489 | _result = new wxString (wxMenu_GetTitle(_arg0)); |
7490 | ||
4268f798 | 7491 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7492 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7493 | }{ |
eec92d76 | 7494 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7495 | } |
7496 | { | |
7497 | delete _result; | |
7498 | } | |
7499 | return _resultobj; | |
7500 | } | |
7501 | ||
7502 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 7503 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7504 | PyObject * _resultobj; |
7505 | wxMenu * _arg0; | |
7506 | wxString * _arg1; | |
1d99702e | 7507 | PyObject * _argo0 = 0; |
8ab979d7 | 7508 | PyObject * _obj1 = 0; |
efc5f224 | 7509 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
7510 | |
7511 | self = self; | |
efc5f224 | 7512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7513 | return NULL; |
1d99702e RD |
7514 | if (_argo0) { |
7515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
7518 | return NULL; | |
7519 | } | |
7520 | } | |
7521 | { | |
185d7c3e RD |
7522 | #if PYTHON_API_VERSION >= 1009 |
7523 | char* tmpPtr; int tmpSize; | |
7524 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7525 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7526 | return NULL; |
7527 | } | |
7528 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7529 | return NULL; | |
7530 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7531 | #else | |
8ab979d7 RD |
7532 | if (!PyString_Check(_obj1)) { |
7533 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7534 | return NULL; | |
7535 | } | |
185d7c3e RD |
7536 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7537 | #endif | |
8ab979d7 | 7538 | } |
cf694132 | 7539 | { |
4268f798 | 7540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7541 | wxMenu_SetTitle(_arg0,*_arg1); |
7542 | ||
4268f798 | 7543 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7544 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7545 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7546 | _resultobj = Py_None; |
7547 | { | |
7548 | if (_obj1) | |
7549 | delete _arg1; | |
7550 | } | |
7551 | return _resultobj; | |
7552 | } | |
7553 | ||
b1462dfa RD |
7554 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
7555 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7556 | PyObject * _resultobj; |
b1462dfa | 7557 | wxString * _result; |
8ab979d7 RD |
7558 | wxMenu * _arg0; |
7559 | int _arg1; | |
1d99702e | 7560 | PyObject * _argo0 = 0; |
efc5f224 | 7561 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7562 | |
7563 | self = self; | |
b1462dfa | 7564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7565 | return NULL; |
1d99702e RD |
7566 | if (_argo0) { |
7567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7570 | return NULL; |
7571 | } | |
7572 | } | |
cf694132 | 7573 | { |
4268f798 | 7574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7575 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 | 7576 | |
4268f798 | 7577 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7578 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7579 | }{ |
eec92d76 | 7580 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
7581 | } |
7582 | { | |
7583 | delete _result; | |
7584 | } | |
8ab979d7 RD |
7585 | return _resultobj; |
7586 | } | |
7587 | ||
b1462dfa RD |
7588 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
7589 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7590 | PyObject * _resultobj; |
8ab979d7 RD |
7591 | wxMenu * _arg0; |
7592 | int _arg1; | |
b1462dfa | 7593 | wxString * _arg2; |
1d99702e | 7594 | PyObject * _argo0 = 0; |
b1462dfa RD |
7595 | PyObject * _obj2 = 0; |
7596 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
7597 | |
7598 | self = self; | |
b1462dfa | 7599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7600 | return NULL; |
1d99702e RD |
7601 | if (_argo0) { |
7602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7605 | return NULL; |
7606 | } | |
7607 | } | |
b1462dfa | 7608 | { |
185d7c3e RD |
7609 | #if PYTHON_API_VERSION >= 1009 |
7610 | char* tmpPtr; int tmpSize; | |
7611 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7612 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7613 | return NULL; |
7614 | } | |
7615 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7616 | return NULL; | |
7617 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7618 | #else | |
b1462dfa RD |
7619 | if (!PyString_Check(_obj2)) { |
7620 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7621 | return NULL; | |
7622 | } | |
185d7c3e RD |
7623 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7624 | #endif | |
b1462dfa | 7625 | } |
8ab979d7 | 7626 | { |
4268f798 | 7627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7628 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 7629 | |
4268f798 | 7630 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7631 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7632 | } Py_INCREF(Py_None); |
7633 | _resultobj = Py_None; | |
8ab979d7 | 7634 | { |
b1462dfa RD |
7635 | if (_obj2) |
7636 | delete _arg2; | |
8ab979d7 RD |
7637 | } |
7638 | return _resultobj; | |
7639 | } | |
7640 | ||
b1462dfa RD |
7641 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
7642 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7643 | PyObject * _resultobj; |
7644 | wxString * _result; | |
7645 | wxMenu * _arg0; | |
7646 | int _arg1; | |
1d99702e | 7647 | PyObject * _argo0 = 0; |
efc5f224 | 7648 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7649 | |
7650 | self = self; | |
b1462dfa | 7651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7652 | return NULL; |
1d99702e RD |
7653 | if (_argo0) { |
7654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
7657 | return NULL; |
7658 | } | |
7659 | } | |
8ab979d7 | 7660 | { |
4268f798 | 7661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7662 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 | 7663 | |
4268f798 | 7664 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7665 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7666 | }{ |
eec92d76 | 7667 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7668 | } |
7669 | { | |
7670 | delete _result; | |
7671 | } | |
7672 | return _resultobj; | |
7673 | } | |
7674 | ||
7675 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 7676 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7677 | PyObject * _resultobj; |
7678 | wxMenu * _arg0; | |
7679 | int _arg1; | |
7680 | wxString * _arg2; | |
1d99702e | 7681 | PyObject * _argo0 = 0; |
8ab979d7 | 7682 | PyObject * _obj2 = 0; |
efc5f224 | 7683 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
7684 | |
7685 | self = self; | |
efc5f224 | 7686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7687 | return NULL; |
1d99702e RD |
7688 | if (_argo0) { |
7689 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7690 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
7692 | return NULL; | |
7693 | } | |
7694 | } | |
7695 | { | |
185d7c3e RD |
7696 | #if PYTHON_API_VERSION >= 1009 |
7697 | char* tmpPtr; int tmpSize; | |
7698 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7699 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7700 | return NULL; |
7701 | } | |
7702 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7703 | return NULL; | |
7704 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7705 | #else | |
8ab979d7 RD |
7706 | if (!PyString_Check(_obj2)) { |
7707 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7708 | return NULL; | |
7709 | } | |
185d7c3e RD |
7710 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7711 | #endif | |
8ab979d7 | 7712 | } |
cf694132 | 7713 | { |
4268f798 | 7714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7715 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); |
7716 | ||
4268f798 | 7717 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7718 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7719 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7720 | _resultobj = Py_None; |
7721 | { | |
7722 | if (_obj2) | |
7723 | delete _arg2; | |
7724 | } | |
7725 | return _resultobj; | |
7726 | } | |
7727 | ||
b1462dfa RD |
7728 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
7729 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7730 | PyObject * _resultobj; |
8ab979d7 | 7731 | wxMenu * _arg0; |
b1462dfa | 7732 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 7733 | PyObject * _argo0 = 0; |
b1462dfa RD |
7734 | PyObject * _argo1 = 0; |
7735 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
7736 | |
7737 | self = self; | |
b1462dfa | 7738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
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 RD |
7743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
7744 | return NULL; | |
7745 | } | |
7746 | } | |
7747 | if (_argo1) { | |
7748 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7749 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
7751 | return NULL; |
7752 | } | |
7753 | } | |
cf694132 | 7754 | { |
4268f798 | 7755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7756 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 | 7757 | |
4268f798 | 7758 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7759 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7760 | } Py_INCREF(Py_None); |
7761 | _resultobj = Py_None; | |
8ab979d7 RD |
7762 | return _resultobj; |
7763 | } | |
7764 | ||
b1462dfa RD |
7765 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7766 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7767 | PyObject * _resultobj; |
7768 | bool _result; | |
7769 | wxMenu * _arg0; | |
7770 | int _arg1; | |
1d99702e | 7771 | PyObject * _argo0 = 0; |
efc5f224 | 7772 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7773 | |
7774 | self = self; | |
b1462dfa | 7775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7776 | return NULL; |
1d99702e RD |
7777 | if (_argo0) { |
7778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
7781 | return NULL; |
7782 | } | |
7783 | } | |
cf694132 | 7784 | { |
4268f798 | 7785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7786 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 | 7787 | |
4268f798 | 7788 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7789 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7790 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7791 | return _resultobj; |
7792 | } | |
7793 | ||
b1462dfa RD |
7794 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7795 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7796 | PyObject * _resultobj; |
b1462dfa | 7797 | bool _result; |
8ab979d7 | 7798 | wxMenu * _arg0; |
b1462dfa | 7799 | wxMenuItem * _arg1; |
1d99702e | 7800 | PyObject * _argo0 = 0; |
b1462dfa RD |
7801 | PyObject * _argo1 = 0; |
7802 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7803 | |
7804 | self = self; | |
b1462dfa | 7805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7806 | return NULL; |
1d99702e RD |
7807 | if (_argo0) { |
7808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
7811 | return NULL; |
7812 | } | |
7813 | } | |
b1462dfa RD |
7814 | if (_argo1) { |
7815 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7816 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7818 | return NULL; |
b1462dfa | 7819 | } |
8ab979d7 | 7820 | } |
cf694132 | 7821 | { |
4268f798 | 7822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7823 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 | 7824 | |
4268f798 | 7825 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7826 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7827 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7828 | return _resultobj; |
7829 | } | |
7830 | ||
b1462dfa RD |
7831 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
7832 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7833 | PyObject * _resultobj; |
b1462dfa | 7834 | bool _result; |
8bf5d46e | 7835 | wxMenu * _arg0; |
b1462dfa RD |
7836 | size_t _arg1; |
7837 | wxMenuItem * _arg2; | |
1d99702e | 7838 | PyObject * _argo0 = 0; |
b1462dfa RD |
7839 | PyObject * _argo2 = 0; |
7840 | char *_kwnames[] = { "self","pos","item", NULL }; | |
8ab979d7 RD |
7841 | |
7842 | self = self; | |
b1462dfa | 7843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 7844 | return NULL; |
1d99702e RD |
7845 | if (_argo0) { |
7846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); |
8bf5d46e RD |
7849 | return NULL; |
7850 | } | |
7851 | } | |
b1462dfa RD |
7852 | if (_argo2) { |
7853 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7854 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7856 | return NULL; |
7857 | } | |
7858 | } | |
cf694132 | 7859 | { |
4268f798 | 7860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7861 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); |
cf694132 | 7862 | |
4268f798 | 7863 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7864 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7865 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7866 | return _resultobj; |
7867 | } | |
7868 | ||
b1462dfa RD |
7869 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7870 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 7871 | PyObject * _resultobj; |
b1462dfa | 7872 | wxMenuItem * _result; |
efc5f224 | 7873 | wxMenu * _arg0; |
b1462dfa | 7874 | int _arg1; |
efc5f224 | 7875 | PyObject * _argo0 = 0; |
b1462dfa | 7876 | char *_kwnames[] = { "self","id", NULL }; |
efc5f224 RD |
7877 | |
7878 | self = self; | |
b1462dfa | 7879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
7880 | return NULL; |
7881 | if (_argo0) { | |
7882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
7885 | return NULL; |
7886 | } | |
7887 | } | |
7888 | { | |
4268f798 | 7889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7890 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 | 7891 | |
4268f798 | 7892 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7893 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7894 | }{ _resultobj = wxPyMake_wxObject(_result); } |
efc5f224 RD |
7895 | return _resultobj; |
7896 | } | |
7897 | ||
b1462dfa RD |
7898 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7899 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7900 | PyObject * _resultobj; |
b1462dfa RD |
7901 | wxMenuItem * _result; |
7902 | wxMenu * _arg0; | |
7903 | wxMenuItem * _arg1; | |
7904 | PyObject * _argo0 = 0; | |
7905 | PyObject * _argo1 = 0; | |
7906 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7907 | |
7908 | self = self; | |
b1462dfa RD |
7909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
7910 | return NULL; | |
7911 | if (_argo0) { | |
7912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
7915 | return NULL; | |
7916 | } | |
7917 | } | |
7918 | if (_argo1) { | |
7919 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7920 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7922 | return NULL; |
b1462dfa RD |
7923 | } |
7924 | } | |
cf694132 | 7925 | { |
4268f798 | 7926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7927 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 | 7928 | |
4268f798 | 7929 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7930 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7931 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
7932 | return _resultobj; |
7933 | } | |
7934 | ||
eb715945 | 7935 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 7936 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7937 | PyObject * _resultobj; |
b1462dfa | 7938 | wxMenu * _arg0; |
1d99702e | 7939 | PyObject * _argo0 = 0; |
b1462dfa | 7940 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7941 | |
7942 | self = self; | |
b1462dfa | 7943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 7944 | return NULL; |
1d99702e RD |
7945 | if (_argo0) { |
7946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
7949 | return NULL; |
7950 | } | |
7951 | } | |
cf694132 | 7952 | { |
4268f798 | 7953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7954 | wxMenu_Destroy(_arg0); |
cf694132 | 7955 | |
4268f798 | 7956 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7957 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7958 | } Py_INCREF(Py_None); |
8ab979d7 | 7959 | _resultobj = Py_None; |
8ab979d7 RD |
7960 | return _resultobj; |
7961 | } | |
7962 | ||
b1462dfa RD |
7963 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7964 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7965 | PyObject * _resultobj; |
b1462dfa RD |
7966 | bool _result; |
7967 | wxMenu * _arg0; | |
8ab979d7 | 7968 | int _arg1; |
1d99702e | 7969 | PyObject * _argo0 = 0; |
b1462dfa | 7970 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7971 | |
7972 | self = self; | |
b1462dfa | 7973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7974 | return NULL; |
1d99702e RD |
7975 | if (_argo0) { |
7976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
7979 | return NULL; |
7980 | } | |
7981 | } | |
cf694132 | 7982 | { |
4268f798 | 7983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7984 | _result = (bool )wxMenu_DestroyId(_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_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
7993 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7994 | PyObject * _resultobj; |
b1462dfa RD |
7995 | bool _result; |
7996 | wxMenu * _arg0; | |
7997 | wxMenuItem * _arg1; | |
1d99702e | 7998 | PyObject * _argo0 = 0; |
b1462dfa RD |
7999 | PyObject * _argo1 = 0; |
8000 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
8001 | |
8002 | self = self; | |
b1462dfa | 8003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8004 | return NULL; |
1d99702e RD |
8005 | if (_argo0) { |
8006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
8009 | return NULL; | |
8010 | } | |
8011 | } | |
8012 | if (_argo1) { | |
8013 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8014 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
8016 | return NULL; |
8017 | } | |
8018 | } | |
cf694132 | 8019 | { |
4268f798 | 8020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8021 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 | 8022 | |
4268f798 | 8023 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8024 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8025 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8026 | return _resultobj; |
8027 | } | |
8028 | ||
b1462dfa RD |
8029 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
8030 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8031 | PyObject * _resultobj; |
b1462dfa RD |
8032 | size_t _result; |
8033 | wxMenu * _arg0; | |
1d99702e | 8034 | PyObject * _argo0 = 0; |
b1462dfa | 8035 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8036 | |
8037 | self = self; | |
b1462dfa | 8038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 8039 | return NULL; |
1d99702e RD |
8040 | if (_argo0) { |
8041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
8044 | return NULL; |
8045 | } | |
8046 | } | |
cf694132 | 8047 | { |
4268f798 | 8048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8049 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 | 8050 | |
4268f798 | 8051 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8052 | if (PyErr_Occurred()) return NULL; |
2abc0a0f | 8053 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8054 | return _resultobj; |
8055 | } | |
8056 | ||
b1462dfa RD |
8057 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
8058 | wxMenuItemList& list = self->GetMenuItems(); | |
8059 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
8060 | } | |
8061 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8062 | PyObject * _resultobj; |
b1462dfa RD |
8063 | PyObject * _result; |
8064 | wxMenu * _arg0; | |
1d99702e | 8065 | PyObject * _argo0 = 0; |
b1462dfa | 8066 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8067 | |
8068 | self = self; | |
b1462dfa | 8069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 8070 | return NULL; |
1d99702e RD |
8071 | if (_argo0) { |
8072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
8075 | return NULL; |
8076 | } | |
8077 | } | |
cf694132 | 8078 | { |
4268f798 | 8079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8080 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 | 8081 | |
4268f798 | 8082 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8083 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8084 | }{ |
8085 | _resultobj = _result; | |
8086 | } | |
8ab979d7 RD |
8087 | return _resultobj; |
8088 | } | |
8089 | ||
b1462dfa RD |
8090 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
8091 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8092 | PyObject * _resultobj; |
b1462dfa RD |
8093 | wxMenu * _arg0; |
8094 | wxEvtHandler * _arg1; | |
1d99702e | 8095 | PyObject * _argo0 = 0; |
b1462dfa RD |
8096 | PyObject * _argo1 = 0; |
8097 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
8098 | |
8099 | self = self; | |
b1462dfa | 8100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8101 | return NULL; |
1d99702e RD |
8102 | if (_argo0) { |
8103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
8106 | return NULL; |
8107 | } | |
8108 | } | |
b1462dfa RD |
8109 | if (_argo1) { |
8110 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8111 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
8112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 8113 | return NULL; |
b1462dfa | 8114 | } |
8ab979d7 | 8115 | } |
cf694132 | 8116 | { |
4268f798 | 8117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8118 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 | 8119 | |
4268f798 | 8120 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8121 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8122 | } Py_INCREF(Py_None); |
8123 | _resultobj = Py_None; | |
8ab979d7 RD |
8124 | return _resultobj; |
8125 | } | |
8126 | ||
b1462dfa RD |
8127 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
8128 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8129 | PyObject * _resultobj; |
b1462dfa RD |
8130 | wxEvtHandler * _result; |
8131 | wxMenu * _arg0; | |
1d99702e | 8132 | PyObject * _argo0 = 0; |
b1462dfa | 8133 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8134 | |
8135 | self = self; | |
b1462dfa | 8136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 8137 | return NULL; |
1d99702e RD |
8138 | if (_argo0) { |
8139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
8142 | return NULL; |
8143 | } | |
8144 | } | |
cf694132 | 8145 | { |
4268f798 | 8146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8147 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 | 8148 | |
4268f798 | 8149 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8150 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8151 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8152 | return _resultobj; |
8153 | } | |
8154 | ||
b1462dfa RD |
8155 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
8156 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 8157 | PyObject * _resultobj; |
b1462dfa RD |
8158 | wxMenu * _arg0; |
8159 | wxWindow * _arg1; | |
2f90df85 | 8160 | PyObject * _argo0 = 0; |
b1462dfa RD |
8161 | PyObject * _argo1 = 0; |
8162 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
8163 | |
8164 | self = self; | |
b1462dfa | 8165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
8166 | return NULL; |
8167 | if (_argo0) { | |
8168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
8171 | return NULL; |
8172 | } | |
8173 | } | |
b1462dfa RD |
8174 | if (_argo1) { |
8175 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8176 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 8178 | return NULL; |
b1462dfa | 8179 | } |
2f90df85 | 8180 | } |
2f90df85 | 8181 | { |
4268f798 | 8182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8183 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 | 8184 | |
4268f798 | 8185 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8186 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
8187 | } Py_INCREF(Py_None); |
8188 | _resultobj = Py_None; | |
2f90df85 RD |
8189 | return _resultobj; |
8190 | } | |
8191 | ||
b1462dfa RD |
8192 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
8193 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8194 | PyObject * _resultobj; |
b1462dfa RD |
8195 | wxWindow * _result; |
8196 | wxMenu * _arg0; | |
1d99702e | 8197 | PyObject * _argo0 = 0; |
b1462dfa | 8198 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8199 | |
8200 | self = self; | |
b1462dfa | 8201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 8202 | return NULL; |
1d99702e RD |
8203 | if (_argo0) { |
8204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
8207 | return NULL; |
8208 | } | |
8209 | } | |
cf694132 | 8210 | { |
4268f798 | 8211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8212 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 | 8213 | |
4268f798 | 8214 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8215 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8216 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8217 | return _resultobj; |
8218 | } | |
8219 | ||
b1462dfa RD |
8220 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
8221 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8222 | PyObject * _resultobj; |
b1462dfa RD |
8223 | long _result; |
8224 | wxMenu * _arg0; | |
1d99702e | 8225 | PyObject * _argo0 = 0; |
b1462dfa | 8226 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8227 | |
8228 | self = self; | |
b1462dfa | 8229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 8230 | return NULL; |
1d99702e RD |
8231 | if (_argo0) { |
8232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
8235 | return NULL; |
8236 | } | |
8237 | } | |
8ab979d7 | 8238 | { |
4268f798 | 8239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8240 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 | 8241 | |
4268f798 | 8242 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8243 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8244 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8245 | return _resultobj; |
8246 | } | |
8247 | ||
b1462dfa RD |
8248 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
8249 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8250 | PyObject * _resultobj; |
b1462dfa RD |
8251 | bool _result; |
8252 | wxMenu * _arg0; | |
1d99702e | 8253 | PyObject * _argo0 = 0; |
b1462dfa | 8254 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8255 | |
8256 | self = self; | |
b1462dfa | 8257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 8258 | return NULL; |
1d99702e RD |
8259 | if (_argo0) { |
8260 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8261 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
8263 | return NULL; |
8264 | } | |
8265 | } | |
8ab979d7 | 8266 | { |
4268f798 | 8267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8268 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 | 8269 | |
4268f798 | 8270 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8271 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8272 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8273 | return _resultobj; |
8274 | } | |
8275 | ||
b1462dfa RD |
8276 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
8277 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8278 | PyObject * _resultobj; |
b1462dfa RD |
8279 | wxMenu * _arg0; |
8280 | wxMenu * _arg1; | |
1d99702e | 8281 | PyObject * _argo0 = 0; |
b1462dfa RD |
8282 | PyObject * _argo1 = 0; |
8283 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
8284 | |
8285 | self = self; | |
b1462dfa | 8286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8287 | return NULL; |
1d99702e RD |
8288 | if (_argo0) { |
8289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8292 | return NULL; |
8293 | } | |
8294 | } | |
b1462dfa RD |
8295 | if (_argo1) { |
8296 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8297 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 8299 | return NULL; |
b1462dfa | 8300 | } |
8ab979d7 | 8301 | } |
cf694132 | 8302 | { |
4268f798 | 8303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8304 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 | 8305 | |
4268f798 | 8306 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8307 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8308 | } Py_INCREF(Py_None); |
8ab979d7 | 8309 | _resultobj = Py_None; |
8ab979d7 RD |
8310 | return _resultobj; |
8311 | } | |
8312 | ||
b1462dfa RD |
8313 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
8314 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8315 | PyObject * _resultobj; |
b1462dfa RD |
8316 | wxMenu * _result; |
8317 | wxMenu * _arg0; | |
1d99702e | 8318 | PyObject * _argo0 = 0; |
b1462dfa | 8319 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8320 | |
8321 | self = self; | |
b1462dfa | 8322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 8323 | return NULL; |
1d99702e RD |
8324 | if (_argo0) { |
8325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8328 | return NULL; |
8329 | } | |
8330 | } | |
8ab979d7 | 8331 | { |
4268f798 | 8332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8333 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 | 8334 | |
4268f798 | 8335 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8336 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8337 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8338 | return _resultobj; |
8ab979d7 | 8339 | } |
b1462dfa RD |
8340 | |
8341 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
8342 | wxMenuBar *src; | |
8343 | wxWindow *dest; | |
8344 | src = (wxMenuBar *) ptr; | |
8345 | dest = (wxWindow *) src; | |
8346 | return (void *) dest; | |
8347 | } | |
8348 | ||
8349 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
8350 | wxMenuBar *src; | |
8351 | wxEvtHandler *dest; | |
8352 | src = (wxMenuBar *) ptr; | |
8353 | dest = (wxEvtHandler *) src; | |
8354 | return (void *) dest; | |
8ab979d7 | 8355 | } |
b1462dfa | 8356 | |
9416aa89 RD |
8357 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
8358 | wxMenuBar *src; | |
8359 | wxObject *dest; | |
8360 | src = (wxMenuBar *) ptr; | |
8361 | dest = (wxObject *) src; | |
8362 | return (void *) dest; | |
8363 | } | |
8364 | ||
c368d904 | 8365 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
8366 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8367 | PyObject * _resultobj; | |
8368 | wxMenuBar * _result; | |
c368d904 RD |
8369 | long _arg0 = (long ) 0; |
8370 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
8371 | char _ptemp[128]; |
8372 | ||
8373 | self = self; | |
c368d904 | 8374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
8375 | return NULL; |
8376 | { | |
4268f798 | 8377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 | 8378 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa | 8379 | |
4268f798 | 8380 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8381 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8382 | } if (_result) { |
8383 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
8384 | _resultobj = Py_BuildValue("s",_ptemp); | |
8385 | } else { | |
8386 | Py_INCREF(Py_None); | |
8387 | _resultobj = Py_None; | |
8388 | } | |
8ab979d7 RD |
8389 | return _resultobj; |
8390 | } | |
8391 | ||
b1462dfa RD |
8392 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
8393 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8394 | PyObject * _resultobj; |
b1462dfa | 8395 | bool _result; |
8ab979d7 | 8396 | wxMenuBar * _arg0; |
b1462dfa | 8397 | wxMenu * _arg1; |
8ab979d7 | 8398 | wxString * _arg2; |
1d99702e | 8399 | PyObject * _argo0 = 0; |
b1462dfa | 8400 | PyObject * _argo1 = 0; |
8ab979d7 | 8401 | PyObject * _obj2 = 0; |
b1462dfa | 8402 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
8403 | |
8404 | self = self; | |
b1462dfa | 8405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8406 | return NULL; |
1d99702e RD |
8407 | if (_argo0) { |
8408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
8411 | return NULL; | |
8412 | } | |
8413 | } | |
8414 | if (_argo1) { | |
8415 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8416 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
8418 | return NULL; |
8419 | } | |
8420 | } | |
8421 | { | |
185d7c3e RD |
8422 | #if PYTHON_API_VERSION >= 1009 |
8423 | char* tmpPtr; int tmpSize; | |
8424 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8425 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8426 | return NULL; |
8427 | } | |
8428 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8429 | return NULL; | |
8430 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8431 | #else | |
8ab979d7 RD |
8432 | if (!PyString_Check(_obj2)) { |
8433 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8434 | return NULL; | |
8435 | } | |
185d7c3e RD |
8436 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8437 | #endif | |
8ab979d7 | 8438 | } |
cf694132 | 8439 | { |
4268f798 | 8440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8441 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 | 8442 | |
4268f798 | 8443 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8444 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8445 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8446 | { |
8447 | if (_obj2) | |
8448 | delete _arg2; | |
8449 | } | |
8450 | return _resultobj; | |
8451 | } | |
8452 | ||
b1462dfa RD |
8453 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
8454 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8455 | PyObject * _resultobj; |
b1462dfa | 8456 | bool _result; |
8ab979d7 | 8457 | wxMenuBar * _arg0; |
b1462dfa RD |
8458 | size_t _arg1; |
8459 | wxMenu * _arg2; | |
8460 | wxString * _arg3; | |
1d99702e | 8461 | PyObject * _argo0 = 0; |
b1462dfa RD |
8462 | PyObject * _argo2 = 0; |
8463 | PyObject * _obj3 = 0; | |
8464 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
8465 | |
8466 | self = self; | |
b1462dfa | 8467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 8468 | return NULL; |
1d99702e RD |
8469 | if (_argo0) { |
8470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
8473 | return NULL; | |
8474 | } | |
8475 | } | |
8476 | if (_argo2) { | |
8477 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8478 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
8480 | return NULL; |
8481 | } | |
8482 | } | |
b1462dfa | 8483 | { |
185d7c3e RD |
8484 | #if PYTHON_API_VERSION >= 1009 |
8485 | char* tmpPtr; int tmpSize; | |
8486 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 8487 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8488 | return NULL; |
8489 | } | |
8490 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8491 | return NULL; | |
8492 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8493 | #else | |
b1462dfa RD |
8494 | if (!PyString_Check(_obj3)) { |
8495 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8496 | return NULL; | |
8497 | } | |
185d7c3e RD |
8498 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8499 | #endif | |
b1462dfa | 8500 | } |
cf694132 | 8501 | { |
4268f798 | 8502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8503 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 8504 | |
4268f798 | 8505 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8506 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8507 | } _resultobj = Py_BuildValue("i",_result); |
b1462dfa RD |
8508 | { |
8509 | if (_obj3) | |
8510 | delete _arg3; | |
8511 | } | |
8ab979d7 RD |
8512 | return _resultobj; |
8513 | } | |
8514 | ||
b1462dfa RD |
8515 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
8516 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8517 | PyObject * _resultobj; |
b1462dfa | 8518 | size_t _result; |
8ab979d7 | 8519 | wxMenuBar * _arg0; |
1d99702e | 8520 | PyObject * _argo0 = 0; |
b1462dfa | 8521 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8522 | |
8523 | self = self; | |
b1462dfa | 8524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 8525 | return NULL; |
1d99702e RD |
8526 | if (_argo0) { |
8527 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8528 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
8530 | return NULL; |
8531 | } | |
8532 | } | |
cf694132 | 8533 | { |
4268f798 | 8534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8535 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 | 8536 | |
4268f798 | 8537 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8538 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8539 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8540 | return _resultobj; |
8541 | } | |
8542 | ||
b1462dfa RD |
8543 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
8544 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 8545 | PyObject * _resultobj; |
b1462dfa | 8546 | wxMenu * _result; |
06c0fba4 | 8547 | wxMenuBar * _arg0; |
b1462dfa | 8548 | size_t _arg1; |
06c0fba4 | 8549 | PyObject * _argo0 = 0; |
b1462dfa | 8550 | char *_kwnames[] = { "self","pos", NULL }; |
06c0fba4 RD |
8551 | |
8552 | self = self; | |
b1462dfa | 8553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
8554 | return NULL; |
8555 | if (_argo0) { | |
8556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
8559 | return NULL; |
8560 | } | |
8561 | } | |
8562 | { | |
4268f798 | 8563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8564 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 | 8565 | |
4268f798 | 8566 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8567 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8568 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
8569 | return _resultobj; |
8570 | } | |
8571 | ||
2abc0a0f RD |
8572 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
8573 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8574 | PyObject * _resultobj; | |
8575 | wxMenu * _result; | |
8576 | wxMenuBar * _arg0; | |
8577 | size_t _arg1; | |
8578 | wxMenu * _arg2; | |
8579 | wxString * _arg3; | |
8580 | PyObject * _argo0 = 0; | |
8581 | PyObject * _argo2 = 0; | |
8582 | PyObject * _obj3 = 0; | |
8583 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
2abc0a0f RD |
8584 | |
8585 | self = self; | |
8586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
8587 | return NULL; | |
8588 | if (_argo0) { | |
8589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
8592 | return NULL; | |
8593 | } | |
8594 | } | |
8595 | if (_argo2) { | |
8596 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8597 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
8599 | return NULL; | |
8600 | } | |
8601 | } | |
8602 | { | |
185d7c3e RD |
8603 | #if PYTHON_API_VERSION >= 1009 |
8604 | char* tmpPtr; int tmpSize; | |
8605 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 8606 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8607 | return NULL; |
8608 | } | |
8609 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8610 | return NULL; | |
8611 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8612 | #else | |
2abc0a0f RD |
8613 | if (!PyString_Check(_obj3)) { |
8614 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8615 | return NULL; | |
8616 | } | |
185d7c3e RD |
8617 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8618 | #endif | |
2abc0a0f RD |
8619 | } |
8620 | { | |
4268f798 | 8621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2abc0a0f RD |
8622 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); |
8623 | ||
4268f798 | 8624 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8625 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8626 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8627 | { |
8628 | if (_obj3) | |
8629 | delete _arg3; | |
8630 | } | |
8631 | return _resultobj; | |
8632 | } | |
8633 | ||
8634 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8635 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8636 | PyObject * _resultobj; | |
8637 | wxMenu * _result; | |
8638 | wxMenuBar * _arg0; | |
8639 | size_t _arg1; | |
8640 | PyObject * _argo0 = 0; | |
8641 | char *_kwnames[] = { "self","pos", NULL }; | |
2abc0a0f RD |
8642 | |
8643 | self = self; | |
8644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
8645 | return NULL; | |
8646 | if (_argo0) { | |
8647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
8650 | return NULL; | |
8651 | } | |
8652 | } | |
8653 | { | |
4268f798 | 8654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2abc0a0f RD |
8655 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); |
8656 | ||
4268f798 | 8657 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8658 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8659 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8660 | return _resultobj; |
8661 | } | |
8662 | ||
b1462dfa RD |
8663 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
8664 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8665 | PyObject * _resultobj; |
b1462dfa RD |
8666 | wxMenuBar * _arg0; |
8667 | size_t _arg1; | |
8668 | bool _arg2; | |
8669 | PyObject * _argo0 = 0; | |
8670 | int tempbool2; | |
8671 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
8672 | ||
8673 | self = self; | |
8674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8675 | return NULL; | |
8676 | if (_argo0) { | |
8677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
8680 | return NULL; | |
8681 | } | |
8682 | } | |
8683 | _arg2 = (bool ) tempbool2; | |
8684 | { | |
4268f798 | 8685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
8686 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); |
8687 | ||
4268f798 | 8688 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8689 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8690 | } Py_INCREF(Py_None); |
8691 | _resultobj = Py_None; | |
8692 | return _resultobj; | |
8693 | } | |
8694 | ||
8695 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
8696 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8697 | PyObject * _resultobj; | |
8698 | wxMenuBar * _arg0; | |
8699 | size_t _arg1; | |
8700 | wxString * _arg2; | |
1d99702e | 8701 | PyObject * _argo0 = 0; |
cf694132 | 8702 | PyObject * _obj2 = 0; |
b1462dfa | 8703 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
8704 | |
8705 | self = self; | |
b1462dfa | 8706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 8707 | return NULL; |
1d99702e RD |
8708 | if (_argo0) { |
8709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
8712 | return NULL; |
8713 | } | |
8714 | } | |
cf694132 | 8715 | { |
185d7c3e RD |
8716 | #if PYTHON_API_VERSION >= 1009 |
8717 | char* tmpPtr; int tmpSize; | |
8718 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8719 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8720 | return NULL; |
8721 | } | |
8722 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8723 | return NULL; | |
8724 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8725 | #else | |
cf694132 RD |
8726 | if (!PyString_Check(_obj2)) { |
8727 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8728 | return NULL; | |
8729 | } | |
185d7c3e RD |
8730 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8731 | #endif | |
cf694132 | 8732 | } |
cf694132 | 8733 | { |
4268f798 | 8734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
8735 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); |
8736 | ||
4268f798 | 8737 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8738 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8739 | } Py_INCREF(Py_None); |
8740 | _resultobj = Py_None; | |
8741 | { | |
8742 | if (_obj2) | |
8743 | delete _arg2; | |
8744 | } | |
8745 | return _resultobj; | |
8746 | } | |
8747 | ||
8748 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
8749 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8750 | PyObject * _resultobj; | |
8751 | wxString * _result; | |
8752 | wxMenuBar * _arg0; | |
8753 | size_t _arg1; | |
8754 | PyObject * _argo0 = 0; | |
8755 | char *_kwnames[] = { "self","pos", NULL }; | |
8756 | ||
8757 | self = self; | |
8758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
8759 | return NULL; | |
8760 | if (_argo0) { | |
8761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
8764 | return NULL; | |
8765 | } | |
8766 | } | |
8767 | { | |
4268f798 | 8768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
8769 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); |
8770 | ||
4268f798 | 8771 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8772 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8773 | }{ |
eec92d76 | 8774 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
8775 | } |
8776 | { | |
8777 | delete _result; | |
8778 | } | |
8779 | return _resultobj; | |
8780 | } | |
8781 | ||
3a0958b1 RD |
8782 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) |
8783 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8784 | PyObject * _resultobj; | |
8785 | int _result; | |
8786 | wxMenuBar * _arg0; | |
8787 | wxString * _arg1; | |
8788 | PyObject * _argo0 = 0; | |
8789 | PyObject * _obj1 = 0; | |
8790 | char *_kwnames[] = { "self","title", NULL }; | |
8791 | ||
8792 | self = self; | |
8793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) | |
8794 | return NULL; | |
8795 | if (_argo0) { | |
8796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); | |
8799 | return NULL; | |
8800 | } | |
8801 | } | |
8802 | { | |
8803 | #if PYTHON_API_VERSION >= 1009 | |
8804 | char* tmpPtr; int tmpSize; | |
8805 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8806 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8807 | return NULL; | |
8808 | } | |
8809 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8810 | return NULL; | |
8811 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8812 | #else | |
8813 | if (!PyString_Check(_obj1)) { | |
8814 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8815 | return NULL; | |
8816 | } | |
8817 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8818 | #endif | |
8819 | } | |
8820 | { | |
4268f798 | 8821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3a0958b1 RD |
8822 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); |
8823 | ||
4268f798 | 8824 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
8825 | if (PyErr_Occurred()) return NULL; |
8826 | } _resultobj = Py_BuildValue("i",_result); | |
8827 | { | |
8828 | if (_obj1) | |
8829 | delete _arg1; | |
8830 | } | |
8831 | return _resultobj; | |
8832 | } | |
8833 | ||
b1462dfa RD |
8834 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) |
8835 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8836 | PyObject * _resultobj; | |
8837 | int _result; | |
8838 | wxMenuBar * _arg0; | |
8839 | wxString * _arg1; | |
8840 | wxString * _arg2; | |
8841 | PyObject * _argo0 = 0; | |
8842 | PyObject * _obj1 = 0; | |
8843 | PyObject * _obj2 = 0; | |
8844 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
8845 | ||
8846 | self = self; | |
8847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8848 | return NULL; | |
8849 | if (_argo0) { | |
8850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
8853 | return NULL; | |
8854 | } | |
8855 | } | |
8856 | { | |
185d7c3e RD |
8857 | #if PYTHON_API_VERSION >= 1009 |
8858 | char* tmpPtr; int tmpSize; | |
8859 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 8860 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8861 | return NULL; |
8862 | } | |
8863 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8864 | return NULL; | |
8865 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8866 | #else | |
b1462dfa | 8867 | if (!PyString_Check(_obj1)) { |
cf694132 RD |
8868 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
8869 | return NULL; | |
8870 | } | |
185d7c3e RD |
8871 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8872 | #endif | |
cf694132 | 8873 | } |
b1462dfa | 8874 | { |
185d7c3e RD |
8875 | #if PYTHON_API_VERSION >= 1009 |
8876 | char* tmpPtr; int tmpSize; | |
8877 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8878 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8879 | return NULL; |
8880 | } | |
8881 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8882 | return NULL; | |
8883 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8884 | #else | |
b1462dfa RD |
8885 | if (!PyString_Check(_obj2)) { |
8886 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8887 | return NULL; | |
8888 | } | |
185d7c3e RD |
8889 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8890 | #endif | |
b1462dfa RD |
8891 | } |
8892 | { | |
4268f798 | 8893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
8894 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); |
8895 | ||
4268f798 | 8896 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8897 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8898 | } _resultobj = Py_BuildValue("i",_result); |
8899 | { | |
8900 | if (_obj1) | |
8901 | delete _arg1; | |
8902 | } | |
8903 | { | |
8904 | if (_obj2) | |
8905 | delete _arg2; | |
8906 | } | |
8907 | return _resultobj; | |
8908 | } | |
8909 | ||
8910 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8911 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8912 | PyObject * _resultobj; | |
8913 | wxMenuItem * _result; | |
8914 | wxMenuBar * _arg0; | |
8915 | int _arg1; | |
8916 | PyObject * _argo0 = 0; | |
8917 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
8918 | |
8919 | self = self; | |
8920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8921 | return NULL; | |
8922 | if (_argo0) { | |
8923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
8926 | return NULL; |
8927 | } | |
8928 | } | |
8929 | { | |
4268f798 | 8930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8931 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 | 8932 | |
4268f798 | 8933 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8934 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8935 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8936 | return _resultobj; |
cf694132 | 8937 | } |
b1462dfa RD |
8938 | |
8939 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8940 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8941 | PyObject * _resultobj; | |
8942 | wxMenuBar * _arg0; | |
8943 | int _arg1; | |
8944 | bool _arg2; | |
8945 | PyObject * _argo0 = 0; | |
8946 | int tempbool2; | |
8947 | char *_kwnames[] = { "self","id","enable", NULL }; | |
8948 | ||
8949 | self = self; | |
8950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8951 | return NULL; | |
8952 | if (_argo0) { | |
8953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
8956 | return NULL; | |
8957 | } | |
8958 | } | |
8959 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8960 | { |
4268f798 | 8961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
8962 | wxMenuBar_Enable(_arg0,_arg1,_arg2); |
8963 | ||
4268f798 | 8964 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8965 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8966 | } Py_INCREF(Py_None); |
8967 | _resultobj = Py_None; | |
8968 | return _resultobj; | |
cf694132 | 8969 | } |
b1462dfa RD |
8970 | |
8971 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
8972 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8973 | PyObject * _resultobj; | |
8974 | wxMenuBar * _arg0; | |
8975 | int _arg1; | |
8976 | bool _arg2; | |
8977 | PyObject * _argo0 = 0; | |
8978 | int tempbool2; | |
8979 | char *_kwnames[] = { "self","id","check", NULL }; | |
8980 | ||
8981 | self = self; | |
8982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8983 | return NULL; | |
8984 | if (_argo0) { | |
8985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
8988 | return NULL; | |
8989 | } | |
8990 | } | |
8991 | _arg2 = (bool ) tempbool2; | |
8992 | { | |
4268f798 | 8993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
8994 | wxMenuBar_Check(_arg0,_arg1,_arg2); |
8995 | ||
4268f798 | 8996 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8997 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8998 | } Py_INCREF(Py_None); |
8999 | _resultobj = Py_None; | |
cf694132 RD |
9000 | return _resultobj; |
9001 | } | |
9002 | ||
b1462dfa RD |
9003 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
9004 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9005 | PyObject * _resultobj; |
9006 | bool _result; | |
b1462dfa RD |
9007 | wxMenuBar * _arg0; |
9008 | int _arg1; | |
1d99702e | 9009 | PyObject * _argo0 = 0; |
b1462dfa | 9010 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9011 | |
9012 | self = self; | |
b1462dfa | 9013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9014 | return NULL; |
1d99702e RD |
9015 | if (_argo0) { |
9016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9019 | return NULL; |
9020 | } | |
9021 | } | |
cf694132 | 9022 | { |
4268f798 | 9023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9024 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 | 9025 | |
4268f798 | 9026 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9027 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9028 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9029 | return _resultobj; |
9030 | } | |
9031 | ||
b1462dfa RD |
9032 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
9033 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9034 | PyObject * _resultobj; |
9035 | bool _result; | |
b1462dfa RD |
9036 | wxMenuBar * _arg0; |
9037 | int _arg1; | |
1d99702e | 9038 | PyObject * _argo0 = 0; |
b1462dfa | 9039 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9040 | |
9041 | self = self; | |
b1462dfa | 9042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9043 | return NULL; |
1d99702e RD |
9044 | if (_argo0) { |
9045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9048 | return NULL; |
9049 | } | |
9050 | } | |
cf694132 | 9051 | { |
4268f798 | 9052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9053 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 | 9054 | |
4268f798 | 9055 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9056 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9057 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9058 | return _resultobj; |
9059 | } | |
9060 | ||
b1462dfa RD |
9061 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
9062 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9063 | PyObject * _resultobj; |
b1462dfa RD |
9064 | wxMenuBar * _arg0; |
9065 | int _arg1; | |
9066 | wxString * _arg2; | |
1d99702e | 9067 | PyObject * _argo0 = 0; |
b1462dfa RD |
9068 | PyObject * _obj2 = 0; |
9069 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
9070 | |
9071 | self = self; | |
b1462dfa | 9072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 9073 | return NULL; |
1d99702e RD |
9074 | if (_argo0) { |
9075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9078 | return NULL; |
9079 | } | |
9080 | } | |
b1462dfa | 9081 | { |
185d7c3e RD |
9082 | #if PYTHON_API_VERSION >= 1009 |
9083 | char* tmpPtr; int tmpSize; | |
9084 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 9085 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9086 | return NULL; |
9087 | } | |
9088 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9089 | return NULL; | |
9090 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9091 | #else | |
b1462dfa RD |
9092 | if (!PyString_Check(_obj2)) { |
9093 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9094 | return NULL; | |
9095 | } | |
185d7c3e RD |
9096 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9097 | #endif | |
b1462dfa | 9098 | } |
cf694132 | 9099 | { |
4268f798 | 9100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9101 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 9102 | |
4268f798 | 9103 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9104 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9105 | } Py_INCREF(Py_None); |
9106 | _resultobj = Py_None; | |
9107 | { | |
9108 | if (_obj2) | |
9109 | delete _arg2; | |
9110 | } | |
8ab979d7 RD |
9111 | return _resultobj; |
9112 | } | |
9113 | ||
b1462dfa RD |
9114 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
9115 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9116 | PyObject * _resultobj; |
b1462dfa RD |
9117 | wxString * _result; |
9118 | wxMenuBar * _arg0; | |
9119 | int _arg1; | |
1d99702e | 9120 | PyObject * _argo0 = 0; |
b1462dfa | 9121 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9122 | |
9123 | self = self; | |
b1462dfa | 9124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9125 | return NULL; |
1d99702e RD |
9126 | if (_argo0) { |
9127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
9130 | return NULL; | |
9131 | } | |
9132 | } | |
9133 | { | |
4268f798 | 9134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
9135 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); |
9136 | ||
4268f798 | 9137 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9138 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9139 | }{ |
eec92d76 | 9140 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
9141 | } |
9142 | { | |
9143 | delete _result; | |
9144 | } | |
9145 | return _resultobj; | |
9146 | } | |
9147 | ||
9148 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
9149 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9150 | PyObject * _resultobj; | |
9151 | wxMenuBar * _arg0; | |
9152 | int _arg1; | |
9153 | wxString * _arg2; | |
9154 | PyObject * _argo0 = 0; | |
9155 | PyObject * _obj2 = 0; | |
9156 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
9157 | ||
9158 | self = self; | |
9159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9160 | return NULL; | |
9161 | if (_argo0) { | |
9162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
9165 | return NULL; | |
9166 | } | |
9167 | } | |
9168 | { | |
185d7c3e RD |
9169 | #if PYTHON_API_VERSION >= 1009 |
9170 | char* tmpPtr; int tmpSize; | |
9171 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 9172 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9173 | return NULL; |
9174 | } | |
9175 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9176 | return NULL; | |
9177 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9178 | #else | |
b1462dfa RD |
9179 | if (!PyString_Check(_obj2)) { |
9180 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9181 | return NULL; | |
9182 | } | |
185d7c3e RD |
9183 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9184 | #endif | |
b1462dfa RD |
9185 | } |
9186 | { | |
4268f798 | 9187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
9188 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); |
9189 | ||
4268f798 | 9190 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9191 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9192 | } Py_INCREF(Py_None); |
9193 | _resultobj = Py_None; | |
9194 | { | |
9195 | if (_obj2) | |
9196 | delete _arg2; | |
9197 | } | |
9198 | return _resultobj; | |
9199 | } | |
9200 | ||
9201 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
9202 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9203 | PyObject * _resultobj; | |
9204 | wxString * _result; | |
9205 | wxMenuBar * _arg0; | |
9206 | int _arg1; | |
9207 | PyObject * _argo0 = 0; | |
9208 | char *_kwnames[] = { "self","id", NULL }; | |
9209 | ||
9210 | self = self; | |
9211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
9212 | return NULL; | |
9213 | if (_argo0) { | |
9214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9217 | return NULL; |
9218 | } | |
9219 | } | |
cf694132 | 9220 | { |
4268f798 | 9221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9222 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 | 9223 | |
4268f798 | 9224 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9225 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9226 | }{ |
eec92d76 | 9227 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
9228 | } |
9229 | { | |
9230 | delete _result; | |
9231 | } | |
8ab979d7 RD |
9232 | return _resultobj; |
9233 | } | |
9234 | ||
9416aa89 RD |
9235 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
9236 | wxMenuItem *src; | |
9237 | wxObject *dest; | |
9238 | src = (wxMenuItem *) ptr; | |
9239 | dest = (wxObject *) src; | |
9240 | return (void *) dest; | |
9241 | } | |
9242 | ||
b1462dfa RD |
9243 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
9244 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9245 | PyObject * _resultobj; |
b1462dfa RD |
9246 | wxMenuItem * _result; |
9247 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 9248 | int _arg1 = (int ) wxID_SEPARATOR; |
b1462dfa RD |
9249 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; |
9250 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
9251 | bool _arg4 = (bool ) FALSE; | |
9252 | wxMenu * _arg5 = (wxMenu *) NULL; | |
1d99702e | 9253 | PyObject * _argo0 = 0; |
b1462dfa RD |
9254 | PyObject * _obj2 = 0; |
9255 | PyObject * _obj3 = 0; | |
9256 | int tempbool4 = (int) FALSE; | |
9257 | PyObject * _argo5 = 0; | |
9258 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
9259 | char _ptemp[128]; | |
8ab979d7 RD |
9260 | |
9261 | self = self; | |
b1462dfa | 9262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) |
8ab979d7 | 9263 | return NULL; |
1d99702e RD |
9264 | if (_argo0) { |
9265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
9268 | return NULL; | |
9269 | } | |
9270 | } | |
9271 | if (_obj2) | |
9272 | { | |
185d7c3e RD |
9273 | #if PYTHON_API_VERSION >= 1009 |
9274 | char* tmpPtr; int tmpSize; | |
9275 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 9276 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9277 | return NULL; |
9278 | } | |
9279 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9280 | return NULL; | |
9281 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9282 | #else | |
b1462dfa RD |
9283 | if (!PyString_Check(_obj2)) { |
9284 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9285 | return NULL; | |
9286 | } | |
185d7c3e RD |
9287 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9288 | #endif | |
b1462dfa RD |
9289 | } |
9290 | if (_obj3) | |
9291 | { | |
185d7c3e RD |
9292 | #if PYTHON_API_VERSION >= 1009 |
9293 | char* tmpPtr; int tmpSize; | |
9294 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 9295 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9296 | return NULL; |
9297 | } | |
9298 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
9299 | return NULL; | |
9300 | _arg3 = new wxString(tmpPtr, tmpSize); | |
9301 | #else | |
b1462dfa RD |
9302 | if (!PyString_Check(_obj3)) { |
9303 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9304 | return NULL; | |
9305 | } | |
185d7c3e RD |
9306 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
9307 | #endif | |
b1462dfa RD |
9308 | } |
9309 | _arg4 = (bool ) tempbool4; | |
9310 | if (_argo5) { | |
9311 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
9312 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
9313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
9314 | return NULL; |
9315 | } | |
9316 | } | |
cf694132 | 9317 | { |
4268f798 | 9318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9319 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 | 9320 | |
4268f798 | 9321 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9322 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9323 | } if (_result) { |
9324 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
9325 | _resultobj = Py_BuildValue("s",_ptemp); | |
9326 | } else { | |
9327 | Py_INCREF(Py_None); | |
9328 | _resultobj = Py_None; | |
9329 | } | |
9330 | { | |
9331 | if (_obj2) | |
9332 | delete _arg2; | |
9333 | } | |
9334 | { | |
9335 | if (_obj3) | |
9336 | delete _arg3; | |
9337 | } | |
8ab979d7 RD |
9338 | return _resultobj; |
9339 | } | |
9340 | ||
b1462dfa RD |
9341 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
9342 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9343 | PyObject * _resultobj; |
b1462dfa | 9344 | wxMenu * _result; |
8ab979d7 | 9345 | wxMenuItem * _arg0; |
1d99702e | 9346 | PyObject * _argo0 = 0; |
efc5f224 | 9347 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9348 | |
9349 | self = self; | |
b1462dfa | 9350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 9351 | return NULL; |
1d99702e RD |
9352 | if (_argo0) { |
9353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9356 | return NULL; |
9357 | } | |
9358 | } | |
cf694132 | 9359 | { |
4268f798 | 9360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9361 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 | 9362 | |
4268f798 | 9363 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9364 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9365 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9366 | return _resultobj; |
9367 | } | |
9368 | ||
2abc0a0f RD |
9369 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
9370 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9371 | PyObject * _resultobj; |
9372 | wxMenuItem * _arg0; | |
2abc0a0f | 9373 | int _arg1; |
1d99702e | 9374 | PyObject * _argo0 = 0; |
2abc0a0f | 9375 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9376 | |
9377 | self = self; | |
2abc0a0f | 9378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9379 | return NULL; |
1d99702e RD |
9380 | if (_argo0) { |
9381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 9383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9384 | return NULL; |
9385 | } | |
9386 | } | |
cf694132 | 9387 | { |
4268f798 | 9388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2abc0a0f | 9389 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 | 9390 | |
4268f798 | 9391 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9392 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9393 | } Py_INCREF(Py_None); |
8ab979d7 | 9394 | _resultobj = Py_None; |
8ab979d7 RD |
9395 | return _resultobj; |
9396 | } | |
9397 | ||
b1462dfa RD |
9398 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
9399 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9400 | PyObject * _resultobj; |
b1462dfa | 9401 | int _result; |
8ab979d7 | 9402 | wxMenuItem * _arg0; |
1d99702e | 9403 | PyObject * _argo0 = 0; |
efc5f224 | 9404 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9405 | |
9406 | self = self; | |
b1462dfa | 9407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 9408 | return NULL; |
1d99702e RD |
9409 | if (_argo0) { |
9410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9413 | return NULL; |
9414 | } | |
9415 | } | |
8ab979d7 | 9416 | { |
4268f798 | 9417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9418 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 | 9419 | |
4268f798 | 9420 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9421 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9422 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9423 | return _resultobj; |
9424 | } | |
9425 | ||
b1462dfa RD |
9426 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
9427 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9428 | PyObject * _resultobj; |
b1462dfa | 9429 | bool _result; |
8ab979d7 | 9430 | wxMenuItem * _arg0; |
1d99702e | 9431 | PyObject * _argo0 = 0; |
efc5f224 | 9432 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9433 | |
9434 | self = self; | |
b1462dfa | 9435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 9436 | return NULL; |
1d99702e RD |
9437 | if (_argo0) { |
9438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9441 | return NULL; |
9442 | } | |
9443 | } | |
8ab979d7 | 9444 | { |
4268f798 | 9445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9446 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 | 9447 | |
4268f798 | 9448 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9449 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9450 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9451 | return _resultobj; |
9452 | } | |
9453 | ||
b1462dfa RD |
9454 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
9455 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9456 | PyObject * _resultobj; |
9457 | wxMenuItem * _arg0; | |
9458 | wxString * _arg1; | |
1d99702e | 9459 | PyObject * _argo0 = 0; |
8ab979d7 | 9460 | PyObject * _obj1 = 0; |
b1462dfa | 9461 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
9462 | |
9463 | self = self; | |
b1462dfa | 9464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9465 | return NULL; |
1d99702e RD |
9466 | if (_argo0) { |
9467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9470 | return NULL; |
9471 | } | |
9472 | } | |
9473 | { | |
185d7c3e RD |
9474 | #if PYTHON_API_VERSION >= 1009 |
9475 | char* tmpPtr; int tmpSize; | |
9476 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9477 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9478 | return NULL; |
9479 | } | |
9480 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9481 | return NULL; | |
9482 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9483 | #else | |
8ab979d7 RD |
9484 | if (!PyString_Check(_obj1)) { |
9485 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9486 | return NULL; | |
9487 | } | |
185d7c3e RD |
9488 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9489 | #endif | |
8ab979d7 | 9490 | } |
cf694132 | 9491 | { |
4268f798 | 9492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9493 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 | 9494 | |
4268f798 | 9495 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9496 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9497 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9498 | _resultobj = Py_None; |
9499 | { | |
9500 | if (_obj1) | |
9501 | delete _arg1; | |
9502 | } | |
9503 | return _resultobj; | |
9504 | } | |
9505 | ||
b1462dfa RD |
9506 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
9507 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9508 | PyObject * _resultobj; |
b1462dfa | 9509 | wxString * _result; |
8ab979d7 | 9510 | wxMenuItem * _arg0; |
1d99702e | 9511 | PyObject * _argo0 = 0; |
b1462dfa | 9512 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9513 | |
9514 | self = self; | |
b1462dfa | 9515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 9516 | return NULL; |
1d99702e RD |
9517 | if (_argo0) { |
9518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9521 | return NULL; |
9522 | } | |
9523 | } | |
cf694132 | 9524 | { |
4268f798 | 9525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9526 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 | 9527 | |
4268f798 | 9528 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9529 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9530 | }{ |
eec92d76 | 9531 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 | 9532 | } |
cf694132 | 9533 | { |
b1462dfa RD |
9534 | delete _result; |
9535 | } | |
cf694132 RD |
9536 | return _resultobj; |
9537 | } | |
9538 | ||
b1462dfa RD |
9539 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
9540 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9541 | PyObject * _resultobj; |
b1462dfa | 9542 | wxString * _result; |
cf694132 | 9543 | wxMenuItem * _arg0; |
1d99702e | 9544 | PyObject * _argo0 = 0; |
efc5f224 | 9545 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9546 | |
9547 | self = self; | |
b1462dfa | 9548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 9549 | return NULL; |
1d99702e RD |
9550 | if (_argo0) { |
9551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
9554 | return NULL; |
9555 | } | |
9556 | } | |
9557 | { | |
4268f798 | 9558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
9559 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
9560 | _result = (wxString *) &_result_ref; | |
cf694132 | 9561 | |
4268f798 | 9562 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9563 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9564 | }{ |
eec92d76 | 9565 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
cf694132 | 9566 | } |
cf694132 RD |
9567 | return _resultobj; |
9568 | } | |
9569 | ||
b1462dfa RD |
9570 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
9571 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9572 | PyObject * _resultobj; |
cf694132 | 9573 | wxMenuItem * _arg0; |
b1462dfa | 9574 | bool _arg1; |
1d99702e | 9575 | PyObject * _argo0 = 0; |
b1462dfa RD |
9576 | int tempbool1; |
9577 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
9578 | |
9579 | self = self; | |
b1462dfa | 9580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9581 | return NULL; |
1d99702e RD |
9582 | if (_argo0) { |
9583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9586 | return NULL; |
9587 | } | |
9588 | } | |
b1462dfa | 9589 | _arg1 = (bool ) tempbool1; |
cf694132 | 9590 | { |
4268f798 | 9591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9592 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 | 9593 | |
4268f798 | 9594 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9595 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9596 | } Py_INCREF(Py_None); |
9597 | _resultobj = Py_None; | |
cf694132 RD |
9598 | return _resultobj; |
9599 | } | |
9600 | ||
b1462dfa RD |
9601 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
9602 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9603 | PyObject * _resultobj; |
b1462dfa | 9604 | bool _result; |
cf694132 | 9605 | wxMenuItem * _arg0; |
1d99702e | 9606 | PyObject * _argo0 = 0; |
efc5f224 | 9607 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9608 | |
9609 | self = self; | |
b1462dfa | 9610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 9611 | return NULL; |
1d99702e RD |
9612 | if (_argo0) { |
9613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9616 | return NULL; |
9617 | } | |
9618 | } | |
9619 | { | |
4268f798 | 9620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9621 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 | 9622 | |
4268f798 | 9623 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9624 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9625 | } _resultobj = Py_BuildValue("i",_result); |
9626 | return _resultobj; | |
9627 | } | |
9628 | ||
b1462dfa RD |
9629 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
9630 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9631 | PyObject * _resultobj; |
b1462dfa | 9632 | bool _result; |
cf694132 | 9633 | wxMenuItem * _arg0; |
1d99702e | 9634 | PyObject * _argo0 = 0; |
efc5f224 | 9635 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9636 | |
9637 | self = self; | |
b1462dfa | 9638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 9639 | return NULL; |
1d99702e RD |
9640 | if (_argo0) { |
9641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9644 | return NULL; |
9645 | } | |
9646 | } | |
9647 | { | |
4268f798 | 9648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9649 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 | 9650 | |
4268f798 | 9651 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9652 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9653 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9654 | return _resultobj; |
9655 | } | |
9656 | ||
b1462dfa RD |
9657 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
9658 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9659 | PyObject * _resultobj; |
9660 | wxMenuItem * _arg0; | |
b1462dfa | 9661 | wxMenu * _arg1; |
1d99702e RD |
9662 | PyObject * _argo0 = 0; |
9663 | PyObject * _argo1 = 0; | |
b1462dfa | 9664 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
9665 | |
9666 | self = self; | |
b1462dfa | 9667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 9668 | return NULL; |
1d99702e RD |
9669 | if (_argo0) { |
9670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9673 | return NULL; |
9674 | } | |
9675 | } | |
1d99702e RD |
9676 | if (_argo1) { |
9677 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9678 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
9679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
9680 | return NULL; |
9681 | } | |
9682 | } | |
9683 | { | |
4268f798 | 9684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9685 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 | 9686 | |
4268f798 | 9687 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9688 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9689 | } Py_INCREF(Py_None); |
9690 | _resultobj = Py_None; | |
9691 | return _resultobj; | |
9692 | } | |
9693 | ||
b1462dfa RD |
9694 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
9695 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9696 | PyObject * _resultobj; |
b1462dfa | 9697 | wxMenu * _result; |
cf694132 | 9698 | wxMenuItem * _arg0; |
1d99702e | 9699 | PyObject * _argo0 = 0; |
b1462dfa | 9700 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9701 | |
9702 | self = self; | |
b1462dfa | 9703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 9704 | return NULL; |
1d99702e RD |
9705 | if (_argo0) { |
9706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9709 | return NULL; |
9710 | } | |
9711 | } | |
b1462dfa | 9712 | { |
4268f798 | 9713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
9714 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); |
9715 | ||
4268f798 | 9716 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9717 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9718 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
9719 | return _resultobj; |
9720 | } | |
9721 | ||
9722 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
9723 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9724 | PyObject * _resultobj; | |
9725 | wxMenuItem * _arg0; | |
9726 | bool _arg1 = (bool ) TRUE; | |
9727 | PyObject * _argo0 = 0; | |
9728 | int tempbool1 = (int) TRUE; | |
9729 | char *_kwnames[] = { "self","enable", NULL }; | |
9730 | ||
9731 | self = self; | |
9732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
9733 | return NULL; | |
9734 | if (_argo0) { | |
9735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
9738 | return NULL; |
9739 | } | |
9740 | } | |
b1462dfa | 9741 | _arg1 = (bool ) tempbool1; |
cf694132 | 9742 | { |
4268f798 | 9743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9744 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 | 9745 | |
4268f798 | 9746 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9747 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9748 | } Py_INCREF(Py_None); |
9749 | _resultobj = Py_None; | |
9750 | return _resultobj; | |
9751 | } | |
9752 | ||
b1462dfa RD |
9753 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
9754 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9755 | PyObject * _resultobj; |
b1462dfa | 9756 | bool _result; |
cf694132 | 9757 | wxMenuItem * _arg0; |
1d99702e | 9758 | PyObject * _argo0 = 0; |
b1462dfa | 9759 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9760 | |
9761 | self = self; | |
b1462dfa | 9762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 9763 | return NULL; |
1d99702e RD |
9764 | if (_argo0) { |
9765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
9768 | return NULL; |
9769 | } | |
9770 | } | |
9771 | { | |
4268f798 | 9772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9773 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 | 9774 | |
4268f798 | 9775 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9776 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9777 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9778 | return _resultobj; |
9779 | } | |
9780 | ||
b1462dfa RD |
9781 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
9782 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9783 | PyObject * _resultobj; |
9784 | wxMenuItem * _arg0; | |
b1462dfa | 9785 | bool _arg1 = (bool ) TRUE; |
1d99702e | 9786 | PyObject * _argo0 = 0; |
b1462dfa RD |
9787 | int tempbool1 = (int) TRUE; |
9788 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
9789 | |
9790 | self = self; | |
b1462dfa | 9791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9792 | return NULL; |
1d99702e RD |
9793 | if (_argo0) { |
9794 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9795 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
9797 | return NULL; |
9798 | } | |
9799 | } | |
b1462dfa | 9800 | _arg1 = (bool ) tempbool1; |
cf694132 | 9801 | { |
4268f798 | 9802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9803 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 | 9804 | |
4268f798 | 9805 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9806 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9807 | } Py_INCREF(Py_None); |
9808 | _resultobj = Py_None; | |
9809 | return _resultobj; | |
9810 | } | |
9811 | ||
b1462dfa RD |
9812 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
9813 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9814 | PyObject * _resultobj; |
b1462dfa | 9815 | bool _result; |
2abc0a0f | 9816 | wxMenuItem * _arg0; |
2abc0a0f | 9817 | PyObject * _argo0 = 0; |
b1462dfa | 9818 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
9819 | |
9820 | self = self; | |
b1462dfa | 9821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
9822 | return NULL; |
9823 | if (_argo0) { | |
9824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9827 | return NULL; |
9828 | } | |
9829 | } | |
2abc0a0f | 9830 | { |
4268f798 | 9831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9832 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f | 9833 | |
4268f798 | 9834 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9835 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9836 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
9837 | return _resultobj; |
9838 | } | |
9839 | ||
b1462dfa RD |
9840 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
9841 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9842 | PyObject * _resultobj; |
2abc0a0f RD |
9843 | wxMenuItem * _arg0; |
9844 | PyObject * _argo0 = 0; | |
9845 | char *_kwnames[] = { "self", NULL }; | |
9846 | ||
9847 | self = self; | |
b1462dfa | 9848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
9849 | return NULL; |
9850 | if (_argo0) { | |
9851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9854 | return NULL; |
9855 | } | |
9856 | } | |
9857 | { | |
4268f798 | 9858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9859 | wxMenuItem_Toggle(_arg0); |
2abc0a0f | 9860 | |
4268f798 | 9861 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9862 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9863 | } Py_INCREF(Py_None); |
9864 | _resultobj = Py_None; | |
2abc0a0f RD |
9865 | return _resultobj; |
9866 | } | |
9867 | ||
b1462dfa RD |
9868 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
9869 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9870 | PyObject * _resultobj; |
9871 | wxMenuItem * _arg0; | |
b1462dfa | 9872 | wxString * _arg1; |
1d99702e | 9873 | PyObject * _argo0 = 0; |
b1462dfa RD |
9874 | PyObject * _obj1 = 0; |
9875 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
9876 | |
9877 | self = self; | |
b1462dfa | 9878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 9879 | return NULL; |
1d99702e RD |
9880 | if (_argo0) { |
9881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
9884 | return NULL; |
9885 | } | |
9886 | } | |
b1462dfa | 9887 | { |
185d7c3e RD |
9888 | #if PYTHON_API_VERSION >= 1009 |
9889 | char* tmpPtr; int tmpSize; | |
9890 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9891 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9892 | return NULL; |
9893 | } | |
9894 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9895 | return NULL; | |
9896 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9897 | #else | |
b1462dfa RD |
9898 | if (!PyString_Check(_obj1)) { |
9899 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
cf694132 | 9900 | return NULL; |
cf694132 | 9901 | } |
185d7c3e RD |
9902 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9903 | #endif | |
b1462dfa | 9904 | } |
cf694132 | 9905 | { |
4268f798 | 9906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9907 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 | 9908 | |
4268f798 | 9909 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9910 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9911 | } Py_INCREF(Py_None); |
8ab979d7 | 9912 | _resultobj = Py_None; |
b1462dfa RD |
9913 | { |
9914 | if (_obj1) | |
9915 | delete _arg1; | |
9916 | } | |
8ab979d7 RD |
9917 | return _resultobj; |
9918 | } | |
9919 | ||
b1462dfa RD |
9920 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
9921 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 9922 | PyObject * _resultobj; |
b1462dfa | 9923 | wxString * _result; |
be4d9c1f | 9924 | wxMenuItem * _arg0; |
1d99702e | 9925 | PyObject * _argo0 = 0; |
efc5f224 | 9926 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
9927 | |
9928 | self = self; | |
b1462dfa | 9929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 9930 | return NULL; |
1d99702e RD |
9931 | if (_argo0) { |
9932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
9935 | return NULL; |
9936 | } | |
9937 | } | |
cf694132 | 9938 | { |
4268f798 | 9939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
9940 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
9941 | _result = (wxString *) &_result_ref; | |
cf694132 | 9942 | |
4268f798 | 9943 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9944 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9945 | }{ |
eec92d76 | 9946 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa | 9947 | } |
be4d9c1f RD |
9948 | return _resultobj; |
9949 | } | |
9950 | ||
b1462dfa RD |
9951 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
9952 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9953 | PyObject * _resultobj; |
b1462dfa | 9954 | wxAcceleratorEntry * _result; |
2abc0a0f | 9955 | wxMenuItem * _arg0; |
2abc0a0f | 9956 | PyObject * _argo0 = 0; |
b1462dfa RD |
9957 | char *_kwnames[] = { "self", NULL }; |
9958 | char _ptemp[128]; | |
2abc0a0f RD |
9959 | |
9960 | self = self; | |
b1462dfa | 9961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
9962 | return NULL; |
9963 | if (_argo0) { | |
9964 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9965 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9967 | return NULL; |
9968 | } | |
9969 | } | |
2abc0a0f | 9970 | { |
4268f798 | 9971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9972 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f | 9973 | |
4268f798 | 9974 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9975 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9976 | } if (_result) { |
9977 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
9978 | _resultobj = Py_BuildValue("s",_ptemp); | |
9979 | } else { | |
9980 | Py_INCREF(Py_None); | |
9981 | _resultobj = Py_None; | |
9982 | } | |
2abc0a0f RD |
9983 | return _resultobj; |
9984 | } | |
9985 | ||
b1462dfa RD |
9986 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
9987 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
9988 | PyObject * _resultobj; |
9989 | wxMenuItem * _arg0; | |
b1462dfa | 9990 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
9991 | PyObject * _argo0 = 0; |
9992 | PyObject * _argo1 = 0; | |
b1462dfa | 9993 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
9994 | |
9995 | self = self; | |
b1462dfa | 9996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
9997 | return NULL; |
9998 | if (_argo0) { | |
9999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10002 | return NULL; |
10003 | } | |
10004 | } | |
10005 | if (_argo1) { | |
10006 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
10007 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
10008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
10009 | return NULL; |
10010 | } | |
10011 | } | |
10012 | { | |
4268f798 | 10013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 10014 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f | 10015 | |
4268f798 | 10016 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10017 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
10018 | } Py_INCREF(Py_None); |
10019 | _resultobj = Py_None; | |
10020 | return _resultobj; | |
10021 | } | |
10022 | ||
1b62f00d RD |
10023 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
10024 | PyObject * _resultobj; | |
10025 | wxString * _result; | |
10026 | wxString * _arg0; | |
10027 | PyObject * _obj0 = 0; | |
10028 | char *_kwnames[] = { "text", NULL }; | |
10029 | ||
10030 | self = self; | |
10031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
10032 | return NULL; | |
10033 | { | |
10034 | #if PYTHON_API_VERSION >= 1009 | |
10035 | char* tmpPtr; int tmpSize; | |
10036 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 10037 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1b62f00d RD |
10038 | return NULL; |
10039 | } | |
10040 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
10041 | return NULL; | |
10042 | _arg0 = new wxString(tmpPtr, tmpSize); | |
10043 | #else | |
10044 | if (!PyString_Check(_obj0)) { | |
10045 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10046 | return NULL; | |
10047 | } | |
10048 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
10049 | #endif | |
10050 | } | |
10051 | { | |
4268f798 | 10052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1b62f00d RD |
10053 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); |
10054 | ||
4268f798 | 10055 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10056 | if (PyErr_Occurred()) return NULL; |
1b62f00d RD |
10057 | }{ |
10058 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10059 | } | |
10060 | { | |
10061 | if (_obj0) | |
10062 | delete _arg0; | |
10063 | } | |
10064 | { | |
10065 | delete _result; | |
10066 | } | |
10067 | return _resultobj; | |
10068 | } | |
10069 | ||
f3d9dc1d RD |
10070 | #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
10071 | static PyObject *_wrap_wxMenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10072 | PyObject * _resultobj; | |
10073 | wxMenuItem * _arg0; | |
10074 | wxFont * _arg1; | |
10075 | PyObject * _argo0 = 0; | |
10076 | PyObject * _argo1 = 0; | |
10077 | char *_kwnames[] = { "self","font", NULL }; | |
10078 | ||
10079 | self = self; | |
10080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
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_SetFont. Expected _wxMenuItem_p."); | |
10086 | return NULL; | |
10087 | } | |
10088 | } | |
10089 | if (_argo1) { | |
10090 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10091 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
10092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p."); | |
10093 | return NULL; | |
10094 | } | |
10095 | } | |
10096 | { | |
4268f798 | 10097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10098 | wxMenuItem_SetFont(_arg0,*_arg1); |
10099 | ||
4268f798 | 10100 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10101 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10102 | } Py_INCREF(Py_None); |
10103 | _resultobj = Py_None; | |
10104 | return _resultobj; | |
10105 | } | |
10106 | ||
10107 | #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
10108 | static PyObject *_wrap_wxMenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10109 | PyObject * _resultobj; | |
10110 | wxFont * _result; | |
10111 | wxMenuItem * _arg0; | |
10112 | PyObject * _argo0 = 0; | |
10113 | char *_kwnames[] = { "self", NULL }; | |
10114 | char _ptemp[128]; | |
10115 | ||
10116 | self = self; | |
10117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetFont",_kwnames,&_argo0)) | |
10118 | return NULL; | |
10119 | if (_argo0) { | |
10120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p."); | |
10123 | return NULL; | |
10124 | } | |
10125 | } | |
10126 | { | |
4268f798 | 10127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 10128 | _result = new wxFont (wxMenuItem_GetFont(_arg0)); |
f3d9dc1d | 10129 | |
4268f798 | 10130 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10131 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
10132 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
10133 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10134 | return _resultobj; |
10135 | } | |
10136 | ||
10137 | #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
10138 | static PyObject *_wrap_wxMenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10139 | PyObject * _resultobj; | |
10140 | wxMenuItem * _arg0; | |
10141 | wxColour * _arg1; | |
10142 | PyObject * _argo0 = 0; | |
10143 | wxColour temp; | |
10144 | PyObject * _obj1 = 0; | |
10145 | char *_kwnames[] = { "self","colText", NULL }; | |
10146 | ||
10147 | self = self; | |
10148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
10149 | return NULL; | |
10150 | if (_argo0) { | |
10151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p."); | |
10154 | return NULL; | |
10155 | } | |
10156 | } | |
10157 | { | |
10158 | _arg1 = &temp; | |
10159 | if (! wxColour_helper(_obj1, &_arg1)) | |
10160 | return NULL; | |
10161 | } | |
10162 | { | |
4268f798 | 10163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10164 | wxMenuItem_SetTextColour(_arg0,*_arg1); |
10165 | ||
4268f798 | 10166 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10167 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10168 | } Py_INCREF(Py_None); |
10169 | _resultobj = Py_None; | |
10170 | return _resultobj; | |
10171 | } | |
10172 | ||
10173 | #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
10174 | static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10175 | PyObject * _resultobj; | |
10176 | wxColour * _result; | |
10177 | wxMenuItem * _arg0; | |
10178 | PyObject * _argo0 = 0; | |
10179 | char *_kwnames[] = { "self", NULL }; | |
10180 | char _ptemp[128]; | |
10181 | ||
10182 | self = self; | |
10183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetTextColour",_kwnames,&_argo0)) | |
10184 | return NULL; | |
10185 | if (_argo0) { | |
10186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p."); | |
10189 | return NULL; | |
10190 | } | |
10191 | } | |
10192 | { | |
4268f798 | 10193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25832b3f | 10194 | _result = new wxColour (wxMenuItem_GetTextColour(_arg0)); |
f3d9dc1d | 10195 | |
4268f798 | 10196 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10197 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
10198 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
10199 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10200 | return _resultobj; |
10201 | } | |
10202 | ||
10203 | #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
10204 | static PyObject *_wrap_wxMenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10205 | PyObject * _resultobj; | |
10206 | wxMenuItem * _arg0; | |
10207 | wxColour * _arg1; | |
10208 | PyObject * _argo0 = 0; | |
10209 | wxColour temp; | |
10210 | PyObject * _obj1 = 0; | |
10211 | char *_kwnames[] = { "self","colBack", NULL }; | |
10212 | ||
10213 | self = self; | |
10214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
10215 | return NULL; | |
10216 | if (_argo0) { | |
10217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p."); | |
10220 | return NULL; | |
10221 | } | |
10222 | } | |
10223 | { | |
10224 | _arg1 = &temp; | |
10225 | if (! wxColour_helper(_obj1, &_arg1)) | |
10226 | return NULL; | |
10227 | } | |
10228 | { | |
4268f798 | 10229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10230 | wxMenuItem_SetBackgroundColour(_arg0,*_arg1); |
10231 | ||
4268f798 | 10232 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10233 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10234 | } Py_INCREF(Py_None); |
10235 | _resultobj = Py_None; | |
10236 | return _resultobj; | |
10237 | } | |
10238 | ||
10239 | #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
10240 | static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10241 | PyObject * _resultobj; | |
10242 | wxColour * _result; | |
10243 | wxMenuItem * _arg0; | |
10244 | PyObject * _argo0 = 0; | |
10245 | char *_kwnames[] = { "self", NULL }; | |
10246 | char _ptemp[128]; | |
10247 | ||
10248 | self = self; | |
10249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBackgroundColour",_kwnames,&_argo0)) | |
10250 | return NULL; | |
10251 | if (_argo0) { | |
10252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p."); | |
10255 | return NULL; | |
10256 | } | |
10257 | } | |
10258 | { | |
4268f798 | 10259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25832b3f | 10260 | _result = new wxColour (wxMenuItem_GetBackgroundColour(_arg0)); |
f3d9dc1d | 10261 | |
4268f798 | 10262 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10263 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
10264 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
10265 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10266 | return _resultobj; |
10267 | } | |
10268 | ||
10269 | #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1)) | |
10270 | static PyObject *_wrap_wxMenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10271 | PyObject * _resultobj; | |
10272 | wxMenuItem * _arg0; | |
10273 | wxBitmap * _arg1; | |
10274 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
10275 | PyObject * _argo0 = 0; | |
10276 | PyObject * _argo1 = 0; | |
10277 | PyObject * _argo2 = 0; | |
10278 | char *_kwnames[] = { "self","bmpChecked","bmpUnchecked", NULL }; | |
10279 | ||
10280 | self = self; | |
10281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxMenuItem_SetBitmaps",_kwnames,&_argo0,&_argo1,&_argo2)) | |
10282 | return NULL; | |
10283 | if (_argo0) { | |
10284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p."); | |
10287 | return NULL; | |
10288 | } | |
10289 | } | |
10290 | if (_argo1) { | |
10291 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10292 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
10294 | return NULL; | |
10295 | } | |
10296 | } | |
10297 | if (_argo2) { | |
10298 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10299 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
10300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
10301 | return NULL; | |
10302 | } | |
10303 | } | |
10304 | { | |
4268f798 | 10305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10306 | wxMenuItem_SetBitmaps(_arg0,*_arg1,*_arg2); |
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_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
10316 | static PyObject *_wrap_wxMenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10317 | PyObject * _resultobj; | |
10318 | wxMenuItem * _arg0; | |
10319 | wxBitmap * _arg1; | |
10320 | PyObject * _argo0 = 0; | |
10321 | PyObject * _argo1 = 0; | |
10322 | char *_kwnames[] = { "self","bmpChecked", NULL }; | |
10323 | ||
10324 | self = self; | |
10325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
10326 | return NULL; | |
10327 | if (_argo0) { | |
10328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p."); | |
10331 | return NULL; | |
10332 | } | |
10333 | } | |
10334 | if (_argo1) { | |
10335 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10336 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p."); | |
10338 | return NULL; | |
10339 | } | |
10340 | } | |
10341 | { | |
4268f798 | 10342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10343 | wxMenuItem_SetBitmap(_arg0,*_arg1); |
10344 | ||
4268f798 | 10345 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10346 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10347 | } Py_INCREF(Py_None); |
10348 | _resultobj = Py_None; | |
10349 | return _resultobj; | |
10350 | } | |
10351 | ||
10352 | #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0)) | |
10353 | static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10354 | PyObject * _resultobj; | |
10355 | wxBitmap * _result; | |
10356 | wxMenuItem * _arg0; | |
10357 | bool _arg1 = (bool ) TRUE; | |
10358 | PyObject * _argo0 = 0; | |
10359 | int tempbool1 = (int) TRUE; | |
10360 | char *_kwnames[] = { "self","bChecked", NULL }; | |
10361 | char _ptemp[128]; | |
10362 | ||
10363 | self = self; | |
10364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_GetBitmap",_kwnames,&_argo0,&tempbool1)) | |
10365 | return NULL; | |
10366 | if (_argo0) { | |
10367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p."); | |
10370 | return NULL; | |
10371 | } | |
10372 | } | |
10373 | _arg1 = (bool ) tempbool1; | |
10374 | { | |
4268f798 | 10375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 10376 | _result = new wxBitmap (wxMenuItem_GetBitmap(_arg0,_arg1)); |
f3d9dc1d | 10377 | |
4268f798 | 10378 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10379 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
10380 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
10381 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10382 | return _resultobj; |
10383 | } | |
10384 | ||
10385 | #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0)) | |
10386 | static PyObject *_wrap_wxMenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10387 | PyObject * _resultobj; | |
10388 | wxMenuItem * _arg0; | |
10389 | int _arg1; | |
10390 | PyObject * _argo0 = 0; | |
10391 | char *_kwnames[] = { "self","nWidth", NULL }; | |
10392 | ||
10393 | self = self; | |
10394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetMarginWidth",_kwnames,&_argo0,&_arg1)) | |
10395 | return NULL; | |
10396 | if (_argo0) { | |
10397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p."); | |
10400 | return NULL; | |
10401 | } | |
10402 | } | |
10403 | { | |
4268f798 | 10404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10405 | wxMenuItem_SetMarginWidth(_arg0,_arg1); |
10406 | ||
4268f798 | 10407 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10408 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10409 | } Py_INCREF(Py_None); |
10410 | _resultobj = Py_None; | |
10411 | return _resultobj; | |
10412 | } | |
10413 | ||
10414 | #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth()) | |
10415 | static PyObject *_wrap_wxMenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10416 | PyObject * _resultobj; | |
10417 | int _result; | |
10418 | wxMenuItem * _arg0; | |
10419 | PyObject * _argo0 = 0; | |
10420 | char *_kwnames[] = { "self", NULL }; | |
10421 | ||
10422 | self = self; | |
10423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMarginWidth",_kwnames,&_argo0)) | |
10424 | return NULL; | |
10425 | if (_argo0) { | |
10426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p."); | |
10429 | return NULL; | |
10430 | } | |
10431 | } | |
10432 | { | |
4268f798 | 10433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10434 | _result = (int )wxMenuItem_GetMarginWidth(_arg0); |
10435 | ||
4268f798 | 10436 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10437 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10438 | } _resultobj = Py_BuildValue("i",_result); |
10439 | return _resultobj; | |
10440 | } | |
10441 | ||
10442 | static PyObject *_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10443 | PyObject * _resultobj; | |
10444 | int _result; | |
10445 | char *_kwnames[] = { NULL }; | |
10446 | ||
10447 | self = self; | |
10448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMenuItem_GetDefaultMarginWidth",_kwnames)) | |
10449 | return NULL; | |
10450 | { | |
4268f798 | 10451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10452 | _result = (int )wxMenuItem::GetDefaultMarginWidth(); |
10453 | ||
4268f798 | 10454 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10455 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10456 | } _resultobj = Py_BuildValue("i",_result); |
10457 | return _resultobj; | |
10458 | } | |
10459 | ||
10460 | #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn()) | |
10461 | static PyObject *_wrap_wxMenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10462 | PyObject * _resultobj; | |
10463 | bool _result; | |
10464 | wxMenuItem * _arg0; | |
10465 | PyObject * _argo0 = 0; | |
10466 | char *_kwnames[] = { "self", NULL }; | |
10467 | ||
10468 | self = self; | |
10469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsOwnerDrawn",_kwnames,&_argo0)) | |
10470 | return NULL; | |
10471 | if (_argo0) { | |
10472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p."); | |
10475 | return NULL; | |
10476 | } | |
10477 | } | |
10478 | { | |
4268f798 | 10479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10480 | _result = (bool )wxMenuItem_IsOwnerDrawn(_arg0); |
10481 | ||
4268f798 | 10482 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10483 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10484 | } _resultobj = Py_BuildValue("i",_result); |
10485 | return _resultobj; | |
10486 | } | |
10487 | ||
10488 | #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn()) | |
10489 | static PyObject *_wrap_wxMenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10490 | PyObject * _resultobj; | |
10491 | wxMenuItem * _arg0; | |
10492 | PyObject * _argo0 = 0; | |
10493 | char *_kwnames[] = { "self", NULL }; | |
10494 | ||
10495 | self = self; | |
10496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_ResetOwnerDrawn",_kwnames,&_argo0)) | |
10497 | return NULL; | |
10498 | if (_argo0) { | |
10499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p."); | |
10502 | return NULL; | |
10503 | } | |
10504 | } | |
10505 | { | |
4268f798 | 10506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10507 | wxMenuItem_ResetOwnerDrawn(_arg0); |
10508 | ||
4268f798 | 10509 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10510 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10511 | } Py_INCREF(Py_None); |
10512 | _resultobj = Py_None; | |
10513 | return _resultobj; | |
10514 | } | |
10515 | ||
8ab979d7 | 10516 | static PyMethodDef windowscMethods[] = { |
f3d9dc1d RD |
10517 | { "wxMenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, |
10518 | { "wxMenuItem_IsOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
10519 | { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10520 | { "wxMenuItem_GetMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10521 | { "wxMenuItem_SetMarginWidth", (PyCFunction) _wrap_wxMenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10522 | { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10523 | { "wxMenuItem_SetBitmap", (PyCFunction) _wrap_wxMenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10524 | { "wxMenuItem_SetBitmaps", (PyCFunction) _wrap_wxMenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
10525 | { "wxMenuItem_GetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10526 | { "wxMenuItem_SetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10527 | { "wxMenuItem_GetTextColour", (PyCFunction) _wrap_wxMenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10528 | { "wxMenuItem_SetTextColour", (PyCFunction) _wrap_wxMenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10529 | { "wxMenuItem_GetFont", (PyCFunction) _wrap_wxMenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10530 | { "wxMenuItem_SetFont", (PyCFunction) _wrap_wxMenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 10531 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10532 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
10533 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
10534 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10535 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10536 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10537 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10538 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10539 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10540 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10541 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10542 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 10543 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10544 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10545 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
10546 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10547 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10548 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10549 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10550 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
10551 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10552 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10553 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10554 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10555 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
10556 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10557 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
10558 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10559 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10560 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10561 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
10562 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
10563 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
3a0958b1 | 10564 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10565 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, |
10566 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
10567 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
10568 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10569 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
10570 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
10571 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
10572 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10573 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
10574 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10575 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
10576 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
10577 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
10578 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10579 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10580 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10581 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10582 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10583 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
10584 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10585 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
10586 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10587 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10588 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
10589 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10590 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
10591 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10592 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10593 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10594 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10595 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10596 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
10597 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10598 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
10599 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 10600 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10601 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10602 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10603 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10604 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10605 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
10606 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
10607 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
10608 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
10609 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
10610 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
10611 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
d1679124 RD |
10612 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10613 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
10614 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
10615 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f RD |
10616 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, |
10617 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
4c9993c3 | 10618 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10619 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10620 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10621 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10622 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
10623 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
10624 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
10625 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10626 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10627 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10628 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10629 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10630 | { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
10631 | { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10632 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10633 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10634 | { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS }, |
10635 | { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10636 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, |
5a2930ab RD |
10637 | { "wxWindow_SetDefaultItem", (PyCFunction) _wrap_wxWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
10638 | { "wxWindow_GetDefaultItem", (PyCFunction) _wrap_wxWindow_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
07c99b26 | 10639 | { "wxWindow_OnPaint", (PyCFunction) _wrap_wxWindow_OnPaint, METH_VARARGS | METH_KEYWORDS }, |
900d9886 | 10640 | { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 | 10641 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10642 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
10643 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
10644 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
10645 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c RD |
10646 | { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS }, |
10647 | { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
10648 | { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
10649 | { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
10650 | { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
10651 | { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
4f3449b4 RD |
10652 | { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS }, |
10653 | { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 | 10654 | { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS }, |
3a0958b1 RD |
10655 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, |
10656 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
10657 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
10658 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 10659 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10660 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
10661 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10662 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
10663 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10664 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10665 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10666 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
10667 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
10668 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
10669 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10670 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10671 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10672 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10673 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10674 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10675 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
10676 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
10677 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
10678 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
10679 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10680 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
83b18bab | 10681 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 10682 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10683 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
10684 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10685 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
10686 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
dbbb98cd | 10687 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10688 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
10689 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
10690 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
10691 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10692 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
10693 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
10694 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10695 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10696 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10697 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10698 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10699 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10700 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10701 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 10702 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10703 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10704 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, |
10705 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
10706 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
10707 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10708 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10709 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 | 10710 | { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10711 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, |
10712 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
10713 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
10714 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
c6c593e8 | 10715 | { "wxWindow_RemoveEventHandler", (PyCFunction) _wrap_wxWindow_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
10716 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
10717 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10718 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
10719 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10720 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
10721 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
10722 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
10723 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
10724 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
10725 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
10726 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
10727 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
10728 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
10729 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10730 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10731 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
10732 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10733 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
10734 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10735 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
10736 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
10737 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10738 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10739 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10740 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10741 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10742 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
10743 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10744 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
10745 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
10746 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10747 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10748 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
10749 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
10750 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10751 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10752 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 10753 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10754 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
10755 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10756 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 10757 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10758 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10759 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10760 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10761 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
10762 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10763 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10764 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
10765 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
10766 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
10767 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
10768 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
10769 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 10770 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10771 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, |
10772 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
10773 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
10774 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
10775 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
d56cebe7 | 10776 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, |
3ca6a5f0 BP |
10777 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
10778 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10779 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
10780 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
10781 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
10782 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
10783 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
10784 | { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
10785 | { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10786 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, |
0122b7e3 | 10787 | { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10788 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
9416aa89 RD |
10789 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
10790 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10791 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
10792 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10793 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
10794 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 10795 | { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 10796 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10797 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
10798 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
10799 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10800 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
10801 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10802 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10803 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10804 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10805 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 10806 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10807 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
10808 | { NULL, NULL } |
10809 | }; | |
1d99702e RD |
10810 | #ifdef __cplusplus |
10811 | } | |
10812 | #endif | |
10813 | /* | |
10814 | * This table is used by the pointer type-checker | |
10815 | */ | |
10816 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 10817 | { "_signed_long","_long",0}, |
b1462dfa | 10818 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
10819 | { "_wxPrintQuality","_int",0}, |
10820 | { "_wxPrintQuality","_signed_int",0}, | |
10821 | { "_wxPrintQuality","_unsigned_int",0}, | |
10822 | { "_wxPrintQuality","_wxWindowID",0}, | |
10823 | { "_wxPrintQuality","_uint",0}, | |
10824 | { "_wxPrintQuality","_EBool",0}, | |
10825 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10826 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 10827 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
10828 | { "_long","_unsigned_long",0}, |
10829 | { "_long","_signed_long",0}, | |
b1462dfa | 10830 | { "_size_t","_wxCoord",0}, |
1d99702e | 10831 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10832 | { "_size_t","_time_t",0}, |
1d99702e RD |
10833 | { "_size_t","_unsigned_int",0}, |
10834 | { "_size_t","_int",0}, | |
10835 | { "_size_t","_wxWindowID",0}, | |
10836 | { "_size_t","_uint",0}, | |
1d99702e | 10837 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
b1462dfa | 10838 | { "_uint","_wxCoord",0}, |
1d99702e | 10839 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10840 | { "_uint","_time_t",0}, |
1d99702e RD |
10841 | { "_uint","_size_t",0}, |
10842 | { "_uint","_unsigned_int",0}, | |
10843 | { "_uint","_int",0}, | |
10844 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10845 | { "_wxChar","_char",0}, |
f6bcfd97 | 10846 | { "_char","_wxChar",0}, |
cdf14688 | 10847 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 10848 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10849 | { "_EBool","_wxPrintQuality",0}, |
10850 | { "_EBool","_signed_int",0}, | |
10851 | { "_EBool","_int",0}, | |
10852 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 10853 | { "_unsigned_long","_long",0}, |
cdf14688 | 10854 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 10855 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10856 | { "_signed_int","_wxPrintQuality",0}, |
10857 | { "_signed_int","_EBool",0}, | |
10858 | { "_signed_int","_wxWindowID",0}, | |
10859 | { "_signed_int","_int",0}, | |
1d99702e RD |
10860 | { "_WXTYPE","_short",0}, |
10861 | { "_WXTYPE","_signed_short",0}, | |
10862 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
10863 | { "_unsigned_short","_WXTYPE",0}, |
10864 | { "_unsigned_short","_short",0}, | |
9416aa89 | 10865 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, |
9416aa89 | 10866 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, |
9416aa89 | 10867 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, |
9416aa89 | 10868 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, |
9416aa89 | 10869 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, |
9416aa89 | 10870 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, |
9416aa89 | 10871 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, |
9416aa89 | 10872 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, |
9416aa89 | 10873 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, |
1d99702e RD |
10874 | { "_signed_short","_WXTYPE",0}, |
10875 | { "_signed_short","_short",0}, | |
1d99702e | 10876 | { "_unsigned_char","_byte",0}, |
b1462dfa | 10877 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10878 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10879 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10880 | { "_unsigned_int","_size_t",0}, |
10881 | { "_unsigned_int","_uint",0}, | |
10882 | { "_unsigned_int","_wxWindowID",0}, | |
10883 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
10884 | { "_short","_WXTYPE",0}, |
10885 | { "_short","_unsigned_short",0}, | |
10886 | { "_short","_signed_short",0}, | |
b1462dfa | 10887 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10888 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10889 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10890 | { "_wxWindowID","_size_t",0}, |
10891 | { "_wxWindowID","_EBool",0}, | |
10892 | { "_wxWindowID","_uint",0}, | |
10893 | { "_wxWindowID","_int",0}, | |
10894 | { "_wxWindowID","_signed_int",0}, | |
10895 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10896 | { "_int","_wxCoord",0}, |
1d99702e | 10897 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10898 | { "_int","_time_t",0}, |
1d99702e RD |
10899 | { "_int","_size_t",0}, |
10900 | { "_int","_EBool",0}, | |
10901 | { "_int","_uint",0}, | |
10902 | { "_int","_wxWindowID",0}, | |
10903 | { "_int","_unsigned_int",0}, | |
10904 | { "_int","_signed_int",0}, | |
c368d904 RD |
10905 | { "_time_t","_wxCoord",0}, |
10906 | { "_time_t","_wxPrintQuality",0}, | |
10907 | { "_time_t","_unsigned_int",0}, | |
10908 | { "_time_t","_int",0}, | |
10909 | { "_time_t","_wxWindowID",0}, | |
10910 | { "_time_t","_uint",0}, | |
10911 | { "_time_t","_size_t",0}, | |
2f90df85 | 10912 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
b1462dfa RD |
10913 | { "_wxCoord","_int",0}, |
10914 | { "_wxCoord","_signed_int",0}, | |
10915 | { "_wxCoord","_unsigned_int",0}, | |
10916 | { "_wxCoord","_wxWindowID",0}, | |
10917 | { "_wxCoord","_uint",0}, | |
10918 | { "_wxCoord","_EBool",0}, | |
10919 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10920 | { "_wxCoord","_time_t",0}, |
b1462dfa | 10921 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 10922 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
1d99702e | 10923 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, |
1d99702e | 10924 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, |
1d99702e | 10925 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, |
1d99702e | 10926 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, |
2f90df85 | 10927 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
2f90df85 | 10928 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, |
b1462dfa | 10929 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, |
1d99702e | 10930 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
1d99702e | 10931 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, |
1d99702e RD |
10932 | {0,0,0}}; |
10933 | ||
8ab979d7 RD |
10934 | static PyObject *SWIG_globals; |
10935 | #ifdef __cplusplus | |
10936 | extern "C" | |
10937 | #endif | |
1d99702e | 10938 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
10939 | PyObject *m, *d; |
10940 | SWIG_globals = SWIG_newvarlink(); | |
10941 | m = Py_InitModule("windowsc", windowscMethods); | |
10942 | d = PyModule_GetDict(m); | |
1d99702e RD |
10943 | { |
10944 | int i; | |
10945 | for (i = 0; _swig_mapping[i].n1; i++) | |
10946 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10947 | } | |
8ab979d7 | 10948 | } |