]>
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 | |
2f90df85 RD |
95 | class wxPyValidator : public wxValidator { |
96 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
97 | public: | |
98 | wxPyValidator() { | |
99 | } | |
2f90df85 RD |
100 | |
101 | ~wxPyValidator() { | |
102 | } | |
103 | ||
19a97bd6 | 104 | wxObject* Clone() const { |
694759cf RD |
105 | wxPyValidator* ptr = NULL; |
106 | wxPyValidator* self = (wxPyValidator*)this; | |
2f90df85 | 107 | |
4268f798 | 108 | wxPyBeginBlockThreads(); |
694759cf RD |
109 | if (self->m_myInst.findCallback("Clone")) { |
110 | PyObject* ro; | |
111 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
f6bcfd97 BP |
112 | if (ro) { |
113 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
114 | Py_DECREF(ro); | |
115 | } | |
694759cf | 116 | } |
4268f798 | 117 | wxPyEndBlockThreads(); |
19a97bd6 | 118 | |
694759cf RD |
119 | // This is very dangerous!!! But is the only way I could find |
120 | // to squash a memory leak. Currently it is okay, but if the | |
121 | // validator architecture in wxWindows ever changes, problems | |
122 | // could arise. | |
123 | delete self; | |
694759cf RD |
124 | return ptr; |
125 | } | |
2f90df85 | 126 | |
9416aa89 | 127 | |
2f90df85 RD |
128 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); |
129 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
130 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
131 | ||
132 | PYPRIVATE; | |
2f90df85 RD |
133 | }; |
134 | ||
135 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
136 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
137 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
138 | ||
139 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
8ab979d7 | 140 | |
8ab979d7 | 141 | |
2f90df85 RD |
142 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { |
143 | wxWindow* win = new wxWindow; | |
144 | win->SetHWND(hWnd); | |
145 | win->SubclassWin(hWnd); | |
146 | return win; | |
147 | } | |
148 | #ifdef __cplusplus | |
149 | extern "C" { | |
150 | #endif | |
2f90df85 RD |
151 | static PyObject *_wrap_wxWindow_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { |
152 | PyObject * _resultobj; | |
153 | wxWindow * _result; | |
154 | unsigned long _arg0; | |
155 | char *_kwnames[] = { "hWnd", NULL }; | |
2f90df85 RD |
156 | |
157 | self = self; | |
158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxWindow_FromHWND",_kwnames,&_arg0)) | |
159 | return NULL; | |
160 | { | |
4268f798 | 161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
162 | _result = (wxWindow *)wxWindow_FromHWND(_arg0); |
163 | ||
4268f798 | 164 | wxPyEndAllowThreads(__tstate); |
493f1553 | 165 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 166 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
167 | return _resultobj; |
168 | } | |
169 | ||
9416aa89 RD |
170 | static void *SwigwxEvtHandlerTowxObject(void *ptr) { |
171 | wxEvtHandler *src; | |
172 | wxObject *dest; | |
173 | src = (wxEvtHandler *) ptr; | |
174 | dest = (wxObject *) src; | |
175 | return (void *) dest; | |
176 | } | |
177 | ||
c368d904 RD |
178 | #define new_wxEvtHandler() (new wxEvtHandler()) |
179 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
180 | PyObject * _resultobj; | |
181 | wxEvtHandler * _result; | |
182 | char *_kwnames[] = { NULL }; | |
183 | char _ptemp[128]; | |
184 | ||
185 | self = self; | |
186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
187 | return NULL; | |
188 | { | |
4268f798 | 189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
190 | _result = (wxEvtHandler *)new_wxEvtHandler(); |
191 | ||
4268f798 | 192 | wxPyEndAllowThreads(__tstate); |
493f1553 | 193 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
194 | } if (_result) { |
195 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
196 | _resultobj = Py_BuildValue("s",_ptemp); | |
197 | } else { | |
198 | Py_INCREF(Py_None); | |
199 | _resultobj = Py_None; | |
200 | } | |
201 | return _resultobj; | |
202 | } | |
203 | ||
2f90df85 RD |
204 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
205 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
206 | PyObject * _resultobj; | |
207 | bool _result; | |
208 | wxEvtHandler * _arg0; | |
209 | wxEvent * _arg1; | |
210 | PyObject * _argo0 = 0; | |
211 | PyObject * _argo1 = 0; | |
212 | char *_kwnames[] = { "self","event", NULL }; | |
213 | ||
214 | self = self; | |
215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
216 | return NULL; | |
217 | if (_argo0) { | |
218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
221 | return NULL; | |
222 | } | |
223 | } | |
224 | if (_argo1) { | |
225 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
226 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
228 | return NULL; | |
229 | } | |
230 | } | |
231 | { | |
4268f798 | 232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
233 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); |
234 | ||
4268f798 | 235 | wxPyEndAllowThreads(__tstate); |
493f1553 | 236 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
237 | } _resultobj = Py_BuildValue("i",_result); |
238 | return _resultobj; | |
239 | } | |
240 | ||
f6bcfd97 BP |
241 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
242 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
243 | PyObject * _resultobj; | |
244 | wxEvtHandler * _arg0; | |
245 | wxEvent * _arg1; | |
246 | PyObject * _argo0 = 0; | |
247 | PyObject * _argo1 = 0; | |
248 | char *_kwnames[] = { "self","event", NULL }; | |
249 | ||
250 | self = self; | |
251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
252 | return NULL; | |
253 | if (_argo0) { | |
254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
257 | return NULL; | |
258 | } | |
259 | } | |
260 | if (_argo1) { | |
261 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
262 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
264 | return NULL; | |
265 | } | |
266 | } | |
267 | { | |
4268f798 | 268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
269 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); |
270 | ||
4268f798 | 271 | wxPyEndAllowThreads(__tstate); |
493f1553 | 272 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
273 | } Py_INCREF(Py_None); |
274 | _resultobj = Py_None; | |
275 | return _resultobj; | |
276 | } | |
277 | ||
2f90df85 RD |
278 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
279 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
280 | PyObject * _resultobj; | |
281 | bool _result; | |
282 | wxEvtHandler * _arg0; | |
283 | PyObject * _argo0 = 0; | |
284 | char *_kwnames[] = { "self", NULL }; | |
285 | ||
286 | self = self; | |
287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
288 | return NULL; | |
289 | if (_argo0) { | |
290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
293 | return NULL; | |
294 | } | |
295 | } | |
296 | { | |
4268f798 | 297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
298 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); |
299 | ||
4268f798 | 300 | wxPyEndAllowThreads(__tstate); |
493f1553 | 301 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
302 | } _resultobj = Py_BuildValue("i",_result); |
303 | return _resultobj; | |
304 | } | |
305 | ||
306 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
307 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
308 | PyObject * _resultobj; | |
309 | wxEvtHandler * _arg0; | |
310 | bool _arg1; | |
311 | PyObject * _argo0 = 0; | |
312 | int tempbool1; | |
313 | char *_kwnames[] = { "self","enabled", NULL }; | |
314 | ||
315 | self = self; | |
316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
317 | return NULL; | |
318 | if (_argo0) { | |
319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
322 | return NULL; | |
323 | } | |
324 | } | |
325 | _arg1 = (bool ) tempbool1; | |
326 | { | |
4268f798 | 327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
328 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); |
329 | ||
4268f798 | 330 | wxPyEndAllowThreads(__tstate); |
493f1553 | 331 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
332 | } Py_INCREF(Py_None); |
333 | _resultobj = Py_None; | |
334 | return _resultobj; | |
335 | } | |
336 | ||
337 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
338 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
339 | PyObject * _resultobj; | |
340 | wxEvtHandler * _result; | |
341 | wxEvtHandler * _arg0; | |
342 | PyObject * _argo0 = 0; | |
343 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
344 | |
345 | self = self; | |
346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
347 | return NULL; | |
348 | if (_argo0) { | |
349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
352 | return NULL; | |
353 | } | |
354 | } | |
355 | { | |
4268f798 | 356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
357 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); |
358 | ||
4268f798 | 359 | wxPyEndAllowThreads(__tstate); |
493f1553 | 360 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 361 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
362 | return _resultobj; |
363 | } | |
364 | ||
365 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
366 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
367 | PyObject * _resultobj; | |
368 | wxEvtHandler * _result; | |
369 | wxEvtHandler * _arg0; | |
370 | PyObject * _argo0 = 0; | |
371 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
372 | |
373 | self = self; | |
374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
375 | return NULL; | |
376 | if (_argo0) { | |
377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
380 | return NULL; | |
381 | } | |
382 | } | |
383 | { | |
4268f798 | 384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
385 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); |
386 | ||
4268f798 | 387 | wxPyEndAllowThreads(__tstate); |
493f1553 | 388 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 389 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
390 | return _resultobj; |
391 | } | |
392 | ||
393 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
394 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
395 | PyObject * _resultobj; | |
396 | wxEvtHandler * _arg0; | |
397 | wxEvtHandler * _arg1; | |
398 | PyObject * _argo0 = 0; | |
399 | PyObject * _argo1 = 0; | |
400 | char *_kwnames[] = { "self","handler", NULL }; | |
401 | ||
402 | self = self; | |
403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
404 | return NULL; | |
405 | if (_argo0) { | |
406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
409 | return NULL; | |
410 | } | |
411 | } | |
412 | if (_argo1) { | |
413 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
414 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
416 | return NULL; | |
417 | } | |
418 | } | |
419 | { | |
4268f798 | 420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
421 | wxEvtHandler_SetNextHandler(_arg0,_arg1); |
422 | ||
4268f798 | 423 | wxPyEndAllowThreads(__tstate); |
493f1553 | 424 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
425 | } Py_INCREF(Py_None); |
426 | _resultobj = Py_None; | |
427 | return _resultobj; | |
428 | } | |
429 | ||
430 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
431 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
432 | PyObject * _resultobj; | |
433 | wxEvtHandler * _arg0; | |
434 | wxEvtHandler * _arg1; | |
435 | PyObject * _argo0 = 0; | |
436 | PyObject * _argo1 = 0; | |
437 | char *_kwnames[] = { "self","handler", NULL }; | |
438 | ||
439 | self = self; | |
440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
441 | return NULL; | |
442 | if (_argo0) { | |
443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
446 | return NULL; | |
447 | } | |
448 | } | |
449 | if (_argo1) { | |
450 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
451 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
453 | return NULL; | |
454 | } | |
455 | } | |
456 | { | |
4268f798 | 457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
458 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); |
459 | ||
4268f798 | 460 | wxPyEndAllowThreads(__tstate); |
493f1553 | 461 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
462 | } Py_INCREF(Py_None); |
463 | _resultobj = Py_None; | |
464 | return _resultobj; | |
465 | } | |
466 | ||
467 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
468 | if (PyCallable_Check(func)) { | |
469 | self->Connect(id, lastId, eventType, | |
470 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
471 | new wxPyCallback(func)); | |
472 | } | |
25b00b4e RD |
473 | else if (func == Py_None) { |
474 | self->Disconnect(id, lastId, eventType, | |
475 | (wxObjectEventFunction) | |
476 | &wxPyCallback::EventThunker); | |
477 | } | |
478 | else { | |
479 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
480 | } | |
2f90df85 RD |
481 | } |
482 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
483 | PyObject * _resultobj; | |
484 | wxEvtHandler * _arg0; | |
485 | int _arg1; | |
486 | int _arg2; | |
487 | int _arg3; | |
488 | PyObject * _arg4; | |
489 | PyObject * _argo0 = 0; | |
490 | PyObject * _obj4 = 0; | |
491 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
492 | ||
493 | self = self; | |
494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
495 | return NULL; | |
496 | if (_argo0) { | |
497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
500 | return NULL; | |
501 | } | |
502 | } | |
503 | { | |
504 | _arg4 = _obj4; | |
505 | } | |
506 | { | |
4268f798 | 507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
508 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); |
509 | ||
4268f798 | 510 | wxPyEndAllowThreads(__tstate); |
493f1553 | 511 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
512 | } Py_INCREF(Py_None); |
513 | _resultobj = Py_None; | |
514 | return _resultobj; | |
515 | } | |
516 | ||
6999b0d8 RD |
517 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
518 | return self->Disconnect(id, lastId, eventType, | |
519 | (wxObjectEventFunction) | |
520 | &wxPyCallback::EventThunker); | |
521 | } | |
522 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
523 | PyObject * _resultobj; | |
524 | bool _result; | |
525 | wxEvtHandler * _arg0; | |
526 | int _arg1; | |
527 | int _arg2 = (int ) -1; | |
528 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
529 | PyObject * _argo0 = 0; | |
530 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
531 | ||
532 | self = self; | |
533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
534 | return NULL; | |
535 | if (_argo0) { | |
536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
539 | return NULL; | |
540 | } | |
541 | } | |
542 | { | |
4268f798 | 543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 RD |
544 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); |
545 | ||
4268f798 | 546 | wxPyEndAllowThreads(__tstate); |
493f1553 | 547 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
548 | } _resultobj = Py_BuildValue("i",_result); |
549 | return _resultobj; | |
550 | } | |
551 | ||
0122b7e3 RD |
552 | static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject * _self) { |
553 | self->SetClientObject(new wxPyClientData(_self)); | |
554 | } | |
555 | static PyObject *_wrap_wxEvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
556 | PyObject * _resultobj; | |
557 | wxEvtHandler * _arg0; | |
558 | PyObject * _arg1; | |
559 | PyObject * _argo0 = 0; | |
560 | PyObject * _obj1 = 0; | |
561 | char *_kwnames[] = { "self","_self", NULL }; | |
562 | ||
563 | self = self; | |
564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler__setOORInfo",_kwnames,&_argo0,&_obj1)) | |
565 | return NULL; | |
566 | if (_argo0) { | |
567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p."); | |
570 | return NULL; | |
571 | } | |
572 | } | |
573 | { | |
574 | _arg1 = _obj1; | |
575 | } | |
576 | { | |
4268f798 | 577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0122b7e3 RD |
578 | wxEvtHandler__setOORInfo(_arg0,_arg1); |
579 | ||
4268f798 | 580 | wxPyEndAllowThreads(__tstate); |
0122b7e3 RD |
581 | if (PyErr_Occurred()) return NULL; |
582 | } Py_INCREF(Py_None); | |
583 | _resultobj = Py_None; | |
584 | return _resultobj; | |
585 | } | |
586 | ||
2f90df85 RD |
587 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
588 | wxValidator *src; | |
589 | wxEvtHandler *dest; | |
590 | src = (wxValidator *) ptr; | |
591 | dest = (wxEvtHandler *) src; | |
592 | return (void *) dest; | |
593 | } | |
594 | ||
9416aa89 RD |
595 | static void *SwigwxValidatorTowxObject(void *ptr) { |
596 | wxValidator *src; | |
597 | wxObject *dest; | |
598 | src = (wxValidator *) ptr; | |
599 | dest = (wxObject *) src; | |
600 | return (void *) dest; | |
601 | } | |
602 | ||
2f90df85 RD |
603 | #define new_wxValidator() (new wxValidator()) |
604 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
605 | PyObject * _resultobj; | |
606 | wxValidator * _result; | |
607 | char *_kwnames[] = { NULL }; | |
608 | char _ptemp[128]; | |
609 | ||
610 | self = self; | |
611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
612 | return NULL; | |
613 | { | |
4268f798 | 614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
615 | _result = (wxValidator *)new_wxValidator(); |
616 | ||
4268f798 | 617 | wxPyEndAllowThreads(__tstate); |
493f1553 | 618 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
619 | } if (_result) { |
620 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
621 | _resultobj = Py_BuildValue("s",_ptemp); | |
622 | } else { | |
623 | Py_INCREF(Py_None); | |
624 | _resultobj = Py_None; | |
625 | } | |
626 | return _resultobj; | |
af309447 | 627 | } |
2f90df85 RD |
628 | |
629 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
630 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 631 | PyObject * _resultobj; |
2f90df85 RD |
632 | wxValidator * _result; |
633 | wxValidator * _arg0; | |
634 | PyObject * _argo0 = 0; | |
635 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
636 | |
637 | self = self; | |
2f90df85 RD |
638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
639 | return NULL; | |
640 | if (_argo0) { | |
641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 644 | return NULL; |
2f90df85 RD |
645 | } |
646 | } | |
cf694132 | 647 | { |
4268f798 | 648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 | 649 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 | 650 | |
4268f798 | 651 | wxPyEndAllowThreads(__tstate); |
493f1553 | 652 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 653 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
654 | return _resultobj; |
655 | } | |
656 | ||
2f90df85 RD |
657 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
658 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
659 | PyObject * _resultobj; |
660 | wxWindow * _result; | |
2f90df85 RD |
661 | wxValidator * _arg0; |
662 | PyObject * _argo0 = 0; | |
663 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
664 | |
665 | self = self; | |
2f90df85 RD |
666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
667 | return NULL; | |
668 | if (_argo0) { | |
669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 672 | return NULL; |
2f90df85 RD |
673 | } |
674 | } | |
cf694132 | 675 | { |
4268f798 | 676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 | 677 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 | 678 | |
4268f798 | 679 | wxPyEndAllowThreads(__tstate); |
493f1553 | 680 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 681 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
682 | return _resultobj; |
683 | } | |
684 | ||
2f90df85 RD |
685 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
686 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 687 | PyObject * _resultobj; |
2f90df85 RD |
688 | wxValidator * _arg0; |
689 | wxWindow * _arg1; | |
1d99702e RD |
690 | PyObject * _argo0 = 0; |
691 | PyObject * _argo1 = 0; | |
2f90df85 | 692 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
693 | |
694 | self = self; | |
2f90df85 | 695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 696 | return NULL; |
1d99702e RD |
697 | if (_argo0) { |
698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
701 | return NULL; |
702 | } | |
703 | } | |
1d99702e RD |
704 | if (_argo1) { |
705 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
706 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
708 | return NULL; |
709 | } | |
710 | } | |
711 | { | |
4268f798 | 712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 | 713 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 | 714 | |
4268f798 | 715 | wxPyEndAllowThreads(__tstate); |
493f1553 | 716 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
717 | } Py_INCREF(Py_None); |
718 | _resultobj = Py_None; | |
cf694132 RD |
719 | return _resultobj; |
720 | } | |
721 | ||
9416aa89 RD |
722 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { |
723 | PyObject * _resultobj; | |
724 | bool _result; | |
725 | char *_kwnames[] = { NULL }; | |
726 | ||
727 | self = self; | |
728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
729 | return NULL; | |
730 | { | |
4268f798 | 731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
732 | _result = (bool )wxValidator::IsSilent(); |
733 | ||
4268f798 | 734 | wxPyEndAllowThreads(__tstate); |
493f1553 | 735 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
736 | } _resultobj = Py_BuildValue("i",_result); |
737 | return _resultobj; | |
738 | } | |
739 | ||
740 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
741 | PyObject * _resultobj; | |
742 | int _arg0 = (int ) TRUE; | |
743 | char *_kwnames[] = { "doIt", NULL }; | |
744 | ||
745 | self = self; | |
746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
747 | return NULL; | |
748 | { | |
4268f798 | 749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
750 | wxValidator::SetBellOnError(_arg0); |
751 | ||
4268f798 | 752 | wxPyEndAllowThreads(__tstate); |
493f1553 | 753 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
754 | } Py_INCREF(Py_None); |
755 | _resultobj = Py_None; | |
756 | return _resultobj; | |
757 | } | |
758 | ||
2f90df85 RD |
759 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
760 | wxPyValidator *src; | |
761 | wxValidator *dest; | |
762 | src = (wxPyValidator *) ptr; | |
763 | dest = (wxValidator *) src; | |
764 | return (void *) dest; | |
765 | } | |
766 | ||
767 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
768 | wxPyValidator *src; | |
769 | wxEvtHandler *dest; | |
770 | src = (wxPyValidator *) ptr; | |
771 | dest = (wxEvtHandler *) src; | |
772 | return (void *) dest; | |
773 | } | |
774 | ||
9416aa89 RD |
775 | static void *SwigwxPyValidatorTowxObject(void *ptr) { |
776 | wxPyValidator *src; | |
777 | wxObject *dest; | |
778 | src = (wxPyValidator *) ptr; | |
779 | dest = (wxObject *) src; | |
780 | return (void *) dest; | |
781 | } | |
782 | ||
2f90df85 RD |
783 | #define new_wxPyValidator() (new wxPyValidator()) |
784 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
785 | PyObject * _resultobj; | |
786 | wxPyValidator * _result; | |
787 | char *_kwnames[] = { NULL }; | |
788 | char _ptemp[128]; | |
789 | ||
790 | self = self; | |
791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
792 | return NULL; | |
793 | { | |
4268f798 | 794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
795 | _result = (wxPyValidator *)new_wxPyValidator(); |
796 | ||
4268f798 | 797 | wxPyEndAllowThreads(__tstate); |
493f1553 | 798 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
799 | } if (_result) { |
800 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
801 | _resultobj = Py_BuildValue("s",_ptemp); | |
802 | } else { | |
803 | Py_INCREF(Py_None); | |
804 | _resultobj = Py_None; | |
805 | } | |
806 | return _resultobj; | |
807 | } | |
808 | ||
0122b7e3 RD |
809 | #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2)) |
810 | static PyObject *_wrap_wxPyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 811 | PyObject * _resultobj; |
2f90df85 RD |
812 | wxPyValidator * _arg0; |
813 | PyObject * _arg1; | |
f6bcfd97 BP |
814 | PyObject * _arg2; |
815 | int _arg3 = (int ) TRUE; | |
1d99702e | 816 | PyObject * _argo0 = 0; |
2f90df85 | 817 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
818 | PyObject * _obj2 = 0; |
819 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
820 | |
821 | self = self; | |
0122b7e3 | 822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 823 | return NULL; |
1d99702e RD |
824 | if (_argo0) { |
825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 | 826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
0122b7e3 | 827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p."); |
8ab979d7 RD |
828 | return NULL; |
829 | } | |
830 | } | |
831 | { | |
2f90df85 | 832 | _arg1 = _obj1; |
8ab979d7 | 833 | } |
f6bcfd97 BP |
834 | { |
835 | _arg2 = _obj2; | |
836 | } | |
cf694132 | 837 | { |
4268f798 | 838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0122b7e3 | 839 | wxPyValidator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 840 | |
4268f798 | 841 | wxPyEndAllowThreads(__tstate); |
493f1553 | 842 | if (PyErr_Occurred()) return NULL; |
cf694132 | 843 | } Py_INCREF(Py_None); |
8ab979d7 RD |
844 | _resultobj = Py_None; |
845 | return _resultobj; | |
846 | } | |
847 | ||
848 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
849 | wxWindow *src; | |
850 | wxEvtHandler *dest; | |
851 | src = (wxWindow *) ptr; | |
852 | dest = (wxEvtHandler *) src; | |
853 | return (void *) dest; | |
854 | } | |
855 | ||
9416aa89 RD |
856 | static void *SwigwxWindowTowxObject(void *ptr) { |
857 | wxWindow *src; | |
858 | wxObject *dest; | |
859 | src = (wxWindow *) ptr; | |
860 | dest = (wxObject *) src; | |
861 | return (void *) dest; | |
862 | } | |
863 | ||
8ab979d7 | 864 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 865 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
866 | PyObject * _resultobj; |
867 | wxWindow * _result; | |
868 | wxWindow * _arg0; | |
869 | wxWindowID _arg1; | |
e508a2b6 RD |
870 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
871 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
872 | long _arg4 = (long ) 0; |
873 | char * _arg5 = (char *) "panel"; | |
874 | PyObject * _argo0 = 0; | |
2f90df85 RD |
875 | wxPoint temp; |
876 | PyObject * _obj2 = 0; | |
877 | wxSize temp0; | |
878 | PyObject * _obj3 = 0; | |
efc5f224 | 879 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
880 | char _ptemp[128]; |
881 | ||
882 | self = self; | |
2f90df85 | 883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 884 | return NULL; |
1d99702e RD |
885 | if (_argo0) { |
886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
889 | return NULL; | |
890 | } | |
891 | } | |
2f90df85 RD |
892 | if (_obj2) |
893 | { | |
894 | _arg2 = &temp; | |
895 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 896 | return NULL; |
2f90df85 RD |
897 | } |
898 | if (_obj3) | |
899 | { | |
900 | _arg3 = &temp0; | |
901 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 902 | return NULL; |
2f90df85 | 903 | } |
cf694132 | 904 | { |
4268f798 | 905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
906 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
907 | ||
4268f798 | 908 | wxPyEndAllowThreads(__tstate); |
493f1553 | 909 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
910 | } if (_result) { |
911 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
912 | _resultobj = Py_BuildValue("s",_ptemp); | |
913 | } else { | |
914 | Py_INCREF(Py_None); | |
915 | _resultobj = Py_None; | |
916 | } | |
8ab979d7 RD |
917 | return _resultobj; |
918 | } | |
919 | ||
09f3d4e6 RD |
920 | #define new_wxPreWindow() (new wxWindow()) |
921 | static PyObject *_wrap_new_wxPreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
922 | PyObject * _resultobj; | |
923 | wxWindow * _result; | |
924 | char *_kwnames[] = { NULL }; | |
925 | char _ptemp[128]; | |
926 | ||
927 | self = self; | |
928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreWindow",_kwnames)) | |
929 | return NULL; | |
930 | { | |
4268f798 | 931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
932 | _result = (wxWindow *)new_wxPreWindow(); |
933 | ||
4268f798 | 934 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
935 | if (PyErr_Occurred()) return NULL; |
936 | } if (_result) { | |
937 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
938 | _resultobj = Py_BuildValue("s",_ptemp); | |
939 | } else { | |
940 | Py_INCREF(Py_None); | |
941 | _resultobj = Py_None; | |
942 | } | |
943 | return _resultobj; | |
944 | } | |
945 | ||
946 | #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
947 | static PyObject *_wrap_wxWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
948 | PyObject * _resultobj; | |
949 | bool _result; | |
950 | wxWindow * _arg0; | |
951 | wxWindow * _arg1; | |
952 | wxWindowID _arg2; | |
953 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
954 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
955 | long _arg5 = (long ) 0; | |
956 | char * _arg6 = (char *) "panel"; | |
957 | PyObject * _argo0 = 0; | |
958 | PyObject * _argo1 = 0; | |
959 | wxPoint temp; | |
960 | PyObject * _obj3 = 0; | |
961 | wxSize temp0; | |
962 | PyObject * _obj4 = 0; | |
963 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
964 | ||
965 | self = self; | |
966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
967 | return NULL; | |
968 | if (_argo0) { | |
969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p."); | |
972 | return NULL; | |
973 | } | |
974 | } | |
975 | if (_argo1) { | |
976 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
977 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p."); | |
979 | return NULL; | |
980 | } | |
981 | } | |
982 | if (_obj3) | |
983 | { | |
984 | _arg3 = &temp; | |
985 | if (! wxPoint_helper(_obj3, &_arg3)) | |
986 | return NULL; | |
987 | } | |
988 | if (_obj4) | |
989 | { | |
990 | _arg4 = &temp0; | |
991 | if (! wxSize_helper(_obj4, &_arg4)) | |
992 | return NULL; | |
993 | } | |
994 | { | |
4268f798 | 995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
996 | _result = (bool )wxWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
997 | ||
4268f798 | 998 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
999 | if (PyErr_Occurred()) return NULL; |
1000 | } _resultobj = Py_BuildValue("i",_result); | |
1001 | return _resultobj; | |
1002 | } | |
1003 | ||
8ab979d7 | 1004 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) |
efc5f224 | 1005 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1006 | PyObject * _resultobj; |
1007 | wxWindow * _arg0; | |
1d99702e | 1008 | PyObject * _argo0 = 0; |
efc5f224 | 1009 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1010 | |
1011 | self = self; | |
efc5f224 | 1012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) |
8ab979d7 | 1013 | return NULL; |
1d99702e RD |
1014 | if (_argo0) { |
1015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); |
1018 | return NULL; | |
1019 | } | |
1020 | } | |
cf694132 | 1021 | { |
4268f798 | 1022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1023 | wxWindow_CaptureMouse(_arg0); |
1024 | ||
4268f798 | 1025 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1026 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1027 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1028 | _resultobj = Py_None; |
1029 | return _resultobj; | |
1030 | } | |
1031 | ||
1032 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
efc5f224 | 1033 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1034 | PyObject * _resultobj; |
1035 | wxWindow * _arg0; | |
1d99702e RD |
1036 | int _arg1 = (int ) wxBOTH; |
1037 | PyObject * _argo0 = 0; | |
efc5f224 | 1038 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1039 | |
1040 | self = self; | |
efc5f224 | 1041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1042 | return NULL; |
1d99702e RD |
1043 | if (_argo0) { |
1044 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1045 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
1047 | return NULL; | |
1048 | } | |
1049 | } | |
cf694132 | 1050 | { |
4268f798 | 1051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1052 | wxWindow_Center(_arg0,_arg1); |
1053 | ||
4268f798 | 1054 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1055 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1056 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1057 | _resultobj = Py_None; |
1058 | return _resultobj; | |
1059 | } | |
1060 | ||
1061 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 1062 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1063 | PyObject * _resultobj; |
1064 | wxWindow * _arg0; | |
1d99702e RD |
1065 | int _arg1 = (int ) wxBOTH; |
1066 | PyObject * _argo0 = 0; | |
efc5f224 | 1067 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1068 | |
1069 | self = self; | |
efc5f224 | 1070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1071 | return NULL; |
1d99702e RD |
1072 | if (_argo0) { |
1073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
1076 | return NULL; | |
1077 | } | |
1078 | } | |
cf694132 | 1079 | { |
4268f798 | 1080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1081 | wxWindow_Centre(_arg0,_arg1); |
1082 | ||
4268f798 | 1083 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1084 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1085 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1086 | _resultobj = Py_None; |
1087 | return _resultobj; | |
1088 | } | |
1089 | ||
bb0054cd | 1090 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 1091 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1092 | PyObject * _resultobj; |
1093 | wxWindow * _arg0; | |
1d99702e RD |
1094 | int _arg1 = (int ) wxBOTH; |
1095 | PyObject * _argo0 = 0; | |
efc5f224 | 1096 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1097 | |
1098 | self = self; | |
efc5f224 | 1099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1100 | return NULL; |
1d99702e RD |
1101 | if (_argo0) { |
1102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
1105 | return NULL; | |
1106 | } | |
1107 | } | |
1108 | { | |
4268f798 | 1109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd RD |
1110 | wxWindow_CentreOnParent(_arg0,_arg1); |
1111 | ||
4268f798 | 1112 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1113 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1114 | } Py_INCREF(Py_None); |
1115 | _resultobj = Py_None; | |
1116 | return _resultobj; | |
1117 | } | |
1118 | ||
1119 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 1120 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1121 | PyObject * _resultobj; |
1122 | wxWindow * _arg0; | |
1d99702e RD |
1123 | int _arg1 = (int ) wxBOTH; |
1124 | PyObject * _argo0 = 0; | |
efc5f224 | 1125 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1126 | |
1127 | self = self; | |
efc5f224 | 1128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1129 | return NULL; |
1d99702e RD |
1130 | if (_argo0) { |
1131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
1134 | return NULL; | |
1135 | } | |
1136 | } | |
1137 | { | |
4268f798 | 1138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd RD |
1139 | wxWindow_CenterOnParent(_arg0,_arg1); |
1140 | ||
4268f798 | 1141 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1142 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1143 | } Py_INCREF(Py_None); |
1144 | _resultobj = Py_None; | |
1145 | return _resultobj; | |
1146 | } | |
1147 | ||
3ca6a5f0 BP |
1148 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
1149 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1150 | PyObject * _resultobj; | |
1151 | wxWindow * _arg0; | |
1152 | int _arg1 = (int ) wxBOTH; | |
1153 | PyObject * _argo0 = 0; | |
1154 | char *_kwnames[] = { "self","direction", NULL }; | |
1155 | ||
1156 | self = self; | |
1157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1158 | return NULL; | |
1159 | if (_argo0) { | |
1160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1163 | return NULL; | |
1164 | } | |
1165 | } | |
1166 | { | |
4268f798 | 1167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3ca6a5f0 BP |
1168 | wxWindow_CentreOnScreen(_arg0,_arg1); |
1169 | ||
4268f798 | 1170 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1171 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1172 | } Py_INCREF(Py_None); |
1173 | _resultobj = Py_None; | |
1174 | return _resultobj; | |
1175 | } | |
1176 | ||
1177 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1178 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1179 | PyObject * _resultobj; | |
1180 | wxWindow * _arg0; | |
1181 | int _arg1 = (int ) wxBOTH; | |
1182 | PyObject * _argo0 = 0; | |
1183 | char *_kwnames[] = { "self","direction", NULL }; | |
1184 | ||
1185 | self = self; | |
1186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1187 | return NULL; | |
1188 | if (_argo0) { | |
1189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1192 | return NULL; | |
1193 | } | |
1194 | } | |
1195 | { | |
4268f798 | 1196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3ca6a5f0 BP |
1197 | wxWindow_CenterOnScreen(_arg0,_arg1); |
1198 | ||
4268f798 | 1199 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1200 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1201 | } Py_INCREF(Py_None); |
1202 | _resultobj = Py_None; | |
1203 | return _resultobj; | |
1204 | } | |
1205 | ||
d56cebe7 RD |
1206 | #define wxWindow_Clear(_swigobj) (_swigobj->Clear()) |
1207 | static PyObject *_wrap_wxWindow_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1208 | PyObject * _resultobj; | |
1209 | wxWindow * _arg0; | |
1210 | PyObject * _argo0 = 0; | |
1211 | char *_kwnames[] = { "self", NULL }; | |
1212 | ||
1213 | self = self; | |
1214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Clear",_kwnames,&_argo0)) | |
1215 | return NULL; | |
1216 | if (_argo0) { | |
1217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p."); | |
1220 | return NULL; | |
1221 | } | |
1222 | } | |
1223 | { | |
4268f798 | 1224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d56cebe7 RD |
1225 | wxWindow_Clear(_arg0); |
1226 | ||
4268f798 | 1227 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
1228 | if (PyErr_Occurred()) return NULL; |
1229 | } Py_INCREF(Py_None); | |
1230 | _resultobj = Py_None; | |
1231 | return _resultobj; | |
1232 | } | |
1233 | ||
af309447 | 1234 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1235 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1236 | PyObject * _resultobj; |
1237 | wxWindow * _arg0; | |
1238 | int * _arg1; | |
1239 | int * _arg2; | |
1d99702e | 1240 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1241 | int temp; |
1242 | PyObject * _obj1 = 0; | |
1243 | int temp0; | |
1244 | PyObject * _obj2 = 0; | |
efc5f224 | 1245 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1246 | |
1247 | self = self; | |
efc5f224 | 1248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1249 | return NULL; |
1d99702e RD |
1250 | if (_argo0) { |
1251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1254 | return NULL; |
1255 | } | |
1256 | } | |
1257 | { | |
1258 | temp = (int) PyInt_AsLong(_obj1); | |
1259 | _arg1 = &temp; | |
1260 | } | |
1261 | { | |
1262 | temp0 = (int) PyInt_AsLong(_obj2); | |
1263 | _arg2 = &temp0; | |
1264 | } | |
cf694132 | 1265 | { |
4268f798 | 1266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1267 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); |
1268 | ||
4268f798 | 1269 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1270 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1271 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1272 | _resultobj = Py_None; |
1273 | { | |
1274 | PyObject *o; | |
1275 | o = PyInt_FromLong((long) (*_arg1)); | |
1276 | _resultobj = t_output_helper(_resultobj, o); | |
1277 | } | |
1278 | { | |
1279 | PyObject *o; | |
1280 | o = PyInt_FromLong((long) (*_arg2)); | |
1281 | _resultobj = t_output_helper(_resultobj, o); | |
1282 | } | |
1283 | return _resultobj; | |
1284 | } | |
1285 | ||
af309447 | 1286 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1287 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1288 | PyObject * _resultobj; |
1289 | wxPoint * _result; | |
1290 | wxWindow * _arg0; | |
1291 | wxPoint * _arg1; | |
1d99702e | 1292 | PyObject * _argo0 = 0; |
2f90df85 RD |
1293 | wxPoint temp; |
1294 | PyObject * _obj1 = 0; | |
efc5f224 | 1295 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1296 | char _ptemp[128]; |
1297 | ||
1298 | self = self; | |
2f90df85 | 1299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1300 | return NULL; |
1d99702e RD |
1301 | if (_argo0) { |
1302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1305 | return NULL; | |
1306 | } | |
1307 | } | |
2f90df85 RD |
1308 | { |
1309 | _arg1 = &temp; | |
1310 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1311 | return NULL; |
2f90df85 | 1312 | } |
cf694132 | 1313 | { |
4268f798 | 1314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1315 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); |
1316 | ||
4268f798 | 1317 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1318 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1319 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
1320 | _resultobj = Py_BuildValue("s",_ptemp); |
1321 | return _resultobj; | |
1322 | } | |
1323 | ||
8ab979d7 | 1324 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1325 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1326 | PyObject * _resultobj; |
1327 | bool _result; | |
1328 | wxWindow * _arg0; | |
1d99702e RD |
1329 | int _arg1 = (int ) FALSE; |
1330 | PyObject * _argo0 = 0; | |
efc5f224 | 1331 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1332 | |
1333 | self = self; | |
efc5f224 | 1334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1335 | return NULL; |
1d99702e RD |
1336 | if (_argo0) { |
1337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1340 | return NULL; | |
1341 | } | |
1342 | } | |
cf694132 | 1343 | { |
4268f798 | 1344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1345 | _result = (bool )wxWindow_Close(_arg0,_arg1); |
1346 | ||
4268f798 | 1347 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1348 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1349 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1350 | return _resultobj; |
1351 | } | |
1352 | ||
1353 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1354 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1355 | PyObject * _resultobj; |
1356 | bool _result; | |
1357 | wxWindow * _arg0; | |
1d99702e | 1358 | PyObject * _argo0 = 0; |
efc5f224 | 1359 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1360 | |
1361 | self = self; | |
efc5f224 | 1362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1363 | return NULL; |
1d99702e RD |
1364 | if (_argo0) { |
1365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1368 | return NULL; | |
1369 | } | |
1370 | } | |
cf694132 | 1371 | { |
4268f798 | 1372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1373 | _result = (bool )wxWindow_Destroy(_arg0); |
1374 | ||
4268f798 | 1375 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1376 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1377 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1378 | return _resultobj; |
1379 | } | |
1380 | ||
1381 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1382 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1383 | PyObject * _resultobj; |
1384 | wxWindow * _arg0; | |
1d99702e | 1385 | PyObject * _argo0 = 0; |
efc5f224 | 1386 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1387 | |
1388 | self = self; | |
efc5f224 | 1389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1390 | return NULL; |
1d99702e RD |
1391 | if (_argo0) { |
1392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1395 | return NULL; | |
1396 | } | |
1397 | } | |
cf694132 | 1398 | { |
4268f798 | 1399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1400 | wxWindow_DestroyChildren(_arg0); |
1401 | ||
4268f798 | 1402 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1403 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1404 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1405 | _resultobj = Py_None; |
1406 | return _resultobj; | |
1407 | } | |
1408 | ||
ac346f50 RD |
1409 | #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted()) |
1410 | static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1411 | PyObject * _resultobj; | |
1412 | bool _result; | |
1413 | wxWindow * _arg0; | |
1414 | PyObject * _argo0 = 0; | |
1415 | char *_kwnames[] = { "self", NULL }; | |
1416 | ||
1417 | self = self; | |
1418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0)) | |
1419 | return NULL; | |
1420 | if (_argo0) { | |
1421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p."); | |
1424 | return NULL; | |
1425 | } | |
1426 | } | |
1427 | { | |
4268f798 | 1428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ac346f50 RD |
1429 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); |
1430 | ||
4268f798 | 1431 | wxPyEndAllowThreads(__tstate); |
ac346f50 RD |
1432 | if (PyErr_Occurred()) return NULL; |
1433 | } _resultobj = Py_BuildValue("i",_result); | |
1434 | return _resultobj; | |
1435 | } | |
1436 | ||
8ab979d7 | 1437 | #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0)) |
efc5f224 | 1438 | static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1439 | PyObject * _resultobj; |
1440 | wxWindow * _arg0; | |
1441 | bool _arg1; | |
1d99702e | 1442 | PyObject * _argo0 = 0; |
8ab979d7 | 1443 | int tempbool1; |
efc5f224 | 1444 | char *_kwnames[] = { "self","accept", NULL }; |
8ab979d7 RD |
1445 | |
1446 | self = self; | |
efc5f224 | 1447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1448 | return NULL; |
1d99702e RD |
1449 | if (_argo0) { |
1450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p."); |
1453 | return NULL; | |
1454 | } | |
1455 | } | |
1456 | _arg1 = (bool ) tempbool1; | |
cf694132 | 1457 | { |
4268f798 | 1458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1459 | wxWindow_DragAcceptFiles(_arg0,_arg1); |
1460 | ||
4268f798 | 1461 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1462 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1463 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1464 | _resultobj = Py_None; |
1465 | return _resultobj; | |
1466 | } | |
1467 | ||
1468 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
efc5f224 | 1469 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1470 | PyObject * _resultobj; |
1471 | wxWindow * _arg0; | |
1472 | bool _arg1; | |
1d99702e | 1473 | PyObject * _argo0 = 0; |
8ab979d7 | 1474 | int tempbool1; |
efc5f224 | 1475 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1476 | |
1477 | self = self; | |
efc5f224 | 1478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1479 | return NULL; |
1d99702e RD |
1480 | if (_argo0) { |
1481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1484 | return NULL; | |
1485 | } | |
1486 | } | |
1487 | _arg1 = (bool ) tempbool1; | |
cf694132 | 1488 | { |
4268f798 | 1489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1490 | wxWindow_Enable(_arg0,_arg1); |
1491 | ||
4268f798 | 1492 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1493 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1494 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1495 | _resultobj = Py_None; |
1496 | return _resultobj; | |
1497 | } | |
1498 | ||
af309447 | 1499 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1500 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1501 | PyObject * _resultobj; |
1502 | wxWindow * _result; | |
1503 | wxWindow * _arg0; | |
1504 | long _arg1; | |
1d99702e | 1505 | PyObject * _argo0 = 0; |
efc5f224 | 1506 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1507 | |
1508 | self = self; | |
efc5f224 | 1509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1510 | return NULL; |
1d99702e RD |
1511 | if (_argo0) { |
1512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1515 | return NULL; |
1516 | } | |
1517 | } | |
cf694132 | 1518 | { |
4268f798 | 1519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1520 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); |
1521 | ||
4268f798 | 1522 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1523 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1524 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1525 | return _resultobj; |
1526 | } | |
1527 | ||
1528 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1529 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1530 | PyObject * _resultobj; |
1531 | wxWindow * _result; | |
1532 | wxWindow * _arg0; | |
1533 | wxString * _arg1; | |
1d99702e | 1534 | PyObject * _argo0 = 0; |
8ab979d7 | 1535 | PyObject * _obj1 = 0; |
efc5f224 | 1536 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1537 | |
1538 | self = self; | |
efc5f224 | 1539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1540 | return NULL; |
1d99702e RD |
1541 | if (_argo0) { |
1542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1545 | return NULL; | |
1546 | } | |
1547 | } | |
1548 | { | |
185d7c3e RD |
1549 | #if PYTHON_API_VERSION >= 1009 |
1550 | char* tmpPtr; int tmpSize; | |
1551 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1552 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1553 | return NULL; |
1554 | } | |
1555 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1556 | return NULL; | |
1557 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1558 | #else | |
8ab979d7 RD |
1559 | if (!PyString_Check(_obj1)) { |
1560 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1561 | return NULL; | |
1562 | } | |
185d7c3e RD |
1563 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1564 | #endif | |
8ab979d7 | 1565 | } |
cf694132 | 1566 | { |
4268f798 | 1567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1568 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); |
1569 | ||
4268f798 | 1570 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1571 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1572 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1573 | { |
1574 | if (_obj1) | |
1575 | delete _arg1; | |
1576 | } | |
1577 | return _resultobj; | |
1578 | } | |
1579 | ||
1580 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1581 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1582 | PyObject * _resultobj; |
1583 | wxWindow * _arg0; | |
1d99702e | 1584 | PyObject * _argo0 = 0; |
efc5f224 | 1585 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1586 | |
1587 | self = self; | |
efc5f224 | 1588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1589 | return NULL; |
1d99702e RD |
1590 | if (_argo0) { |
1591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1594 | return NULL; | |
1595 | } | |
1596 | } | |
cf694132 | 1597 | { |
4268f798 | 1598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1599 | wxWindow_Fit(_arg0); |
1600 | ||
4268f798 | 1601 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1602 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1603 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1604 | _resultobj = Py_None; |
1605 | return _resultobj; | |
1606 | } | |
1607 | ||
1608 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
efc5f224 | 1609 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1610 | PyObject * _resultobj; |
1611 | wxColour * _result; | |
1612 | wxWindow * _arg0; | |
1d99702e | 1613 | PyObject * _argo0 = 0; |
efc5f224 | 1614 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1615 | char _ptemp[128]; |
1616 | ||
1617 | self = self; | |
efc5f224 | 1618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1619 | return NULL; |
1d99702e RD |
1620 | if (_argo0) { |
1621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1624 | return NULL; | |
1625 | } | |
1626 | } | |
cf694132 | 1627 | { |
4268f798 | 1628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1629 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); |
1630 | ||
4268f798 | 1631 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1632 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1633 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1634 | _resultobj = Py_BuildValue("s",_ptemp); |
1635 | return _resultobj; | |
1636 | } | |
1637 | ||
23bed520 RD |
1638 | #define wxWindow_GetBorder(_swigobj) (_swigobj->GetBorder()) |
1639 | static PyObject *_wrap_wxWindow_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1640 | PyObject * _resultobj; | |
1641 | wxBorder _result; | |
1642 | wxWindow * _arg0; | |
1643 | PyObject * _argo0 = 0; | |
1644 | char *_kwnames[] = { "self", NULL }; | |
1645 | ||
1646 | self = self; | |
1647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBorder",_kwnames,&_argo0)) | |
1648 | return NULL; | |
1649 | if (_argo0) { | |
1650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBorder. Expected _wxWindow_p."); | |
1653 | return NULL; | |
1654 | } | |
1655 | } | |
1656 | { | |
1657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1658 | _result = (wxBorder )wxWindow_GetBorder(_arg0); | |
1659 | ||
1660 | wxPyEndAllowThreads(__tstate); | |
1661 | if (PyErr_Occurred()) return NULL; | |
1662 | } _resultobj = Py_BuildValue("i",_result); | |
1663 | return _resultobj; | |
1664 | } | |
1665 | ||
d426c97e RD |
1666 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1667 | wxWindowList& list = self->GetChildren(); | |
1668 | return wxPy_ConvertList(&list, "wxWindow"); | |
1669 | } | |
1670 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1671 | PyObject * _resultobj; | |
1672 | PyObject * _result; | |
1673 | wxWindow * _arg0; | |
1674 | PyObject * _argo0 = 0; | |
1675 | char *_kwnames[] = { "self", NULL }; | |
1676 | ||
1677 | self = self; | |
1678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1679 | return NULL; | |
1680 | if (_argo0) { | |
1681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1684 | return NULL; | |
1685 | } | |
1686 | } | |
1687 | { | |
4268f798 | 1688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d426c97e RD |
1689 | _result = (PyObject *)wxWindow_GetChildren(_arg0); |
1690 | ||
4268f798 | 1691 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1692 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
1693 | }{ |
1694 | _resultobj = _result; | |
1695 | } | |
1696 | return _resultobj; | |
1697 | } | |
1698 | ||
8ab979d7 | 1699 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1700 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1701 | PyObject * _resultobj; |
1702 | int _result; | |
1703 | wxWindow * _arg0; | |
1d99702e | 1704 | PyObject * _argo0 = 0; |
efc5f224 | 1705 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1706 | |
1707 | self = self; | |
efc5f224 | 1708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1709 | return NULL; |
1d99702e RD |
1710 | if (_argo0) { |
1711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1714 | return NULL; | |
1715 | } | |
1716 | } | |
cf694132 | 1717 | { |
4268f798 | 1718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1719 | _result = (int )wxWindow_GetCharHeight(_arg0); |
1720 | ||
4268f798 | 1721 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1722 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1723 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1724 | return _resultobj; |
1725 | } | |
1726 | ||
1727 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1728 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1729 | PyObject * _resultobj; |
1730 | int _result; | |
1731 | wxWindow * _arg0; | |
1d99702e | 1732 | PyObject * _argo0 = 0; |
efc5f224 | 1733 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1734 | |
1735 | self = self; | |
efc5f224 | 1736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1737 | return NULL; |
1d99702e RD |
1738 | if (_argo0) { |
1739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1742 | return NULL; | |
1743 | } | |
1744 | } | |
cf694132 | 1745 | { |
4268f798 | 1746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1747 | _result = (int )wxWindow_GetCharWidth(_arg0); |
1748 | ||
4268f798 | 1749 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1750 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1751 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1752 | return _resultobj; |
1753 | } | |
1754 | ||
b8b8dda7 | 1755 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1756 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1757 | PyObject * _resultobj; |
1758 | wxWindow * _arg0; | |
1759 | int * _arg1; | |
1760 | int temp; | |
1761 | int * _arg2; | |
1762 | int temp0; | |
1d99702e | 1763 | PyObject * _argo0 = 0; |
efc5f224 | 1764 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1765 | |
1766 | self = self; | |
1767 | { | |
1768 | _arg1 = &temp; | |
1769 | } | |
1770 | { | |
1771 | _arg2 = &temp0; | |
1772 | } | |
efc5f224 | 1773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1774 | return NULL; |
1d99702e RD |
1775 | if (_argo0) { |
1776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1779 | return NULL; |
1780 | } | |
1781 | } | |
cf694132 | 1782 | { |
4268f798 | 1783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1784 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); |
1785 | ||
4268f798 | 1786 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1787 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1788 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1789 | _resultobj = Py_None; |
1790 | { | |
1791 | PyObject *o; | |
1792 | o = PyInt_FromLong((long) (*_arg1)); | |
1793 | _resultobj = t_output_helper(_resultobj, o); | |
1794 | } | |
1795 | { | |
1796 | PyObject *o; | |
1797 | o = PyInt_FromLong((long) (*_arg2)); | |
1798 | _resultobj = t_output_helper(_resultobj, o); | |
1799 | } | |
1800 | return _resultobj; | |
1801 | } | |
1802 | ||
b8b8dda7 | 1803 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1804 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1805 | PyObject * _resultobj; |
1806 | wxSize * _result; | |
1807 | wxWindow * _arg0; | |
1d99702e | 1808 | PyObject * _argo0 = 0; |
efc5f224 | 1809 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1810 | char _ptemp[128]; |
1811 | ||
1812 | self = self; | |
efc5f224 | 1813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1814 | return NULL; |
1d99702e RD |
1815 | if (_argo0) { |
1816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1819 | return NULL; | |
1820 | } | |
1821 | } | |
cf694132 | 1822 | { |
4268f798 | 1823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1824 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); |
1825 | ||
4268f798 | 1826 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1827 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1828 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
1829 | _resultobj = Py_BuildValue("s",_ptemp); |
1830 | return _resultobj; | |
1831 | } | |
1832 | ||
23bed520 RD |
1833 | #define wxWindow_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin()) |
1834 | static PyObject *_wrap_wxWindow_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1835 | PyObject * _resultobj; | |
1836 | wxPoint * _result; | |
1837 | wxWindow * _arg0; | |
1838 | PyObject * _argo0 = 0; | |
1839 | char *_kwnames[] = { "self", NULL }; | |
1840 | char _ptemp[128]; | |
1841 | ||
1842 | self = self; | |
1843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientAreaOrigin",_kwnames,&_argo0)) | |
1844 | return NULL; | |
1845 | if (_argo0) { | |
1846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientAreaOrigin. Expected _wxWindow_p."); | |
1849 | return NULL; | |
1850 | } | |
1851 | } | |
1852 | { | |
1853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1854 | _result = new wxPoint (wxWindow_GetClientAreaOrigin(_arg0)); | |
1855 | ||
1856 | wxPyEndAllowThreads(__tstate); | |
1857 | if (PyErr_Occurred()) return NULL; | |
1858 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1859 | _resultobj = Py_BuildValue("s",_ptemp); | |
1860 | return _resultobj; | |
1861 | } | |
1862 | ||
1863 | #define wxWindow_GetClientRect(_swigobj) (_swigobj->GetClientRect()) | |
1864 | static PyObject *_wrap_wxWindow_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1865 | PyObject * _resultobj; | |
1866 | wxRect * _result; | |
1867 | wxWindow * _arg0; | |
1868 | PyObject * _argo0 = 0; | |
1869 | char *_kwnames[] = { "self", NULL }; | |
1870 | char _ptemp[128]; | |
1871 | ||
1872 | self = self; | |
1873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientRect",_kwnames,&_argo0)) | |
1874 | return NULL; | |
1875 | if (_argo0) { | |
1876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientRect. Expected _wxWindow_p."); | |
1879 | return NULL; | |
1880 | } | |
1881 | } | |
1882 | { | |
1883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1884 | _result = new wxRect (wxWindow_GetClientRect(_arg0)); | |
1885 | ||
1886 | wxPyEndAllowThreads(__tstate); | |
1887 | if (PyErr_Occurred()) return NULL; | |
1888 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
1889 | _resultobj = Py_BuildValue("s",_ptemp); | |
1890 | return _resultobj; | |
1891 | } | |
1892 | ||
8ab979d7 | 1893 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1894 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1895 | PyObject * _resultobj; |
1896 | wxLayoutConstraints * _result; | |
1897 | wxWindow * _arg0; | |
1d99702e | 1898 | PyObject * _argo0 = 0; |
efc5f224 | 1899 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1900 | char _ptemp[128]; |
1901 | ||
1902 | self = self; | |
efc5f224 | 1903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1904 | return NULL; |
1d99702e RD |
1905 | if (_argo0) { |
1906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1909 | return NULL; | |
1910 | } | |
1911 | } | |
cf694132 | 1912 | { |
4268f798 | 1913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1914 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); |
1915 | ||
4268f798 | 1916 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1917 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1918 | } if (_result) { |
1919 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1920 | _resultobj = Py_BuildValue("s",_ptemp); | |
1921 | } else { | |
1922 | Py_INCREF(Py_None); | |
1923 | _resultobj = Py_None; | |
1924 | } | |
8ab979d7 RD |
1925 | return _resultobj; |
1926 | } | |
1927 | ||
1afc06c2 RD |
1928 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1929 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1930 | PyObject * _resultobj; | |
1931 | wxEvtHandler * _result; | |
1932 | wxWindow * _arg0; | |
1933 | PyObject * _argo0 = 0; | |
1934 | char *_kwnames[] = { "self", NULL }; | |
1afc06c2 RD |
1935 | |
1936 | self = self; | |
1937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1938 | return NULL; | |
1939 | if (_argo0) { | |
1940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1943 | return NULL; | |
1944 | } | |
1945 | } | |
1946 | { | |
4268f798 | 1947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1afc06c2 RD |
1948 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); |
1949 | ||
4268f798 | 1950 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1951 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1952 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
1953 | return _resultobj; |
1954 | } | |
1955 | ||
8ab979d7 | 1956 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 1957 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1958 | PyObject * _resultobj; |
1959 | wxFont * _result; | |
1960 | wxWindow * _arg0; | |
1d99702e | 1961 | PyObject * _argo0 = 0; |
efc5f224 | 1962 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1963 | char _ptemp[128]; |
1964 | ||
1965 | self = self; | |
efc5f224 | 1966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 1967 | return NULL; |
1d99702e RD |
1968 | if (_argo0) { |
1969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
1972 | return NULL; | |
1973 | } | |
1974 | } | |
cf694132 | 1975 | { |
4268f798 | 1976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 1977 | _result = new wxFont (wxWindow_GetFont(_arg0)); |
cf694132 | 1978 | |
4268f798 | 1979 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1980 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1981 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1982 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
1983 | return _resultobj; |
1984 | } | |
1985 | ||
1986 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 1987 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1988 | PyObject * _resultobj; |
1989 | wxColour * _result; | |
1990 | wxWindow * _arg0; | |
1d99702e | 1991 | PyObject * _argo0 = 0; |
efc5f224 | 1992 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1993 | char _ptemp[128]; |
1994 | ||
1995 | self = self; | |
efc5f224 | 1996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1997 | return NULL; |
1d99702e RD |
1998 | if (_argo0) { |
1999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
2002 | return NULL; | |
2003 | } | |
2004 | } | |
cf694132 | 2005 | { |
4268f798 | 2006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2007 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); |
2008 | ||
4268f798 | 2009 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2010 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2011 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
2012 | _resultobj = Py_BuildValue("s",_ptemp); |
2013 | return _resultobj; | |
2014 | } | |
2015 | ||
2016 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 2017 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2018 | PyObject * _resultobj; |
2019 | wxWindow * _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_GetGrandParent",_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_GetGrandParent. Expected _wxWindow_p."); |
2031 | return NULL; | |
2032 | } | |
2033 | } | |
cf694132 | 2034 | { |
4268f798 | 2035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2036 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); |
2037 | ||
4268f798 | 2038 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2039 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2040 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2041 | return _resultobj; |
2042 | } | |
2043 | ||
2abc0a0f | 2044 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 2045 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
2046 | } |
2047 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2048 | PyObject * _resultobj; | |
2049 | long _result; | |
2050 | wxWindow * _arg0; | |
2051 | PyObject * _argo0 = 0; | |
2052 | char *_kwnames[] = { "self", NULL }; | |
2053 | ||
2054 | self = self; | |
2055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
2056 | return NULL; | |
2057 | if (_argo0) { | |
2058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
2061 | return NULL; | |
2062 | } | |
2063 | } | |
2064 | { | |
4268f798 | 2065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2abc0a0f RD |
2066 | _result = (long )wxWindow_GetHandle(_arg0); |
2067 | ||
4268f798 | 2068 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2069 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
2070 | } _resultobj = Py_BuildValue("l",_result); |
2071 | return _resultobj; | |
2072 | } | |
2073 | ||
8ab979d7 | 2074 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 2075 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2076 | PyObject * _resultobj; |
2077 | int _result; | |
2078 | wxWindow * _arg0; | |
1d99702e | 2079 | PyObject * _argo0 = 0; |
efc5f224 | 2080 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2081 | |
2082 | self = self; | |
efc5f224 | 2083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 2084 | return NULL; |
1d99702e RD |
2085 | if (_argo0) { |
2086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
2089 | return NULL; | |
2090 | } | |
2091 | } | |
cf694132 | 2092 | { |
4268f798 | 2093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2094 | _result = (int )wxWindow_GetId(_arg0); |
2095 | ||
4268f798 | 2096 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2097 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2098 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2099 | return _resultobj; |
2100 | } | |
2101 | ||
8ab979d7 | 2102 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 2103 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2104 | PyObject * _resultobj; |
2105 | wxString * _result; | |
2106 | wxWindow * _arg0; | |
1d99702e | 2107 | PyObject * _argo0 = 0; |
efc5f224 | 2108 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2109 | |
2110 | self = self; | |
efc5f224 | 2111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 2112 | return NULL; |
1d99702e RD |
2113 | if (_argo0) { |
2114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
2117 | return NULL; | |
2118 | } | |
2119 | } | |
8ab979d7 | 2120 | { |
4268f798 | 2121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2122 | _result = new wxString (wxWindow_GetLabel(_arg0)); |
2123 | ||
4268f798 | 2124 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2125 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2126 | }{ |
eec92d76 | 2127 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2128 | } |
2129 | { | |
2130 | delete _result; | |
2131 | } | |
2132 | return _resultobj; | |
2133 | } | |
2134 | ||
bb0054cd | 2135 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 2136 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2137 | PyObject * _resultobj; |
2138 | wxWindow * _arg0; | |
2139 | wxString * _arg1; | |
1d99702e | 2140 | PyObject * _argo0 = 0; |
bb0054cd | 2141 | PyObject * _obj1 = 0; |
efc5f224 | 2142 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
2143 | |
2144 | self = self; | |
efc5f224 | 2145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 2146 | return NULL; |
1d99702e RD |
2147 | if (_argo0) { |
2148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
2151 | return NULL; | |
2152 | } | |
2153 | } | |
2154 | { | |
185d7c3e RD |
2155 | #if PYTHON_API_VERSION >= 1009 |
2156 | char* tmpPtr; int tmpSize; | |
2157 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2158 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2159 | return NULL; |
2160 | } | |
2161 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2162 | return NULL; | |
2163 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2164 | #else | |
bb0054cd RD |
2165 | if (!PyString_Check(_obj1)) { |
2166 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2167 | return NULL; | |
2168 | } | |
185d7c3e RD |
2169 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2170 | #endif | |
bb0054cd RD |
2171 | } |
2172 | { | |
4268f798 | 2173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd RD |
2174 | wxWindow_SetLabel(_arg0,*_arg1); |
2175 | ||
4268f798 | 2176 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2177 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2178 | } Py_INCREF(Py_None); |
2179 | _resultobj = Py_None; | |
2180 | { | |
2181 | if (_obj1) | |
2182 | delete _arg1; | |
2183 | } | |
2184 | return _resultobj; | |
2185 | } | |
2186 | ||
8ab979d7 | 2187 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2188 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2189 | PyObject * _resultobj; |
2190 | wxString * _result; | |
2191 | wxWindow * _arg0; | |
1d99702e | 2192 | PyObject * _argo0 = 0; |
efc5f224 | 2193 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2194 | |
2195 | self = self; | |
efc5f224 | 2196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2197 | return NULL; |
1d99702e RD |
2198 | if (_argo0) { |
2199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2202 | return NULL; | |
2203 | } | |
2204 | } | |
8ab979d7 | 2205 | { |
4268f798 | 2206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2207 | _result = new wxString (wxWindow_GetName(_arg0)); |
2208 | ||
4268f798 | 2209 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2210 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2211 | }{ |
eec92d76 | 2212 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2213 | } |
2214 | { | |
2215 | delete _result; | |
2216 | } | |
2217 | return _resultobj; | |
2218 | } | |
2219 | ||
2220 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2221 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2222 | PyObject * _resultobj; |
2223 | wxWindow * _result; | |
2224 | wxWindow * _arg0; | |
1d99702e | 2225 | PyObject * _argo0 = 0; |
efc5f224 | 2226 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2227 | |
2228 | self = self; | |
efc5f224 | 2229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2230 | return NULL; |
1d99702e RD |
2231 | if (_argo0) { |
2232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2235 | return NULL; | |
2236 | } | |
2237 | } | |
cf694132 | 2238 | { |
4268f798 | 2239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2240 | _result = (wxWindow *)wxWindow_GetParent(_arg0); |
2241 | ||
4268f798 | 2242 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2243 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2244 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2245 | return _resultobj; |
2246 | } | |
2247 | ||
b8b8dda7 | 2248 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2249 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2250 | PyObject * _resultobj; |
2251 | wxWindow * _arg0; | |
2252 | int * _arg1; | |
2253 | int temp; | |
2254 | int * _arg2; | |
2255 | int temp0; | |
1d99702e | 2256 | PyObject * _argo0 = 0; |
efc5f224 | 2257 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2258 | |
2259 | self = self; | |
2260 | { | |
2261 | _arg1 = &temp; | |
2262 | } | |
2263 | { | |
2264 | _arg2 = &temp0; | |
2265 | } | |
efc5f224 | 2266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2267 | return NULL; |
1d99702e RD |
2268 | if (_argo0) { |
2269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2272 | return NULL; | |
2273 | } | |
2274 | } | |
cf694132 | 2275 | { |
4268f798 | 2276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2277 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); |
2278 | ||
4268f798 | 2279 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2280 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2281 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
2282 | _resultobj = Py_None; |
2283 | { | |
2284 | PyObject *o; | |
2285 | o = PyInt_FromLong((long) (*_arg1)); | |
2286 | _resultobj = t_output_helper(_resultobj, o); | |
2287 | } | |
2288 | { | |
2289 | PyObject *o; | |
2290 | o = PyInt_FromLong((long) (*_arg2)); | |
2291 | _resultobj = t_output_helper(_resultobj, o); | |
2292 | } | |
2293 | return _resultobj; | |
2294 | } | |
2295 | ||
2296 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2297 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2298 | PyObject * _resultobj; |
2299 | wxPoint * _result; | |
2300 | wxWindow * _arg0; | |
1d99702e | 2301 | PyObject * _argo0 = 0; |
efc5f224 | 2302 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2303 | char _ptemp[128]; |
2304 | ||
2305 | self = self; | |
efc5f224 | 2306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2307 | return NULL; |
1d99702e RD |
2308 | if (_argo0) { |
2309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2312 | return NULL; | |
2313 | } | |
2314 | } | |
cf694132 | 2315 | { |
4268f798 | 2316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2317 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); |
2318 | ||
4268f798 | 2319 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2320 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2321 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
2322 | _resultobj = Py_BuildValue("s",_ptemp); |
2323 | return _resultobj; | |
2324 | } | |
2325 | ||
2326 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2327 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2328 | PyObject * _resultobj; |
2329 | wxRect * _result; | |
2330 | wxWindow * _arg0; | |
1d99702e | 2331 | PyObject * _argo0 = 0; |
efc5f224 | 2332 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2333 | char _ptemp[128]; |
2334 | ||
2335 | self = self; | |
efc5f224 | 2336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2337 | return NULL; |
1d99702e RD |
2338 | if (_argo0) { |
2339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2342 | return NULL; | |
2343 | } | |
2344 | } | |
cf694132 | 2345 | { |
4268f798 | 2346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2347 | _result = new wxRect (wxWindow_GetRect(_arg0)); |
2348 | ||
4268f798 | 2349 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2350 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2351 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
b8b8dda7 RD |
2352 | _resultobj = Py_BuildValue("s",_ptemp); |
2353 | return _resultobj; | |
2354 | } | |
2355 | ||
8ab979d7 | 2356 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2357 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2358 | PyObject * _resultobj; |
2359 | int _result; | |
2360 | wxWindow * _arg0; | |
2361 | int _arg1; | |
1d99702e | 2362 | PyObject * _argo0 = 0; |
efc5f224 | 2363 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2364 | |
2365 | self = self; | |
efc5f224 | 2366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2367 | return NULL; |
1d99702e RD |
2368 | if (_argo0) { |
2369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2372 | return NULL; | |
2373 | } | |
2374 | } | |
cf694132 | 2375 | { |
4268f798 | 2376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2377 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); |
2378 | ||
4268f798 | 2379 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2380 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2381 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2382 | return _resultobj; |
2383 | } | |
2384 | ||
2385 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2386 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2387 | PyObject * _resultobj; |
2388 | int _result; | |
2389 | wxWindow * _arg0; | |
2390 | int _arg1; | |
1d99702e | 2391 | PyObject * _argo0 = 0; |
efc5f224 | 2392 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2393 | |
2394 | self = self; | |
efc5f224 | 2395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2396 | return NULL; |
1d99702e RD |
2397 | if (_argo0) { |
2398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2401 | return NULL; | |
2402 | } | |
2403 | } | |
cf694132 | 2404 | { |
4268f798 | 2405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2406 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); |
2407 | ||
4268f798 | 2408 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2409 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2410 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2411 | return _resultobj; |
2412 | } | |
2413 | ||
2414 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2415 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2416 | PyObject * _resultobj; |
2417 | int _result; | |
2418 | wxWindow * _arg0; | |
2419 | int _arg1; | |
1d99702e | 2420 | PyObject * _argo0 = 0; |
efc5f224 | 2421 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2422 | |
2423 | self = self; | |
efc5f224 | 2424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2425 | return NULL; |
1d99702e RD |
2426 | if (_argo0) { |
2427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2430 | return NULL; | |
2431 | } | |
2432 | } | |
cf694132 | 2433 | { |
4268f798 | 2434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2435 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); |
2436 | ||
4268f798 | 2437 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2438 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2439 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2440 | return _resultobj; |
2441 | } | |
2442 | ||
b8b8dda7 | 2443 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2444 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2445 | PyObject * _resultobj; |
2446 | wxWindow * _arg0; | |
2447 | int * _arg1; | |
2448 | int temp; | |
2449 | int * _arg2; | |
2450 | int temp0; | |
1d99702e | 2451 | PyObject * _argo0 = 0; |
efc5f224 | 2452 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2453 | |
2454 | self = self; | |
2455 | { | |
2456 | _arg1 = &temp; | |
2457 | } | |
2458 | { | |
2459 | _arg2 = &temp0; | |
2460 | } | |
efc5f224 | 2461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2462 | return NULL; |
1d99702e RD |
2463 | if (_argo0) { |
2464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2467 | return NULL; |
2468 | } | |
2469 | } | |
cf694132 | 2470 | { |
4268f798 | 2471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2472 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); |
2473 | ||
4268f798 | 2474 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2475 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2476 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2477 | _resultobj = Py_None; |
2478 | { | |
2479 | PyObject *o; | |
2480 | o = PyInt_FromLong((long) (*_arg1)); | |
2481 | _resultobj = t_output_helper(_resultobj, o); | |
2482 | } | |
2483 | { | |
2484 | PyObject *o; | |
2485 | o = PyInt_FromLong((long) (*_arg2)); | |
2486 | _resultobj = t_output_helper(_resultobj, o); | |
2487 | } | |
2488 | return _resultobj; | |
2489 | } | |
2490 | ||
b8b8dda7 | 2491 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2492 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2493 | PyObject * _resultobj; |
2494 | wxSize * _result; | |
2495 | wxWindow * _arg0; | |
1d99702e | 2496 | PyObject * _argo0 = 0; |
efc5f224 | 2497 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2498 | char _ptemp[128]; |
2499 | ||
2500 | self = self; | |
efc5f224 | 2501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2502 | return NULL; |
1d99702e RD |
2503 | if (_argo0) { |
2504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2507 | return NULL; | |
2508 | } | |
2509 | } | |
cf694132 | 2510 | { |
4268f798 | 2511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2512 | _result = new wxSize (wxWindow_GetSize(_arg0)); |
2513 | ||
4268f798 | 2514 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2515 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2516 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
2517 | _resultobj = Py_BuildValue("s",_ptemp); |
2518 | return _resultobj; | |
2519 | } | |
2520 | ||
8ab979d7 | 2521 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2522 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2523 | PyObject * _resultobj; |
2524 | wxWindow * _arg0; | |
2525 | wxString * _arg1; | |
2526 | int * _arg2; | |
2527 | int temp; | |
2528 | int * _arg3; | |
2529 | int temp0; | |
1d99702e | 2530 | PyObject * _argo0 = 0; |
8ab979d7 | 2531 | PyObject * _obj1 = 0; |
efc5f224 | 2532 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2533 | |
2534 | self = self; | |
2535 | { | |
2536 | _arg2 = &temp; | |
2537 | } | |
2538 | { | |
2539 | _arg3 = &temp0; | |
2540 | } | |
efc5f224 | 2541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2542 | return NULL; |
1d99702e RD |
2543 | if (_argo0) { |
2544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2547 | return NULL; | |
2548 | } | |
2549 | } | |
2550 | { | |
185d7c3e RD |
2551 | #if PYTHON_API_VERSION >= 1009 |
2552 | char* tmpPtr; int tmpSize; | |
2553 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2554 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2555 | return NULL; |
2556 | } | |
2557 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2558 | return NULL; | |
2559 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2560 | #else | |
8ab979d7 RD |
2561 | if (!PyString_Check(_obj1)) { |
2562 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2563 | return NULL; | |
2564 | } | |
185d7c3e RD |
2565 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2566 | #endif | |
8ab979d7 | 2567 | } |
cf694132 | 2568 | { |
4268f798 | 2569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2570 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
2571 | ||
4268f798 | 2572 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2573 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2574 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2575 | _resultobj = Py_None; |
2576 | { | |
2577 | PyObject *o; | |
2578 | o = PyInt_FromLong((long) (*_arg2)); | |
2579 | _resultobj = t_output_helper(_resultobj, o); | |
2580 | } | |
2581 | { | |
2582 | PyObject *o; | |
2583 | o = PyInt_FromLong((long) (*_arg3)); | |
2584 | _resultobj = t_output_helper(_resultobj, o); | |
2585 | } | |
2586 | { | |
2587 | if (_obj1) | |
2588 | delete _arg1; | |
2589 | } | |
2590 | return _resultobj; | |
2591 | } | |
2592 | ||
af309447 | 2593 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2594 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2595 | PyObject * _resultobj; |
2596 | wxWindow * _arg0; | |
2597 | wxString * _arg1; | |
2598 | int * _arg2; | |
2599 | int temp; | |
2600 | int * _arg3; | |
2601 | int temp0; | |
2602 | int * _arg4; | |
2603 | int temp1; | |
2604 | int * _arg5; | |
2605 | int temp2; | |
1d99702e RD |
2606 | wxFont * _arg6 = (wxFont *) NULL; |
2607 | PyObject * _argo0 = 0; | |
af309447 | 2608 | PyObject * _obj1 = 0; |
1d99702e | 2609 | PyObject * _argo6 = 0; |
efc5f224 | 2610 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2611 | |
2612 | self = self; | |
2613 | { | |
2614 | _arg2 = &temp; | |
2615 | } | |
2616 | { | |
2617 | _arg3 = &temp0; | |
2618 | } | |
2619 | { | |
2620 | _arg4 = &temp1; | |
2621 | } | |
2622 | { | |
2623 | _arg5 = &temp2; | |
2624 | } | |
efc5f224 | 2625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2626 | return NULL; |
1d99702e RD |
2627 | if (_argo0) { |
2628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2631 | return NULL; | |
2632 | } | |
2633 | } | |
2634 | { | |
185d7c3e RD |
2635 | #if PYTHON_API_VERSION >= 1009 |
2636 | char* tmpPtr; int tmpSize; | |
2637 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2638 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2639 | return NULL; |
2640 | } | |
2641 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2642 | return NULL; | |
2643 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2644 | #else | |
af309447 RD |
2645 | if (!PyString_Check(_obj1)) { |
2646 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2647 | return NULL; | |
2648 | } | |
185d7c3e RD |
2649 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2650 | #endif | |
af309447 | 2651 | } |
1d99702e RD |
2652 | if (_argo6) { |
2653 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2654 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2656 | return NULL; | |
2657 | } | |
2658 | } | |
cf694132 | 2659 | { |
4268f798 | 2660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2661 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
2662 | ||
4268f798 | 2663 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2664 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2665 | } Py_INCREF(Py_None); |
af309447 RD |
2666 | _resultobj = Py_None; |
2667 | { | |
2668 | PyObject *o; | |
2669 | o = PyInt_FromLong((long) (*_arg2)); | |
2670 | _resultobj = t_output_helper(_resultobj, o); | |
2671 | } | |
2672 | { | |
2673 | PyObject *o; | |
2674 | o = PyInt_FromLong((long) (*_arg3)); | |
2675 | _resultobj = t_output_helper(_resultobj, o); | |
2676 | } | |
2677 | { | |
2678 | PyObject *o; | |
2679 | o = PyInt_FromLong((long) (*_arg4)); | |
2680 | _resultobj = t_output_helper(_resultobj, o); | |
2681 | } | |
2682 | { | |
2683 | PyObject *o; | |
2684 | o = PyInt_FromLong((long) (*_arg5)); | |
2685 | _resultobj = t_output_helper(_resultobj, o); | |
2686 | } | |
2687 | { | |
2688 | if (_obj1) | |
2689 | delete _arg1; | |
2690 | } | |
2691 | return _resultobj; | |
2692 | } | |
2693 | ||
8ab979d7 | 2694 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2695 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2696 | PyObject * _resultobj; |
2697 | wxString * _result; | |
2698 | wxWindow * _arg0; | |
1d99702e | 2699 | PyObject * _argo0 = 0; |
efc5f224 | 2700 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2701 | |
2702 | self = self; | |
efc5f224 | 2703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2704 | return NULL; |
1d99702e RD |
2705 | if (_argo0) { |
2706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2709 | return NULL; | |
2710 | } | |
2711 | } | |
8ab979d7 | 2712 | { |
4268f798 | 2713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2714 | _result = new wxString (wxWindow_GetTitle(_arg0)); |
2715 | ||
4268f798 | 2716 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2717 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2718 | }{ |
eec92d76 | 2719 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2720 | } |
2721 | { | |
2722 | delete _result; | |
2723 | } | |
2724 | return _resultobj; | |
2725 | } | |
2726 | ||
8bf5d46e | 2727 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2728 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2729 | PyObject * _resultobj; |
2730 | wxRegion * _result; | |
2731 | wxWindow * _arg0; | |
1d99702e | 2732 | PyObject * _argo0 = 0; |
efc5f224 | 2733 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2734 | char _ptemp[128]; |
2735 | ||
2736 | self = self; | |
efc5f224 | 2737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2738 | return NULL; |
1d99702e RD |
2739 | if (_argo0) { |
2740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2743 | return NULL; | |
2744 | } | |
2745 | } | |
2746 | { | |
4268f798 | 2747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8bf5d46e RD |
2748 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); |
2749 | ||
4268f798 | 2750 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2751 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
2752 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); |
2753 | _resultobj = Py_BuildValue("s",_ptemp); | |
2754 | return _resultobj; | |
2755 | } | |
2756 | ||
8ab979d7 | 2757 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2758 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2759 | PyObject * _resultobj; |
2760 | long _result; | |
2761 | wxWindow * _arg0; | |
1d99702e | 2762 | PyObject * _argo0 = 0; |
efc5f224 | 2763 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2764 | |
2765 | self = self; | |
efc5f224 | 2766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 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")) { | |
8ab979d7 RD |
2771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2772 | return NULL; | |
2773 | } | |
2774 | } | |
cf694132 | 2775 | { |
4268f798 | 2776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2777 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); |
2778 | ||
4268f798 | 2779 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2780 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2781 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2782 | return _resultobj; |
2783 | } | |
2784 | ||
f6bcfd97 BP |
2785 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2786 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2787 | PyObject * _resultobj; | |
2788 | wxWindow * _arg0; | |
2789 | long _arg1; | |
2790 | PyObject * _argo0 = 0; | |
2791 | char *_kwnames[] = { "self","style", NULL }; | |
2792 | ||
2793 | self = self; | |
2794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2795 | return NULL; | |
2796 | if (_argo0) { | |
2797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2800 | return NULL; | |
2801 | } | |
2802 | } | |
2803 | { | |
4268f798 | 2804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2805 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); |
2806 | ||
4268f798 | 2807 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2808 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2809 | } Py_INCREF(Py_None); |
2810 | _resultobj = Py_None; | |
2811 | return _resultobj; | |
2812 | } | |
2813 | ||
2814 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2815 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2816 | PyObject * _resultobj; | |
2817 | wxWindow * _arg0; | |
2818 | long _arg1; | |
2819 | PyObject * _argo0 = 0; | |
2820 | char *_kwnames[] = { "self","style", NULL }; | |
2821 | ||
2822 | self = self; | |
2823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2824 | return NULL; | |
2825 | if (_argo0) { | |
2826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2829 | return NULL; | |
2830 | } | |
2831 | } | |
2832 | { | |
4268f798 | 2833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2834 | wxWindow_SetWindowStyle(_arg0,_arg1); |
2835 | ||
4268f798 | 2836 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2837 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2838 | } Py_INCREF(Py_None); |
2839 | _resultobj = Py_None; | |
2840 | return _resultobj; | |
2841 | } | |
2842 | ||
23bed520 RD |
2843 | #define wxWindow_HasScrollbar(_swigobj,_swigarg0) (_swigobj->HasScrollbar(_swigarg0)) |
2844 | static PyObject *_wrap_wxWindow_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2845 | PyObject * _resultobj; | |
2846 | bool _result; | |
2847 | wxWindow * _arg0; | |
2848 | int _arg1; | |
2849 | PyObject * _argo0 = 0; | |
2850 | char *_kwnames[] = { "self","orient", NULL }; | |
2851 | ||
2852 | self = self; | |
2853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_HasScrollbar",_kwnames,&_argo0,&_arg1)) | |
2854 | return NULL; | |
2855 | if (_argo0) { | |
2856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasScrollbar. Expected _wxWindow_p."); | |
2859 | return NULL; | |
2860 | } | |
2861 | } | |
2862 | { | |
2863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2864 | _result = (bool )wxWindow_HasScrollbar(_arg0,_arg1); | |
2865 | ||
2866 | wxPyEndAllowThreads(__tstate); | |
2867 | if (PyErr_Occurred()) return NULL; | |
2868 | } _resultobj = Py_BuildValue("i",_result); | |
2869 | return _resultobj; | |
2870 | } | |
2871 | ||
bb0054cd | 2872 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2873 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2874 | PyObject * _resultobj; |
2875 | bool _result; | |
2876 | wxWindow * _arg0; | |
1d99702e | 2877 | PyObject * _argo0 = 0; |
efc5f224 | 2878 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2879 | |
2880 | self = self; | |
efc5f224 | 2881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2882 | return NULL; |
1d99702e RD |
2883 | if (_argo0) { |
2884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2887 | return NULL; | |
2888 | } | |
2889 | } | |
2890 | { | |
4268f798 | 2891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd RD |
2892 | _result = (bool )wxWindow_Hide(_arg0); |
2893 | ||
4268f798 | 2894 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2895 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2896 | } _resultobj = Py_BuildValue("i",_result); |
2897 | return _resultobj; | |
2898 | } | |
2899 | ||
23bed520 RD |
2900 | #define wxWindow_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0)) |
2901 | static PyObject *_wrap_wxWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2902 | PyObject * _resultobj; | |
2903 | wxHitTest _result; | |
2904 | wxWindow * _arg0; | |
2905 | wxPoint * _arg1; | |
2906 | PyObject * _argo0 = 0; | |
2907 | wxPoint temp; | |
2908 | PyObject * _obj1 = 0; | |
2909 | char *_kwnames[] = { "self","pt", NULL }; | |
2910 | ||
2911 | self = self; | |
2912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_HitTest",_kwnames,&_argo0,&_obj1)) | |
2913 | return NULL; | |
2914 | if (_argo0) { | |
2915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HitTest. Expected _wxWindow_p."); | |
2918 | return NULL; | |
2919 | } | |
2920 | } | |
2921 | { | |
2922 | _arg1 = &temp; | |
2923 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2924 | return NULL; | |
2925 | } | |
2926 | { | |
2927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2928 | _result = (wxHitTest )wxWindow_HitTest(_arg0,*_arg1); | |
2929 | ||
2930 | wxPyEndAllowThreads(__tstate); | |
2931 | if (PyErr_Occurred()) return NULL; | |
2932 | } _resultobj = Py_BuildValue("i",_result); | |
2933 | return _resultobj; | |
2934 | } | |
2935 | ||
8ab979d7 | 2936 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2937 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2938 | PyObject * _resultobj; |
2939 | wxWindow * _arg0; | |
1d99702e | 2940 | PyObject * _argo0 = 0; |
efc5f224 | 2941 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2942 | |
2943 | self = self; | |
efc5f224 | 2944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2945 | return NULL; |
1d99702e RD |
2946 | if (_argo0) { |
2947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2950 | return NULL; | |
2951 | } | |
2952 | } | |
cf694132 | 2953 | { |
4268f798 | 2954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2955 | wxWindow_InitDialog(_arg0); |
2956 | ||
4268f798 | 2957 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2958 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2959 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2960 | _resultobj = Py_None; |
2961 | return _resultobj; | |
2962 | } | |
2963 | ||
2964 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 2965 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2966 | PyObject * _resultobj; |
2967 | bool _result; | |
2968 | wxWindow * _arg0; | |
1d99702e | 2969 | PyObject * _argo0 = 0; |
efc5f224 | 2970 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2971 | |
2972 | self = self; | |
efc5f224 | 2973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 2974 | return NULL; |
1d99702e RD |
2975 | if (_argo0) { |
2976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2979 | return NULL; | |
2980 | } | |
2981 | } | |
cf694132 | 2982 | { |
4268f798 | 2983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
2984 | _result = (bool )wxWindow_IsEnabled(_arg0); |
2985 | ||
4268f798 | 2986 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2987 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2988 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2989 | return _resultobj; |
2990 | } | |
2991 | ||
1b55cabf RD |
2992 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2993 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2994 | PyObject * _resultobj; | |
2995 | bool _result; | |
2996 | wxWindow * _arg0; | |
2997 | int _arg1; | |
2998 | int _arg2; | |
2999 | int _arg3 = (int ) 0; | |
3000 | int _arg4 = (int ) 0; | |
3001 | PyObject * _argo0 = 0; | |
3002 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
3003 | ||
3004 | self = self; | |
3005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
3006 | return NULL; | |
3007 | if (_argo0) { | |
3008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
3011 | return NULL; | |
3012 | } | |
3013 | } | |
3014 | { | |
4268f798 | 3015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1b55cabf RD |
3016 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); |
3017 | ||
4268f798 | 3018 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3019 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3020 | } _resultobj = Py_BuildValue("i",_result); |
3021 | return _resultobj; | |
3022 | } | |
3023 | ||
3024 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
3025 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3026 | PyObject * _resultobj; | |
3027 | bool _result; | |
3028 | wxWindow * _arg0; | |
3029 | wxPoint * _arg1; | |
3030 | PyObject * _argo0 = 0; | |
3031 | wxPoint temp; | |
3032 | PyObject * _obj1 = 0; | |
3033 | char *_kwnames[] = { "self","pt", NULL }; | |
3034 | ||
3035 | self = self; | |
3036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
3037 | return NULL; | |
3038 | if (_argo0) { | |
3039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
3042 | return NULL; | |
3043 | } | |
3044 | } | |
3045 | { | |
3046 | _arg1 = &temp; | |
3047 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3048 | return NULL; | |
3049 | } | |
3050 | { | |
4268f798 | 3051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1b55cabf RD |
3052 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); |
3053 | ||
4268f798 | 3054 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3055 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3056 | } _resultobj = Py_BuildValue("i",_result); |
3057 | return _resultobj; | |
3058 | } | |
3059 | ||
3060 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
3061 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3062 | PyObject * _resultobj; | |
3063 | bool _result; | |
3064 | wxWindow * _arg0; | |
3065 | wxRect * _arg1; | |
3066 | PyObject * _argo0 = 0; | |
3067 | wxRect temp; | |
3068 | PyObject * _obj1 = 0; | |
3069 | char *_kwnames[] = { "self","rect", NULL }; | |
3070 | ||
3071 | self = self; | |
3072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
3073 | return NULL; | |
3074 | if (_argo0) { | |
3075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
3078 | return NULL; | |
3079 | } | |
3080 | } | |
3081 | { | |
3082 | _arg1 = &temp; | |
3083 | if (! wxRect_helper(_obj1, &_arg1)) | |
3084 | return NULL; | |
3085 | } | |
3086 | { | |
4268f798 | 3087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1b55cabf RD |
3088 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); |
3089 | ||
4268f798 | 3090 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3091 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3092 | } _resultobj = Py_BuildValue("i",_result); |
3093 | return _resultobj; | |
3094 | } | |
3095 | ||
8ab979d7 | 3096 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 3097 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3098 | PyObject * _resultobj; |
3099 | bool _result; | |
3100 | wxWindow * _arg0; | |
1d99702e | 3101 | PyObject * _argo0 = 0; |
efc5f224 | 3102 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3103 | |
3104 | self = self; | |
efc5f224 | 3105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 3106 | return NULL; |
1d99702e RD |
3107 | if (_argo0) { |
3108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
3111 | return NULL; | |
3112 | } | |
3113 | } | |
cf694132 | 3114 | { |
4268f798 | 3115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3116 | _result = (bool )wxWindow_IsRetained(_arg0); |
3117 | ||
4268f798 | 3118 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3119 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3120 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3121 | return _resultobj; |
3122 | } | |
3123 | ||
3124 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 3125 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3126 | PyObject * _resultobj; |
3127 | bool _result; | |
3128 | wxWindow * _arg0; | |
1d99702e | 3129 | PyObject * _argo0 = 0; |
efc5f224 | 3130 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3131 | |
3132 | self = self; | |
efc5f224 | 3133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 3134 | return NULL; |
1d99702e RD |
3135 | if (_argo0) { |
3136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
3139 | return NULL; | |
3140 | } | |
3141 | } | |
cf694132 | 3142 | { |
4268f798 | 3143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3144 | _result = (bool )wxWindow_IsShown(_arg0); |
3145 | ||
4268f798 | 3146 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3147 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3148 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3149 | return _resultobj; |
3150 | } | |
3151 | ||
bb0054cd | 3152 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 3153 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3154 | PyObject * _resultobj; |
3155 | bool _result; | |
3156 | wxWindow * _arg0; | |
1d99702e | 3157 | PyObject * _argo0 = 0; |
efc5f224 | 3158 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
3159 | |
3160 | self = self; | |
efc5f224 | 3161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 3162 | return NULL; |
1d99702e RD |
3163 | if (_argo0) { |
3164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
3167 | return NULL; | |
3168 | } | |
3169 | } | |
3170 | { | |
4268f798 | 3171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd RD |
3172 | _result = (bool )wxWindow_IsTopLevel(_arg0); |
3173 | ||
4268f798 | 3174 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3175 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3176 | } _resultobj = Py_BuildValue("i",_result); |
3177 | return _resultobj; | |
3178 | } | |
3179 | ||
8ab979d7 | 3180 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 3181 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3182 | PyObject * _resultobj; |
3183 | wxWindow * _arg0; | |
1d99702e | 3184 | PyObject * _argo0 = 0; |
efc5f224 | 3185 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3186 | |
3187 | self = self; | |
efc5f224 | 3188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 3189 | return NULL; |
1d99702e RD |
3190 | if (_argo0) { |
3191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
3194 | return NULL; | |
3195 | } | |
3196 | } | |
cf694132 | 3197 | { |
4268f798 | 3198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3199 | wxWindow_Layout(_arg0); |
3200 | ||
4268f798 | 3201 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3202 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3203 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3204 | _resultobj = Py_None; |
3205 | return _resultobj; | |
3206 | } | |
3207 | ||
3208 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3209 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3210 | PyObject * _resultobj; |
3211 | bool _result; | |
3212 | wxWindow * _arg0; | |
3213 | wxWindow * _arg1; | |
3214 | wxString * _arg2; | |
1d99702e RD |
3215 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
3216 | PyObject * _argo0 = 0; | |
3217 | PyObject * _argo1 = 0; | |
8ab979d7 | 3218 | PyObject * _obj2 = 0; |
1d99702e | 3219 | PyObject * _argo3 = 0; |
efc5f224 | 3220 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
8ab979d7 RD |
3221 | |
3222 | self = self; | |
efc5f224 | 3223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
8ab979d7 | 3224 | return NULL; |
1d99702e RD |
3225 | if (_argo0) { |
3226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3229 | return NULL; | |
3230 | } | |
3231 | } | |
1d99702e RD |
3232 | if (_argo1) { |
3233 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3234 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
3235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3236 | return NULL; | |
3237 | } | |
3238 | } | |
3239 | { | |
185d7c3e RD |
3240 | #if PYTHON_API_VERSION >= 1009 |
3241 | char* tmpPtr; int tmpSize; | |
3242 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 3243 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
3244 | return NULL; |
3245 | } | |
3246 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3247 | return NULL; | |
3248 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3249 | #else | |
8ab979d7 RD |
3250 | if (!PyString_Check(_obj2)) { |
3251 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3252 | return NULL; | |
3253 | } | |
185d7c3e RD |
3254 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3255 | #endif | |
8ab979d7 | 3256 | } |
1d99702e RD |
3257 | if (_argo3) { |
3258 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3259 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
8ab979d7 RD |
3260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
3261 | return NULL; | |
3262 | } | |
3263 | } | |
cf694132 | 3264 | { |
4268f798 | 3265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3266 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); |
3267 | ||
4268f798 | 3268 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3269 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3270 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3271 | { |
3272 | if (_obj2) | |
3273 | delete _arg2; | |
3274 | } | |
3275 | return _resultobj; | |
3276 | } | |
3277 | ||
3278 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
efc5f224 | 3279 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3280 | PyObject * _resultobj; |
3281 | wxWindow * _arg0; | |
1d99702e | 3282 | PyObject * _argo0 = 0; |
efc5f224 | 3283 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3284 | |
3285 | self = self; | |
efc5f224 | 3286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3287 | return NULL; |
1d99702e RD |
3288 | if (_argo0) { |
3289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3292 | return NULL; | |
3293 | } | |
3294 | } | |
cf694132 | 3295 | { |
4268f798 | 3296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3297 | wxWindow_Lower(_arg0); |
3298 | ||
4268f798 | 3299 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3300 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3301 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3302 | _resultobj = Py_None; |
3303 | return _resultobj; | |
3304 | } | |
3305 | ||
3306 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3307 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3308 | PyObject * _resultobj; |
3309 | wxWindow * _arg0; | |
900d9886 | 3310 | bool _arg1 = (bool ) TRUE; |
1d99702e | 3311 | PyObject * _argo0 = 0; |
900d9886 | 3312 | int tempbool1 = (int) TRUE; |
efc5f224 | 3313 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3314 | |
3315 | self = self; | |
900d9886 | 3316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3317 | return NULL; |
1d99702e RD |
3318 | if (_argo0) { |
3319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3322 | return NULL; | |
3323 | } | |
3324 | } | |
3325 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3326 | { |
4268f798 | 3327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3328 | wxWindow_MakeModal(_arg0,_arg1); |
3329 | ||
4268f798 | 3330 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3331 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3332 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3333 | _resultobj = Py_None; |
3334 | return _resultobj; | |
3335 | } | |
3336 | ||
23bed520 | 3337 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Move(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3338 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3339 | PyObject * _resultobj; |
3340 | wxWindow * _arg0; | |
3341 | int _arg1; | |
3342 | int _arg2; | |
23bed520 | 3343 | int _arg3 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 3344 | PyObject * _argo0 = 0; |
23bed520 | 3345 | char *_kwnames[] = { "self","x","y","flags", NULL }; |
8ab979d7 RD |
3346 | |
3347 | self = self; | |
23bed520 | 3348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
af309447 | 3349 | return NULL; |
1d99702e RD |
3350 | if (_argo0) { |
3351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3354 | return NULL; | |
3355 | } | |
3356 | } | |
cf694132 | 3357 | { |
4268f798 | 3358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23bed520 | 3359 | wxWindow_MoveXY(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3360 | |
4268f798 | 3361 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3362 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3363 | } Py_INCREF(Py_None); |
af309447 RD |
3364 | _resultobj = Py_None; |
3365 | return _resultobj; | |
3366 | } | |
3367 | ||
23bed520 | 3368 | #define wxWindow_Move(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3369 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3370 | PyObject * _resultobj; |
3371 | wxWindow * _arg0; | |
3372 | wxPoint * _arg1; | |
23bed520 | 3373 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 3374 | PyObject * _argo0 = 0; |
2f90df85 RD |
3375 | wxPoint temp; |
3376 | PyObject * _obj1 = 0; | |
23bed520 | 3377 | char *_kwnames[] = { "self","point","flags", NULL }; |
af309447 RD |
3378 | |
3379 | self = self; | |
23bed520 | 3380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_Move",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 3381 | return NULL; |
1d99702e RD |
3382 | if (_argo0) { |
3383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3386 | return NULL; | |
3387 | } | |
3388 | } | |
2f90df85 RD |
3389 | { |
3390 | _arg1 = &temp; | |
3391 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3392 | return NULL; |
2f90df85 | 3393 | } |
cf694132 | 3394 | { |
4268f798 | 3395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23bed520 | 3396 | wxWindow_Move(_arg0,*_arg1,_arg2); |
cf694132 | 3397 | |
4268f798 | 3398 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3399 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3400 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3401 | _resultobj = Py_None; |
3402 | return _resultobj; | |
3403 | } | |
3404 | ||
1afc06c2 RD |
3405 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3406 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3407 | PyObject * _resultobj; | |
3408 | wxEvtHandler * _result; | |
3409 | wxWindow * _arg0; | |
3410 | bool _arg1 = (bool ) FALSE; | |
3411 | PyObject * _argo0 = 0; | |
3412 | int tempbool1 = (int) FALSE; | |
3413 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
1afc06c2 RD |
3414 | |
3415 | self = self; | |
3416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3417 | return NULL; | |
3418 | if (_argo0) { | |
3419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3422 | return NULL; | |
3423 | } | |
3424 | } | |
3425 | _arg1 = (bool ) tempbool1; | |
3426 | { | |
4268f798 | 3427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1afc06c2 RD |
3428 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); |
3429 | ||
4268f798 | 3430 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3431 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 3432 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
3433 | return _resultobj; |
3434 | } | |
3435 | ||
3436 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3437 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3438 | PyObject * _resultobj; | |
3439 | wxWindow * _arg0; | |
3440 | wxEvtHandler * _arg1; | |
3441 | PyObject * _argo0 = 0; | |
3442 | PyObject * _argo1 = 0; | |
3443 | char *_kwnames[] = { "self","handler", NULL }; | |
3444 | ||
3445 | self = self; | |
3446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3447 | return NULL; | |
3448 | if (_argo0) { | |
3449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3452 | return NULL; | |
3453 | } | |
3454 | } | |
3455 | if (_argo1) { | |
3456 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3457 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3459 | return NULL; | |
3460 | } | |
3461 | } | |
3462 | { | |
4268f798 | 3463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1afc06c2 RD |
3464 | wxWindow_PushEventHandler(_arg0,_arg1); |
3465 | ||
4268f798 | 3466 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3467 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
3468 | } Py_INCREF(Py_None); |
3469 | _resultobj = Py_None; | |
3470 | return _resultobj; | |
3471 | } | |
3472 | ||
c6c593e8 RD |
3473 | #define wxWindow_RemoveEventHandler(_swigobj,_swigarg0) (_swigobj->RemoveEventHandler(_swigarg0)) |
3474 | static PyObject *_wrap_wxWindow_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3475 | PyObject * _resultobj; | |
3476 | bool _result; | |
3477 | wxWindow * _arg0; | |
3478 | wxEvtHandler * _arg1; | |
3479 | PyObject * _argo0 = 0; | |
3480 | PyObject * _argo1 = 0; | |
3481 | char *_kwnames[] = { "self","handler", NULL }; | |
3482 | ||
3483 | self = self; | |
3484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveEventHandler",_kwnames,&_argo0,&_argo1)) | |
3485 | return NULL; | |
3486 | if (_argo0) { | |
3487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveEventHandler. Expected _wxWindow_p."); | |
3490 | return NULL; | |
3491 | } | |
3492 | } | |
3493 | if (_argo1) { | |
3494 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3495 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveEventHandler. Expected _wxEvtHandler_p."); | |
3497 | return NULL; | |
3498 | } | |
3499 | } | |
3500 | { | |
3501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3502 | _result = (bool )wxWindow_RemoveEventHandler(_arg0,_arg1); | |
3503 | ||
3504 | wxPyEndAllowThreads(__tstate); | |
3505 | if (PyErr_Occurred()) return NULL; | |
3506 | } _resultobj = Py_BuildValue("i",_result); | |
3507 | return _resultobj; | |
3508 | } | |
3509 | ||
8bf5d46e | 3510 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3511 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3512 | PyObject * _resultobj; |
3513 | bool _result; | |
3514 | wxWindow * _arg0; | |
3515 | wxMenu * _arg1; | |
3516 | int _arg2; | |
3517 | int _arg3; | |
1d99702e RD |
3518 | PyObject * _argo0 = 0; |
3519 | PyObject * _argo1 = 0; | |
efc5f224 | 3520 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3521 | |
3522 | self = self; | |
efc5f224 | 3523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3524 | return NULL; |
1d99702e RD |
3525 | if (_argo0) { |
3526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3529 | return NULL; | |
3530 | } | |
3531 | } | |
1d99702e RD |
3532 | if (_argo1) { |
3533 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3534 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3536 | return NULL; | |
3537 | } | |
3538 | } | |
3539 | { | |
4268f798 | 3540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8bf5d46e RD |
3541 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); |
3542 | ||
4268f798 | 3543 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3544 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
3545 | } _resultobj = Py_BuildValue("i",_result); |
3546 | return _resultobj; | |
3547 | } | |
3548 | ||
3549 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3550 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3551 | PyObject * _resultobj; |
3552 | bool _result; | |
3553 | wxWindow * _arg0; | |
3554 | wxMenu * _arg1; | |
3555 | wxPoint * _arg2; | |
1d99702e RD |
3556 | PyObject * _argo0 = 0; |
3557 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3558 | wxPoint temp; |
3559 | PyObject * _obj2 = 0; | |
efc5f224 | 3560 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3561 | |
3562 | self = self; | |
2f90df85 | 3563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3564 | return NULL; |
1d99702e RD |
3565 | if (_argo0) { |
3566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3569 | return NULL; | |
3570 | } | |
3571 | } | |
1d99702e RD |
3572 | if (_argo1) { |
3573 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3574 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3576 | return NULL; | |
3577 | } | |
3578 | } | |
2f90df85 RD |
3579 | { |
3580 | _arg2 = &temp; | |
3581 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3582 | return NULL; |
2f90df85 | 3583 | } |
cf694132 | 3584 | { |
4268f798 | 3585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8bf5d46e | 3586 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 | 3587 | |
4268f798 | 3588 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3589 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3590 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3591 | return _resultobj; |
3592 | } | |
3593 | ||
3594 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3595 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3596 | PyObject * _resultobj; |
3597 | wxWindow * _arg0; | |
1d99702e | 3598 | PyObject * _argo0 = 0; |
efc5f224 | 3599 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3600 | |
3601 | self = self; | |
efc5f224 | 3602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3603 | return NULL; |
1d99702e RD |
3604 | if (_argo0) { |
3605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3608 | return NULL; | |
3609 | } | |
3610 | } | |
cf694132 | 3611 | { |
4268f798 | 3612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3613 | wxWindow_Raise(_arg0); |
3614 | ||
4268f798 | 3615 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3616 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3617 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3618 | _resultobj = Py_None; |
3619 | return _resultobj; | |
3620 | } | |
3621 | ||
3622 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3623 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3624 | PyObject * _resultobj; |
3625 | wxWindow * _arg0; | |
1d99702e RD |
3626 | bool _arg1 = (bool ) TRUE; |
3627 | wxRect * _arg2 = (wxRect *) NULL; | |
3628 | PyObject * _argo0 = 0; | |
3629 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3630 | wxRect temp; |
3631 | PyObject * _obj2 = 0; | |
efc5f224 | 3632 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3633 | |
3634 | self = self; | |
2f90df85 | 3635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3636 | return NULL; |
1d99702e RD |
3637 | if (_argo0) { |
3638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3641 | return NULL; | |
3642 | } | |
3643 | } | |
3644 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3645 | if (_obj2) |
3646 | { | |
3647 | _arg2 = &temp; | |
3648 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3649 | return NULL; |
2f90df85 | 3650 | } |
cf694132 | 3651 | { |
4268f798 | 3652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3653 | wxWindow_Refresh(_arg0,_arg1,_arg2); |
3654 | ||
4268f798 | 3655 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3656 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3657 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3658 | _resultobj = Py_None; |
3659 | return _resultobj; | |
3660 | } | |
3661 | ||
09f3d4e6 RD |
3662 | #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0)) |
3663 | static PyObject *_wrap_wxWindow_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3664 | PyObject * _resultobj; | |
3665 | wxWindow * _arg0; | |
3666 | wxRect * _arg1; | |
3667 | PyObject * _argo0 = 0; | |
3668 | wxRect temp; | |
3669 | PyObject * _obj1 = 0; | |
3670 | char *_kwnames[] = { "self","rect", NULL }; | |
3671 | ||
3672 | self = self; | |
3673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RefreshRect",_kwnames,&_argo0,&_obj1)) | |
3674 | return NULL; | |
3675 | if (_argo0) { | |
3676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p."); | |
3679 | return NULL; | |
3680 | } | |
3681 | } | |
3682 | { | |
3683 | _arg1 = &temp; | |
3684 | if (! wxRect_helper(_obj1, &_arg1)) | |
3685 | return NULL; | |
3686 | } | |
3687 | { | |
4268f798 | 3688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
3689 | wxWindow_RefreshRect(_arg0,*_arg1); |
3690 | ||
4268f798 | 3691 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
3692 | if (PyErr_Occurred()) return NULL; |
3693 | } Py_INCREF(Py_None); | |
3694 | _resultobj = Py_None; | |
3695 | return _resultobj; | |
3696 | } | |
3697 | ||
8ab979d7 | 3698 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) |
efc5f224 | 3699 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3700 | PyObject * _resultobj; |
3701 | wxWindow * _arg0; | |
1d99702e | 3702 | PyObject * _argo0 = 0; |
efc5f224 | 3703 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3704 | |
3705 | self = self; | |
efc5f224 | 3706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
8ab979d7 | 3707 | return NULL; |
1d99702e RD |
3708 | if (_argo0) { |
3709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); |
3712 | return NULL; | |
3713 | } | |
3714 | } | |
cf694132 | 3715 | { |
4268f798 | 3716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3717 | wxWindow_ReleaseMouse(_arg0); |
3718 | ||
4268f798 | 3719 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3720 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3721 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3722 | _resultobj = Py_None; |
3723 | return _resultobj; | |
3724 | } | |
3725 | ||
b7e72427 RD |
3726 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3727 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3728 | PyObject * _resultobj; | |
3729 | wxWindow * _arg0; | |
3730 | wxWindow * _arg1; | |
3731 | PyObject * _argo0 = 0; | |
3732 | PyObject * _argo1 = 0; | |
3733 | char *_kwnames[] = { "self","child", NULL }; | |
3734 | ||
3735 | self = self; | |
3736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3737 | return NULL; | |
3738 | if (_argo0) { | |
3739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3742 | return NULL; | |
3743 | } | |
3744 | } | |
3745 | if (_argo1) { | |
3746 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3747 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3749 | return NULL; | |
3750 | } | |
3751 | } | |
3752 | { | |
4268f798 | 3753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b7e72427 RD |
3754 | wxWindow_RemoveChild(_arg0,_arg1); |
3755 | ||
4268f798 | 3756 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3757 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
3758 | } Py_INCREF(Py_None); |
3759 | _resultobj = Py_None; | |
3760 | return _resultobj; | |
3761 | } | |
3762 | ||
bb0054cd | 3763 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3764 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3765 | PyObject * _resultobj; |
3766 | bool _result; | |
3767 | wxWindow * _arg0; | |
3768 | wxWindow * _arg1; | |
1d99702e RD |
3769 | PyObject * _argo0 = 0; |
3770 | PyObject * _argo1 = 0; | |
efc5f224 | 3771 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3772 | |
3773 | self = self; | |
efc5f224 | 3774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3775 | return NULL; |
1d99702e RD |
3776 | if (_argo0) { |
3777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3780 | return NULL; | |
3781 | } | |
3782 | } | |
1d99702e RD |
3783 | if (_argo1) { |
3784 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3785 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3787 | return NULL; | |
3788 | } | |
3789 | } | |
3790 | { | |
4268f798 | 3791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd RD |
3792 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); |
3793 | ||
4268f798 | 3794 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3795 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3796 | } _resultobj = Py_BuildValue("i",_result); |
3797 | return _resultobj; | |
3798 | } | |
3799 | ||
af309447 | 3800 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3801 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3802 | PyObject * _resultobj; |
3803 | wxWindow * _arg0; | |
3804 | int * _arg1; | |
3805 | int * _arg2; | |
1d99702e | 3806 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3807 | int temp; |
3808 | PyObject * _obj1 = 0; | |
3809 | int temp0; | |
3810 | PyObject * _obj2 = 0; | |
efc5f224 | 3811 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3812 | |
3813 | self = self; | |
efc5f224 | 3814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3815 | return NULL; |
1d99702e RD |
3816 | if (_argo0) { |
3817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3820 | return NULL; |
3821 | } | |
3822 | } | |
3823 | { | |
3824 | temp = (int) PyInt_AsLong(_obj1); | |
3825 | _arg1 = &temp; | |
3826 | } | |
3827 | { | |
3828 | temp0 = (int) PyInt_AsLong(_obj2); | |
3829 | _arg2 = &temp0; | |
3830 | } | |
cf694132 | 3831 | { |
4268f798 | 3832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3833 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); |
3834 | ||
4268f798 | 3835 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3836 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3837 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3838 | _resultobj = Py_None; |
3839 | { | |
3840 | PyObject *o; | |
3841 | o = PyInt_FromLong((long) (*_arg1)); | |
3842 | _resultobj = t_output_helper(_resultobj, o); | |
3843 | } | |
3844 | { | |
3845 | PyObject *o; | |
3846 | o = PyInt_FromLong((long) (*_arg2)); | |
3847 | _resultobj = t_output_helper(_resultobj, o); | |
3848 | } | |
3849 | return _resultobj; | |
3850 | } | |
3851 | ||
af309447 | 3852 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3853 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3854 | PyObject * _resultobj; |
3855 | wxPoint * _result; | |
3856 | wxWindow * _arg0; | |
3857 | wxPoint * _arg1; | |
1d99702e | 3858 | PyObject * _argo0 = 0; |
2f90df85 RD |
3859 | wxPoint temp; |
3860 | PyObject * _obj1 = 0; | |
efc5f224 | 3861 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3862 | char _ptemp[128]; |
3863 | ||
3864 | self = self; | |
2f90df85 | 3865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3866 | return NULL; |
1d99702e RD |
3867 | if (_argo0) { |
3868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3871 | return NULL; | |
3872 | } | |
3873 | } | |
2f90df85 RD |
3874 | { |
3875 | _arg1 = &temp; | |
3876 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3877 | return NULL; |
2f90df85 | 3878 | } |
cf694132 | 3879 | { |
4268f798 | 3880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3881 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); |
3882 | ||
4268f798 | 3883 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3884 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3885 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
3886 | _resultobj = Py_BuildValue("s",_ptemp); |
3887 | return _resultobj; | |
3888 | } | |
3889 | ||
8ab979d7 | 3890 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3891 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3892 | PyObject * _resultobj; |
3893 | wxWindow * _arg0; | |
3894 | int _arg1; | |
3895 | int _arg2; | |
1d99702e RD |
3896 | wxRect * _arg3 = (wxRect *) NULL; |
3897 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3898 | wxRect temp; |
3899 | PyObject * _obj3 = 0; | |
efc5f224 | 3900 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3901 | |
3902 | self = self; | |
2f90df85 | 3903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3904 | return NULL; |
1d99702e RD |
3905 | if (_argo0) { |
3906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3909 | return NULL; | |
3910 | } | |
3911 | } | |
2f90df85 RD |
3912 | if (_obj3) |
3913 | { | |
3914 | _arg3 = &temp; | |
3915 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3916 | return NULL; |
2f90df85 | 3917 | } |
cf694132 | 3918 | { |
4268f798 | 3919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3920 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); |
3921 | ||
4268f798 | 3922 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3923 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3924 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3925 | _resultobj = Py_None; |
3926 | return _resultobj; | |
3927 | } | |
3928 | ||
3929 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) | |
efc5f224 | 3930 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3931 | PyObject * _resultobj; |
3932 | wxWindow * _arg0; | |
3933 | bool _arg1; | |
1d99702e | 3934 | PyObject * _argo0 = 0; |
8ab979d7 | 3935 | int tempbool1; |
efc5f224 | 3936 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3937 | |
3938 | self = self; | |
efc5f224 | 3939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3940 | return NULL; |
1d99702e RD |
3941 | if (_argo0) { |
3942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3945 | return NULL; | |
3946 | } | |
3947 | } | |
3948 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3949 | { |
4268f798 | 3950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3951 | wxWindow_SetAutoLayout(_arg0,_arg1); |
3952 | ||
4268f798 | 3953 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3954 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3955 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3956 | _resultobj = Py_None; |
3957 | return _resultobj; | |
3958 | } | |
3959 | ||
9d8bd15f RD |
3960 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3961 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3962 | PyObject * _resultobj; | |
3963 | bool _result; | |
3964 | wxWindow * _arg0; | |
3965 | PyObject * _argo0 = 0; | |
3966 | char *_kwnames[] = { "self", NULL }; | |
3967 | ||
3968 | self = self; | |
3969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3970 | return NULL; | |
3971 | if (_argo0) { | |
3972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3975 | return NULL; | |
3976 | } | |
3977 | } | |
3978 | { | |
4268f798 | 3979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9d8bd15f RD |
3980 | _result = (bool )wxWindow_GetAutoLayout(_arg0); |
3981 | ||
4268f798 | 3982 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3983 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
3984 | } _resultobj = Py_BuildValue("i",_result); |
3985 | return _resultobj; | |
3986 | } | |
3987 | ||
8ab979d7 | 3988 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3989 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3990 | PyObject * _resultobj; |
3991 | wxWindow * _arg0; | |
3992 | wxColour * _arg1; | |
1d99702e | 3993 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3994 | wxColour temp; |
3995 | PyObject * _obj1 = 0; | |
efc5f224 | 3996 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3997 | |
3998 | self = self; | |
f6bcfd97 | 3999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4000 | return NULL; |
1d99702e RD |
4001 | if (_argo0) { |
4002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
4005 | return NULL; | |
4006 | } | |
4007 | } | |
f6bcfd97 BP |
4008 | { |
4009 | _arg1 = &temp; | |
4010 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4011 | return NULL; |
f6bcfd97 | 4012 | } |
cf694132 | 4013 | { |
4268f798 | 4014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4015 | wxWindow_SetBackgroundColour(_arg0,*_arg1); |
4016 | ||
4268f798 | 4017 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4018 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4019 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4020 | _resultobj = Py_None; |
4021 | return _resultobj; | |
4022 | } | |
4023 | ||
4024 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 4025 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4026 | PyObject * _resultobj; |
4027 | wxWindow * _arg0; | |
4028 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
4029 | PyObject * _argo0 = 0; |
4030 | PyObject * _argo1 = 0; | |
efc5f224 | 4031 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
4032 | |
4033 | self = self; | |
efc5f224 | 4034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4035 | return NULL; |
1d99702e RD |
4036 | if (_argo0) { |
4037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
4040 | return NULL; | |
4041 | } | |
4042 | } | |
1d99702e RD |
4043 | if (_argo1) { |
4044 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4045 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
4046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
4047 | return NULL; | |
4048 | } | |
4049 | } | |
cf694132 | 4050 | { |
4268f798 | 4051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4052 | wxWindow_SetConstraints(_arg0,_arg1); |
4053 | ||
4268f798 | 4054 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4055 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4056 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4057 | _resultobj = Py_None; |
4058 | return _resultobj; | |
4059 | } | |
4060 | ||
2f90df85 RD |
4061 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
4062 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4063 | PyObject * _resultobj; | |
4064 | wxWindow * _arg0; | |
4065 | wxLayoutConstraints * _arg1; | |
4066 | PyObject * _argo0 = 0; | |
4067 | PyObject * _argo1 = 0; | |
4068 | char *_kwnames[] = { "self","constraints", NULL }; | |
4069 | ||
4070 | self = self; | |
4071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
4072 | return NULL; | |
4073 | if (_argo0) { | |
4074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
4077 | return NULL; | |
4078 | } | |
4079 | } | |
4080 | if (_argo1) { | |
4081 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4082 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
4083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
4084 | return NULL; | |
4085 | } | |
4086 | } | |
4087 | { | |
4268f798 | 4088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
4089 | wxWindow_UnsetConstraints(_arg0,_arg1); |
4090 | ||
4268f798 | 4091 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4092 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4093 | } Py_INCREF(Py_None); |
4094 | _resultobj = Py_None; | |
4095 | return _resultobj; | |
4096 | } | |
4097 | ||
8ab979d7 | 4098 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 4099 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4100 | PyObject * _resultobj; |
4101 | wxWindow * _arg0; | |
1d99702e | 4102 | PyObject * _argo0 = 0; |
efc5f224 | 4103 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4104 | |
4105 | self = self; | |
efc5f224 | 4106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 4107 | return NULL; |
1d99702e RD |
4108 | if (_argo0) { |
4109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
4112 | return NULL; | |
4113 | } | |
4114 | } | |
cf694132 | 4115 | { |
4268f798 | 4116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4117 | wxWindow_SetFocus(_arg0); |
4118 | ||
4268f798 | 4119 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4120 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4121 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4122 | _resultobj = Py_None; |
4123 | return _resultobj; | |
4124 | } | |
4125 | ||
2f90df85 RD |
4126 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
4127 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4128 | PyObject * _resultobj; | |
4129 | bool _result; | |
4130 | wxWindow * _arg0; | |
4131 | PyObject * _argo0 = 0; | |
4132 | char *_kwnames[] = { "self", NULL }; | |
4133 | ||
4134 | self = self; | |
4135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
4136 | return NULL; | |
4137 | if (_argo0) { | |
4138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
4141 | return NULL; | |
4142 | } | |
4143 | } | |
4144 | { | |
4268f798 | 4145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
4146 | _result = (bool )wxWindow_AcceptsFocus(_arg0); |
4147 | ||
4268f798 | 4148 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4149 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4150 | } _resultobj = Py_BuildValue("i",_result); |
4151 | return _resultobj; | |
4152 | } | |
4153 | ||
8ab979d7 | 4154 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 4155 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4156 | PyObject * _resultobj; |
4157 | wxWindow * _arg0; | |
4158 | wxFont * _arg1; | |
1d99702e RD |
4159 | PyObject * _argo0 = 0; |
4160 | PyObject * _argo1 = 0; | |
efc5f224 | 4161 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
4162 | |
4163 | self = self; | |
efc5f224 | 4164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4165 | return NULL; |
1d99702e RD |
4166 | if (_argo0) { |
4167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
4170 | return NULL; | |
4171 | } | |
4172 | } | |
1d99702e RD |
4173 | if (_argo1) { |
4174 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4175 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
4176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
4177 | return NULL; | |
4178 | } | |
4179 | } | |
cf694132 | 4180 | { |
4268f798 | 4181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4182 | wxWindow_SetFont(_arg0,*_arg1); |
4183 | ||
4268f798 | 4184 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4185 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4186 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4187 | _resultobj = Py_None; |
4188 | return _resultobj; | |
4189 | } | |
4190 | ||
4191 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 4192 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4193 | PyObject * _resultobj; |
4194 | wxWindow * _arg0; | |
4195 | wxColour * _arg1; | |
1d99702e | 4196 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4197 | wxColour temp; |
4198 | PyObject * _obj1 = 0; | |
efc5f224 | 4199 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
4200 | |
4201 | self = self; | |
f6bcfd97 | 4202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4203 | return NULL; |
1d99702e RD |
4204 | if (_argo0) { |
4205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
4208 | return NULL; | |
4209 | } | |
4210 | } | |
f6bcfd97 BP |
4211 | { |
4212 | _arg1 = &temp; | |
4213 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4214 | return NULL; |
f6bcfd97 | 4215 | } |
cf694132 | 4216 | { |
4268f798 | 4217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4218 | wxWindow_SetForegroundColour(_arg0,*_arg1); |
4219 | ||
4268f798 | 4220 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4221 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4222 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4223 | _resultobj = Py_None; |
4224 | return _resultobj; | |
4225 | } | |
4226 | ||
4227 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 4228 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4229 | PyObject * _resultobj; |
4230 | wxWindow * _arg0; | |
4231 | int _arg1; | |
1d99702e | 4232 | PyObject * _argo0 = 0; |
efc5f224 | 4233 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
4234 | |
4235 | self = self; | |
efc5f224 | 4236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4237 | return NULL; |
1d99702e RD |
4238 | if (_argo0) { |
4239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
4242 | return NULL; | |
4243 | } | |
4244 | } | |
cf694132 | 4245 | { |
4268f798 | 4246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4247 | wxWindow_SetId(_arg0,_arg1); |
4248 | ||
4268f798 | 4249 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4250 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4251 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4252 | _resultobj = Py_None; |
4253 | return _resultobj; | |
4254 | } | |
4255 | ||
4256 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 4257 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4258 | PyObject * _resultobj; |
4259 | wxWindow * _arg0; | |
4260 | wxString * _arg1; | |
1d99702e | 4261 | PyObject * _argo0 = 0; |
8ab979d7 | 4262 | PyObject * _obj1 = 0; |
efc5f224 | 4263 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
4264 | |
4265 | self = self; | |
efc5f224 | 4266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4267 | return NULL; |
1d99702e RD |
4268 | if (_argo0) { |
4269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
4272 | return NULL; | |
4273 | } | |
4274 | } | |
4275 | { | |
185d7c3e RD |
4276 | #if PYTHON_API_VERSION >= 1009 |
4277 | char* tmpPtr; int tmpSize; | |
4278 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4279 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4280 | return NULL; |
4281 | } | |
4282 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4283 | return NULL; | |
4284 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4285 | #else | |
8ab979d7 RD |
4286 | if (!PyString_Check(_obj1)) { |
4287 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4288 | return NULL; | |
4289 | } | |
185d7c3e RD |
4290 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4291 | #endif | |
8ab979d7 | 4292 | } |
cf694132 | 4293 | { |
4268f798 | 4294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4295 | wxWindow_SetName(_arg0,*_arg1); |
4296 | ||
4268f798 | 4297 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4298 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4299 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4300 | _resultobj = Py_None; |
4301 | { | |
4302 | if (_obj1) | |
4303 | delete _arg1; | |
4304 | } | |
4305 | return _resultobj; | |
4306 | } | |
4307 | ||
8ab979d7 | 4308 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4309 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4310 | PyObject * _resultobj; |
4311 | wxWindow * _arg0; | |
4312 | int _arg1; | |
4313 | int _arg2; | |
4314 | int _arg3; | |
4315 | int _arg4; | |
eb715945 | 4316 | int _arg5 = (int ) TRUE; |
1d99702e | 4317 | PyObject * _argo0 = 0; |
efc5f224 | 4318 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4319 | |
4320 | self = self; | |
eb715945 | 4321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4322 | return NULL; |
1d99702e RD |
4323 | if (_argo0) { |
4324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4327 | return NULL; | |
4328 | } | |
4329 | } | |
cf694132 | 4330 | { |
4268f798 | 4331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4332 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
4333 | ||
4268f798 | 4334 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4335 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4336 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4337 | _resultobj = Py_None; |
4338 | return _resultobj; | |
4339 | } | |
4340 | ||
4341 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4342 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4343 | PyObject * _resultobj; |
4344 | wxWindow * _arg0; | |
4345 | int _arg1; | |
4346 | int _arg2; | |
1d99702e RD |
4347 | bool _arg3 = (bool ) TRUE; |
4348 | PyObject * _argo0 = 0; | |
4349 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4350 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4351 | |
4352 | self = self; | |
efc5f224 | 4353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4354 | return NULL; |
1d99702e RD |
4355 | if (_argo0) { |
4356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4359 | return NULL; | |
4360 | } | |
4361 | } | |
4362 | _arg3 = (bool ) tempbool3; | |
cf694132 | 4363 | { |
4268f798 | 4364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4365 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); |
4366 | ||
4268f798 | 4367 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4368 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4369 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4370 | _resultobj = Py_None; |
4371 | return _resultobj; | |
4372 | } | |
4373 | ||
4374 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4375 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4376 | PyObject * _resultobj; |
4377 | wxWindow * _arg0; | |
4378 | int _arg1; | |
4379 | int _arg2; | |
4380 | int _arg3; | |
4381 | int _arg4; | |
1d99702e RD |
4382 | int _arg5 = (int ) wxSIZE_AUTO; |
4383 | PyObject * _argo0 = 0; | |
efc5f224 | 4384 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4385 | |
4386 | self = self; | |
efc5f224 | 4387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4388 | return NULL; |
1d99702e RD |
4389 | if (_argo0) { |
4390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4393 | return NULL; | |
4394 | } | |
4395 | } | |
cf694132 | 4396 | { |
4268f798 | 4397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4398 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
4399 | ||
4268f798 | 4400 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4401 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4402 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4403 | _resultobj = Py_None; |
4404 | return _resultobj; | |
4405 | } | |
4406 | ||
4407 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4408 | self->SetSize(size); |
8ab979d7 | 4409 | } |
efc5f224 | 4410 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4411 | PyObject * _resultobj; |
4412 | wxWindow * _arg0; | |
4413 | wxSize * _arg1; | |
1d99702e | 4414 | PyObject * _argo0 = 0; |
2f90df85 RD |
4415 | wxSize temp; |
4416 | PyObject * _obj1 = 0; | |
efc5f224 | 4417 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4418 | |
4419 | self = self; | |
2f90df85 | 4420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4421 | return NULL; |
1d99702e RD |
4422 | if (_argo0) { |
4423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4426 | return NULL; | |
4427 | } | |
4428 | } | |
2f90df85 RD |
4429 | { |
4430 | _arg1 = &temp; | |
4431 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4432 | return NULL; |
2f90df85 | 4433 | } |
cf694132 | 4434 | { |
4268f798 | 4435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4436 | wxWindow_SetSize(_arg0,*_arg1); |
4437 | ||
4268f798 | 4438 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4439 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4440 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4441 | _resultobj = Py_None; |
4442 | return _resultobj; | |
4443 | } | |
4444 | ||
23bed520 RD |
4445 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos,int flags) { |
4446 | self->Move(pos, flags); | |
8ab979d7 | 4447 | } |
efc5f224 | 4448 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4449 | PyObject * _resultobj; |
4450 | wxWindow * _arg0; | |
4451 | wxPoint * _arg1; | |
23bed520 | 4452 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 4453 | PyObject * _argo0 = 0; |
2f90df85 RD |
4454 | wxPoint temp; |
4455 | PyObject * _obj1 = 0; | |
23bed520 | 4456 | char *_kwnames[] = { "self","pos","flags", NULL }; |
8ab979d7 RD |
4457 | |
4458 | self = self; | |
23bed520 | 4459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 4460 | return NULL; |
1d99702e RD |
4461 | if (_argo0) { |
4462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4465 | return NULL; | |
4466 | } | |
4467 | } | |
2f90df85 RD |
4468 | { |
4469 | _arg1 = &temp; | |
4470 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4471 | return NULL; |
2f90df85 | 4472 | } |
cf694132 | 4473 | { |
4268f798 | 4474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23bed520 | 4475 | wxWindow_SetPosition(_arg0,*_arg1,_arg2); |
cf694132 | 4476 | |
4268f798 | 4477 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4478 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4479 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4480 | _resultobj = Py_None; |
4481 | return _resultobj; | |
4482 | } | |
4483 | ||
dbbb98cd RD |
4484 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4485 | self->SetSize(rect, sizeFlags); | |
4486 | } | |
4487 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4488 | PyObject * _resultobj; | |
4489 | wxWindow * _arg0; | |
4490 | wxRect * _arg1; | |
4491 | int _arg2 = (int ) wxSIZE_AUTO; | |
4492 | PyObject * _argo0 = 0; | |
4493 | wxRect temp; | |
4494 | PyObject * _obj1 = 0; | |
4495 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4496 | ||
4497 | self = self; | |
4498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4499 | return NULL; | |
4500 | if (_argo0) { | |
4501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4504 | return NULL; | |
4505 | } | |
4506 | } | |
4507 | { | |
4508 | _arg1 = &temp; | |
4509 | if (! wxRect_helper(_obj1, &_arg1)) | |
4510 | return NULL; | |
4511 | } | |
4512 | { | |
4268f798 | 4513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
dbbb98cd RD |
4514 | wxWindow_SetRect(_arg0,*_arg1,_arg2); |
4515 | ||
4268f798 | 4516 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4517 | if (PyErr_Occurred()) return NULL; |
dbbb98cd RD |
4518 | } Py_INCREF(Py_None); |
4519 | _resultobj = Py_None; | |
4520 | return _resultobj; | |
4521 | } | |
4522 | ||
8ab979d7 | 4523 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4524 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4525 | PyObject * _resultobj; |
4526 | wxWindow * _arg0; | |
1d99702e RD |
4527 | int _arg1 = (int ) -1; |
4528 | int _arg2 = (int ) -1; | |
4529 | int _arg3 = (int ) -1; | |
4530 | int _arg4 = (int ) -1; | |
4531 | int _arg5 = (int ) -1; | |
4532 | int _arg6 = (int ) -1; | |
4533 | PyObject * _argo0 = 0; | |
efc5f224 | 4534 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4535 | |
4536 | self = self; | |
efc5f224 | 4537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4538 | return NULL; |
1d99702e RD |
4539 | if (_argo0) { |
4540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4543 | return NULL; | |
4544 | } | |
4545 | } | |
cf694132 | 4546 | { |
4268f798 | 4547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4548 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
4549 | ||
4268f798 | 4550 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4551 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4552 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4553 | _resultobj = Py_None; |
4554 | return _resultobj; | |
4555 | } | |
4556 | ||
af309447 | 4557 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4558 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4559 | PyObject * _resultobj; |
4560 | wxWindow * _arg0; | |
4561 | int _arg1; | |
4562 | int _arg2; | |
1d99702e | 4563 | PyObject * _argo0 = 0; |
efc5f224 | 4564 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4565 | |
4566 | self = self; | |
efc5f224 | 4567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4568 | return NULL; |
1d99702e RD |
4569 | if (_argo0) { |
4570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4573 | return NULL; | |
4574 | } | |
4575 | } | |
cf694132 | 4576 | { |
4268f798 | 4577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4578 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); |
4579 | ||
4268f798 | 4580 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4581 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4582 | } Py_INCREF(Py_None); |
af309447 RD |
4583 | _resultobj = Py_None; |
4584 | return _resultobj; | |
4585 | } | |
4586 | ||
4587 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4588 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4589 | PyObject * _resultobj; |
4590 | wxWindow * _arg0; | |
4591 | wxSize * _arg1; | |
1d99702e | 4592 | PyObject * _argo0 = 0; |
2f90df85 RD |
4593 | wxSize temp; |
4594 | PyObject * _obj1 = 0; | |
efc5f224 | 4595 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4596 | |
4597 | self = self; | |
2f90df85 | 4598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4599 | return NULL; |
1d99702e RD |
4600 | if (_argo0) { |
4601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4604 | return NULL; | |
4605 | } | |
4606 | } | |
2f90df85 RD |
4607 | { |
4608 | _arg1 = &temp; | |
4609 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4610 | return NULL; |
2f90df85 | 4611 | } |
cf694132 | 4612 | { |
4268f798 | 4613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4614 | wxWindow_SetClientSize(_arg0,*_arg1); |
4615 | ||
4268f798 | 4616 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4617 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4618 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4619 | _resultobj = Py_None; |
4620 | return _resultobj; | |
4621 | } | |
4622 | ||
4623 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4624 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4625 | PyObject * _resultobj; |
4626 | wxWindow * _arg0; | |
4627 | wxCursor * _arg1; | |
1d99702e RD |
4628 | PyObject * _argo0 = 0; |
4629 | PyObject * _argo1 = 0; | |
efc5f224 | 4630 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4631 | |
4632 | self = self; | |
efc5f224 | 4633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4634 | return NULL; |
1d99702e RD |
4635 | if (_argo0) { |
4636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4639 | return NULL; | |
4640 | } | |
4641 | } | |
1d99702e RD |
4642 | if (_argo1) { |
4643 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4644 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4646 | return NULL; | |
4647 | } | |
4648 | } | |
cf694132 | 4649 | { |
4268f798 | 4650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4651 | wxWindow_SetCursor(_arg0,*_arg1); |
4652 | ||
4268f798 | 4653 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4654 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4655 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4656 | _resultobj = Py_None; |
4657 | return _resultobj; | |
4658 | } | |
4659 | ||
1afc06c2 RD |
4660 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4661 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4662 | PyObject * _resultobj; | |
4663 | wxWindow * _arg0; | |
4664 | wxEvtHandler * _arg1; | |
4665 | PyObject * _argo0 = 0; | |
4666 | PyObject * _argo1 = 0; | |
4667 | char *_kwnames[] = { "self","handler", NULL }; | |
4668 | ||
4669 | self = self; | |
4670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4671 | return NULL; | |
4672 | if (_argo0) { | |
4673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4676 | return NULL; | |
4677 | } | |
4678 | } | |
4679 | if (_argo1) { | |
4680 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4681 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4683 | return NULL; | |
4684 | } | |
4685 | } | |
4686 | { | |
4268f798 | 4687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1afc06c2 RD |
4688 | wxWindow_SetEventHandler(_arg0,_arg1); |
4689 | ||
4268f798 | 4690 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4691 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
4692 | } Py_INCREF(Py_None); |
4693 | _resultobj = Py_None; | |
4694 | return _resultobj; | |
4695 | } | |
4696 | ||
83b18bab RD |
4697 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
4698 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4699 | PyObject * _resultobj; | |
4700 | wxWindow * _arg0; | |
4701 | long _arg1; | |
4702 | PyObject * _argo0 = 0; | |
4703 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4704 | ||
4705 | self = self; | |
4706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4707 | return NULL; | |
4708 | if (_argo0) { | |
4709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4712 | return NULL; | |
4713 | } | |
4714 | } | |
4715 | { | |
4268f798 | 4716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
83b18bab RD |
4717 | wxWindow_SetExtraStyle(_arg0,_arg1); |
4718 | ||
4268f798 | 4719 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4720 | if (PyErr_Occurred()) return NULL; |
83b18bab RD |
4721 | } Py_INCREF(Py_None); |
4722 | _resultobj = Py_None; | |
4723 | return _resultobj; | |
4724 | } | |
4725 | ||
8ab979d7 | 4726 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4727 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4728 | PyObject * _resultobj; |
4729 | wxWindow * _arg0; | |
4730 | wxString * _arg1; | |
1d99702e | 4731 | PyObject * _argo0 = 0; |
8ab979d7 | 4732 | PyObject * _obj1 = 0; |
efc5f224 | 4733 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4734 | |
4735 | self = self; | |
efc5f224 | 4736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4737 | return NULL; |
1d99702e RD |
4738 | if (_argo0) { |
4739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4742 | return NULL; | |
4743 | } | |
4744 | } | |
4745 | { | |
185d7c3e RD |
4746 | #if PYTHON_API_VERSION >= 1009 |
4747 | char* tmpPtr; int tmpSize; | |
4748 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4749 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4750 | return NULL; |
4751 | } | |
4752 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4753 | return NULL; | |
4754 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4755 | #else | |
8ab979d7 RD |
4756 | if (!PyString_Check(_obj1)) { |
4757 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4758 | return NULL; | |
4759 | } | |
185d7c3e RD |
4760 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
4761 | #endif | |
8ab979d7 | 4762 | } |
cf694132 | 4763 | { |
4268f798 | 4764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4765 | wxWindow_SetTitle(_arg0,*_arg1); |
4766 | ||
4268f798 | 4767 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4768 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4769 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4770 | _resultobj = Py_None; |
4771 | { | |
4772 | if (_obj1) | |
4773 | delete _arg1; | |
4774 | } | |
4775 | return _resultobj; | |
4776 | } | |
4777 | ||
4778 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4779 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4780 | PyObject * _resultobj; |
4781 | bool _result; | |
4782 | wxWindow * _arg0; | |
7b7ac0ab | 4783 | bool _arg1 = (bool ) TRUE; |
1d99702e | 4784 | PyObject * _argo0 = 0; |
7b7ac0ab | 4785 | int tempbool1 = (int) TRUE; |
efc5f224 | 4786 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4787 | |
4788 | self = self; | |
7b7ac0ab | 4789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4790 | return NULL; |
1d99702e RD |
4791 | if (_argo0) { |
4792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
4795 | return NULL; | |
4796 | } | |
4797 | } | |
4798 | _arg1 = (bool ) tempbool1; | |
cf694132 | 4799 | { |
4268f798 | 4800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4801 | _result = (bool )wxWindow_Show(_arg0,_arg1); |
4802 | ||
4268f798 | 4803 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4804 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4805 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4806 | return _resultobj; |
4807 | } | |
4808 | ||
4809 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4810 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4811 | PyObject * _resultobj; |
4812 | bool _result; | |
4813 | wxWindow * _arg0; | |
1d99702e | 4814 | PyObject * _argo0 = 0; |
efc5f224 | 4815 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4816 | |
4817 | self = self; | |
efc5f224 | 4818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4819 | return NULL; |
1d99702e RD |
4820 | if (_argo0) { |
4821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4824 | return NULL; | |
4825 | } | |
4826 | } | |
cf694132 | 4827 | { |
4268f798 | 4828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4829 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); |
4830 | ||
4268f798 | 4831 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4832 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4833 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4834 | return _resultobj; |
4835 | } | |
4836 | ||
4837 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4838 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4839 | PyObject * _resultobj; |
4840 | bool _result; | |
4841 | wxWindow * _arg0; | |
1d99702e | 4842 | PyObject * _argo0 = 0; |
efc5f224 | 4843 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4844 | |
4845 | self = self; | |
efc5f224 | 4846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4847 | return NULL; |
1d99702e RD |
4848 | if (_argo0) { |
4849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4852 | return NULL; | |
4853 | } | |
4854 | } | |
cf694132 | 4855 | { |
4268f798 | 4856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4857 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); |
4858 | ||
4268f798 | 4859 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4860 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4861 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4862 | return _resultobj; |
4863 | } | |
4864 | ||
23bed520 RD |
4865 | #define wxWindow_UpdateWindowUI(_swigobj) (_swigobj->UpdateWindowUI()) |
4866 | static PyObject *_wrap_wxWindow_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4867 | PyObject * _resultobj; | |
4868 | wxWindow * _arg0; | |
4869 | PyObject * _argo0 = 0; | |
4870 | char *_kwnames[] = { "self", NULL }; | |
4871 | ||
4872 | self = self; | |
4873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_UpdateWindowUI",_kwnames,&_argo0)) | |
4874 | return NULL; | |
4875 | if (_argo0) { | |
4876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UpdateWindowUI. Expected _wxWindow_p."); | |
4879 | return NULL; | |
4880 | } | |
4881 | } | |
4882 | { | |
4883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4884 | wxWindow_UpdateWindowUI(_arg0); | |
4885 | ||
4886 | wxPyEndAllowThreads(__tstate); | |
4887 | if (PyErr_Occurred()) return NULL; | |
4888 | } Py_INCREF(Py_None); | |
4889 | _resultobj = Py_None; | |
4890 | return _resultobj; | |
4891 | } | |
4892 | ||
8ab979d7 | 4893 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) |
efc5f224 | 4894 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4895 | PyObject * _resultobj; |
4896 | bool _result; | |
4897 | wxWindow * _arg0; | |
1d99702e | 4898 | PyObject * _argo0 = 0; |
efc5f224 | 4899 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4900 | |
4901 | self = self; | |
efc5f224 | 4902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 4903 | return NULL; |
1d99702e RD |
4904 | if (_argo0) { |
4905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
4908 | return NULL; | |
4909 | } | |
4910 | } | |
cf694132 | 4911 | { |
4268f798 | 4912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4913 | _result = (bool )wxWindow_Validate(_arg0); |
4914 | ||
4268f798 | 4915 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4916 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4917 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4918 | return _resultobj; |
4919 | } | |
4920 | ||
4921 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
efc5f224 | 4922 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4923 | PyObject * _resultobj; |
4924 | wxWindow * _arg0; | |
4925 | int _arg1; | |
4926 | int _arg2; | |
1d99702e | 4927 | PyObject * _argo0 = 0; |
efc5f224 | 4928 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
4929 | |
4930 | self = self; | |
efc5f224 | 4931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 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")) { | |
8ab979d7 RD |
4936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); |
4937 | return NULL; | |
4938 | } | |
4939 | } | |
cf694132 | 4940 | { |
4268f798 | 4941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4942 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); |
4943 | ||
4268f798 | 4944 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4945 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4946 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4947 | _resultobj = Py_None; |
4948 | return _resultobj; | |
4949 | } | |
4950 | ||
b8b8dda7 | 4951 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 4952 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4953 | PyObject * _resultobj; |
4954 | wxPoint * _result; | |
4955 | wxWindow * _arg0; | |
4956 | wxPoint * _arg1; | |
1d99702e | 4957 | PyObject * _argo0 = 0; |
2f90df85 RD |
4958 | wxPoint temp; |
4959 | PyObject * _obj1 = 0; | |
efc5f224 | 4960 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4961 | char _ptemp[128]; |
4962 | ||
4963 | self = self; | |
2f90df85 | 4964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4965 | return NULL; |
1d99702e RD |
4966 | if (_argo0) { |
4967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
4970 | return NULL; | |
4971 | } | |
4972 | } | |
2f90df85 RD |
4973 | { |
4974 | _arg1 = &temp; | |
4975 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4976 | return NULL; |
2f90df85 | 4977 | } |
cf694132 | 4978 | { |
4268f798 | 4979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4980 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); |
4981 | ||
4268f798 | 4982 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4983 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4984 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4985 | _resultobj = Py_BuildValue("s",_ptemp); |
4986 | return _resultobj; | |
4987 | } | |
4988 | ||
4989 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 4990 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4991 | PyObject * _resultobj; |
4992 | wxSize * _result; | |
4993 | wxWindow * _arg0; | |
4994 | wxSize * _arg1; | |
1d99702e | 4995 | PyObject * _argo0 = 0; |
2f90df85 RD |
4996 | wxSize temp; |
4997 | PyObject * _obj1 = 0; | |
efc5f224 | 4998 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4999 | char _ptemp[128]; |
5000 | ||
5001 | self = self; | |
2f90df85 | 5002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5003 | return NULL; |
1d99702e RD |
5004 | if (_argo0) { |
5005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
5008 | return NULL; | |
5009 | } | |
5010 | } | |
2f90df85 RD |
5011 | { |
5012 | _arg1 = &temp; | |
5013 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5014 | return NULL; |
2f90df85 | 5015 | } |
cf694132 | 5016 | { |
4268f798 | 5017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5018 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); |
5019 | ||
4268f798 | 5020 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5021 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5022 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
5023 | _resultobj = Py_BuildValue("s",_ptemp); |
5024 | return _resultobj; | |
5025 | } | |
5026 | ||
5027 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 5028 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5029 | PyObject * _resultobj; |
5030 | wxPoint * _result; | |
5031 | wxWindow * _arg0; | |
5032 | wxPoint * _arg1; | |
1d99702e | 5033 | PyObject * _argo0 = 0; |
2f90df85 RD |
5034 | wxPoint temp; |
5035 | PyObject * _obj1 = 0; | |
efc5f224 | 5036 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
5037 | char _ptemp[128]; |
5038 | ||
5039 | self = self; | |
2f90df85 | 5040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5041 | return NULL; |
1d99702e RD |
5042 | if (_argo0) { |
5043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
5046 | return NULL; | |
5047 | } | |
5048 | } | |
2f90df85 RD |
5049 | { |
5050 | _arg1 = &temp; | |
5051 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5052 | return NULL; |
2f90df85 | 5053 | } |
cf694132 | 5054 | { |
4268f798 | 5055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5056 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); |
5057 | ||
4268f798 | 5058 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5059 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5060 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
5061 | _resultobj = Py_BuildValue("s",_ptemp); |
5062 | return _resultobj; | |
5063 | } | |
5064 | ||
5065 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 5066 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5067 | PyObject * _resultobj; |
5068 | wxSize * _result; | |
5069 | wxWindow * _arg0; | |
5070 | wxSize * _arg1; | |
1d99702e | 5071 | PyObject * _argo0 = 0; |
2f90df85 RD |
5072 | wxSize temp; |
5073 | PyObject * _obj1 = 0; | |
efc5f224 | 5074 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
5075 | char _ptemp[128]; |
5076 | ||
5077 | self = self; | |
2f90df85 | 5078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5079 | return NULL; |
1d99702e RD |
5080 | if (_argo0) { |
5081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
5084 | return NULL; | |
5085 | } | |
5086 | } | |
2f90df85 RD |
5087 | { |
5088 | _arg1 = &temp; | |
5089 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5090 | return NULL; |
2f90df85 | 5091 | } |
cf694132 | 5092 | { |
4268f798 | 5093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5094 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); |
5095 | ||
4268f798 | 5096 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5097 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5098 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
5099 | _resultobj = Py_BuildValue("s",_ptemp); |
5100 | return _resultobj; | |
5101 | } | |
5102 | ||
af309447 | 5103 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 5104 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5105 | PyObject * _resultobj; |
5106 | wxWindow * _arg0; | |
5107 | wxString * _arg1; | |
1d99702e | 5108 | PyObject * _argo0 = 0; |
af309447 | 5109 | PyObject * _obj1 = 0; |
efc5f224 | 5110 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
5111 | |
5112 | self = self; | |
efc5f224 | 5113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 5114 | return NULL; |
1d99702e RD |
5115 | if (_argo0) { |
5116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
5119 | return NULL; | |
5120 | } | |
5121 | } | |
5122 | { | |
185d7c3e RD |
5123 | #if PYTHON_API_VERSION >= 1009 |
5124 | char* tmpPtr; int tmpSize; | |
5125 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5126 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5127 | return NULL; |
5128 | } | |
5129 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5130 | return NULL; | |
5131 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5132 | #else | |
af309447 RD |
5133 | if (!PyString_Check(_obj1)) { |
5134 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5135 | return NULL; | |
5136 | } | |
185d7c3e RD |
5137 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
5138 | #endif | |
af309447 | 5139 | } |
cf694132 | 5140 | { |
4268f798 | 5141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5142 | wxWindow_SetToolTipString(_arg0,*_arg1); |
5143 | ||
4268f798 | 5144 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5145 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5146 | } Py_INCREF(Py_None); |
af309447 RD |
5147 | _resultobj = Py_None; |
5148 | { | |
5149 | if (_obj1) | |
5150 | delete _arg1; | |
5151 | } | |
5152 | return _resultobj; | |
5153 | } | |
5154 | ||
5155 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 5156 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5157 | PyObject * _resultobj; |
5158 | wxWindow * _arg0; | |
5159 | wxToolTip * _arg1; | |
1d99702e RD |
5160 | PyObject * _argo0 = 0; |
5161 | PyObject * _argo1 = 0; | |
efc5f224 | 5162 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
5163 | |
5164 | self = self; | |
efc5f224 | 5165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 5166 | return NULL; |
1d99702e RD |
5167 | if (_argo0) { |
5168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
5171 | return NULL; | |
5172 | } | |
5173 | } | |
1d99702e RD |
5174 | if (_argo1) { |
5175 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5176 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
5177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
5178 | return NULL; | |
5179 | } | |
5180 | } | |
cf694132 | 5181 | { |
4268f798 | 5182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5183 | wxWindow_SetToolTip(_arg0,_arg1); |
5184 | ||
4268f798 | 5185 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5186 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5187 | } Py_INCREF(Py_None); |
af309447 RD |
5188 | _resultobj = Py_None; |
5189 | return _resultobj; | |
5190 | } | |
5191 | ||
5192 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 5193 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5194 | PyObject * _resultobj; |
5195 | wxToolTip * _result; | |
5196 | wxWindow * _arg0; | |
1d99702e | 5197 | PyObject * _argo0 = 0; |
efc5f224 | 5198 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
5199 | |
5200 | self = self; | |
efc5f224 | 5201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 5202 | return NULL; |
1d99702e RD |
5203 | if (_argo0) { |
5204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
5207 | return NULL; | |
5208 | } | |
5209 | } | |
cf694132 | 5210 | { |
4268f798 | 5211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5212 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); |
5213 | ||
4268f798 | 5214 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5215 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5216 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
5217 | return _resultobj; |
5218 | } | |
5219 | ||
2f90df85 RD |
5220 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) |
5221 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5222 | PyObject * _resultobj; | |
5223 | wxWindow * _arg0; | |
5224 | wxSizer * _arg1; | |
5225 | PyObject * _argo0 = 0; | |
5226 | PyObject * _argo1 = 0; | |
5227 | char *_kwnames[] = { "self","sizer", NULL }; | |
5228 | ||
5229 | self = self; | |
5230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
5231 | return NULL; | |
5232 | if (_argo0) { | |
5233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
5236 | return NULL; | |
5237 | } | |
5238 | } | |
5239 | if (_argo1) { | |
5240 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5241 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
5243 | return NULL; | |
5244 | } | |
5245 | } | |
5246 | { | |
4268f798 | 5247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
5248 | wxWindow_SetSizer(_arg0,_arg1); |
5249 | ||
4268f798 | 5250 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5251 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5252 | } Py_INCREF(Py_None); |
5253 | _resultobj = Py_None; | |
5254 | return _resultobj; | |
5255 | } | |
5256 | ||
f6bcfd97 BP |
5257 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
5258 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5259 | PyObject * _resultobj; | |
5260 | wxSizer * _result; | |
5261 | wxWindow * _arg0; | |
5262 | PyObject * _argo0 = 0; | |
5263 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
5264 | |
5265 | self = self; | |
5266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
5267 | return NULL; | |
5268 | if (_argo0) { | |
5269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
5272 | return NULL; | |
5273 | } | |
5274 | } | |
5275 | { | |
4268f798 | 5276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
5277 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); |
5278 | ||
4268f798 | 5279 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5280 | if (PyErr_Occurred()) return NULL; |
2f4e9287 | 5281 | }{ _resultobj = wxPyMake_wxSizer(_result); } |
f6bcfd97 BP |
5282 | return _resultobj; |
5283 | } | |
5284 | ||
2f90df85 RD |
5285 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
5286 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5287 | PyObject * _resultobj; | |
5288 | wxValidator * _result; | |
5289 | wxWindow * _arg0; | |
5290 | PyObject * _argo0 = 0; | |
5291 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
5292 | |
5293 | self = self; | |
5294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
5295 | return NULL; | |
5296 | if (_argo0) { | |
5297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
5300 | return NULL; | |
5301 | } | |
5302 | } | |
5303 | { | |
4268f798 | 5304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
5305 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); |
5306 | ||
4268f798 | 5307 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5308 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5309 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
5310 | return _resultobj; |
5311 | } | |
5312 | ||
5313 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5314 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5315 | PyObject * _resultobj; | |
5316 | wxWindow * _arg0; | |
5317 | wxValidator * _arg1; | |
5318 | PyObject * _argo0 = 0; | |
5319 | PyObject * _argo1 = 0; | |
5320 | char *_kwnames[] = { "self","validator", NULL }; | |
5321 | ||
5322 | self = self; | |
5323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
5324 | return NULL; | |
5325 | if (_argo0) { | |
5326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5329 | return NULL; | |
5330 | } | |
5331 | } | |
5332 | if (_argo1) { | |
5333 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5334 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
5335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5336 | return NULL; | |
5337 | } | |
5338 | } | |
5339 | { | |
4268f798 | 5340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
5341 | wxWindow_SetValidator(_arg0,*_arg1); |
5342 | ||
4268f798 | 5343 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5344 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5345 | } Py_INCREF(Py_None); |
5346 | _resultobj = Py_None; | |
5347 | return _resultobj; | |
5348 | } | |
5349 | ||
b1462dfa RD |
5350 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5351 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5352 | PyObject * _resultobj; | |
5353 | wxWindow * _arg0; | |
5354 | wxDropTarget * _arg1; | |
5355 | PyObject * _argo0 = 0; | |
5356 | PyObject * _argo1 = 0; | |
5357 | char *_kwnames[] = { "self","target", NULL }; | |
5358 | ||
5359 | self = self; | |
5360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5361 | return NULL; | |
5362 | if (_argo0) { | |
5363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5366 | return NULL; | |
5367 | } | |
5368 | } | |
5369 | if (_argo1) { | |
5370 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5371 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5373 | return NULL; | |
5374 | } | |
5375 | } | |
5376 | { | |
4268f798 | 5377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
5378 | wxWindow_SetDropTarget(_arg0,_arg1); |
5379 | ||
4268f798 | 5380 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5381 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5382 | } Py_INCREF(Py_None); |
5383 | _resultobj = Py_None; | |
5384 | return _resultobj; | |
5385 | } | |
5386 | ||
5387 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5388 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5389 | PyObject * _resultobj; | |
5390 | wxDropTarget * _result; | |
5391 | wxWindow * _arg0; | |
5392 | PyObject * _argo0 = 0; | |
5393 | char *_kwnames[] = { "self", NULL }; | |
5394 | char _ptemp[128]; | |
5395 | ||
5396 | self = self; | |
5397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5398 | return NULL; | |
5399 | if (_argo0) { | |
5400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5403 | return NULL; | |
5404 | } | |
5405 | } | |
5406 | { | |
4268f798 | 5407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
5408 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); |
5409 | ||
4268f798 | 5410 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5411 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5412 | } if (_result) { |
5413 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5414 | _resultobj = Py_BuildValue("s",_ptemp); | |
5415 | } else { | |
5416 | Py_INCREF(Py_None); | |
5417 | _resultobj = Py_None; | |
5418 | } | |
5419 | return _resultobj; | |
5420 | } | |
5421 | ||
694759cf RD |
5422 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5423 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5424 | PyObject * _resultobj; | |
5425 | wxSize * _result; | |
5426 | wxWindow * _arg0; | |
5427 | PyObject * _argo0 = 0; | |
5428 | char *_kwnames[] = { "self", NULL }; | |
5429 | char _ptemp[128]; | |
5430 | ||
5431 | self = self; | |
5432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5433 | return NULL; | |
5434 | if (_argo0) { | |
5435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5438 | return NULL; | |
5439 | } | |
5440 | } | |
5441 | { | |
4268f798 | 5442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
694759cf RD |
5443 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); |
5444 | ||
4268f798 | 5445 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5446 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5447 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5448 | _resultobj = Py_BuildValue("s",_ptemp); | |
5449 | return _resultobj; | |
5450 | } | |
5451 | ||
a1df7a95 RD |
5452 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5453 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5454 | PyObject * _resultobj; | |
5455 | wxWindow * _arg0; | |
5456 | wxCaret * _arg1; | |
5457 | PyObject * _argo0 = 0; | |
5458 | PyObject * _argo1 = 0; | |
5459 | char *_kwnames[] = { "self","caret", NULL }; | |
5460 | ||
5461 | self = self; | |
5462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5463 | return NULL; | |
5464 | if (_argo0) { | |
5465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5468 | return NULL; | |
5469 | } | |
5470 | } | |
5471 | if (_argo1) { | |
5472 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5473 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5475 | return NULL; | |
5476 | } | |
5477 | } | |
5478 | { | |
4268f798 | 5479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a1df7a95 RD |
5480 | wxWindow_SetCaret(_arg0,_arg1); |
5481 | ||
4268f798 | 5482 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5483 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5484 | } Py_INCREF(Py_None); |
5485 | _resultobj = Py_None; | |
5486 | return _resultobj; | |
5487 | } | |
5488 | ||
5489 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5490 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5491 | PyObject * _resultobj; | |
5492 | wxCaret * _result; | |
5493 | wxWindow * _arg0; | |
5494 | PyObject * _argo0 = 0; | |
5495 | char *_kwnames[] = { "self", NULL }; | |
5496 | char _ptemp[128]; | |
5497 | ||
5498 | self = self; | |
5499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5500 | return NULL; | |
5501 | if (_argo0) { | |
5502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5505 | return NULL; | |
5506 | } | |
5507 | } | |
5508 | { | |
4268f798 | 5509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a1df7a95 RD |
5510 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); |
5511 | ||
4268f798 | 5512 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5513 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5514 | } if (_result) { |
5515 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5516 | _resultobj = Py_BuildValue("s",_ptemp); | |
5517 | } else { | |
5518 | Py_INCREF(Py_None); | |
5519 | _resultobj = Py_None; | |
5520 | } | |
5521 | return _resultobj; | |
5522 | } | |
5523 | ||
3a0958b1 RD |
5524 | #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze()) |
5525 | static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5526 | PyObject * _resultobj; | |
5527 | wxWindow * _arg0; | |
5528 | PyObject * _argo0 = 0; | |
5529 | char *_kwnames[] = { "self", NULL }; | |
5530 | ||
5531 | self = self; | |
5532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0)) | |
5533 | return NULL; | |
5534 | if (_argo0) { | |
5535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p."); | |
5538 | return NULL; | |
5539 | } | |
5540 | } | |
5541 | { | |
4268f798 | 5542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3a0958b1 RD |
5543 | wxWindow_Freeze(_arg0); |
5544 | ||
4268f798 | 5545 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
5546 | if (PyErr_Occurred()) return NULL; |
5547 | } Py_INCREF(Py_None); | |
5548 | _resultobj = Py_None; | |
5549 | return _resultobj; | |
5550 | } | |
5551 | ||
5552 | #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw()) | |
5553 | static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5554 | PyObject * _resultobj; | |
5555 | wxWindow * _arg0; | |
5556 | PyObject * _argo0 = 0; | |
5557 | char *_kwnames[] = { "self", NULL }; | |
5558 | ||
5559 | self = self; | |
5560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0)) | |
5561 | return NULL; | |
5562 | if (_argo0) { | |
5563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p."); | |
5566 | return NULL; | |
5567 | } | |
5568 | } | |
5569 | { | |
4268f798 | 5570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3a0958b1 RD |
5571 | wxWindow_Thaw(_arg0); |
5572 | ||
4268f798 | 5573 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
5574 | if (PyErr_Occurred()) return NULL; |
5575 | } Py_INCREF(Py_None); | |
5576 | _resultobj = Py_None; | |
5577 | return _resultobj; | |
5578 | } | |
5579 | ||
09f3d4e6 RD |
5580 | #define wxWindow_Update(_swigobj) (_swigobj->Update()) |
5581 | static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5582 | PyObject * _resultobj; | |
5583 | wxWindow * _arg0; | |
5584 | PyObject * _argo0 = 0; | |
5585 | char *_kwnames[] = { "self", NULL }; | |
5586 | ||
5587 | self = self; | |
5588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0)) | |
5589 | return NULL; | |
5590 | if (_argo0) { | |
5591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p."); | |
5594 | return NULL; | |
5595 | } | |
5596 | } | |
5597 | { | |
4268f798 | 5598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
5599 | wxWindow_Update(_arg0); |
5600 | ||
4268f798 | 5601 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5602 | if (PyErr_Occurred()) return NULL; |
5603 | } Py_INCREF(Py_None); | |
5604 | _resultobj = Py_None; | |
5605 | return _resultobj; | |
5606 | } | |
5607 | ||
4f3449b4 RD |
5608 | #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText()) |
5609 | static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5610 | PyObject * _resultobj; | |
5611 | wxString * _result; | |
5612 | wxWindow * _arg0; | |
5613 | PyObject * _argo0 = 0; | |
5614 | char *_kwnames[] = { "self", NULL }; | |
5615 | ||
5616 | self = self; | |
5617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0)) | |
5618 | return NULL; | |
5619 | if (_argo0) { | |
5620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p."); | |
5623 | return NULL; | |
5624 | } | |
5625 | } | |
5626 | { | |
4268f798 | 5627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4f3449b4 RD |
5628 | _result = new wxString (wxWindow_GetHelpText(_arg0)); |
5629 | ||
4268f798 | 5630 | wxPyEndAllowThreads(__tstate); |
4f3449b4 RD |
5631 | if (PyErr_Occurred()) return NULL; |
5632 | }{ | |
5633 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5634 | } | |
5635 | { | |
5636 | delete _result; | |
5637 | } | |
5638 | return _resultobj; | |
5639 | } | |
5640 | ||
5641 | #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0)) | |
5642 | static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5643 | PyObject * _resultobj; | |
5644 | wxWindow * _arg0; | |
5645 | wxString * _arg1; | |
5646 | PyObject * _argo0 = 0; | |
5647 | PyObject * _obj1 = 0; | |
5648 | char *_kwnames[] = { "self","helpText", NULL }; | |
5649 | ||
5650 | self = self; | |
5651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1)) | |
5652 | return NULL; | |
5653 | if (_argo0) { | |
5654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p."); | |
5657 | return NULL; | |
5658 | } | |
5659 | } | |
5660 | { | |
5661 | #if PYTHON_API_VERSION >= 1009 | |
5662 | char* tmpPtr; int tmpSize; | |
5663 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5664 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5665 | return NULL; | |
5666 | } | |
5667 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5668 | return NULL; | |
5669 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5670 | #else | |
5671 | if (!PyString_Check(_obj1)) { | |
5672 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5673 | return NULL; | |
5674 | } | |
5675 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5676 | #endif | |
5677 | } | |
5678 | { | |
4268f798 | 5679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4f3449b4 RD |
5680 | wxWindow_SetHelpText(_arg0,*_arg1); |
5681 | ||
4268f798 | 5682 | wxPyEndAllowThreads(__tstate); |
4f3449b4 RD |
5683 | if (PyErr_Occurred()) return NULL; |
5684 | } Py_INCREF(Py_None); | |
5685 | _resultobj = Py_None; | |
5686 | { | |
5687 | if (_obj1) | |
5688 | delete _arg1; | |
5689 | } | |
5690 | return _resultobj; | |
5691 | } | |
5692 | ||
23bed520 RD |
5693 | #define wxWindow_SetHelpTextForId(_swigobj,_swigarg0) (_swigobj->SetHelpTextForId(_swigarg0)) |
5694 | static PyObject *_wrap_wxWindow_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5695 | PyObject * _resultobj; | |
5696 | wxWindow * _arg0; | |
5697 | wxString * _arg1; | |
5698 | PyObject * _argo0 = 0; | |
5699 | PyObject * _obj1 = 0; | |
5700 | char *_kwnames[] = { "self","text", NULL }; | |
5701 | ||
5702 | self = self; | |
5703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpTextForId",_kwnames,&_argo0,&_obj1)) | |
5704 | return NULL; | |
5705 | if (_argo0) { | |
5706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpTextForId. Expected _wxWindow_p."); | |
5709 | return NULL; | |
5710 | } | |
5711 | } | |
5712 | { | |
5713 | #if PYTHON_API_VERSION >= 1009 | |
5714 | char* tmpPtr; int tmpSize; | |
5715 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5716 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5717 | return NULL; | |
5718 | } | |
5719 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5720 | return NULL; | |
5721 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5722 | #else | |
5723 | if (!PyString_Check(_obj1)) { | |
5724 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5725 | return NULL; | |
5726 | } | |
5727 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5728 | #endif | |
5729 | } | |
5730 | { | |
5731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5732 | wxWindow_SetHelpTextForId(_arg0,*_arg1); | |
5733 | ||
5734 | wxPyEndAllowThreads(__tstate); | |
5735 | if (PyErr_Occurred()) return NULL; | |
5736 | } Py_INCREF(Py_None); | |
5737 | _resultobj = Py_None; | |
5738 | { | |
5739 | if (_obj1) | |
5740 | delete _arg1; | |
5741 | } | |
5742 | return _resultobj; | |
5743 | } | |
5744 | ||
c7e7022c RD |
5745 | #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0)) |
5746 | static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5747 | PyObject * _resultobj; | |
5748 | bool _result; | |
5749 | wxWindow * _arg0; | |
5750 | int _arg1; | |
5751 | PyObject * _argo0 = 0; | |
5752 | char *_kwnames[] = { "self","lines", NULL }; | |
5753 | ||
5754 | self = self; | |
5755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1)) | |
5756 | return NULL; | |
5757 | if (_argo0) { | |
5758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p."); | |
5761 | return NULL; | |
5762 | } | |
5763 | } | |
5764 | { | |
4268f798 | 5765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c7e7022c RD |
5766 | _result = (bool )wxWindow_ScrollLines(_arg0,_arg1); |
5767 | ||
4268f798 | 5768 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5769 | if (PyErr_Occurred()) return NULL; |
5770 | } _resultobj = Py_BuildValue("i",_result); | |
5771 | return _resultobj; | |
5772 | } | |
5773 | ||
5774 | #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0)) | |
5775 | static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5776 | PyObject * _resultobj; | |
5777 | bool _result; | |
5778 | wxWindow * _arg0; | |
5779 | int _arg1; | |
5780 | PyObject * _argo0 = 0; | |
5781 | char *_kwnames[] = { "self","pages", NULL }; | |
5782 | ||
5783 | self = self; | |
5784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1)) | |
5785 | return NULL; | |
5786 | if (_argo0) { | |
5787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p."); | |
5790 | return NULL; | |
5791 | } | |
5792 | } | |
5793 | { | |
4268f798 | 5794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c7e7022c RD |
5795 | _result = (bool )wxWindow_ScrollPages(_arg0,_arg1); |
5796 | ||
4268f798 | 5797 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5798 | if (PyErr_Occurred()) return NULL; |
5799 | } _resultobj = Py_BuildValue("i",_result); | |
5800 | return _resultobj; | |
5801 | } | |
5802 | ||
5803 | #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp()) | |
5804 | static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5805 | PyObject * _resultobj; | |
5806 | bool _result; | |
5807 | wxWindow * _arg0; | |
5808 | PyObject * _argo0 = 0; | |
5809 | char *_kwnames[] = { "self", NULL }; | |
5810 | ||
5811 | self = self; | |
5812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0)) | |
5813 | return NULL; | |
5814 | if (_argo0) { | |
5815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p."); | |
5818 | return NULL; | |
5819 | } | |
5820 | } | |
5821 | { | |
4268f798 | 5822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c7e7022c RD |
5823 | _result = (bool )wxWindow_LineUp(_arg0); |
5824 | ||
4268f798 | 5825 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5826 | if (PyErr_Occurred()) return NULL; |
5827 | } _resultobj = Py_BuildValue("i",_result); | |
5828 | return _resultobj; | |
5829 | } | |
5830 | ||
5831 | #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown()) | |
5832 | static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5833 | PyObject * _resultobj; | |
5834 | bool _result; | |
5835 | wxWindow * _arg0; | |
5836 | PyObject * _argo0 = 0; | |
5837 | char *_kwnames[] = { "self", NULL }; | |
5838 | ||
5839 | self = self; | |
5840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0)) | |
5841 | return NULL; | |
5842 | if (_argo0) { | |
5843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p."); | |
5846 | return NULL; | |
5847 | } | |
5848 | } | |
5849 | { | |
4268f798 | 5850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c7e7022c RD |
5851 | _result = (bool )wxWindow_LineDown(_arg0); |
5852 | ||
4268f798 | 5853 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5854 | if (PyErr_Occurred()) return NULL; |
5855 | } _resultobj = Py_BuildValue("i",_result); | |
5856 | return _resultobj; | |
5857 | } | |
5858 | ||
5859 | #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp()) | |
5860 | static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5861 | PyObject * _resultobj; | |
5862 | bool _result; | |
5863 | wxWindow * _arg0; | |
5864 | PyObject * _argo0 = 0; | |
5865 | char *_kwnames[] = { "self", NULL }; | |
5866 | ||
5867 | self = self; | |
5868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0)) | |
5869 | return NULL; | |
5870 | if (_argo0) { | |
5871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p."); | |
5874 | return NULL; | |
5875 | } | |
5876 | } | |
5877 | { | |
4268f798 | 5878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c7e7022c RD |
5879 | _result = (bool )wxWindow_PageUp(_arg0); |
5880 | ||
4268f798 | 5881 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5882 | if (PyErr_Occurred()) return NULL; |
5883 | } _resultobj = Py_BuildValue("i",_result); | |
5884 | return _resultobj; | |
5885 | } | |
5886 | ||
5887 | #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown()) | |
5888 | static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5889 | PyObject * _resultobj; | |
5890 | bool _result; | |
5891 | wxWindow * _arg0; | |
5892 | PyObject * _argo0 = 0; | |
5893 | char *_kwnames[] = { "self", NULL }; | |
5894 | ||
5895 | self = self; | |
5896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0)) | |
5897 | return NULL; | |
5898 | if (_argo0) { | |
5899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p."); | |
5902 | return NULL; | |
5903 | } | |
5904 | } | |
5905 | { | |
4268f798 | 5906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c7e7022c RD |
5907 | _result = (bool )wxWindow_PageDown(_arg0); |
5908 | ||
4268f798 | 5909 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5910 | if (PyErr_Occurred()) return NULL; |
5911 | } _resultobj = Py_BuildValue("i",_result); | |
5912 | return _resultobj; | |
5913 | } | |
5914 | ||
09f3d4e6 RD |
5915 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
5916 | PyObject * _resultobj; | |
5917 | wxWindow * _result; | |
5918 | char *_kwnames[] = { NULL }; | |
5919 | ||
5920 | self = self; | |
5921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
5922 | return NULL; | |
5923 | { | |
4268f798 | 5924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
5925 | _result = (wxWindow *)wxWindow::FindFocus(); |
5926 | ||
4268f798 | 5927 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5928 | if (PyErr_Occurred()) return NULL; |
5929 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5930 | return _resultobj; | |
5931 | } | |
5932 | ||
5933 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5934 | PyObject * _resultobj; | |
5935 | int _result; | |
5936 | char *_kwnames[] = { NULL }; | |
5937 | ||
5938 | self = self; | |
5939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
5940 | return NULL; | |
5941 | { | |
4268f798 | 5942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
5943 | _result = (int )wxWindow::NewControlId(); |
5944 | ||
4268f798 | 5945 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5946 | if (PyErr_Occurred()) return NULL; |
5947 | } _resultobj = Py_BuildValue("i",_result); | |
5948 | return _resultobj; | |
5949 | } | |
5950 | ||
5951 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5952 | PyObject * _resultobj; | |
5953 | int _result; | |
5954 | int _arg0; | |
5955 | char *_kwnames[] = { "id", NULL }; | |
5956 | ||
5957 | self = self; | |
5958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
5959 | return NULL; | |
5960 | { | |
4268f798 | 5961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
5962 | _result = (int )wxWindow::NextControlId(_arg0); |
5963 | ||
4268f798 | 5964 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5965 | if (PyErr_Occurred()) return NULL; |
5966 | } _resultobj = Py_BuildValue("i",_result); | |
5967 | return _resultobj; | |
5968 | } | |
5969 | ||
5970 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5971 | PyObject * _resultobj; | |
5972 | int _result; | |
5973 | int _arg0; | |
5974 | char *_kwnames[] = { "id", NULL }; | |
5975 | ||
5976 | self = self; | |
5977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
5978 | return NULL; | |
5979 | { | |
4268f798 | 5980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
5981 | _result = (int )wxWindow::PrevControlId(_arg0); |
5982 | ||
4268f798 | 5983 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5984 | if (PyErr_Occurred()) return NULL; |
5985 | } _resultobj = Py_BuildValue("i",_result); | |
5986 | return _resultobj; | |
5987 | } | |
5988 | ||
76bfdc78 RD |
5989 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
5990 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5991 | PyObject * _resultobj; | |
5992 | wxWindow * _arg0; | |
5993 | wxAcceleratorTable * _arg1; | |
5994 | PyObject * _argo0 = 0; | |
5995 | PyObject * _argo1 = 0; | |
5996 | char *_kwnames[] = { "self","accel", NULL }; | |
5997 | ||
5998 | self = self; | |
5999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) | |
6000 | return NULL; | |
6001 | if (_argo0) { | |
6002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); | |
6005 | return NULL; | |
6006 | } | |
6007 | } | |
6008 | if (_argo1) { | |
6009 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6010 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
6011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); | |
6012 | return NULL; | |
6013 | } | |
6014 | } | |
6015 | { | |
4268f798 | 6016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
76bfdc78 RD |
6017 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); |
6018 | ||
4268f798 | 6019 | wxPyEndAllowThreads(__tstate); |
76bfdc78 RD |
6020 | if (PyErr_Occurred()) return NULL; |
6021 | } Py_INCREF(Py_None); | |
6022 | _resultobj = Py_None; | |
6023 | return _resultobj; | |
6024 | } | |
6025 | ||
900d9886 RD |
6026 | #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable()) |
6027 | static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6028 | PyObject * _resultobj; | |
6029 | wxAcceleratorTable * _result; | |
6030 | wxWindow * _arg0; | |
6031 | PyObject * _argo0 = 0; | |
6032 | char *_kwnames[] = { "self", NULL }; | |
6033 | char _ptemp[128]; | |
6034 | ||
6035 | self = self; | |
6036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0)) | |
6037 | return NULL; | |
6038 | if (_argo0) { | |
6039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p."); | |
6042 | return NULL; | |
6043 | } | |
6044 | } | |
6045 | { | |
4268f798 | 6046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
900d9886 RD |
6047 | _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0); |
6048 | ||
4268f798 | 6049 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
6050 | if (PyErr_Occurred()) return NULL; |
6051 | } if (_result) { | |
6052 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p"); | |
6053 | _resultobj = Py_BuildValue("s",_ptemp); | |
6054 | } else { | |
6055 | Py_INCREF(Py_None); | |
6056 | _resultobj = Py_None; | |
6057 | } | |
6058 | return _resultobj; | |
6059 | } | |
6060 | ||
07c99b26 RD |
6061 | #define wxWindow_OnPaint(_swigobj,_swigarg0) (_swigobj->OnPaint(_swigarg0)) |
6062 | static PyObject *_wrap_wxWindow_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
78e8819c RD |
6063 | PyObject * _resultobj; |
6064 | wxWindow * _arg0; | |
6065 | wxPaintEvent * _arg1; | |
6066 | PyObject * _argo0 = 0; | |
6067 | PyObject * _argo1 = 0; | |
6068 | char *_kwnames[] = { "self","event", NULL }; | |
6069 | ||
6070 | self = self; | |
07c99b26 | 6071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_OnPaint",_kwnames,&_argo0,&_argo1)) |
78e8819c RD |
6072 | return NULL; |
6073 | if (_argo0) { | |
6074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
07c99b26 | 6076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_OnPaint. Expected _wxWindow_p."); |
78e8819c RD |
6077 | return NULL; |
6078 | } | |
6079 | } | |
6080 | if (_argo1) { | |
6081 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6082 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPaintEvent_p")) { | |
07c99b26 | 6083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_OnPaint. Expected _wxPaintEvent_p."); |
78e8819c RD |
6084 | return NULL; |
6085 | } | |
6086 | } | |
6087 | { | |
4268f798 | 6088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
07c99b26 | 6089 | wxWindow_OnPaint(_arg0,*_arg1); |
78e8819c | 6090 | |
4268f798 | 6091 | wxPyEndAllowThreads(__tstate); |
78e8819c RD |
6092 | if (PyErr_Occurred()) return NULL; |
6093 | } Py_INCREF(Py_None); | |
6094 | _resultobj = Py_None; | |
6095 | return _resultobj; | |
6096 | } | |
6097 | ||
5a2930ab RD |
6098 | #define wxWindow_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
6099 | static PyObject *_wrap_wxWindow_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6100 | PyObject * _resultobj; | |
6101 | wxButton * _result; | |
6102 | wxWindow * _arg0; | |
6103 | PyObject * _argo0 = 0; | |
6104 | char *_kwnames[] = { "self", NULL }; | |
6105 | ||
6106 | self = self; | |
6107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDefaultItem",_kwnames,&_argo0)) | |
6108 | return NULL; | |
6109 | if (_argo0) { | |
6110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDefaultItem. Expected _wxWindow_p."); | |
6113 | return NULL; | |
6114 | } | |
6115 | } | |
6116 | { | |
6117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6118 | _result = (wxButton *)wxWindow_GetDefaultItem(_arg0); | |
6119 | ||
6120 | wxPyEndAllowThreads(__tstate); | |
6121 | if (PyErr_Occurred()) return NULL; | |
6122 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6123 | return _resultobj; | |
6124 | } | |
6125 | ||
6126 | #define wxWindow_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
6127 | static PyObject *_wrap_wxWindow_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6128 | PyObject * _resultobj; | |
6129 | wxWindow * _arg0; | |
6130 | wxButton * _arg1; | |
6131 | PyObject * _argo0 = 0; | |
6132 | PyObject * _argo1 = 0; | |
6133 | char *_kwnames[] = { "self","btn", NULL }; | |
6134 | ||
6135 | self = self; | |
6136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDefaultItem",_kwnames,&_argo0,&_argo1)) | |
6137 | return NULL; | |
6138 | if (_argo0) { | |
6139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
6142 | return NULL; | |
6143 | } | |
6144 | } | |
6145 | if (_argo1) { | |
6146 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6147 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
6148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDefaultItem. Expected _wxButton_p."); | |
6149 | return NULL; | |
6150 | } | |
6151 | } | |
6152 | { | |
6153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6154 | wxWindow_SetDefaultItem(_arg0,_arg1); | |
6155 | ||
6156 | wxPyEndAllowThreads(__tstate); | |
6157 | if (PyErr_Occurred()) return NULL; | |
6158 | } Py_INCREF(Py_None); | |
6159 | _resultobj = Py_None; | |
6160 | return _resultobj; | |
6161 | } | |
6162 | ||
8ab979d7 RD |
6163 | static void *SwigwxPanelTowxWindow(void *ptr) { |
6164 | wxPanel *src; | |
6165 | wxWindow *dest; | |
6166 | src = (wxPanel *) ptr; | |
6167 | dest = (wxWindow *) src; | |
6168 | return (void *) dest; | |
6169 | } | |
6170 | ||
6171 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
6172 | wxPanel *src; | |
6173 | wxEvtHandler *dest; | |
6174 | src = (wxPanel *) ptr; | |
6175 | dest = (wxEvtHandler *) src; | |
6176 | return (void *) dest; | |
6177 | } | |
6178 | ||
9416aa89 RD |
6179 | static void *SwigwxPanelTowxObject(void *ptr) { |
6180 | wxPanel *src; | |
6181 | wxObject *dest; | |
6182 | src = (wxPanel *) ptr; | |
6183 | dest = (wxObject *) src; | |
6184 | return (void *) dest; | |
6185 | } | |
6186 | ||
8ab979d7 | 6187 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6188 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6189 | PyObject * _resultobj; |
6190 | wxPanel * _result; | |
6191 | wxWindow * _arg0; | |
6192 | wxWindowID _arg1; | |
e508a2b6 RD |
6193 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6194 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
6195 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
6196 | char * _arg5 = (char *) "panel"; | |
6197 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6198 | wxPoint temp; |
6199 | PyObject * _obj2 = 0; | |
6200 | wxSize temp0; | |
6201 | PyObject * _obj3 = 0; | |
efc5f224 | 6202 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6203 | char _ptemp[128]; |
6204 | ||
6205 | self = self; | |
2f90df85 | 6206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 6207 | return NULL; |
1d99702e RD |
6208 | if (_argo0) { |
6209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
6212 | return NULL; | |
6213 | } | |
6214 | } | |
2f90df85 RD |
6215 | if (_obj2) |
6216 | { | |
6217 | _arg2 = &temp; | |
6218 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6219 | return NULL; |
2f90df85 RD |
6220 | } |
6221 | if (_obj3) | |
6222 | { | |
6223 | _arg3 = &temp0; | |
6224 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6225 | return NULL; |
2f90df85 | 6226 | } |
cf694132 | 6227 | { |
4268f798 | 6228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6229 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
6230 | ||
4268f798 | 6231 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6232 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6233 | } if (_result) { |
6234 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6235 | _resultobj = Py_BuildValue("s",_ptemp); | |
6236 | } else { | |
6237 | Py_INCREF(Py_None); | |
6238 | _resultobj = Py_None; | |
6239 | } | |
8ab979d7 RD |
6240 | return _resultobj; |
6241 | } | |
6242 | ||
09f3d4e6 RD |
6243 | #define new_wxPrePanel() (new wxPanel()) |
6244 | static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6245 | PyObject * _resultobj; | |
6246 | wxPanel * _result; | |
6247 | char *_kwnames[] = { NULL }; | |
6248 | char _ptemp[128]; | |
6249 | ||
6250 | self = self; | |
6251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames)) | |
6252 | return NULL; | |
6253 | { | |
4268f798 | 6254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
6255 | _result = (wxPanel *)new_wxPrePanel(); |
6256 | ||
4268f798 | 6257 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6258 | if (PyErr_Occurred()) return NULL; |
6259 | } if (_result) { | |
6260 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6261 | _resultobj = Py_BuildValue("s",_ptemp); | |
6262 | } else { | |
6263 | Py_INCREF(Py_None); | |
6264 | _resultobj = Py_None; | |
6265 | } | |
6266 | return _resultobj; | |
6267 | } | |
6268 | ||
6269 | #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6270 | static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6271 | PyObject * _resultobj; | |
6272 | bool _result; | |
6273 | wxPanel * _arg0; | |
6274 | wxWindow * _arg1; | |
6275 | wxWindowID _arg2; | |
6276 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6277 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6278 | long _arg5 = (long ) wxTAB_TRAVERSAL; | |
6279 | char * _arg6 = (char *) "panel"; | |
6280 | PyObject * _argo0 = 0; | |
6281 | PyObject * _argo1 = 0; | |
6282 | wxPoint temp; | |
6283 | PyObject * _obj3 = 0; | |
6284 | wxSize temp0; | |
6285 | PyObject * _obj4 = 0; | |
6286 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
6287 | ||
6288 | self = self; | |
6289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
6290 | return NULL; | |
6291 | if (_argo0) { | |
6292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
6294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p."); | |
6295 | return NULL; | |
6296 | } | |
6297 | } | |
6298 | if (_argo1) { | |
6299 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6300 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p."); | |
6302 | return NULL; | |
6303 | } | |
6304 | } | |
6305 | if (_obj3) | |
6306 | { | |
6307 | _arg3 = &temp; | |
6308 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6309 | return NULL; | |
6310 | } | |
6311 | if (_obj4) | |
6312 | { | |
6313 | _arg4 = &temp0; | |
6314 | if (! wxSize_helper(_obj4, &_arg4)) | |
6315 | return NULL; | |
6316 | } | |
6317 | { | |
4268f798 | 6318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
6319 | _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
6320 | ||
4268f798 | 6321 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6322 | if (PyErr_Occurred()) return NULL; |
6323 | } _resultobj = Py_BuildValue("i",_result); | |
6324 | return _resultobj; | |
6325 | } | |
6326 | ||
8ab979d7 | 6327 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 6328 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6329 | PyObject * _resultobj; |
6330 | wxPanel * _arg0; | |
1d99702e | 6331 | PyObject * _argo0 = 0; |
efc5f224 | 6332 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6333 | |
6334 | self = self; | |
efc5f224 | 6335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 6336 | return NULL; |
1d99702e RD |
6337 | if (_argo0) { |
6338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
6340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
6341 | return NULL; | |
6342 | } | |
6343 | } | |
cf694132 | 6344 | { |
4268f798 | 6345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6346 | wxPanel_InitDialog(_arg0); |
6347 | ||
4268f798 | 6348 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6349 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6350 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6351 | _resultobj = Py_None; |
6352 | return _resultobj; | |
6353 | } | |
6354 | ||
bb0054cd RD |
6355 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
6356 | wxScrolledWindow *src; | |
6357 | wxPanel *dest; | |
6358 | src = (wxScrolledWindow *) ptr; | |
6359 | dest = (wxPanel *) src; | |
6360 | return (void *) dest; | |
6361 | } | |
6362 | ||
8ab979d7 RD |
6363 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
6364 | wxScrolledWindow *src; | |
6365 | wxWindow *dest; | |
6366 | src = (wxScrolledWindow *) ptr; | |
6367 | dest = (wxWindow *) src; | |
6368 | return (void *) dest; | |
6369 | } | |
6370 | ||
6371 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
6372 | wxScrolledWindow *src; | |
6373 | wxEvtHandler *dest; | |
6374 | src = (wxScrolledWindow *) ptr; | |
6375 | dest = (wxEvtHandler *) src; | |
6376 | return (void *) dest; | |
6377 | } | |
6378 | ||
9416aa89 RD |
6379 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
6380 | wxScrolledWindow *src; | |
6381 | wxObject *dest; | |
6382 | src = (wxScrolledWindow *) ptr; | |
6383 | dest = (wxObject *) src; | |
6384 | return (void *) dest; | |
6385 | } | |
6386 | ||
8ab979d7 | 6387 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6388 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6389 | PyObject * _resultobj; |
6390 | wxScrolledWindow * _result; | |
6391 | wxWindow * _arg0; | |
1d99702e | 6392 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
6393 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6394 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
6395 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
6396 | char * _arg5 = (char *) "scrolledWindow"; | |
6397 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6398 | wxPoint temp; |
6399 | PyObject * _obj2 = 0; | |
6400 | wxSize temp0; | |
6401 | PyObject * _obj3 = 0; | |
efc5f224 | 6402 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6403 | char _ptemp[128]; |
6404 | ||
6405 | self = self; | |
2f90df85 | 6406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 6407 | return NULL; |
1d99702e RD |
6408 | if (_argo0) { |
6409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
6412 | return NULL; | |
6413 | } | |
6414 | } | |
2f90df85 RD |
6415 | if (_obj2) |
6416 | { | |
6417 | _arg2 = &temp; | |
6418 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6419 | return NULL; |
2f90df85 RD |
6420 | } |
6421 | if (_obj3) | |
6422 | { | |
6423 | _arg3 = &temp0; | |
6424 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6425 | return NULL; |
2f90df85 | 6426 | } |
cf694132 | 6427 | { |
4268f798 | 6428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6429 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
6430 | ||
4268f798 | 6431 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6432 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6433 | } if (_result) { |
6434 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6435 | _resultobj = Py_BuildValue("s",_ptemp); | |
6436 | } else { | |
6437 | Py_INCREF(Py_None); | |
6438 | _resultobj = Py_None; | |
6439 | } | |
8ab979d7 RD |
6440 | return _resultobj; |
6441 | } | |
6442 | ||
09f3d4e6 RD |
6443 | #define new_wxPreScrolledWindow() (new wxScrolledWindow()) |
6444 | static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6445 | PyObject * _resultobj; | |
6446 | wxScrolledWindow * _result; | |
6447 | char *_kwnames[] = { NULL }; | |
6448 | char _ptemp[128]; | |
6449 | ||
6450 | self = self; | |
6451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames)) | |
6452 | return NULL; | |
6453 | { | |
4268f798 | 6454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
6455 | _result = (wxScrolledWindow *)new_wxPreScrolledWindow(); |
6456 | ||
4268f798 | 6457 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6458 | if (PyErr_Occurred()) return NULL; |
6459 | } if (_result) { | |
6460 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6461 | _resultobj = Py_BuildValue("s",_ptemp); | |
6462 | } else { | |
6463 | Py_INCREF(Py_None); | |
6464 | _resultobj = Py_None; | |
6465 | } | |
6466 | return _resultobj; | |
6467 | } | |
6468 | ||
6469 | #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6470 | static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6471 | PyObject * _resultobj; | |
6472 | bool _result; | |
6473 | wxScrolledWindow * _arg0; | |
6474 | wxWindow * _arg1; | |
6475 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6476 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6477 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6478 | long _arg5 = (long ) wxHSCROLL|wxVSCROLL; | |
6479 | char * _arg6 = (char *) "scrolledWindow"; | |
6480 | PyObject * _argo0 = 0; | |
6481 | PyObject * _argo1 = 0; | |
6482 | wxPoint temp; | |
6483 | PyObject * _obj3 = 0; | |
6484 | wxSize temp0; | |
6485 | PyObject * _obj4 = 0; | |
6486 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
6487 | ||
6488 | self = self; | |
6489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
6490 | return NULL; | |
6491 | if (_argo0) { | |
6492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p."); | |
6495 | return NULL; | |
6496 | } | |
6497 | } | |
6498 | if (_argo1) { | |
6499 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6500 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p."); | |
6502 | return NULL; | |
6503 | } | |
6504 | } | |
6505 | if (_obj3) | |
6506 | { | |
6507 | _arg3 = &temp; | |
6508 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6509 | return NULL; | |
6510 | } | |
6511 | if (_obj4) | |
6512 | { | |
6513 | _arg4 = &temp0; | |
6514 | if (! wxSize_helper(_obj4, &_arg4)) | |
6515 | return NULL; | |
6516 | } | |
6517 | { | |
4268f798 | 6518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
09f3d4e6 RD |
6519 | _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
6520 | ||
4268f798 | 6521 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6522 | if (PyErr_Occurred()) return NULL; |
6523 | } _resultobj = Py_BuildValue("i",_result); | |
6524 | return _resultobj; | |
6525 | } | |
6526 | ||
8ab979d7 | 6527 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) |
efc5f224 | 6528 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6529 | PyObject * _resultobj; |
6530 | wxScrolledWindow * _arg0; | |
6531 | bool _arg1; | |
6532 | bool _arg2; | |
1d99702e | 6533 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6534 | int tempbool1; |
6535 | int tempbool2; | |
efc5f224 | 6536 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
6537 | |
6538 | self = self; | |
efc5f224 | 6539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 6540 | return NULL; |
1d99702e RD |
6541 | if (_argo0) { |
6542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
6545 | return NULL; | |
6546 | } | |
6547 | } | |
6548 | _arg1 = (bool ) tempbool1; | |
6549 | _arg2 = (bool ) tempbool2; | |
cf694132 | 6550 | { |
4268f798 | 6551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6552 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); |
6553 | ||
4268f798 | 6554 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6555 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6556 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6557 | _resultobj = Py_None; |
6558 | return _resultobj; | |
6559 | } | |
6560 | ||
b7e72427 RD |
6561 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
6562 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6563 | PyObject * _resultobj; | |
6564 | int _result; | |
6565 | wxScrolledWindow * _arg0; | |
6566 | int _arg1; | |
6567 | PyObject * _argo0 = 0; | |
6568 | char *_kwnames[] = { "self","orient", NULL }; | |
6569 | ||
6570 | self = self; | |
6571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6572 | return NULL; | |
6573 | if (_argo0) { | |
6574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6577 | return NULL; | |
6578 | } | |
6579 | } | |
6580 | { | |
4268f798 | 6581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b7e72427 RD |
6582 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); |
6583 | ||
4268f798 | 6584 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6585 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6586 | } _resultobj = Py_BuildValue("i",_result); |
6587 | return _resultobj; | |
6588 | } | |
6589 | ||
8ab979d7 | 6590 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 6591 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6592 | PyObject * _resultobj; |
6593 | wxScrolledWindow * _arg0; | |
6594 | int * _arg1; | |
6595 | int temp; | |
6596 | int * _arg2; | |
6597 | int temp0; | |
1d99702e | 6598 | PyObject * _argo0 = 0; |
efc5f224 | 6599 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6600 | |
6601 | self = self; | |
6602 | { | |
6603 | _arg1 = &temp; | |
6604 | } | |
6605 | { | |
6606 | _arg2 = &temp0; | |
6607 | } | |
efc5f224 | 6608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 6609 | return NULL; |
1d99702e RD |
6610 | if (_argo0) { |
6611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
6614 | return NULL; | |
6615 | } | |
6616 | } | |
cf694132 | 6617 | { |
4268f798 | 6618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6619 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); |
6620 | ||
4268f798 | 6621 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6622 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6623 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6624 | _resultobj = Py_None; |
6625 | { | |
6626 | PyObject *o; | |
6627 | o = PyInt_FromLong((long) (*_arg1)); | |
6628 | _resultobj = t_output_helper(_resultobj, o); | |
6629 | } | |
6630 | { | |
6631 | PyObject *o; | |
6632 | o = PyInt_FromLong((long) (*_arg2)); | |
6633 | _resultobj = t_output_helper(_resultobj, o); | |
6634 | } | |
6635 | return _resultobj; | |
6636 | } | |
6637 | ||
b7e72427 RD |
6638 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
6639 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6640 | PyObject * _resultobj; | |
6641 | wxWindow * _result; | |
6642 | wxScrolledWindow * _arg0; | |
6643 | PyObject * _argo0 = 0; | |
6644 | char *_kwnames[] = { "self", NULL }; | |
b7e72427 RD |
6645 | |
6646 | self = self; | |
6647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6648 | return NULL; | |
6649 | if (_argo0) { | |
6650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6653 | return NULL; | |
6654 | } | |
6655 | } | |
6656 | { | |
4268f798 | 6657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b7e72427 RD |
6658 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); |
6659 | ||
4268f798 | 6660 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6661 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6662 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b7e72427 RD |
6663 | return _resultobj; |
6664 | } | |
6665 | ||
8ab979d7 | 6666 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) |
efc5f224 | 6667 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6668 | PyObject * _resultobj; |
6669 | wxScrolledWindow * _arg0; | |
6670 | int * _arg1; | |
6671 | int temp; | |
6672 | int * _arg2; | |
6673 | int temp0; | |
1d99702e | 6674 | PyObject * _argo0 = 0; |
efc5f224 | 6675 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6676 | |
6677 | self = self; | |
6678 | { | |
6679 | _arg1 = &temp; | |
6680 | } | |
6681 | { | |
6682 | _arg2 = &temp0; | |
6683 | } | |
efc5f224 | 6684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
8ab979d7 | 6685 | return NULL; |
1d99702e RD |
6686 | if (_argo0) { |
6687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
6690 | return NULL; | |
6691 | } | |
6692 | } | |
cf694132 | 6693 | { |
4268f798 | 6694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6695 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); |
6696 | ||
4268f798 | 6697 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6698 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6699 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6700 | _resultobj = Py_None; |
6701 | { | |
6702 | PyObject *o; | |
6703 | o = PyInt_FromLong((long) (*_arg1)); | |
6704 | _resultobj = t_output_helper(_resultobj, o); | |
6705 | } | |
6706 | { | |
6707 | PyObject *o; | |
6708 | o = PyInt_FromLong((long) (*_arg2)); | |
6709 | _resultobj = t_output_helper(_resultobj, o); | |
6710 | } | |
6711 | return _resultobj; | |
6712 | } | |
6713 | ||
6714 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
efc5f224 | 6715 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6716 | PyObject * _resultobj; |
6717 | bool _result; | |
6718 | wxScrolledWindow * _arg0; | |
1d99702e | 6719 | PyObject * _argo0 = 0; |
efc5f224 | 6720 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6721 | |
6722 | self = self; | |
efc5f224 | 6723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 6724 | return NULL; |
1d99702e RD |
6725 | if (_argo0) { |
6726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
6729 | return NULL; | |
6730 | } | |
6731 | } | |
cf694132 | 6732 | { |
4268f798 | 6733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6734 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); |
6735 | ||
4268f798 | 6736 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6737 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6738 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6739 | return _resultobj; |
6740 | } | |
6741 | ||
6742 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 6743 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6744 | PyObject * _resultobj; |
6745 | wxScrolledWindow * _arg0; | |
6746 | wxDC * _arg1; | |
1d99702e RD |
6747 | PyObject * _argo0 = 0; |
6748 | PyObject * _argo1 = 0; | |
efc5f224 | 6749 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
6750 | |
6751 | self = self; | |
efc5f224 | 6752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6753 | return NULL; |
1d99702e RD |
6754 | if (_argo0) { |
6755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
6758 | return NULL; | |
6759 | } | |
6760 | } | |
1d99702e RD |
6761 | if (_argo1) { |
6762 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6763 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
6764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
6765 | return NULL; | |
6766 | } | |
6767 | } | |
cf694132 | 6768 | { |
4268f798 | 6769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6770 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); |
6771 | ||
4268f798 | 6772 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6773 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6774 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6775 | _resultobj = Py_None; |
6776 | return _resultobj; | |
6777 | } | |
6778 | ||
6779 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 6780 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6781 | PyObject * _resultobj; |
6782 | wxScrolledWindow * _arg0; | |
6783 | int _arg1; | |
6784 | int _arg2; | |
1d99702e | 6785 | PyObject * _argo0 = 0; |
efc5f224 | 6786 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6787 | |
6788 | self = self; | |
efc5f224 | 6789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6790 | return NULL; |
1d99702e RD |
6791 | if (_argo0) { |
6792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
6795 | return NULL; | |
6796 | } | |
6797 | } | |
cf694132 | 6798 | { |
4268f798 | 6799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6800 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); |
6801 | ||
4268f798 | 6802 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6803 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6804 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6805 | _resultobj = Py_None; |
6806 | return _resultobj; | |
6807 | } | |
6808 | ||
f6bcfd97 | 6809 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6810 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6811 | PyObject * _resultobj; |
6812 | wxScrolledWindow * _arg0; | |
6813 | int _arg1; | |
6814 | int _arg2; | |
6815 | int _arg3; | |
6816 | int _arg4; | |
1d99702e RD |
6817 | int _arg5 = (int ) 0; |
6818 | int _arg6 = (int ) 0; | |
f6bcfd97 | 6819 | int _arg7 = (int ) FALSE; |
1d99702e | 6820 | PyObject * _argo0 = 0; |
f6bcfd97 | 6821 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
6822 | |
6823 | self = self; | |
f6bcfd97 | 6824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 6825 | return NULL; |
1d99702e RD |
6826 | if (_argo0) { |
6827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
6830 | return NULL; | |
6831 | } | |
6832 | } | |
cf694132 | 6833 | { |
4268f798 | 6834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 6835 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 | 6836 | |
4268f798 | 6837 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6838 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6839 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6840 | _resultobj = Py_None; |
6841 | return _resultobj; | |
6842 | } | |
6843 | ||
b7e72427 RD |
6844 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
6845 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6846 | PyObject * _resultobj; | |
6847 | wxScrolledWindow * _arg0; | |
6848 | int _arg1; | |
6849 | int _arg2; | |
6850 | PyObject * _argo0 = 0; | |
6851 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6852 | ||
6853 | self = self; | |
6854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6855 | return NULL; | |
6856 | if (_argo0) { | |
6857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6860 | return NULL; | |
6861 | } | |
6862 | } | |
6863 | { | |
4268f798 | 6864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b7e72427 RD |
6865 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); |
6866 | ||
4268f798 | 6867 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6868 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6869 | } Py_INCREF(Py_None); |
6870 | _resultobj = Py_None; | |
6871 | return _resultobj; | |
6872 | } | |
6873 | ||
eb715945 RD |
6874 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
6875 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6876 | PyObject * _resultobj; | |
6877 | wxScrolledWindow * _arg0; | |
6878 | wxWindow * _arg1; | |
6879 | PyObject * _argo0 = 0; | |
6880 | PyObject * _argo1 = 0; | |
6881 | char *_kwnames[] = { "self","window", NULL }; | |
6882 | ||
6883 | self = self; | |
6884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6885 | return NULL; | |
6886 | if (_argo0) { | |
6887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6890 | return NULL; | |
6891 | } | |
6892 | } | |
6893 | if (_argo1) { | |
6894 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6895 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6897 | return NULL; | |
6898 | } | |
6899 | } | |
6900 | { | |
4268f798 | 6901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eb715945 RD |
6902 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); |
6903 | ||
4268f798 | 6904 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6905 | if (PyErr_Occurred()) return NULL; |
eb715945 RD |
6906 | } Py_INCREF(Py_None); |
6907 | _resultobj = Py_None; | |
6908 | return _resultobj; | |
6909 | } | |
6910 | ||
4c9993c3 RD |
6911 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
6912 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6913 | PyObject * _resultobj; | |
6914 | wxScrolledWindow * _arg0; | |
6915 | int * _arg1; | |
6916 | int temp; | |
6917 | int * _arg2; | |
6918 | int temp0; | |
6919 | PyObject * _argo0 = 0; | |
6920 | char *_kwnames[] = { "self", NULL }; | |
6921 | ||
6922 | self = self; | |
6923 | { | |
6924 | _arg1 = &temp; | |
6925 | } | |
6926 | { | |
6927 | _arg2 = &temp0; | |
6928 | } | |
6929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6930 | return NULL; | |
6931 | if (_argo0) { | |
6932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6935 | return NULL; | |
6936 | } | |
6937 | } | |
6938 | { | |
4268f798 | 6939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4c9993c3 RD |
6940 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); |
6941 | ||
4268f798 | 6942 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6943 | if (PyErr_Occurred()) return NULL; |
4c9993c3 RD |
6944 | } Py_INCREF(Py_None); |
6945 | _resultobj = Py_None; | |
6946 | { | |
6947 | PyObject *o; | |
6948 | o = PyInt_FromLong((long) (*_arg1)); | |
6949 | _resultobj = t_output_helper(_resultobj, o); | |
6950 | } | |
6951 | { | |
6952 | PyObject *o; | |
6953 | o = PyInt_FromLong((long) (*_arg2)); | |
6954 | _resultobj = t_output_helper(_resultobj, o); | |
6955 | } | |
6956 | return _resultobj; | |
6957 | } | |
6958 | ||
9d8bd15f RD |
6959 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6960 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6961 | PyObject * _resultobj; | |
6962 | wxScrolledWindow * _arg0; | |
6963 | int _arg1; | |
6964 | int _arg2; | |
6965 | int * _arg3; | |
6966 | int temp; | |
6967 | int * _arg4; | |
6968 | int temp0; | |
6969 | PyObject * _argo0 = 0; | |
6970 | char *_kwnames[] = { "self","x","y", NULL }; | |
6971 | ||
6972 | self = self; | |
6973 | { | |
6974 | _arg3 = &temp; | |
6975 | } | |
6976 | { | |
6977 | _arg4 = &temp0; | |
6978 | } | |
6979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6980 | return NULL; | |
6981 | if (_argo0) { | |
6982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
6985 | return NULL; | |
6986 | } | |
6987 | } | |
6988 | { | |
4268f798 | 6989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9d8bd15f RD |
6990 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); |
6991 | ||
4268f798 | 6992 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6993 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6994 | } Py_INCREF(Py_None); |
6995 | _resultobj = Py_None; | |
6996 | { | |
6997 | PyObject *o; | |
6998 | o = PyInt_FromLong((long) (*_arg3)); | |
6999 | _resultobj = t_output_helper(_resultobj, o); | |
7000 | } | |
7001 | { | |
7002 | PyObject *o; | |
7003 | o = PyInt_FromLong((long) (*_arg4)); | |
7004 | _resultobj = t_output_helper(_resultobj, o); | |
7005 | } | |
7006 | return _resultobj; | |
7007 | } | |
7008 | ||
7009 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7010 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7011 | PyObject * _resultobj; | |
7012 | wxScrolledWindow * _arg0; | |
7013 | int _arg1; | |
7014 | int _arg2; | |
7015 | int * _arg3; | |
7016 | int temp; | |
7017 | int * _arg4; | |
7018 | int temp0; | |
7019 | PyObject * _argo0 = 0; | |
7020 | char *_kwnames[] = { "self","x","y", NULL }; | |
7021 | ||
7022 | self = self; | |
7023 | { | |
7024 | _arg3 = &temp; | |
7025 | } | |
7026 | { | |
7027 | _arg4 = &temp0; | |
7028 | } | |
7029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7030 | return NULL; | |
7031 | if (_argo0) { | |
7032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
7035 | return NULL; | |
7036 | } | |
7037 | } | |
7038 | { | |
4268f798 | 7039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9d8bd15f RD |
7040 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); |
7041 | ||
4268f798 | 7042 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7043 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
7044 | } Py_INCREF(Py_None); |
7045 | _resultobj = Py_None; | |
7046 | { | |
7047 | PyObject *o; | |
7048 | o = PyInt_FromLong((long) (*_arg3)); | |
7049 | _resultobj = t_output_helper(_resultobj, o); | |
7050 | } | |
7051 | { | |
7052 | PyObject *o; | |
7053 | o = PyInt_FromLong((long) (*_arg4)); | |
7054 | _resultobj = t_output_helper(_resultobj, o); | |
7055 | } | |
7056 | return _resultobj; | |
7057 | } | |
7058 | ||
d1679124 RD |
7059 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
7060 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7061 | PyObject * _resultobj; | |
7062 | wxScrolledWindow * _arg0; | |
7063 | double _arg1; | |
7064 | double _arg2; | |
7065 | PyObject * _argo0 = 0; | |
7066 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
7067 | ||
7068 | self = self; | |
7069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7070 | return NULL; | |
7071 | if (_argo0) { | |
7072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
7075 | return NULL; | |
7076 | } | |
7077 | } | |
7078 | { | |
4268f798 | 7079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d1679124 RD |
7080 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); |
7081 | ||
4268f798 | 7082 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7083 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
7084 | } Py_INCREF(Py_None); |
7085 | _resultobj = Py_None; | |
7086 | return _resultobj; | |
7087 | } | |
7088 | ||
7089 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
7090 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7091 | PyObject * _resultobj; | |
7092 | double _result; | |
7093 | wxScrolledWindow * _arg0; | |
7094 | PyObject * _argo0 = 0; | |
7095 | char *_kwnames[] = { "self", NULL }; | |
7096 | ||
7097 | self = self; | |
7098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
7099 | return NULL; | |
7100 | if (_argo0) { | |
7101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
7104 | return NULL; | |
7105 | } | |
7106 | } | |
7107 | { | |
4268f798 | 7108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d1679124 RD |
7109 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); |
7110 | ||
4268f798 | 7111 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7112 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
7113 | } _resultobj = Py_BuildValue("d",_result); |
7114 | return _resultobj; | |
7115 | } | |
7116 | ||
7117 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
7118 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7119 | PyObject * _resultobj; | |
7120 | double _result; | |
7121 | wxScrolledWindow * _arg0; | |
7122 | PyObject * _argo0 = 0; | |
7123 | char *_kwnames[] = { "self", NULL }; | |
7124 | ||
7125 | self = self; | |
7126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
7127 | return NULL; | |
7128 | if (_argo0) { | |
7129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
7132 | return NULL; | |
7133 | } | |
7134 | } | |
7135 | { | |
4268f798 | 7136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d1679124 RD |
7137 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); |
7138 | ||
4268f798 | 7139 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7140 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
7141 | } _resultobj = Py_BuildValue("d",_result); |
7142 | return _resultobj; | |
7143 | } | |
7144 | ||
7145 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
7146 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7147 | PyObject * _resultobj; | |
7148 | wxScrolledWindow * _arg0; | |
7149 | PyObject * _argo0 = 0; | |
7150 | char *_kwnames[] = { "self", NULL }; | |
7151 | ||
7152 | self = self; | |
7153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
7154 | return NULL; | |
7155 | if (_argo0) { | |
7156 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7157 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
7159 | return NULL; | |
7160 | } | |
7161 | } | |
7162 | { | |
4268f798 | 7163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d1679124 RD |
7164 | wxScrolledWindow_AdjustScrollbars(_arg0); |
7165 | ||
4268f798 | 7166 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7167 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
7168 | } Py_INCREF(Py_None); |
7169 | _resultobj = Py_None; | |
7170 | return _resultobj; | |
7171 | } | |
7172 | ||
8ab979d7 RD |
7173 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
7174 | wxMenu *src; | |
7175 | wxEvtHandler *dest; | |
7176 | src = (wxMenu *) ptr; | |
7177 | dest = (wxEvtHandler *) src; | |
7178 | return (void *) dest; | |
7179 | } | |
7180 | ||
9416aa89 RD |
7181 | static void *SwigwxMenuTowxObject(void *ptr) { |
7182 | wxMenu *src; | |
7183 | wxObject *dest; | |
7184 | src = (wxMenu *) ptr; | |
7185 | dest = (wxObject *) src; | |
7186 | return (void *) dest; | |
7187 | } | |
7188 | ||
8bf5d46e | 7189 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) |
efc5f224 | 7190 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7191 | PyObject * _resultobj; |
7192 | wxMenu * _result; | |
23bed520 | 7193 | wxString * _arg0 = (wxString *) &wxEmptyString; |
1d99702e | 7194 | long _arg1 = (long ) 0; |
8ab979d7 | 7195 | PyObject * _obj0 = 0; |
efc5f224 | 7196 | char *_kwnames[] = { "title","style", NULL }; |
8ab979d7 RD |
7197 | char _ptemp[128]; |
7198 | ||
7199 | self = self; | |
efc5f224 | 7200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
8ab979d7 RD |
7201 | return NULL; |
7202 | if (_obj0) | |
7203 | { | |
185d7c3e RD |
7204 | #if PYTHON_API_VERSION >= 1009 |
7205 | char* tmpPtr; int tmpSize; | |
7206 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 7207 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7208 | return NULL; |
7209 | } | |
7210 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
7211 | return NULL; | |
7212 | _arg0 = new wxString(tmpPtr, tmpSize); | |
7213 | #else | |
8ab979d7 RD |
7214 | if (!PyString_Check(_obj0)) { |
7215 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7216 | return NULL; | |
7217 | } | |
185d7c3e RD |
7218 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
7219 | #endif | |
8ab979d7 | 7220 | } |
cf694132 | 7221 | { |
4268f798 | 7222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8bf5d46e | 7223 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
cf694132 | 7224 | |
4268f798 | 7225 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7226 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7227 | } if (_result) { |
7228 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7229 | _resultobj = Py_BuildValue("s",_ptemp); | |
7230 | } else { | |
7231 | Py_INCREF(Py_None); | |
7232 | _resultobj = Py_None; | |
7233 | } | |
8ab979d7 RD |
7234 | { |
7235 | if (_obj0) | |
7236 | delete _arg0; | |
7237 | } | |
7238 | return _resultobj; | |
7239 | } | |
7240 | ||
7241 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 7242 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7243 | PyObject * _resultobj; |
7244 | wxMenu * _arg0; | |
7245 | int _arg1; | |
7246 | wxString * _arg2; | |
23bed520 | 7247 | wxString * _arg3 = (wxString *) &wxEmptyString; |
926bb76c | 7248 | int _arg4 = (int ) FALSE; |
1d99702e | 7249 | PyObject * _argo0 = 0; |
8ab979d7 RD |
7250 | PyObject * _obj2 = 0; |
7251 | PyObject * _obj3 = 0; | |
efc5f224 | 7252 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; |
8ab979d7 RD |
7253 | |
7254 | self = self; | |
926bb76c | 7255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
8ab979d7 | 7256 | return NULL; |
1d99702e RD |
7257 | if (_argo0) { |
7258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); |
7261 | return NULL; | |
7262 | } | |
7263 | } | |
7264 | { | |
185d7c3e RD |
7265 | #if PYTHON_API_VERSION >= 1009 |
7266 | char* tmpPtr; int tmpSize; | |
7267 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7268 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7269 | return NULL; |
7270 | } | |
7271 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7272 | return NULL; | |
7273 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7274 | #else | |
8ab979d7 RD |
7275 | if (!PyString_Check(_obj2)) { |
7276 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7277 | return NULL; | |
7278 | } | |
185d7c3e RD |
7279 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7280 | #endif | |
8ab979d7 RD |
7281 | } |
7282 | if (_obj3) | |
7283 | { | |
185d7c3e RD |
7284 | #if PYTHON_API_VERSION >= 1009 |
7285 | char* tmpPtr; int tmpSize; | |
7286 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 7287 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7288 | return NULL; |
7289 | } | |
7290 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
7291 | return NULL; | |
7292 | _arg3 = new wxString(tmpPtr, tmpSize); | |
7293 | #else | |
8ab979d7 RD |
7294 | if (!PyString_Check(_obj3)) { |
7295 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7296 | return NULL; | |
7297 | } | |
185d7c3e RD |
7298 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
7299 | #endif | |
8ab979d7 | 7300 | } |
cf694132 | 7301 | { |
4268f798 | 7302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7303 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
7304 | ||
4268f798 | 7305 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7306 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7307 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7308 | _resultobj = Py_None; |
7309 | { | |
7310 | if (_obj2) | |
7311 | delete _arg2; | |
7312 | } | |
7313 | { | |
7314 | if (_obj3) | |
7315 | delete _arg3; | |
7316 | } | |
7317 | return _resultobj; | |
7318 | } | |
7319 | ||
7320 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 7321 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7322 | PyObject * _resultobj; |
7323 | wxMenu * _arg0; | |
7324 | int _arg1; | |
7325 | wxString * _arg2; | |
7326 | wxMenu * _arg3; | |
23bed520 | 7327 | wxString * _arg4 = (wxString *) &wxEmptyString; |
1d99702e | 7328 | PyObject * _argo0 = 0; |
8ab979d7 | 7329 | PyObject * _obj2 = 0; |
1d99702e | 7330 | PyObject * _argo3 = 0; |
8ab979d7 | 7331 | PyObject * _obj4 = 0; |
efc5f224 | 7332 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; |
8ab979d7 RD |
7333 | |
7334 | self = self; | |
efc5f224 | 7335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 7336 | return NULL; |
1d99702e RD |
7337 | if (_argo0) { |
7338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
7341 | return NULL; | |
7342 | } | |
7343 | } | |
7344 | { | |
185d7c3e RD |
7345 | #if PYTHON_API_VERSION >= 1009 |
7346 | char* tmpPtr; int tmpSize; | |
7347 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7348 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7349 | return NULL; |
7350 | } | |
7351 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7352 | return NULL; | |
7353 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7354 | #else | |
8ab979d7 RD |
7355 | if (!PyString_Check(_obj2)) { |
7356 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7357 | return NULL; | |
7358 | } | |
185d7c3e RD |
7359 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7360 | #endif | |
8ab979d7 | 7361 | } |
1d99702e RD |
7362 | if (_argo3) { |
7363 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7364 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8ab979d7 RD |
7365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
7366 | return NULL; | |
7367 | } | |
7368 | } | |
7369 | if (_obj4) | |
7370 | { | |
185d7c3e RD |
7371 | #if PYTHON_API_VERSION >= 1009 |
7372 | char* tmpPtr; int tmpSize; | |
7373 | if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) { | |
794c5cb1 | 7374 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7375 | return NULL; |
7376 | } | |
7377 | if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1) | |
7378 | return NULL; | |
7379 | _arg4 = new wxString(tmpPtr, tmpSize); | |
7380 | #else | |
8ab979d7 RD |
7381 | if (!PyString_Check(_obj4)) { |
7382 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7383 | return NULL; | |
7384 | } | |
185d7c3e RD |
7385 | _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4)); |
7386 | #endif | |
8ab979d7 | 7387 | } |
cf694132 | 7388 | { |
4268f798 | 7389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7390 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); |
7391 | ||
4268f798 | 7392 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7393 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7394 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7395 | _resultobj = Py_None; |
7396 | { | |
7397 | if (_obj2) | |
7398 | delete _arg2; | |
7399 | } | |
7400 | { | |
7401 | if (_obj4) | |
7402 | delete _arg4; | |
7403 | } | |
7404 | return _resultobj; | |
7405 | } | |
7406 | ||
af309447 | 7407 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
efc5f224 | 7408 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
7409 | PyObject * _resultobj; |
7410 | wxMenu * _arg0; | |
7411 | wxMenuItem * _arg1; | |
1d99702e RD |
7412 | PyObject * _argo0 = 0; |
7413 | PyObject * _argo1 = 0; | |
efc5f224 | 7414 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
7415 | |
7416 | self = self; | |
efc5f224 | 7417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 7418 | return NULL; |
1d99702e RD |
7419 | if (_argo0) { |
7420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
af309447 RD |
7422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); |
7423 | return NULL; | |
7424 | } | |
7425 | } | |
1d99702e RD |
7426 | if (_argo1) { |
7427 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7428 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
af309447 RD |
7429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); |
7430 | return NULL; | |
7431 | } | |
7432 | } | |
cf694132 | 7433 | { |
4268f798 | 7434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7435 | wxMenu_AppendItem(_arg0,_arg1); |
7436 | ||
4268f798 | 7437 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7438 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7439 | } Py_INCREF(Py_None); |
af309447 RD |
7440 | _resultobj = Py_None; |
7441 | return _resultobj; | |
7442 | } | |
7443 | ||
8ab979d7 | 7444 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
efc5f224 | 7445 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7446 | PyObject * _resultobj; |
7447 | wxMenu * _arg0; | |
1d99702e | 7448 | PyObject * _argo0 = 0; |
efc5f224 | 7449 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7450 | |
7451 | self = self; | |
efc5f224 | 7452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
8ab979d7 | 7453 | return NULL; |
1d99702e RD |
7454 | if (_argo0) { |
7455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
7458 | return NULL; | |
7459 | } | |
7460 | } | |
cf694132 | 7461 | { |
4268f798 | 7462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7463 | wxMenu_AppendSeparator(_arg0); |
7464 | ||
4268f798 | 7465 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7466 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7467 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7468 | _resultobj = Py_None; |
7469 | return _resultobj; | |
7470 | } | |
7471 | ||
7472 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 7473 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7474 | PyObject * _resultobj; |
7475 | wxMenu * _arg0; | |
1d99702e | 7476 | PyObject * _argo0 = 0; |
efc5f224 | 7477 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7478 | |
7479 | self = self; | |
efc5f224 | 7480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 7481 | return NULL; |
1d99702e RD |
7482 | if (_argo0) { |
7483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
7486 | return NULL; | |
7487 | } | |
7488 | } | |
cf694132 | 7489 | { |
4268f798 | 7490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7491 | wxMenu_Break(_arg0); |
7492 | ||
4268f798 | 7493 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7494 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7495 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7496 | _resultobj = Py_None; |
7497 | return _resultobj; | |
7498 | } | |
7499 | ||
7500 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 7501 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7502 | PyObject * _resultobj; |
7503 | wxMenu * _arg0; | |
7504 | int _arg1; | |
7505 | bool _arg2; | |
1d99702e | 7506 | PyObject * _argo0 = 0; |
8ab979d7 | 7507 | int tempbool2; |
efc5f224 | 7508 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
7509 | |
7510 | self = self; | |
efc5f224 | 7511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7512 | return NULL; |
1d99702e RD |
7513 | if (_argo0) { |
7514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
7517 | return NULL; | |
7518 | } | |
7519 | } | |
7520 | _arg2 = (bool ) tempbool2; | |
cf694132 | 7521 | { |
4268f798 | 7522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7523 | wxMenu_Check(_arg0,_arg1,_arg2); |
7524 | ||
4268f798 | 7525 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7526 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7527 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7528 | _resultobj = Py_None; |
7529 | return _resultobj; | |
7530 | } | |
7531 | ||
b1462dfa RD |
7532 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
7533 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7534 | PyObject * _resultobj; | |
7535 | bool _result; | |
7536 | wxMenu * _arg0; | |
7537 | int _arg1; | |
7538 | PyObject * _argo0 = 0; | |
7539 | char *_kwnames[] = { "self","id", NULL }; | |
7540 | ||
7541 | self = self; | |
7542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
7543 | return NULL; | |
7544 | if (_argo0) { | |
7545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
7548 | return NULL; | |
7549 | } | |
7550 | } | |
7551 | { | |
4268f798 | 7552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
7553 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); |
7554 | ||
4268f798 | 7555 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7556 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7557 | } _resultobj = Py_BuildValue("i",_result); |
7558 | return _resultobj; | |
7559 | } | |
7560 | ||
8ab979d7 | 7561 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 7562 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7563 | PyObject * _resultobj; |
7564 | wxMenu * _arg0; | |
7565 | int _arg1; | |
7566 | bool _arg2; | |
1d99702e | 7567 | PyObject * _argo0 = 0; |
8ab979d7 | 7568 | int tempbool2; |
efc5f224 | 7569 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
7570 | |
7571 | self = self; | |
efc5f224 | 7572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7573 | return NULL; |
1d99702e RD |
7574 | if (_argo0) { |
7575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
7578 | return NULL; | |
7579 | } | |
7580 | } | |
7581 | _arg2 = (bool ) tempbool2; | |
cf694132 | 7582 | { |
4268f798 | 7583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7584 | wxMenu_Enable(_arg0,_arg1,_arg2); |
7585 | ||
4268f798 | 7586 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7587 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7588 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7589 | _resultobj = Py_None; |
7590 | return _resultobj; | |
7591 | } | |
7592 | ||
b1462dfa RD |
7593 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
7594 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7595 | PyObject * _resultobj; | |
7596 | bool _result; | |
7597 | wxMenu * _arg0; | |
7598 | int _arg1; | |
7599 | PyObject * _argo0 = 0; | |
7600 | char *_kwnames[] = { "self","id", NULL }; | |
7601 | ||
7602 | self = self; | |
7603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
7604 | return NULL; | |
7605 | if (_argo0) { | |
7606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
7609 | return NULL; | |
7610 | } | |
7611 | } | |
7612 | { | |
4268f798 | 7613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
7614 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); |
7615 | ||
4268f798 | 7616 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7617 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7618 | } _resultobj = Py_BuildValue("i",_result); |
7619 | return _resultobj; | |
7620 | } | |
7621 | ||
8ab979d7 | 7622 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 7623 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7624 | PyObject * _resultobj; |
7625 | int _result; | |
7626 | wxMenu * _arg0; | |
7627 | wxString * _arg1; | |
1d99702e | 7628 | PyObject * _argo0 = 0; |
8ab979d7 | 7629 | PyObject * _obj1 = 0; |
efc5f224 | 7630 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
7631 | |
7632 | self = self; | |
efc5f224 | 7633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7634 | return NULL; |
1d99702e RD |
7635 | if (_argo0) { |
7636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
7639 | return NULL; | |
7640 | } | |
7641 | } | |
7642 | { | |
185d7c3e RD |
7643 | #if PYTHON_API_VERSION >= 1009 |
7644 | char* tmpPtr; int tmpSize; | |
7645 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7646 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7647 | return NULL; |
7648 | } | |
7649 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7650 | return NULL; | |
7651 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7652 | #else | |
8ab979d7 RD |
7653 | if (!PyString_Check(_obj1)) { |
7654 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7655 | return NULL; | |
7656 | } | |
185d7c3e RD |
7657 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7658 | #endif | |
8ab979d7 | 7659 | } |
cf694132 | 7660 | { |
4268f798 | 7661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7662 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); |
7663 | ||
4268f798 | 7664 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7665 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7666 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7667 | { |
7668 | if (_obj1) | |
7669 | delete _arg1; | |
7670 | } | |
7671 | return _resultobj; | |
7672 | } | |
7673 | ||
b1462dfa RD |
7674 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
7675 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7676 | PyObject * _resultobj; | |
7677 | wxMenuItem * _result; | |
7678 | wxMenu * _arg0; | |
7679 | int _arg1; | |
7680 | PyObject * _argo0 = 0; | |
7681 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
7682 | |
7683 | self = self; | |
7684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
7685 | return NULL; | |
7686 | if (_argo0) { | |
7687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
7690 | return NULL; | |
7691 | } | |
7692 | } | |
7693 | { | |
4268f798 | 7694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
7695 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); |
7696 | ||
4268f798 | 7697 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7698 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7699 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
7700 | return _resultobj; |
7701 | } | |
7702 | ||
8ab979d7 | 7703 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 7704 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7705 | PyObject * _resultobj; |
7706 | wxString * _result; | |
7707 | wxMenu * _arg0; | |
1d99702e | 7708 | PyObject * _argo0 = 0; |
efc5f224 | 7709 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7710 | |
7711 | self = self; | |
efc5f224 | 7712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 7713 | return NULL; |
1d99702e RD |
7714 | if (_argo0) { |
7715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
7718 | return NULL; | |
7719 | } | |
7720 | } | |
8ab979d7 | 7721 | { |
4268f798 | 7722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7723 | _result = new wxString (wxMenu_GetTitle(_arg0)); |
7724 | ||
4268f798 | 7725 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7726 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7727 | }{ |
eec92d76 | 7728 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7729 | } |
7730 | { | |
7731 | delete _result; | |
7732 | } | |
7733 | return _resultobj; | |
7734 | } | |
7735 | ||
7736 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 7737 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7738 | PyObject * _resultobj; |
7739 | wxMenu * _arg0; | |
7740 | wxString * _arg1; | |
1d99702e | 7741 | PyObject * _argo0 = 0; |
8ab979d7 | 7742 | PyObject * _obj1 = 0; |
efc5f224 | 7743 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
7744 | |
7745 | self = self; | |
efc5f224 | 7746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7747 | return NULL; |
1d99702e RD |
7748 | if (_argo0) { |
7749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
7752 | return NULL; | |
7753 | } | |
7754 | } | |
7755 | { | |
185d7c3e RD |
7756 | #if PYTHON_API_VERSION >= 1009 |
7757 | char* tmpPtr; int tmpSize; | |
7758 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7759 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7760 | return NULL; |
7761 | } | |
7762 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7763 | return NULL; | |
7764 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7765 | #else | |
8ab979d7 RD |
7766 | if (!PyString_Check(_obj1)) { |
7767 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7768 | return NULL; | |
7769 | } | |
185d7c3e RD |
7770 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7771 | #endif | |
8ab979d7 | 7772 | } |
cf694132 | 7773 | { |
4268f798 | 7774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7775 | wxMenu_SetTitle(_arg0,*_arg1); |
7776 | ||
4268f798 | 7777 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7778 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7779 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7780 | _resultobj = Py_None; |
7781 | { | |
7782 | if (_obj1) | |
7783 | delete _arg1; | |
7784 | } | |
7785 | return _resultobj; | |
7786 | } | |
7787 | ||
b1462dfa RD |
7788 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
7789 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7790 | PyObject * _resultobj; |
b1462dfa | 7791 | wxString * _result; |
8ab979d7 RD |
7792 | wxMenu * _arg0; |
7793 | int _arg1; | |
1d99702e | 7794 | PyObject * _argo0 = 0; |
efc5f224 | 7795 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7796 | |
7797 | self = self; | |
b1462dfa | 7798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7799 | return NULL; |
1d99702e RD |
7800 | if (_argo0) { |
7801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7804 | return NULL; |
7805 | } | |
7806 | } | |
cf694132 | 7807 | { |
4268f798 | 7808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7809 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 | 7810 | |
4268f798 | 7811 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7812 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7813 | }{ |
eec92d76 | 7814 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
7815 | } |
7816 | { | |
7817 | delete _result; | |
7818 | } | |
8ab979d7 RD |
7819 | return _resultobj; |
7820 | } | |
7821 | ||
b1462dfa RD |
7822 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
7823 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7824 | PyObject * _resultobj; |
8ab979d7 RD |
7825 | wxMenu * _arg0; |
7826 | int _arg1; | |
b1462dfa | 7827 | wxString * _arg2; |
1d99702e | 7828 | PyObject * _argo0 = 0; |
b1462dfa RD |
7829 | PyObject * _obj2 = 0; |
7830 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
7831 | |
7832 | self = self; | |
b1462dfa | 7833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7834 | return NULL; |
1d99702e RD |
7835 | if (_argo0) { |
7836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7839 | return NULL; |
7840 | } | |
7841 | } | |
b1462dfa | 7842 | { |
185d7c3e RD |
7843 | #if PYTHON_API_VERSION >= 1009 |
7844 | char* tmpPtr; int tmpSize; | |
7845 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7846 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7847 | return NULL; |
7848 | } | |
7849 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7850 | return NULL; | |
7851 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7852 | #else | |
b1462dfa RD |
7853 | if (!PyString_Check(_obj2)) { |
7854 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7855 | return NULL; | |
7856 | } | |
185d7c3e RD |
7857 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7858 | #endif | |
b1462dfa | 7859 | } |
8ab979d7 | 7860 | { |
4268f798 | 7861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7862 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 7863 | |
4268f798 | 7864 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7865 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7866 | } Py_INCREF(Py_None); |
7867 | _resultobj = Py_None; | |
8ab979d7 | 7868 | { |
b1462dfa RD |
7869 | if (_obj2) |
7870 | delete _arg2; | |
8ab979d7 RD |
7871 | } |
7872 | return _resultobj; | |
7873 | } | |
7874 | ||
b1462dfa RD |
7875 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
7876 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7877 | PyObject * _resultobj; |
7878 | wxString * _result; | |
7879 | wxMenu * _arg0; | |
7880 | int _arg1; | |
1d99702e | 7881 | PyObject * _argo0 = 0; |
efc5f224 | 7882 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7883 | |
7884 | self = self; | |
b1462dfa | 7885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7886 | return NULL; |
1d99702e RD |
7887 | if (_argo0) { |
7888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
7891 | return NULL; |
7892 | } | |
7893 | } | |
8ab979d7 | 7894 | { |
4268f798 | 7895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7896 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 | 7897 | |
4268f798 | 7898 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7899 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7900 | }{ |
eec92d76 | 7901 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
7902 | } |
7903 | { | |
7904 | delete _result; | |
7905 | } | |
7906 | return _resultobj; | |
7907 | } | |
7908 | ||
7909 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 7910 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7911 | PyObject * _resultobj; |
7912 | wxMenu * _arg0; | |
7913 | int _arg1; | |
7914 | wxString * _arg2; | |
1d99702e | 7915 | PyObject * _argo0 = 0; |
8ab979d7 | 7916 | PyObject * _obj2 = 0; |
efc5f224 | 7917 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
7918 | |
7919 | self = self; | |
efc5f224 | 7920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7921 | return NULL; |
1d99702e RD |
7922 | if (_argo0) { |
7923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
7926 | return NULL; | |
7927 | } | |
7928 | } | |
7929 | { | |
185d7c3e RD |
7930 | #if PYTHON_API_VERSION >= 1009 |
7931 | char* tmpPtr; int tmpSize; | |
7932 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7933 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7934 | return NULL; |
7935 | } | |
7936 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7937 | return NULL; | |
7938 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7939 | #else | |
8ab979d7 RD |
7940 | if (!PyString_Check(_obj2)) { |
7941 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7942 | return NULL; | |
7943 | } | |
185d7c3e RD |
7944 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7945 | #endif | |
8ab979d7 | 7946 | } |
cf694132 | 7947 | { |
4268f798 | 7948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7949 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); |
7950 | ||
4268f798 | 7951 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7952 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7953 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7954 | _resultobj = Py_None; |
7955 | { | |
7956 | if (_obj2) | |
7957 | delete _arg2; | |
7958 | } | |
7959 | return _resultobj; | |
7960 | } | |
7961 | ||
b1462dfa RD |
7962 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
7963 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7964 | PyObject * _resultobj; |
8ab979d7 | 7965 | wxMenu * _arg0; |
b1462dfa | 7966 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 7967 | PyObject * _argo0 = 0; |
b1462dfa RD |
7968 | PyObject * _argo1 = 0; |
7969 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
7970 | |
7971 | self = self; | |
b1462dfa | 7972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7973 | return NULL; |
1d99702e RD |
7974 | if (_argo0) { |
7975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
7977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
7978 | return NULL; | |
7979 | } | |
7980 | } | |
7981 | if (_argo1) { | |
7982 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7983 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
7985 | return NULL; |
7986 | } | |
7987 | } | |
cf694132 | 7988 | { |
4268f798 | 7989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 7990 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 | 7991 | |
4268f798 | 7992 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7993 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7994 | } Py_INCREF(Py_None); |
7995 | _resultobj = Py_None; | |
8ab979d7 RD |
7996 | return _resultobj; |
7997 | } | |
7998 | ||
b1462dfa RD |
7999 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
8000 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8001 | PyObject * _resultobj; |
8002 | bool _result; | |
8003 | wxMenu * _arg0; | |
8004 | int _arg1; | |
1d99702e | 8005 | PyObject * _argo0 = 0; |
efc5f224 | 8006 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8007 | |
8008 | self = self; | |
b1462dfa | 8009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8010 | return NULL; |
1d99702e RD |
8011 | if (_argo0) { |
8012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
8015 | return NULL; |
8016 | } | |
8017 | } | |
cf694132 | 8018 | { |
4268f798 | 8019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8020 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 | 8021 | |
4268f798 | 8022 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8023 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8024 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8025 | return _resultobj; |
8026 | } | |
8027 | ||
b1462dfa RD |
8028 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
8029 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8030 | PyObject * _resultobj; |
b1462dfa | 8031 | bool _result; |
8ab979d7 | 8032 | wxMenu * _arg0; |
b1462dfa | 8033 | wxMenuItem * _arg1; |
1d99702e | 8034 | PyObject * _argo0 = 0; |
b1462dfa RD |
8035 | PyObject * _argo1 = 0; |
8036 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
8037 | |
8038 | self = self; | |
b1462dfa | 8039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8040 | return NULL; |
1d99702e RD |
8041 | if (_argo0) { |
8042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
8045 | return NULL; |
8046 | } | |
8047 | } | |
b1462dfa RD |
8048 | if (_argo1) { |
8049 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8050 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 8052 | return NULL; |
b1462dfa | 8053 | } |
8ab979d7 | 8054 | } |
cf694132 | 8055 | { |
4268f798 | 8056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8057 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 | 8058 | |
4268f798 | 8059 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8060 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8061 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8062 | return _resultobj; |
8063 | } | |
8064 | ||
b1462dfa RD |
8065 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
8066 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8067 | PyObject * _resultobj; |
b1462dfa | 8068 | bool _result; |
8bf5d46e | 8069 | wxMenu * _arg0; |
b1462dfa RD |
8070 | size_t _arg1; |
8071 | wxMenuItem * _arg2; | |
1d99702e | 8072 | PyObject * _argo0 = 0; |
b1462dfa RD |
8073 | PyObject * _argo2 = 0; |
8074 | char *_kwnames[] = { "self","pos","item", NULL }; | |
8ab979d7 RD |
8075 | |
8076 | self = self; | |
b1462dfa | 8077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 8078 | return NULL; |
1d99702e RD |
8079 | if (_argo0) { |
8080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); |
8bf5d46e RD |
8083 | return NULL; |
8084 | } | |
8085 | } | |
b1462dfa RD |
8086 | if (_argo2) { |
8087 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8088 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
8089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
8090 | return NULL; |
8091 | } | |
8092 | } | |
cf694132 | 8093 | { |
4268f798 | 8094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8095 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); |
cf694132 | 8096 | |
4268f798 | 8097 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8098 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8099 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8100 | return _resultobj; |
8101 | } | |
8102 | ||
b1462dfa RD |
8103 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
8104 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 8105 | PyObject * _resultobj; |
b1462dfa | 8106 | wxMenuItem * _result; |
efc5f224 | 8107 | wxMenu * _arg0; |
b1462dfa | 8108 | int _arg1; |
efc5f224 | 8109 | PyObject * _argo0 = 0; |
b1462dfa | 8110 | char *_kwnames[] = { "self","id", NULL }; |
efc5f224 RD |
8111 | |
8112 | self = self; | |
b1462dfa | 8113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
8114 | return NULL; |
8115 | if (_argo0) { | |
8116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
8119 | return NULL; |
8120 | } | |
8121 | } | |
8122 | { | |
4268f798 | 8123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8124 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 | 8125 | |
4268f798 | 8126 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8127 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8128 | }{ _resultobj = wxPyMake_wxObject(_result); } |
efc5f224 RD |
8129 | return _resultobj; |
8130 | } | |
8131 | ||
b1462dfa RD |
8132 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
8133 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8134 | PyObject * _resultobj; |
b1462dfa RD |
8135 | wxMenuItem * _result; |
8136 | wxMenu * _arg0; | |
8137 | wxMenuItem * _arg1; | |
8138 | PyObject * _argo0 = 0; | |
8139 | PyObject * _argo1 = 0; | |
8140 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
8141 | |
8142 | self = self; | |
b1462dfa RD |
8143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
8144 | return NULL; | |
8145 | if (_argo0) { | |
8146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
8149 | return NULL; | |
8150 | } | |
8151 | } | |
8152 | if (_argo1) { | |
8153 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8154 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 8156 | return NULL; |
b1462dfa RD |
8157 | } |
8158 | } | |
cf694132 | 8159 | { |
4268f798 | 8160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8161 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 | 8162 | |
4268f798 | 8163 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8164 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8165 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8166 | return _resultobj; |
8167 | } | |
8168 | ||
eb715945 | 8169 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 8170 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8171 | PyObject * _resultobj; |
b1462dfa | 8172 | wxMenu * _arg0; |
1d99702e | 8173 | PyObject * _argo0 = 0; |
b1462dfa | 8174 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8175 | |
8176 | self = self; | |
b1462dfa | 8177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 8178 | return NULL; |
1d99702e RD |
8179 | if (_argo0) { |
8180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
8183 | return NULL; |
8184 | } | |
8185 | } | |
cf694132 | 8186 | { |
4268f798 | 8187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8188 | wxMenu_Destroy(_arg0); |
cf694132 | 8189 | |
4268f798 | 8190 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8191 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8192 | } Py_INCREF(Py_None); |
8ab979d7 | 8193 | _resultobj = Py_None; |
8ab979d7 RD |
8194 | return _resultobj; |
8195 | } | |
8196 | ||
b1462dfa RD |
8197 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
8198 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8199 | PyObject * _resultobj; |
b1462dfa RD |
8200 | bool _result; |
8201 | wxMenu * _arg0; | |
8ab979d7 | 8202 | int _arg1; |
1d99702e | 8203 | PyObject * _argo0 = 0; |
b1462dfa | 8204 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8205 | |
8206 | self = self; | |
b1462dfa | 8207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8208 | return NULL; |
1d99702e RD |
8209 | if (_argo0) { |
8210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
8213 | return NULL; |
8214 | } | |
8215 | } | |
cf694132 | 8216 | { |
4268f798 | 8217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8218 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 | 8219 | |
4268f798 | 8220 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8221 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8222 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8223 | return _resultobj; |
8224 | } | |
8225 | ||
b1462dfa RD |
8226 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
8227 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8228 | PyObject * _resultobj; |
b1462dfa RD |
8229 | bool _result; |
8230 | wxMenu * _arg0; | |
8231 | wxMenuItem * _arg1; | |
1d99702e | 8232 | PyObject * _argo0 = 0; |
b1462dfa RD |
8233 | PyObject * _argo1 = 0; |
8234 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
8235 | |
8236 | self = self; | |
b1462dfa | 8237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8238 | return NULL; |
1d99702e RD |
8239 | if (_argo0) { |
8240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
8243 | return NULL; | |
8244 | } | |
8245 | } | |
8246 | if (_argo1) { | |
8247 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8248 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
8250 | return NULL; |
8251 | } | |
8252 | } | |
cf694132 | 8253 | { |
4268f798 | 8254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8255 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 | 8256 | |
4268f798 | 8257 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8258 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8259 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8260 | return _resultobj; |
8261 | } | |
8262 | ||
b1462dfa RD |
8263 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
8264 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8265 | PyObject * _resultobj; |
b1462dfa RD |
8266 | size_t _result; |
8267 | wxMenu * _arg0; | |
1d99702e | 8268 | PyObject * _argo0 = 0; |
b1462dfa | 8269 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8270 | |
8271 | self = self; | |
b1462dfa | 8272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 8273 | return NULL; |
1d99702e RD |
8274 | if (_argo0) { |
8275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
8278 | return NULL; |
8279 | } | |
8280 | } | |
cf694132 | 8281 | { |
4268f798 | 8282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8283 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 | 8284 | |
4268f798 | 8285 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8286 | if (PyErr_Occurred()) return NULL; |
2abc0a0f | 8287 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8288 | return _resultobj; |
8289 | } | |
8290 | ||
b1462dfa RD |
8291 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
8292 | wxMenuItemList& list = self->GetMenuItems(); | |
8293 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
8294 | } | |
8295 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8296 | PyObject * _resultobj; |
b1462dfa RD |
8297 | PyObject * _result; |
8298 | wxMenu * _arg0; | |
1d99702e | 8299 | PyObject * _argo0 = 0; |
b1462dfa | 8300 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8301 | |
8302 | self = self; | |
b1462dfa | 8303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 8304 | return NULL; |
1d99702e RD |
8305 | if (_argo0) { |
8306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
8309 | return NULL; |
8310 | } | |
8311 | } | |
cf694132 | 8312 | { |
4268f798 | 8313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8314 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 | 8315 | |
4268f798 | 8316 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8317 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8318 | }{ |
8319 | _resultobj = _result; | |
8320 | } | |
8ab979d7 RD |
8321 | return _resultobj; |
8322 | } | |
8323 | ||
b1462dfa RD |
8324 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
8325 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8326 | PyObject * _resultobj; |
b1462dfa RD |
8327 | wxMenu * _arg0; |
8328 | wxEvtHandler * _arg1; | |
1d99702e | 8329 | PyObject * _argo0 = 0; |
b1462dfa RD |
8330 | PyObject * _argo1 = 0; |
8331 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
8332 | |
8333 | self = self; | |
b1462dfa | 8334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8335 | return NULL; |
1d99702e RD |
8336 | if (_argo0) { |
8337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
8340 | return NULL; |
8341 | } | |
8342 | } | |
b1462dfa RD |
8343 | if (_argo1) { |
8344 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8345 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
8346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 8347 | return NULL; |
b1462dfa | 8348 | } |
8ab979d7 | 8349 | } |
cf694132 | 8350 | { |
4268f798 | 8351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8352 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 | 8353 | |
4268f798 | 8354 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8355 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8356 | } Py_INCREF(Py_None); |
8357 | _resultobj = Py_None; | |
8ab979d7 RD |
8358 | return _resultobj; |
8359 | } | |
8360 | ||
b1462dfa RD |
8361 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
8362 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8363 | PyObject * _resultobj; |
b1462dfa RD |
8364 | wxEvtHandler * _result; |
8365 | wxMenu * _arg0; | |
1d99702e | 8366 | PyObject * _argo0 = 0; |
b1462dfa | 8367 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8368 | |
8369 | self = self; | |
b1462dfa | 8370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 8371 | return NULL; |
1d99702e RD |
8372 | if (_argo0) { |
8373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
8376 | return NULL; |
8377 | } | |
8378 | } | |
cf694132 | 8379 | { |
4268f798 | 8380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8381 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 | 8382 | |
4268f798 | 8383 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8384 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8385 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8386 | return _resultobj; |
8387 | } | |
8388 | ||
b1462dfa RD |
8389 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
8390 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 8391 | PyObject * _resultobj; |
b1462dfa RD |
8392 | wxMenu * _arg0; |
8393 | wxWindow * _arg1; | |
2f90df85 | 8394 | PyObject * _argo0 = 0; |
b1462dfa RD |
8395 | PyObject * _argo1 = 0; |
8396 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
8397 | |
8398 | self = self; | |
b1462dfa | 8399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
8400 | return NULL; |
8401 | if (_argo0) { | |
8402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
8405 | return NULL; |
8406 | } | |
8407 | } | |
b1462dfa RD |
8408 | if (_argo1) { |
8409 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8410 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 8412 | return NULL; |
b1462dfa | 8413 | } |
2f90df85 | 8414 | } |
2f90df85 | 8415 | { |
4268f798 | 8416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8417 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 | 8418 | |
4268f798 | 8419 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8420 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
8421 | } Py_INCREF(Py_None); |
8422 | _resultobj = Py_None; | |
2f90df85 RD |
8423 | return _resultobj; |
8424 | } | |
8425 | ||
b1462dfa RD |
8426 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
8427 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8428 | PyObject * _resultobj; |
b1462dfa RD |
8429 | wxWindow * _result; |
8430 | wxMenu * _arg0; | |
1d99702e | 8431 | PyObject * _argo0 = 0; |
b1462dfa | 8432 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8433 | |
8434 | self = self; | |
b1462dfa | 8435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 8436 | return NULL; |
1d99702e RD |
8437 | if (_argo0) { |
8438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
8441 | return NULL; |
8442 | } | |
8443 | } | |
cf694132 | 8444 | { |
4268f798 | 8445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8446 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 | 8447 | |
4268f798 | 8448 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8449 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8450 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8451 | return _resultobj; |
8452 | } | |
8453 | ||
b1462dfa RD |
8454 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
8455 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8456 | PyObject * _resultobj; |
b1462dfa RD |
8457 | long _result; |
8458 | wxMenu * _arg0; | |
1d99702e | 8459 | PyObject * _argo0 = 0; |
b1462dfa | 8460 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8461 | |
8462 | self = self; | |
b1462dfa | 8463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 8464 | return NULL; |
1d99702e RD |
8465 | if (_argo0) { |
8466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
8469 | return NULL; |
8470 | } | |
8471 | } | |
8ab979d7 | 8472 | { |
4268f798 | 8473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8474 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 | 8475 | |
4268f798 | 8476 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8477 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8478 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8479 | return _resultobj; |
8480 | } | |
8481 | ||
b1462dfa RD |
8482 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
8483 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8484 | PyObject * _resultobj; |
b1462dfa RD |
8485 | bool _result; |
8486 | wxMenu * _arg0; | |
1d99702e | 8487 | PyObject * _argo0 = 0; |
b1462dfa | 8488 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8489 | |
8490 | self = self; | |
b1462dfa | 8491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 8492 | return NULL; |
1d99702e RD |
8493 | if (_argo0) { |
8494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
8497 | return NULL; |
8498 | } | |
8499 | } | |
8ab979d7 | 8500 | { |
4268f798 | 8501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8502 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 | 8503 | |
4268f798 | 8504 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8505 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8506 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8507 | return _resultobj; |
8508 | } | |
8509 | ||
b1462dfa RD |
8510 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
8511 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8512 | PyObject * _resultobj; |
b1462dfa RD |
8513 | wxMenu * _arg0; |
8514 | wxMenu * _arg1; | |
1d99702e | 8515 | PyObject * _argo0 = 0; |
b1462dfa RD |
8516 | PyObject * _argo1 = 0; |
8517 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
8518 | |
8519 | self = self; | |
b1462dfa | 8520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8521 | return NULL; |
1d99702e RD |
8522 | if (_argo0) { |
8523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8526 | return NULL; |
8527 | } | |
8528 | } | |
b1462dfa RD |
8529 | if (_argo1) { |
8530 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8531 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 8533 | return NULL; |
b1462dfa | 8534 | } |
8ab979d7 | 8535 | } |
cf694132 | 8536 | { |
4268f798 | 8537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8538 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 | 8539 | |
4268f798 | 8540 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8541 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8542 | } Py_INCREF(Py_None); |
8ab979d7 | 8543 | _resultobj = Py_None; |
8ab979d7 RD |
8544 | return _resultobj; |
8545 | } | |
8546 | ||
b1462dfa RD |
8547 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
8548 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8549 | PyObject * _resultobj; |
b1462dfa RD |
8550 | wxMenu * _result; |
8551 | wxMenu * _arg0; | |
1d99702e | 8552 | PyObject * _argo0 = 0; |
b1462dfa | 8553 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8554 | |
8555 | self = self; | |
b1462dfa | 8556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 8557 | return NULL; |
1d99702e RD |
8558 | if (_argo0) { |
8559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8562 | return NULL; |
8563 | } | |
8564 | } | |
8ab979d7 | 8565 | { |
4268f798 | 8566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8567 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 | 8568 | |
4268f798 | 8569 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8570 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8571 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8572 | return _resultobj; |
8ab979d7 | 8573 | } |
b1462dfa RD |
8574 | |
8575 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
8576 | wxMenuBar *src; | |
8577 | wxWindow *dest; | |
8578 | src = (wxMenuBar *) ptr; | |
8579 | dest = (wxWindow *) src; | |
8580 | return (void *) dest; | |
8581 | } | |
8582 | ||
8583 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
8584 | wxMenuBar *src; | |
8585 | wxEvtHandler *dest; | |
8586 | src = (wxMenuBar *) ptr; | |
8587 | dest = (wxEvtHandler *) src; | |
8588 | return (void *) dest; | |
8ab979d7 | 8589 | } |
b1462dfa | 8590 | |
9416aa89 RD |
8591 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
8592 | wxMenuBar *src; | |
8593 | wxObject *dest; | |
8594 | src = (wxMenuBar *) ptr; | |
8595 | dest = (wxObject *) src; | |
8596 | return (void *) dest; | |
8597 | } | |
8598 | ||
c368d904 | 8599 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
8600 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8601 | PyObject * _resultobj; | |
8602 | wxMenuBar * _result; | |
c368d904 RD |
8603 | long _arg0 = (long ) 0; |
8604 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
8605 | char _ptemp[128]; |
8606 | ||
8607 | self = self; | |
c368d904 | 8608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
8609 | return NULL; |
8610 | { | |
4268f798 | 8611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 | 8612 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa | 8613 | |
4268f798 | 8614 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8615 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8616 | } if (_result) { |
8617 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
8618 | _resultobj = Py_BuildValue("s",_ptemp); | |
8619 | } else { | |
8620 | Py_INCREF(Py_None); | |
8621 | _resultobj = Py_None; | |
8622 | } | |
8ab979d7 RD |
8623 | return _resultobj; |
8624 | } | |
8625 | ||
b1462dfa RD |
8626 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
8627 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8628 | PyObject * _resultobj; |
b1462dfa | 8629 | bool _result; |
8ab979d7 | 8630 | wxMenuBar * _arg0; |
b1462dfa | 8631 | wxMenu * _arg1; |
8ab979d7 | 8632 | wxString * _arg2; |
1d99702e | 8633 | PyObject * _argo0 = 0; |
b1462dfa | 8634 | PyObject * _argo1 = 0; |
8ab979d7 | 8635 | PyObject * _obj2 = 0; |
b1462dfa | 8636 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
8637 | |
8638 | self = self; | |
b1462dfa | 8639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8640 | return NULL; |
1d99702e RD |
8641 | if (_argo0) { |
8642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
8645 | return NULL; | |
8646 | } | |
8647 | } | |
8648 | if (_argo1) { | |
8649 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8650 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
8652 | return NULL; |
8653 | } | |
8654 | } | |
8655 | { | |
185d7c3e RD |
8656 | #if PYTHON_API_VERSION >= 1009 |
8657 | char* tmpPtr; int tmpSize; | |
8658 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8659 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8660 | return NULL; |
8661 | } | |
8662 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8663 | return NULL; | |
8664 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8665 | #else | |
8ab979d7 RD |
8666 | if (!PyString_Check(_obj2)) { |
8667 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8668 | return NULL; | |
8669 | } | |
185d7c3e RD |
8670 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8671 | #endif | |
8ab979d7 | 8672 | } |
cf694132 | 8673 | { |
4268f798 | 8674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8675 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 | 8676 | |
4268f798 | 8677 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8678 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8679 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8680 | { |
8681 | if (_obj2) | |
8682 | delete _arg2; | |
8683 | } | |
8684 | return _resultobj; | |
8685 | } | |
8686 | ||
b1462dfa RD |
8687 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
8688 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8689 | PyObject * _resultobj; |
b1462dfa | 8690 | bool _result; |
8ab979d7 | 8691 | wxMenuBar * _arg0; |
b1462dfa RD |
8692 | size_t _arg1; |
8693 | wxMenu * _arg2; | |
8694 | wxString * _arg3; | |
1d99702e | 8695 | PyObject * _argo0 = 0; |
b1462dfa RD |
8696 | PyObject * _argo2 = 0; |
8697 | PyObject * _obj3 = 0; | |
8698 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
8699 | |
8700 | self = self; | |
b1462dfa | 8701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 8702 | return NULL; |
1d99702e RD |
8703 | if (_argo0) { |
8704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
8707 | return NULL; | |
8708 | } | |
8709 | } | |
8710 | if (_argo2) { | |
8711 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8712 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
8714 | return NULL; |
8715 | } | |
8716 | } | |
b1462dfa | 8717 | { |
185d7c3e RD |
8718 | #if PYTHON_API_VERSION >= 1009 |
8719 | char* tmpPtr; int tmpSize; | |
8720 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 8721 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8722 | return NULL; |
8723 | } | |
8724 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8725 | return NULL; | |
8726 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8727 | #else | |
b1462dfa RD |
8728 | if (!PyString_Check(_obj3)) { |
8729 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8730 | return NULL; | |
8731 | } | |
185d7c3e RD |
8732 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8733 | #endif | |
b1462dfa | 8734 | } |
cf694132 | 8735 | { |
4268f798 | 8736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8737 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 8738 | |
4268f798 | 8739 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8740 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8741 | } _resultobj = Py_BuildValue("i",_result); |
b1462dfa RD |
8742 | { |
8743 | if (_obj3) | |
8744 | delete _arg3; | |
8745 | } | |
8ab979d7 RD |
8746 | return _resultobj; |
8747 | } | |
8748 | ||
b1462dfa RD |
8749 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
8750 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8751 | PyObject * _resultobj; |
b1462dfa | 8752 | size_t _result; |
8ab979d7 | 8753 | wxMenuBar * _arg0; |
1d99702e | 8754 | PyObject * _argo0 = 0; |
b1462dfa | 8755 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8756 | |
8757 | self = self; | |
b1462dfa | 8758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 8759 | return NULL; |
1d99702e RD |
8760 | if (_argo0) { |
8761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
8764 | return NULL; |
8765 | } | |
8766 | } | |
cf694132 | 8767 | { |
4268f798 | 8768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8769 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 | 8770 | |
4268f798 | 8771 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8772 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8773 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8774 | return _resultobj; |
8775 | } | |
8776 | ||
b1462dfa RD |
8777 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
8778 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 8779 | PyObject * _resultobj; |
b1462dfa | 8780 | wxMenu * _result; |
06c0fba4 | 8781 | wxMenuBar * _arg0; |
b1462dfa | 8782 | size_t _arg1; |
06c0fba4 | 8783 | PyObject * _argo0 = 0; |
b1462dfa | 8784 | char *_kwnames[] = { "self","pos", NULL }; |
06c0fba4 RD |
8785 | |
8786 | self = self; | |
b1462dfa | 8787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
8788 | return NULL; |
8789 | if (_argo0) { | |
8790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
8793 | return NULL; |
8794 | } | |
8795 | } | |
8796 | { | |
4268f798 | 8797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 8798 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 | 8799 | |
4268f798 | 8800 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8801 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8802 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
8803 | return _resultobj; |
8804 | } | |
8805 | ||
2abc0a0f RD |
8806 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
8807 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8808 | PyObject * _resultobj; | |
8809 | wxMenu * _result; | |
8810 | wxMenuBar * _arg0; | |
8811 | size_t _arg1; | |
8812 | wxMenu * _arg2; | |
8813 | wxString * _arg3; | |
8814 | PyObject * _argo0 = 0; | |
8815 | PyObject * _argo2 = 0; | |
8816 | PyObject * _obj3 = 0; | |
8817 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
2abc0a0f RD |
8818 | |
8819 | self = self; | |
8820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
8821 | return NULL; | |
8822 | if (_argo0) { | |
8823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
8826 | return NULL; | |
8827 | } | |
8828 | } | |
8829 | if (_argo2) { | |
8830 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8831 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
8833 | return NULL; | |
8834 | } | |
8835 | } | |
8836 | { | |
185d7c3e RD |
8837 | #if PYTHON_API_VERSION >= 1009 |
8838 | char* tmpPtr; int tmpSize; | |
8839 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 8840 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8841 | return NULL; |
8842 | } | |
8843 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8844 | return NULL; | |
8845 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8846 | #else | |
2abc0a0f RD |
8847 | if (!PyString_Check(_obj3)) { |
8848 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8849 | return NULL; | |
8850 | } | |
185d7c3e RD |
8851 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8852 | #endif | |
2abc0a0f RD |
8853 | } |
8854 | { | |
4268f798 | 8855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2abc0a0f RD |
8856 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); |
8857 | ||
4268f798 | 8858 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8859 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8860 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8861 | { |
8862 | if (_obj3) | |
8863 | delete _arg3; | |
8864 | } | |
8865 | return _resultobj; | |
8866 | } | |
8867 | ||
8868 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8869 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8870 | PyObject * _resultobj; | |
8871 | wxMenu * _result; | |
8872 | wxMenuBar * _arg0; | |
8873 | size_t _arg1; | |
8874 | PyObject * _argo0 = 0; | |
8875 | char *_kwnames[] = { "self","pos", NULL }; | |
2abc0a0f RD |
8876 | |
8877 | self = self; | |
8878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
8879 | return NULL; | |
8880 | if (_argo0) { | |
8881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
8884 | return NULL; | |
8885 | } | |
8886 | } | |
8887 | { | |
4268f798 | 8888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2abc0a0f RD |
8889 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); |
8890 | ||
4268f798 | 8891 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8892 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8893 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8894 | return _resultobj; |
8895 | } | |
8896 | ||
b1462dfa RD |
8897 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
8898 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8899 | PyObject * _resultobj; |
b1462dfa RD |
8900 | wxMenuBar * _arg0; |
8901 | size_t _arg1; | |
8902 | bool _arg2; | |
8903 | PyObject * _argo0 = 0; | |
8904 | int tempbool2; | |
8905 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
8906 | ||
8907 | self = self; | |
8908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8909 | return NULL; | |
8910 | if (_argo0) { | |
8911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
8914 | return NULL; | |
8915 | } | |
8916 | } | |
8917 | _arg2 = (bool ) tempbool2; | |
8918 | { | |
4268f798 | 8919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
8920 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); |
8921 | ||
4268f798 | 8922 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8923 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8924 | } Py_INCREF(Py_None); |
8925 | _resultobj = Py_None; | |
8926 | return _resultobj; | |
8927 | } | |
8928 | ||
8929 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
8930 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8931 | PyObject * _resultobj; | |
8932 | wxMenuBar * _arg0; | |
8933 | size_t _arg1; | |
8934 | wxString * _arg2; | |
1d99702e | 8935 | PyObject * _argo0 = 0; |
cf694132 | 8936 | PyObject * _obj2 = 0; |
b1462dfa | 8937 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
8938 | |
8939 | self = self; | |
b1462dfa | 8940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 8941 | return NULL; |
1d99702e RD |
8942 | if (_argo0) { |
8943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
8946 | return NULL; |
8947 | } | |
8948 | } | |
cf694132 | 8949 | { |
185d7c3e RD |
8950 | #if PYTHON_API_VERSION >= 1009 |
8951 | char* tmpPtr; int tmpSize; | |
8952 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8953 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8954 | return NULL; |
8955 | } | |
8956 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8957 | return NULL; | |
8958 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8959 | #else | |
cf694132 RD |
8960 | if (!PyString_Check(_obj2)) { |
8961 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8962 | return NULL; | |
8963 | } | |
185d7c3e RD |
8964 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8965 | #endif | |
cf694132 | 8966 | } |
cf694132 | 8967 | { |
4268f798 | 8968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
8969 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); |
8970 | ||
4268f798 | 8971 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8972 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8973 | } Py_INCREF(Py_None); |
8974 | _resultobj = Py_None; | |
8975 | { | |
8976 | if (_obj2) | |
8977 | delete _arg2; | |
8978 | } | |
8979 | return _resultobj; | |
8980 | } | |
8981 | ||
8982 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
8983 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8984 | PyObject * _resultobj; | |
8985 | wxString * _result; | |
8986 | wxMenuBar * _arg0; | |
8987 | size_t _arg1; | |
8988 | PyObject * _argo0 = 0; | |
8989 | char *_kwnames[] = { "self","pos", NULL }; | |
8990 | ||
8991 | self = self; | |
8992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
8993 | return NULL; | |
8994 | if (_argo0) { | |
8995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
8998 | return NULL; | |
8999 | } | |
9000 | } | |
9001 | { | |
4268f798 | 9002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
9003 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); |
9004 | ||
4268f798 | 9005 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9006 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9007 | }{ |
eec92d76 | 9008 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
9009 | } |
9010 | { | |
9011 | delete _result; | |
9012 | } | |
9013 | return _resultobj; | |
9014 | } | |
9015 | ||
3a0958b1 RD |
9016 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) |
9017 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9018 | PyObject * _resultobj; | |
9019 | int _result; | |
9020 | wxMenuBar * _arg0; | |
9021 | wxString * _arg1; | |
9022 | PyObject * _argo0 = 0; | |
9023 | PyObject * _obj1 = 0; | |
9024 | char *_kwnames[] = { "self","title", NULL }; | |
9025 | ||
9026 | self = self; | |
9027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) | |
9028 | return NULL; | |
9029 | if (_argo0) { | |
9030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); | |
9033 | return NULL; | |
9034 | } | |
9035 | } | |
9036 | { | |
9037 | #if PYTHON_API_VERSION >= 1009 | |
9038 | char* tmpPtr; int tmpSize; | |
9039 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9040 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9041 | return NULL; | |
9042 | } | |
9043 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9044 | return NULL; | |
9045 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9046 | #else | |
9047 | if (!PyString_Check(_obj1)) { | |
9048 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9049 | return NULL; | |
9050 | } | |
9051 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9052 | #endif | |
9053 | } | |
9054 | { | |
4268f798 | 9055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3a0958b1 RD |
9056 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); |
9057 | ||
4268f798 | 9058 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
9059 | if (PyErr_Occurred()) return NULL; |
9060 | } _resultobj = Py_BuildValue("i",_result); | |
9061 | { | |
9062 | if (_obj1) | |
9063 | delete _arg1; | |
9064 | } | |
9065 | return _resultobj; | |
9066 | } | |
9067 | ||
b1462dfa RD |
9068 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) |
9069 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9070 | PyObject * _resultobj; | |
9071 | int _result; | |
9072 | wxMenuBar * _arg0; | |
9073 | wxString * _arg1; | |
9074 | wxString * _arg2; | |
9075 | PyObject * _argo0 = 0; | |
9076 | PyObject * _obj1 = 0; | |
9077 | PyObject * _obj2 = 0; | |
9078 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
9079 | ||
9080 | self = self; | |
9081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9082 | return NULL; | |
9083 | if (_argo0) { | |
9084 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9085 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
9087 | return NULL; | |
9088 | } | |
9089 | } | |
9090 | { | |
185d7c3e RD |
9091 | #if PYTHON_API_VERSION >= 1009 |
9092 | char* tmpPtr; int tmpSize; | |
9093 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9094 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9095 | return NULL; |
9096 | } | |
9097 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9098 | return NULL; | |
9099 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9100 | #else | |
b1462dfa | 9101 | if (!PyString_Check(_obj1)) { |
cf694132 RD |
9102 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
9103 | return NULL; | |
9104 | } | |
185d7c3e RD |
9105 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9106 | #endif | |
cf694132 | 9107 | } |
b1462dfa | 9108 | { |
185d7c3e RD |
9109 | #if PYTHON_API_VERSION >= 1009 |
9110 | char* tmpPtr; int tmpSize; | |
9111 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 9112 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9113 | return NULL; |
9114 | } | |
9115 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9116 | return NULL; | |
9117 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9118 | #else | |
b1462dfa RD |
9119 | if (!PyString_Check(_obj2)) { |
9120 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9121 | return NULL; | |
9122 | } | |
185d7c3e RD |
9123 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9124 | #endif | |
b1462dfa RD |
9125 | } |
9126 | { | |
4268f798 | 9127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
9128 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); |
9129 | ||
4268f798 | 9130 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9131 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9132 | } _resultobj = Py_BuildValue("i",_result); |
9133 | { | |
9134 | if (_obj1) | |
9135 | delete _arg1; | |
9136 | } | |
9137 | { | |
9138 | if (_obj2) | |
9139 | delete _arg2; | |
9140 | } | |
9141 | return _resultobj; | |
9142 | } | |
9143 | ||
9144 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
9145 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9146 | PyObject * _resultobj; | |
9147 | wxMenuItem * _result; | |
9148 | wxMenuBar * _arg0; | |
9149 | int _arg1; | |
9150 | PyObject * _argo0 = 0; | |
9151 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
9152 | |
9153 | self = self; | |
9154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
9155 | return NULL; | |
9156 | if (_argo0) { | |
9157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
9160 | return NULL; |
9161 | } | |
9162 | } | |
9163 | { | |
4268f798 | 9164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9165 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 | 9166 | |
4268f798 | 9167 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9168 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9169 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 9170 | return _resultobj; |
cf694132 | 9171 | } |
b1462dfa RD |
9172 | |
9173 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
9174 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9175 | PyObject * _resultobj; | |
9176 | wxMenuBar * _arg0; | |
9177 | int _arg1; | |
9178 | bool _arg2; | |
9179 | PyObject * _argo0 = 0; | |
9180 | int tempbool2; | |
9181 | char *_kwnames[] = { "self","id","enable", NULL }; | |
9182 | ||
9183 | self = self; | |
9184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9185 | return NULL; | |
9186 | if (_argo0) { | |
9187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
9190 | return NULL; | |
9191 | } | |
9192 | } | |
9193 | _arg2 = (bool ) tempbool2; | |
cf694132 | 9194 | { |
4268f798 | 9195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
9196 | wxMenuBar_Enable(_arg0,_arg1,_arg2); |
9197 | ||
4268f798 | 9198 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9199 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9200 | } Py_INCREF(Py_None); |
9201 | _resultobj = Py_None; | |
9202 | return _resultobj; | |
cf694132 | 9203 | } |
b1462dfa RD |
9204 | |
9205 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
9206 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9207 | PyObject * _resultobj; | |
9208 | wxMenuBar * _arg0; | |
9209 | int _arg1; | |
9210 | bool _arg2; | |
9211 | PyObject * _argo0 = 0; | |
9212 | int tempbool2; | |
9213 | char *_kwnames[] = { "self","id","check", NULL }; | |
9214 | ||
9215 | self = self; | |
9216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9217 | return NULL; | |
9218 | if (_argo0) { | |
9219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
9222 | return NULL; | |
9223 | } | |
9224 | } | |
9225 | _arg2 = (bool ) tempbool2; | |
9226 | { | |
4268f798 | 9227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
9228 | wxMenuBar_Check(_arg0,_arg1,_arg2); |
9229 | ||
4268f798 | 9230 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9231 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9232 | } Py_INCREF(Py_None); |
9233 | _resultobj = Py_None; | |
cf694132 RD |
9234 | return _resultobj; |
9235 | } | |
9236 | ||
b1462dfa RD |
9237 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
9238 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9239 | PyObject * _resultobj; |
9240 | bool _result; | |
b1462dfa RD |
9241 | wxMenuBar * _arg0; |
9242 | int _arg1; | |
1d99702e | 9243 | PyObject * _argo0 = 0; |
b1462dfa | 9244 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9245 | |
9246 | self = self; | |
b1462dfa | 9247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9248 | return NULL; |
1d99702e RD |
9249 | if (_argo0) { |
9250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9253 | return NULL; |
9254 | } | |
9255 | } | |
cf694132 | 9256 | { |
4268f798 | 9257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9258 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 | 9259 | |
4268f798 | 9260 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9261 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9262 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9263 | return _resultobj; |
9264 | } | |
9265 | ||
b1462dfa RD |
9266 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
9267 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9268 | PyObject * _resultobj; |
9269 | bool _result; | |
b1462dfa RD |
9270 | wxMenuBar * _arg0; |
9271 | int _arg1; | |
1d99702e | 9272 | PyObject * _argo0 = 0; |
b1462dfa | 9273 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9274 | |
9275 | self = self; | |
b1462dfa | 9276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9277 | return NULL; |
1d99702e RD |
9278 | if (_argo0) { |
9279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9282 | return NULL; |
9283 | } | |
9284 | } | |
cf694132 | 9285 | { |
4268f798 | 9286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9287 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 | 9288 | |
4268f798 | 9289 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9290 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9291 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9292 | return _resultobj; |
9293 | } | |
9294 | ||
b1462dfa RD |
9295 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
9296 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9297 | PyObject * _resultobj; |
b1462dfa RD |
9298 | wxMenuBar * _arg0; |
9299 | int _arg1; | |
9300 | wxString * _arg2; | |
1d99702e | 9301 | PyObject * _argo0 = 0; |
b1462dfa RD |
9302 | PyObject * _obj2 = 0; |
9303 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
9304 | |
9305 | self = self; | |
b1462dfa | 9306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 9307 | return NULL; |
1d99702e RD |
9308 | if (_argo0) { |
9309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9312 | return NULL; |
9313 | } | |
9314 | } | |
b1462dfa | 9315 | { |
185d7c3e RD |
9316 | #if PYTHON_API_VERSION >= 1009 |
9317 | char* tmpPtr; int tmpSize; | |
9318 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 9319 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9320 | return NULL; |
9321 | } | |
9322 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9323 | return NULL; | |
9324 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9325 | #else | |
b1462dfa RD |
9326 | if (!PyString_Check(_obj2)) { |
9327 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9328 | return NULL; | |
9329 | } | |
185d7c3e RD |
9330 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9331 | #endif | |
b1462dfa | 9332 | } |
cf694132 | 9333 | { |
4268f798 | 9334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9335 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 9336 | |
4268f798 | 9337 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9338 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9339 | } Py_INCREF(Py_None); |
9340 | _resultobj = Py_None; | |
9341 | { | |
9342 | if (_obj2) | |
9343 | delete _arg2; | |
9344 | } | |
8ab979d7 RD |
9345 | return _resultobj; |
9346 | } | |
9347 | ||
b1462dfa RD |
9348 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
9349 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9350 | PyObject * _resultobj; |
b1462dfa RD |
9351 | wxString * _result; |
9352 | wxMenuBar * _arg0; | |
9353 | int _arg1; | |
1d99702e | 9354 | PyObject * _argo0 = 0; |
b1462dfa | 9355 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9356 | |
9357 | self = self; | |
b1462dfa | 9358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9359 | return NULL; |
1d99702e RD |
9360 | if (_argo0) { |
9361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
9364 | return NULL; | |
9365 | } | |
9366 | } | |
9367 | { | |
4268f798 | 9368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
9369 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); |
9370 | ||
4268f798 | 9371 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9372 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9373 | }{ |
eec92d76 | 9374 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
9375 | } |
9376 | { | |
9377 | delete _result; | |
9378 | } | |
9379 | return _resultobj; | |
9380 | } | |
9381 | ||
9382 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
9383 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9384 | PyObject * _resultobj; | |
9385 | wxMenuBar * _arg0; | |
9386 | int _arg1; | |
9387 | wxString * _arg2; | |
9388 | PyObject * _argo0 = 0; | |
9389 | PyObject * _obj2 = 0; | |
9390 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
9391 | ||
9392 | self = self; | |
9393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9394 | return NULL; | |
9395 | if (_argo0) { | |
9396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
9399 | return NULL; | |
9400 | } | |
9401 | } | |
9402 | { | |
185d7c3e RD |
9403 | #if PYTHON_API_VERSION >= 1009 |
9404 | char* tmpPtr; int tmpSize; | |
9405 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 9406 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9407 | return NULL; |
9408 | } | |
9409 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9410 | return NULL; | |
9411 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9412 | #else | |
b1462dfa RD |
9413 | if (!PyString_Check(_obj2)) { |
9414 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9415 | return NULL; | |
9416 | } | |
185d7c3e RD |
9417 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9418 | #endif | |
b1462dfa RD |
9419 | } |
9420 | { | |
4268f798 | 9421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
9422 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); |
9423 | ||
4268f798 | 9424 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9425 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9426 | } Py_INCREF(Py_None); |
9427 | _resultobj = Py_None; | |
9428 | { | |
9429 | if (_obj2) | |
9430 | delete _arg2; | |
9431 | } | |
9432 | return _resultobj; | |
9433 | } | |
9434 | ||
9435 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
9436 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9437 | PyObject * _resultobj; | |
9438 | wxString * _result; | |
9439 | wxMenuBar * _arg0; | |
9440 | int _arg1; | |
9441 | PyObject * _argo0 = 0; | |
9442 | char *_kwnames[] = { "self","id", NULL }; | |
9443 | ||
9444 | self = self; | |
9445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
9446 | return NULL; | |
9447 | if (_argo0) { | |
9448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9451 | return NULL; |
9452 | } | |
9453 | } | |
cf694132 | 9454 | { |
4268f798 | 9455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9456 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 | 9457 | |
4268f798 | 9458 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9459 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9460 | }{ |
eec92d76 | 9461 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa RD |
9462 | } |
9463 | { | |
9464 | delete _result; | |
9465 | } | |
8ab979d7 RD |
9466 | return _resultobj; |
9467 | } | |
9468 | ||
9416aa89 RD |
9469 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
9470 | wxMenuItem *src; | |
9471 | wxObject *dest; | |
9472 | src = (wxMenuItem *) ptr; | |
9473 | dest = (wxObject *) src; | |
9474 | return (void *) dest; | |
9475 | } | |
9476 | ||
b1462dfa RD |
9477 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
9478 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9479 | PyObject * _resultobj; |
b1462dfa RD |
9480 | wxMenuItem * _result; |
9481 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 9482 | int _arg1 = (int ) wxID_SEPARATOR; |
23bed520 RD |
9483 | wxString * _arg2 = (wxString *) &wxEmptyString; |
9484 | wxString * _arg3 = (wxString *) &wxEmptyString; | |
b1462dfa RD |
9485 | bool _arg4 = (bool ) FALSE; |
9486 | wxMenu * _arg5 = (wxMenu *) NULL; | |
1d99702e | 9487 | PyObject * _argo0 = 0; |
b1462dfa RD |
9488 | PyObject * _obj2 = 0; |
9489 | PyObject * _obj3 = 0; | |
9490 | int tempbool4 = (int) FALSE; | |
9491 | PyObject * _argo5 = 0; | |
9492 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
9493 | char _ptemp[128]; | |
8ab979d7 RD |
9494 | |
9495 | self = self; | |
b1462dfa | 9496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) |
8ab979d7 | 9497 | return NULL; |
1d99702e RD |
9498 | if (_argo0) { |
9499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
9502 | return NULL; | |
9503 | } | |
9504 | } | |
9505 | if (_obj2) | |
9506 | { | |
185d7c3e RD |
9507 | #if PYTHON_API_VERSION >= 1009 |
9508 | char* tmpPtr; int tmpSize; | |
9509 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 9510 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9511 | return NULL; |
9512 | } | |
9513 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9514 | return NULL; | |
9515 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9516 | #else | |
b1462dfa RD |
9517 | if (!PyString_Check(_obj2)) { |
9518 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9519 | return NULL; | |
9520 | } | |
185d7c3e RD |
9521 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
9522 | #endif | |
b1462dfa RD |
9523 | } |
9524 | if (_obj3) | |
9525 | { | |
185d7c3e RD |
9526 | #if PYTHON_API_VERSION >= 1009 |
9527 | char* tmpPtr; int tmpSize; | |
9528 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 9529 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9530 | return NULL; |
9531 | } | |
9532 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
9533 | return NULL; | |
9534 | _arg3 = new wxString(tmpPtr, tmpSize); | |
9535 | #else | |
b1462dfa RD |
9536 | if (!PyString_Check(_obj3)) { |
9537 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9538 | return NULL; | |
9539 | } | |
185d7c3e RD |
9540 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
9541 | #endif | |
b1462dfa RD |
9542 | } |
9543 | _arg4 = (bool ) tempbool4; | |
9544 | if (_argo5) { | |
9545 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
9546 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
9547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
9548 | return NULL; |
9549 | } | |
9550 | } | |
cf694132 | 9551 | { |
4268f798 | 9552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9553 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 | 9554 | |
4268f798 | 9555 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9556 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9557 | } if (_result) { |
9558 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
9559 | _resultobj = Py_BuildValue("s",_ptemp); | |
9560 | } else { | |
9561 | Py_INCREF(Py_None); | |
9562 | _resultobj = Py_None; | |
9563 | } | |
9564 | { | |
9565 | if (_obj2) | |
9566 | delete _arg2; | |
9567 | } | |
9568 | { | |
9569 | if (_obj3) | |
9570 | delete _arg3; | |
9571 | } | |
8ab979d7 RD |
9572 | return _resultobj; |
9573 | } | |
9574 | ||
b1462dfa RD |
9575 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
9576 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9577 | PyObject * _resultobj; |
b1462dfa | 9578 | wxMenu * _result; |
8ab979d7 | 9579 | wxMenuItem * _arg0; |
1d99702e | 9580 | PyObject * _argo0 = 0; |
efc5f224 | 9581 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9582 | |
9583 | self = self; | |
b1462dfa | 9584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 9585 | return NULL; |
1d99702e RD |
9586 | if (_argo0) { |
9587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9590 | return NULL; |
9591 | } | |
9592 | } | |
cf694132 | 9593 | { |
4268f798 | 9594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9595 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 | 9596 | |
4268f798 | 9597 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9598 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9599 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9600 | return _resultobj; |
9601 | } | |
9602 | ||
2abc0a0f RD |
9603 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
9604 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9605 | PyObject * _resultobj; |
9606 | wxMenuItem * _arg0; | |
2abc0a0f | 9607 | int _arg1; |
1d99702e | 9608 | PyObject * _argo0 = 0; |
2abc0a0f | 9609 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9610 | |
9611 | self = self; | |
2abc0a0f | 9612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9613 | return NULL; |
1d99702e RD |
9614 | if (_argo0) { |
9615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 9617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9618 | return NULL; |
9619 | } | |
9620 | } | |
cf694132 | 9621 | { |
4268f798 | 9622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2abc0a0f | 9623 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 | 9624 | |
4268f798 | 9625 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9626 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9627 | } Py_INCREF(Py_None); |
8ab979d7 | 9628 | _resultobj = Py_None; |
8ab979d7 RD |
9629 | return _resultobj; |
9630 | } | |
9631 | ||
b1462dfa RD |
9632 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
9633 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9634 | PyObject * _resultobj; |
b1462dfa | 9635 | int _result; |
8ab979d7 | 9636 | wxMenuItem * _arg0; |
1d99702e | 9637 | PyObject * _argo0 = 0; |
efc5f224 | 9638 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9639 | |
9640 | self = self; | |
b1462dfa | 9641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 9642 | return NULL; |
1d99702e RD |
9643 | if (_argo0) { |
9644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9647 | return NULL; |
9648 | } | |
9649 | } | |
8ab979d7 | 9650 | { |
4268f798 | 9651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9652 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 | 9653 | |
4268f798 | 9654 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9655 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9656 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9657 | return _resultobj; |
9658 | } | |
9659 | ||
b1462dfa RD |
9660 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
9661 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9662 | PyObject * _resultobj; |
b1462dfa | 9663 | bool _result; |
8ab979d7 | 9664 | wxMenuItem * _arg0; |
1d99702e | 9665 | PyObject * _argo0 = 0; |
efc5f224 | 9666 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9667 | |
9668 | self = self; | |
b1462dfa | 9669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 9670 | return NULL; |
1d99702e RD |
9671 | if (_argo0) { |
9672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9675 | return NULL; |
9676 | } | |
9677 | } | |
8ab979d7 | 9678 | { |
4268f798 | 9679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9680 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 | 9681 | |
4268f798 | 9682 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9683 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9684 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9685 | return _resultobj; |
9686 | } | |
9687 | ||
b1462dfa RD |
9688 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
9689 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9690 | PyObject * _resultobj; |
9691 | wxMenuItem * _arg0; | |
9692 | wxString * _arg1; | |
1d99702e | 9693 | PyObject * _argo0 = 0; |
8ab979d7 | 9694 | PyObject * _obj1 = 0; |
b1462dfa | 9695 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
9696 | |
9697 | self = self; | |
b1462dfa | 9698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9699 | return NULL; |
1d99702e RD |
9700 | if (_argo0) { |
9701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9704 | return NULL; |
9705 | } | |
9706 | } | |
9707 | { | |
185d7c3e RD |
9708 | #if PYTHON_API_VERSION >= 1009 |
9709 | char* tmpPtr; int tmpSize; | |
9710 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9711 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9712 | return NULL; |
9713 | } | |
9714 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9715 | return NULL; | |
9716 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9717 | #else | |
8ab979d7 RD |
9718 | if (!PyString_Check(_obj1)) { |
9719 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9720 | return NULL; | |
9721 | } | |
185d7c3e RD |
9722 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9723 | #endif | |
8ab979d7 | 9724 | } |
cf694132 | 9725 | { |
4268f798 | 9726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9727 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 | 9728 | |
4268f798 | 9729 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9730 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9731 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9732 | _resultobj = Py_None; |
9733 | { | |
9734 | if (_obj1) | |
9735 | delete _arg1; | |
9736 | } | |
9737 | return _resultobj; | |
9738 | } | |
9739 | ||
b1462dfa RD |
9740 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
9741 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9742 | PyObject * _resultobj; |
b1462dfa | 9743 | wxString * _result; |
8ab979d7 | 9744 | wxMenuItem * _arg0; |
1d99702e | 9745 | PyObject * _argo0 = 0; |
b1462dfa | 9746 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9747 | |
9748 | self = self; | |
b1462dfa | 9749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 9750 | return NULL; |
1d99702e RD |
9751 | if (_argo0) { |
9752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9755 | return NULL; |
9756 | } | |
9757 | } | |
cf694132 | 9758 | { |
4268f798 | 9759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9760 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 | 9761 | |
4268f798 | 9762 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9763 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9764 | }{ |
eec92d76 | 9765 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 | 9766 | } |
cf694132 | 9767 | { |
b1462dfa RD |
9768 | delete _result; |
9769 | } | |
cf694132 RD |
9770 | return _resultobj; |
9771 | } | |
9772 | ||
b1462dfa RD |
9773 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
9774 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9775 | PyObject * _resultobj; |
b1462dfa | 9776 | wxString * _result; |
cf694132 | 9777 | wxMenuItem * _arg0; |
1d99702e | 9778 | PyObject * _argo0 = 0; |
efc5f224 | 9779 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9780 | |
9781 | self = self; | |
b1462dfa | 9782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 9783 | return NULL; |
1d99702e RD |
9784 | if (_argo0) { |
9785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
9788 | return NULL; |
9789 | } | |
9790 | } | |
9791 | { | |
4268f798 | 9792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
9793 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
9794 | _result = (wxString *) &_result_ref; | |
cf694132 | 9795 | |
4268f798 | 9796 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9797 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9798 | }{ |
eec92d76 | 9799 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
cf694132 | 9800 | } |
cf694132 RD |
9801 | return _resultobj; |
9802 | } | |
9803 | ||
b1462dfa RD |
9804 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
9805 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9806 | PyObject * _resultobj; |
cf694132 | 9807 | wxMenuItem * _arg0; |
b1462dfa | 9808 | bool _arg1; |
1d99702e | 9809 | PyObject * _argo0 = 0; |
b1462dfa RD |
9810 | int tempbool1; |
9811 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
9812 | |
9813 | self = self; | |
b1462dfa | 9814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9815 | return NULL; |
1d99702e RD |
9816 | if (_argo0) { |
9817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9820 | return NULL; |
9821 | } | |
9822 | } | |
b1462dfa | 9823 | _arg1 = (bool ) tempbool1; |
cf694132 | 9824 | { |
4268f798 | 9825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9826 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 | 9827 | |
4268f798 | 9828 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9829 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9830 | } Py_INCREF(Py_None); |
9831 | _resultobj = Py_None; | |
cf694132 RD |
9832 | return _resultobj; |
9833 | } | |
9834 | ||
b1462dfa RD |
9835 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
9836 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9837 | PyObject * _resultobj; |
b1462dfa | 9838 | bool _result; |
cf694132 | 9839 | wxMenuItem * _arg0; |
1d99702e | 9840 | PyObject * _argo0 = 0; |
efc5f224 | 9841 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9842 | |
9843 | self = self; | |
b1462dfa | 9844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 9845 | return NULL; |
1d99702e RD |
9846 | if (_argo0) { |
9847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9850 | return NULL; |
9851 | } | |
9852 | } | |
9853 | { | |
4268f798 | 9854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9855 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 | 9856 | |
4268f798 | 9857 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9858 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9859 | } _resultobj = Py_BuildValue("i",_result); |
9860 | return _resultobj; | |
9861 | } | |
9862 | ||
b1462dfa RD |
9863 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
9864 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9865 | PyObject * _resultobj; |
b1462dfa | 9866 | bool _result; |
cf694132 | 9867 | wxMenuItem * _arg0; |
1d99702e | 9868 | PyObject * _argo0 = 0; |
efc5f224 | 9869 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9870 | |
9871 | self = self; | |
b1462dfa | 9872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 9873 | return NULL; |
1d99702e RD |
9874 | if (_argo0) { |
9875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9878 | return NULL; |
9879 | } | |
9880 | } | |
9881 | { | |
4268f798 | 9882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9883 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 | 9884 | |
4268f798 | 9885 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9886 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9887 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9888 | return _resultobj; |
9889 | } | |
9890 | ||
b1462dfa RD |
9891 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
9892 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9893 | PyObject * _resultobj; |
9894 | wxMenuItem * _arg0; | |
b1462dfa | 9895 | wxMenu * _arg1; |
1d99702e RD |
9896 | PyObject * _argo0 = 0; |
9897 | PyObject * _argo1 = 0; | |
b1462dfa | 9898 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
9899 | |
9900 | self = self; | |
b1462dfa | 9901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 9902 | return NULL; |
1d99702e RD |
9903 | if (_argo0) { |
9904 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9905 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9906 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9907 | return NULL; |
9908 | } | |
9909 | } | |
1d99702e RD |
9910 | if (_argo1) { |
9911 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9912 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
9913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
9914 | return NULL; |
9915 | } | |
9916 | } | |
9917 | { | |
4268f798 | 9918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9919 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 | 9920 | |
4268f798 | 9921 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9922 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9923 | } Py_INCREF(Py_None); |
9924 | _resultobj = Py_None; | |
9925 | return _resultobj; | |
9926 | } | |
9927 | ||
b1462dfa RD |
9928 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
9929 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9930 | PyObject * _resultobj; |
b1462dfa | 9931 | wxMenu * _result; |
cf694132 | 9932 | wxMenuItem * _arg0; |
1d99702e | 9933 | PyObject * _argo0 = 0; |
b1462dfa | 9934 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9935 | |
9936 | self = self; | |
b1462dfa | 9937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 9938 | return NULL; |
1d99702e RD |
9939 | if (_argo0) { |
9940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9943 | return NULL; |
9944 | } | |
9945 | } | |
b1462dfa | 9946 | { |
4268f798 | 9947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
9948 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); |
9949 | ||
4268f798 | 9950 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9951 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9952 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
9953 | return _resultobj; |
9954 | } | |
9955 | ||
9956 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
9957 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9958 | PyObject * _resultobj; | |
9959 | wxMenuItem * _arg0; | |
9960 | bool _arg1 = (bool ) TRUE; | |
9961 | PyObject * _argo0 = 0; | |
9962 | int tempbool1 = (int) TRUE; | |
9963 | char *_kwnames[] = { "self","enable", NULL }; | |
9964 | ||
9965 | self = self; | |
9966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
9967 | return NULL; | |
9968 | if (_argo0) { | |
9969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
9972 | return NULL; |
9973 | } | |
9974 | } | |
b1462dfa | 9975 | _arg1 = (bool ) tempbool1; |
cf694132 | 9976 | { |
4268f798 | 9977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 9978 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 | 9979 | |
4268f798 | 9980 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9981 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9982 | } Py_INCREF(Py_None); |
9983 | _resultobj = Py_None; | |
9984 | return _resultobj; | |
9985 | } | |
9986 | ||
b1462dfa RD |
9987 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
9988 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9989 | PyObject * _resultobj; |
b1462dfa | 9990 | bool _result; |
cf694132 | 9991 | wxMenuItem * _arg0; |
1d99702e | 9992 | PyObject * _argo0 = 0; |
b1462dfa | 9993 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9994 | |
9995 | self = self; | |
b1462dfa | 9996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 9997 | return NULL; |
1d99702e RD |
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_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
10002 | return NULL; |
10003 | } | |
10004 | } | |
10005 | { | |
4268f798 | 10006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 10007 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 | 10008 | |
4268f798 | 10009 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10010 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10011 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
10012 | return _resultobj; |
10013 | } | |
10014 | ||
b1462dfa RD |
10015 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
10016 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
10017 | PyObject * _resultobj; |
10018 | wxMenuItem * _arg0; | |
b1462dfa | 10019 | bool _arg1 = (bool ) TRUE; |
1d99702e | 10020 | PyObject * _argo0 = 0; |
b1462dfa RD |
10021 | int tempbool1 = (int) TRUE; |
10022 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
10023 | |
10024 | self = self; | |
b1462dfa | 10025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 10026 | return NULL; |
1d99702e RD |
10027 | if (_argo0) { |
10028 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10029 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
10031 | return NULL; |
10032 | } | |
10033 | } | |
b1462dfa | 10034 | _arg1 = (bool ) tempbool1; |
cf694132 | 10035 | { |
4268f798 | 10036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 10037 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 | 10038 | |
4268f798 | 10039 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10040 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10041 | } Py_INCREF(Py_None); |
10042 | _resultobj = Py_None; | |
10043 | return _resultobj; | |
10044 | } | |
10045 | ||
b1462dfa RD |
10046 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
10047 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 10048 | PyObject * _resultobj; |
b1462dfa | 10049 | bool _result; |
2abc0a0f | 10050 | wxMenuItem * _arg0; |
2abc0a0f | 10051 | PyObject * _argo0 = 0; |
b1462dfa | 10052 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
10053 | |
10054 | self = self; | |
b1462dfa | 10055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
10056 | return NULL; |
10057 | if (_argo0) { | |
10058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10061 | return NULL; |
10062 | } | |
10063 | } | |
2abc0a0f | 10064 | { |
4268f798 | 10065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 10066 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f | 10067 | |
4268f798 | 10068 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10069 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10070 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
10071 | return _resultobj; |
10072 | } | |
10073 | ||
b1462dfa RD |
10074 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
10075 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 10076 | PyObject * _resultobj; |
2abc0a0f RD |
10077 | wxMenuItem * _arg0; |
10078 | PyObject * _argo0 = 0; | |
10079 | char *_kwnames[] = { "self", NULL }; | |
10080 | ||
10081 | self = self; | |
b1462dfa | 10082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
10083 | return NULL; |
10084 | if (_argo0) { | |
10085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10088 | return NULL; |
10089 | } | |
10090 | } | |
10091 | { | |
4268f798 | 10092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 10093 | wxMenuItem_Toggle(_arg0); |
2abc0a0f | 10094 | |
4268f798 | 10095 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10096 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10097 | } Py_INCREF(Py_None); |
10098 | _resultobj = Py_None; | |
2abc0a0f RD |
10099 | return _resultobj; |
10100 | } | |
10101 | ||
b1462dfa RD |
10102 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
10103 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
10104 | PyObject * _resultobj; |
10105 | wxMenuItem * _arg0; | |
b1462dfa | 10106 | wxString * _arg1; |
1d99702e | 10107 | PyObject * _argo0 = 0; |
b1462dfa RD |
10108 | PyObject * _obj1 = 0; |
10109 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
10110 | |
10111 | self = self; | |
b1462dfa | 10112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 10113 | return NULL; |
1d99702e RD |
10114 | if (_argo0) { |
10115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
10118 | return NULL; |
10119 | } | |
10120 | } | |
b1462dfa | 10121 | { |
185d7c3e RD |
10122 | #if PYTHON_API_VERSION >= 1009 |
10123 | char* tmpPtr; int tmpSize; | |
10124 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 10125 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
10126 | return NULL; |
10127 | } | |
10128 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
10129 | return NULL; | |
10130 | _arg1 = new wxString(tmpPtr, tmpSize); | |
10131 | #else | |
b1462dfa RD |
10132 | if (!PyString_Check(_obj1)) { |
10133 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
cf694132 | 10134 | return NULL; |
cf694132 | 10135 | } |
185d7c3e RD |
10136 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
10137 | #endif | |
b1462dfa | 10138 | } |
cf694132 | 10139 | { |
4268f798 | 10140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 10141 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 | 10142 | |
4268f798 | 10143 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10144 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10145 | } Py_INCREF(Py_None); |
8ab979d7 | 10146 | _resultobj = Py_None; |
b1462dfa RD |
10147 | { |
10148 | if (_obj1) | |
10149 | delete _arg1; | |
10150 | } | |
8ab979d7 RD |
10151 | return _resultobj; |
10152 | } | |
10153 | ||
b1462dfa RD |
10154 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
10155 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 10156 | PyObject * _resultobj; |
b1462dfa | 10157 | wxString * _result; |
be4d9c1f | 10158 | wxMenuItem * _arg0; |
1d99702e | 10159 | PyObject * _argo0 = 0; |
efc5f224 | 10160 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
10161 | |
10162 | self = self; | |
b1462dfa | 10163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 10164 | return NULL; |
1d99702e RD |
10165 | if (_argo0) { |
10166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
10169 | return NULL; |
10170 | } | |
10171 | } | |
cf694132 | 10172 | { |
4268f798 | 10173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
10174 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
10175 | _result = (wxString *) &_result_ref; | |
cf694132 | 10176 | |
4268f798 | 10177 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10178 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10179 | }{ |
eec92d76 | 10180 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b1462dfa | 10181 | } |
be4d9c1f RD |
10182 | return _resultobj; |
10183 | } | |
10184 | ||
b1462dfa RD |
10185 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
10186 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 10187 | PyObject * _resultobj; |
b1462dfa | 10188 | wxAcceleratorEntry * _result; |
2abc0a0f | 10189 | wxMenuItem * _arg0; |
2abc0a0f | 10190 | PyObject * _argo0 = 0; |
b1462dfa RD |
10191 | char *_kwnames[] = { "self", NULL }; |
10192 | char _ptemp[128]; | |
2abc0a0f RD |
10193 | |
10194 | self = self; | |
b1462dfa | 10195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
10196 | return NULL; |
10197 | if (_argo0) { | |
10198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10201 | return NULL; |
10202 | } | |
10203 | } | |
2abc0a0f | 10204 | { |
4268f798 | 10205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 10206 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f | 10207 | |
4268f798 | 10208 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10209 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10210 | } if (_result) { |
10211 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
10212 | _resultobj = Py_BuildValue("s",_ptemp); | |
10213 | } else { | |
10214 | Py_INCREF(Py_None); | |
10215 | _resultobj = Py_None; | |
10216 | } | |
2abc0a0f RD |
10217 | return _resultobj; |
10218 | } | |
10219 | ||
b1462dfa RD |
10220 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
10221 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
10222 | PyObject * _resultobj; |
10223 | wxMenuItem * _arg0; | |
b1462dfa | 10224 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
10225 | PyObject * _argo0 = 0; |
10226 | PyObject * _argo1 = 0; | |
b1462dfa | 10227 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
10228 | |
10229 | self = self; | |
b1462dfa | 10230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
10231 | return NULL; |
10232 | if (_argo0) { | |
10233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10236 | return NULL; |
10237 | } | |
10238 | } | |
10239 | if (_argo1) { | |
10240 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
10241 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
10242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
10243 | return NULL; |
10244 | } | |
10245 | } | |
10246 | { | |
4268f798 | 10247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa | 10248 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f | 10249 | |
4268f798 | 10250 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10251 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
10252 | } Py_INCREF(Py_None); |
10253 | _resultobj = Py_None; | |
10254 | return _resultobj; | |
10255 | } | |
10256 | ||
1b62f00d RD |
10257 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
10258 | PyObject * _resultobj; | |
10259 | wxString * _result; | |
10260 | wxString * _arg0; | |
10261 | PyObject * _obj0 = 0; | |
10262 | char *_kwnames[] = { "text", NULL }; | |
10263 | ||
10264 | self = self; | |
10265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
10266 | return NULL; | |
10267 | { | |
10268 | #if PYTHON_API_VERSION >= 1009 | |
10269 | char* tmpPtr; int tmpSize; | |
10270 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 10271 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1b62f00d RD |
10272 | return NULL; |
10273 | } | |
10274 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
10275 | return NULL; | |
10276 | _arg0 = new wxString(tmpPtr, tmpSize); | |
10277 | #else | |
10278 | if (!PyString_Check(_obj0)) { | |
10279 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10280 | return NULL; | |
10281 | } | |
10282 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
10283 | #endif | |
10284 | } | |
10285 | { | |
4268f798 | 10286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1b62f00d RD |
10287 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); |
10288 | ||
4268f798 | 10289 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10290 | if (PyErr_Occurred()) return NULL; |
1b62f00d RD |
10291 | }{ |
10292 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10293 | } | |
10294 | { | |
10295 | if (_obj0) | |
10296 | delete _arg0; | |
10297 | } | |
10298 | { | |
10299 | delete _result; | |
10300 | } | |
10301 | return _resultobj; | |
10302 | } | |
10303 | ||
f3d9dc1d RD |
10304 | #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
10305 | static PyObject *_wrap_wxMenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10306 | PyObject * _resultobj; | |
10307 | wxMenuItem * _arg0; | |
10308 | wxFont * _arg1; | |
10309 | PyObject * _argo0 = 0; | |
10310 | PyObject * _argo1 = 0; | |
10311 | char *_kwnames[] = { "self","font", NULL }; | |
10312 | ||
10313 | self = self; | |
10314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
10315 | return NULL; | |
10316 | if (_argo0) { | |
10317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p."); | |
10320 | return NULL; | |
10321 | } | |
10322 | } | |
10323 | if (_argo1) { | |
10324 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10325 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
10326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p."); | |
10327 | return NULL; | |
10328 | } | |
10329 | } | |
10330 | { | |
4268f798 | 10331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10332 | wxMenuItem_SetFont(_arg0,*_arg1); |
10333 | ||
4268f798 | 10334 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10335 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10336 | } Py_INCREF(Py_None); |
10337 | _resultobj = Py_None; | |
10338 | return _resultobj; | |
10339 | } | |
10340 | ||
10341 | #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
10342 | static PyObject *_wrap_wxMenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10343 | PyObject * _resultobj; | |
10344 | wxFont * _result; | |
10345 | wxMenuItem * _arg0; | |
10346 | PyObject * _argo0 = 0; | |
10347 | char *_kwnames[] = { "self", NULL }; | |
10348 | char _ptemp[128]; | |
10349 | ||
10350 | self = self; | |
10351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetFont",_kwnames,&_argo0)) | |
10352 | return NULL; | |
10353 | if (_argo0) { | |
10354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p."); | |
10357 | return NULL; | |
10358 | } | |
10359 | } | |
10360 | { | |
4268f798 | 10361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 10362 | _result = new wxFont (wxMenuItem_GetFont(_arg0)); |
f3d9dc1d | 10363 | |
4268f798 | 10364 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10365 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
10366 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
10367 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10368 | return _resultobj; |
10369 | } | |
10370 | ||
10371 | #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
10372 | static PyObject *_wrap_wxMenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10373 | PyObject * _resultobj; | |
10374 | wxMenuItem * _arg0; | |
10375 | wxColour * _arg1; | |
10376 | PyObject * _argo0 = 0; | |
10377 | wxColour temp; | |
10378 | PyObject * _obj1 = 0; | |
10379 | char *_kwnames[] = { "self","colText", NULL }; | |
10380 | ||
10381 | self = self; | |
10382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
10383 | return NULL; | |
10384 | if (_argo0) { | |
10385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p."); | |
10388 | return NULL; | |
10389 | } | |
10390 | } | |
10391 | { | |
10392 | _arg1 = &temp; | |
10393 | if (! wxColour_helper(_obj1, &_arg1)) | |
10394 | return NULL; | |
10395 | } | |
10396 | { | |
4268f798 | 10397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10398 | wxMenuItem_SetTextColour(_arg0,*_arg1); |
10399 | ||
4268f798 | 10400 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10401 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10402 | } Py_INCREF(Py_None); |
10403 | _resultobj = Py_None; | |
10404 | return _resultobj; | |
10405 | } | |
10406 | ||
10407 | #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
10408 | static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10409 | PyObject * _resultobj; | |
10410 | wxColour * _result; | |
10411 | wxMenuItem * _arg0; | |
10412 | PyObject * _argo0 = 0; | |
10413 | char *_kwnames[] = { "self", NULL }; | |
10414 | char _ptemp[128]; | |
10415 | ||
10416 | self = self; | |
10417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetTextColour",_kwnames,&_argo0)) | |
10418 | return NULL; | |
10419 | if (_argo0) { | |
10420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p."); | |
10423 | return NULL; | |
10424 | } | |
10425 | } | |
10426 | { | |
4268f798 | 10427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25832b3f | 10428 | _result = new wxColour (wxMenuItem_GetTextColour(_arg0)); |
f3d9dc1d | 10429 | |
4268f798 | 10430 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10431 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
10432 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
10433 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10434 | return _resultobj; |
10435 | } | |
10436 | ||
10437 | #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
10438 | static PyObject *_wrap_wxMenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10439 | PyObject * _resultobj; | |
10440 | wxMenuItem * _arg0; | |
10441 | wxColour * _arg1; | |
10442 | PyObject * _argo0 = 0; | |
10443 | wxColour temp; | |
10444 | PyObject * _obj1 = 0; | |
10445 | char *_kwnames[] = { "self","colBack", NULL }; | |
10446 | ||
10447 | self = self; | |
10448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
10449 | return NULL; | |
10450 | if (_argo0) { | |
10451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p."); | |
10454 | return NULL; | |
10455 | } | |
10456 | } | |
10457 | { | |
10458 | _arg1 = &temp; | |
10459 | if (! wxColour_helper(_obj1, &_arg1)) | |
10460 | return NULL; | |
10461 | } | |
10462 | { | |
4268f798 | 10463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10464 | wxMenuItem_SetBackgroundColour(_arg0,*_arg1); |
10465 | ||
4268f798 | 10466 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10467 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10468 | } Py_INCREF(Py_None); |
10469 | _resultobj = Py_None; | |
10470 | return _resultobj; | |
10471 | } | |
10472 | ||
10473 | #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
10474 | static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10475 | PyObject * _resultobj; | |
10476 | wxColour * _result; | |
10477 | wxMenuItem * _arg0; | |
10478 | PyObject * _argo0 = 0; | |
10479 | char *_kwnames[] = { "self", NULL }; | |
10480 | char _ptemp[128]; | |
10481 | ||
10482 | self = self; | |
10483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBackgroundColour",_kwnames,&_argo0)) | |
10484 | return NULL; | |
10485 | if (_argo0) { | |
10486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p."); | |
10489 | return NULL; | |
10490 | } | |
10491 | } | |
10492 | { | |
4268f798 | 10493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25832b3f | 10494 | _result = new wxColour (wxMenuItem_GetBackgroundColour(_arg0)); |
f3d9dc1d | 10495 | |
4268f798 | 10496 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10497 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
10498 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
10499 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10500 | return _resultobj; |
10501 | } | |
10502 | ||
10503 | #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1)) | |
10504 | static PyObject *_wrap_wxMenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10505 | PyObject * _resultobj; | |
10506 | wxMenuItem * _arg0; | |
10507 | wxBitmap * _arg1; | |
10508 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
10509 | PyObject * _argo0 = 0; | |
10510 | PyObject * _argo1 = 0; | |
10511 | PyObject * _argo2 = 0; | |
10512 | char *_kwnames[] = { "self","bmpChecked","bmpUnchecked", NULL }; | |
10513 | ||
10514 | self = self; | |
10515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxMenuItem_SetBitmaps",_kwnames,&_argo0,&_argo1,&_argo2)) | |
10516 | return NULL; | |
10517 | if (_argo0) { | |
10518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p."); | |
10521 | return NULL; | |
10522 | } | |
10523 | } | |
10524 | if (_argo1) { | |
10525 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10526 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
10528 | return NULL; | |
10529 | } | |
10530 | } | |
10531 | if (_argo2) { | |
10532 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10533 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
10534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
10535 | return NULL; | |
10536 | } | |
10537 | } | |
10538 | { | |
4268f798 | 10539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10540 | wxMenuItem_SetBitmaps(_arg0,*_arg1,*_arg2); |
10541 | ||
4268f798 | 10542 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10543 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10544 | } Py_INCREF(Py_None); |
10545 | _resultobj = Py_None; | |
10546 | return _resultobj; | |
10547 | } | |
10548 | ||
10549 | #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
10550 | static PyObject *_wrap_wxMenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10551 | PyObject * _resultobj; | |
10552 | wxMenuItem * _arg0; | |
10553 | wxBitmap * _arg1; | |
10554 | PyObject * _argo0 = 0; | |
10555 | PyObject * _argo1 = 0; | |
10556 | char *_kwnames[] = { "self","bmpChecked", NULL }; | |
10557 | ||
10558 | self = self; | |
10559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
10560 | return NULL; | |
10561 | if (_argo0) { | |
10562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p."); | |
10565 | return NULL; | |
10566 | } | |
10567 | } | |
10568 | if (_argo1) { | |
10569 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10570 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p."); | |
10572 | return NULL; | |
10573 | } | |
10574 | } | |
10575 | { | |
4268f798 | 10576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10577 | wxMenuItem_SetBitmap(_arg0,*_arg1); |
10578 | ||
4268f798 | 10579 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10580 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10581 | } Py_INCREF(Py_None); |
10582 | _resultobj = Py_None; | |
10583 | return _resultobj; | |
10584 | } | |
10585 | ||
10586 | #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0)) | |
10587 | static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10588 | PyObject * _resultobj; | |
10589 | wxBitmap * _result; | |
10590 | wxMenuItem * _arg0; | |
10591 | bool _arg1 = (bool ) TRUE; | |
10592 | PyObject * _argo0 = 0; | |
10593 | int tempbool1 = (int) TRUE; | |
10594 | char *_kwnames[] = { "self","bChecked", NULL }; | |
10595 | char _ptemp[128]; | |
10596 | ||
10597 | self = self; | |
10598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_GetBitmap",_kwnames,&_argo0,&tempbool1)) | |
10599 | return NULL; | |
10600 | if (_argo0) { | |
10601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p."); | |
10604 | return NULL; | |
10605 | } | |
10606 | } | |
10607 | _arg1 = (bool ) tempbool1; | |
10608 | { | |
4268f798 | 10609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 10610 | _result = new wxBitmap (wxMenuItem_GetBitmap(_arg0,_arg1)); |
f3d9dc1d | 10611 | |
4268f798 | 10612 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10613 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
10614 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
10615 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10616 | return _resultobj; |
10617 | } | |
10618 | ||
10619 | #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0)) | |
10620 | static PyObject *_wrap_wxMenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10621 | PyObject * _resultobj; | |
10622 | wxMenuItem * _arg0; | |
10623 | int _arg1; | |
10624 | PyObject * _argo0 = 0; | |
10625 | char *_kwnames[] = { "self","nWidth", NULL }; | |
10626 | ||
10627 | self = self; | |
10628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetMarginWidth",_kwnames,&_argo0,&_arg1)) | |
10629 | return NULL; | |
10630 | if (_argo0) { | |
10631 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p."); | |
10634 | return NULL; | |
10635 | } | |
10636 | } | |
10637 | { | |
4268f798 | 10638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10639 | wxMenuItem_SetMarginWidth(_arg0,_arg1); |
10640 | ||
4268f798 | 10641 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10642 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10643 | } Py_INCREF(Py_None); |
10644 | _resultobj = Py_None; | |
10645 | return _resultobj; | |
10646 | } | |
10647 | ||
10648 | #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth()) | |
10649 | static PyObject *_wrap_wxMenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10650 | PyObject * _resultobj; | |
10651 | int _result; | |
10652 | wxMenuItem * _arg0; | |
10653 | PyObject * _argo0 = 0; | |
10654 | char *_kwnames[] = { "self", NULL }; | |
10655 | ||
10656 | self = self; | |
10657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMarginWidth",_kwnames,&_argo0)) | |
10658 | return NULL; | |
10659 | if (_argo0) { | |
10660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p."); | |
10663 | return NULL; | |
10664 | } | |
10665 | } | |
10666 | { | |
4268f798 | 10667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10668 | _result = (int )wxMenuItem_GetMarginWidth(_arg0); |
10669 | ||
4268f798 | 10670 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10671 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10672 | } _resultobj = Py_BuildValue("i",_result); |
10673 | return _resultobj; | |
10674 | } | |
10675 | ||
10676 | static PyObject *_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10677 | PyObject * _resultobj; | |
10678 | int _result; | |
10679 | char *_kwnames[] = { NULL }; | |
10680 | ||
10681 | self = self; | |
10682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMenuItem_GetDefaultMarginWidth",_kwnames)) | |
10683 | return NULL; | |
10684 | { | |
4268f798 | 10685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10686 | _result = (int )wxMenuItem::GetDefaultMarginWidth(); |
10687 | ||
4268f798 | 10688 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10689 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10690 | } _resultobj = Py_BuildValue("i",_result); |
10691 | return _resultobj; | |
10692 | } | |
10693 | ||
10694 | #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn()) | |
10695 | static PyObject *_wrap_wxMenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10696 | PyObject * _resultobj; | |
10697 | bool _result; | |
10698 | wxMenuItem * _arg0; | |
10699 | PyObject * _argo0 = 0; | |
10700 | char *_kwnames[] = { "self", NULL }; | |
10701 | ||
10702 | self = self; | |
10703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsOwnerDrawn",_kwnames,&_argo0)) | |
10704 | return NULL; | |
10705 | if (_argo0) { | |
10706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p."); | |
10709 | return NULL; | |
10710 | } | |
10711 | } | |
10712 | { | |
4268f798 | 10713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10714 | _result = (bool )wxMenuItem_IsOwnerDrawn(_arg0); |
10715 | ||
4268f798 | 10716 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10717 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10718 | } _resultobj = Py_BuildValue("i",_result); |
10719 | return _resultobj; | |
10720 | } | |
10721 | ||
10722 | #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn()) | |
10723 | static PyObject *_wrap_wxMenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10724 | PyObject * _resultobj; | |
10725 | wxMenuItem * _arg0; | |
10726 | PyObject * _argo0 = 0; | |
10727 | char *_kwnames[] = { "self", NULL }; | |
10728 | ||
10729 | self = self; | |
10730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_ResetOwnerDrawn",_kwnames,&_argo0)) | |
10731 | return NULL; | |
10732 | if (_argo0) { | |
10733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p."); | |
10736 | return NULL; | |
10737 | } | |
10738 | } | |
10739 | { | |
4268f798 | 10740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f3d9dc1d RD |
10741 | wxMenuItem_ResetOwnerDrawn(_arg0); |
10742 | ||
4268f798 | 10743 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10744 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10745 | } Py_INCREF(Py_None); |
10746 | _resultobj = Py_None; | |
10747 | return _resultobj; | |
10748 | } | |
10749 | ||
8ab979d7 | 10750 | static PyMethodDef windowscMethods[] = { |
f3d9dc1d RD |
10751 | { "wxMenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, |
10752 | { "wxMenuItem_IsOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
10753 | { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10754 | { "wxMenuItem_GetMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10755 | { "wxMenuItem_SetMarginWidth", (PyCFunction) _wrap_wxMenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10756 | { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10757 | { "wxMenuItem_SetBitmap", (PyCFunction) _wrap_wxMenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10758 | { "wxMenuItem_SetBitmaps", (PyCFunction) _wrap_wxMenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
10759 | { "wxMenuItem_GetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10760 | { "wxMenuItem_SetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10761 | { "wxMenuItem_GetTextColour", (PyCFunction) _wrap_wxMenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10762 | { "wxMenuItem_SetTextColour", (PyCFunction) _wrap_wxMenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10763 | { "wxMenuItem_GetFont", (PyCFunction) _wrap_wxMenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10764 | { "wxMenuItem_SetFont", (PyCFunction) _wrap_wxMenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 10765 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10766 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
10767 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
10768 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10769 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10770 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10771 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10772 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10773 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10774 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10775 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10776 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 10777 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10778 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10779 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
10780 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10781 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10782 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10783 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10784 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
10785 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10786 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10787 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10788 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10789 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
10790 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10791 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
10792 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10793 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10794 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10795 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
10796 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
10797 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
3a0958b1 | 10798 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10799 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, |
10800 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
10801 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
10802 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10803 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
10804 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
10805 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
10806 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10807 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
10808 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10809 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
10810 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
10811 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
10812 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10813 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10814 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10815 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10816 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10817 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
10818 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10819 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
10820 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10821 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10822 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
10823 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10824 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
10825 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10826 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10827 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10828 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10829 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10830 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
10831 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10832 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
10833 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 10834 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10835 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10836 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10837 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10838 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10839 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
10840 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
10841 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
10842 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
10843 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
10844 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
10845 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
d1679124 RD |
10846 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10847 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
10848 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
10849 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f RD |
10850 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, |
10851 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
4c9993c3 | 10852 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10853 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10854 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10855 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10856 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
10857 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
10858 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
10859 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10860 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10861 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10862 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10863 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10864 | { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
10865 | { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10866 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10867 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10868 | { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS }, |
10869 | { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10870 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, |
5a2930ab RD |
10871 | { "wxWindow_SetDefaultItem", (PyCFunction) _wrap_wxWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
10872 | { "wxWindow_GetDefaultItem", (PyCFunction) _wrap_wxWindow_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
07c99b26 | 10873 | { "wxWindow_OnPaint", (PyCFunction) _wrap_wxWindow_OnPaint, METH_VARARGS | METH_KEYWORDS }, |
900d9886 | 10874 | { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 | 10875 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10876 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
10877 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
10878 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
10879 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c RD |
10880 | { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS }, |
10881 | { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
10882 | { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
10883 | { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
10884 | { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
10885 | { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
23bed520 | 10886 | { "wxWindow_SetHelpTextForId", (PyCFunction) _wrap_wxWindow_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, |
4f3449b4 RD |
10887 | { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS }, |
10888 | { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 | 10889 | { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS }, |
3a0958b1 RD |
10890 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, |
10891 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
10892 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
10893 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 10894 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10895 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
10896 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10897 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
10898 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10899 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10900 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10901 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
10902 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
10903 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
10904 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10905 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10906 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10907 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10908 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10909 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10910 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
10911 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
23bed520 | 10912 | { "wxWindow_UpdateWindowUI", (PyCFunction) _wrap_wxWindow_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10913 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, |
10914 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
10915 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10916 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
83b18bab | 10917 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 10918 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10919 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
10920 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10921 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
10922 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
dbbb98cd | 10923 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10924 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
10925 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
10926 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
10927 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10928 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
10929 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
10930 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10931 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10932 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10933 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10934 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10935 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10936 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10937 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 10938 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10939 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10940 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, |
10941 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
10942 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
10943 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10944 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10945 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 | 10946 | { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10947 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, |
10948 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
10949 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
10950 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
c6c593e8 | 10951 | { "wxWindow_RemoveEventHandler", (PyCFunction) _wrap_wxWindow_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
10952 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
10953 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10954 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
10955 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10956 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
10957 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
10958 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
10959 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
10960 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
10961 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
10962 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
10963 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
10964 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
10965 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10966 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10967 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
23bed520 | 10968 | { "wxWindow_HitTest", (PyCFunction) _wrap_wxWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10969 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, |
23bed520 | 10970 | { "wxWindow_HasScrollbar", (PyCFunction) _wrap_wxWindow_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10971 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
10972 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10973 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
10974 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
10975 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10976 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10977 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10978 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10979 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10980 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
10981 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10982 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
10983 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
10984 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10985 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10986 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
10987 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
10988 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10989 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10990 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 10991 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10992 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
10993 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10994 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 10995 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10996 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
23bed520 RD |
10997 | { "wxWindow_GetClientRect", (PyCFunction) _wrap_wxWindow_GetClientRect, METH_VARARGS | METH_KEYWORDS }, |
10998 | { "wxWindow_GetClientAreaOrigin", (PyCFunction) _wrap_wxWindow_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10999 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, |
11000 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11001 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
11002 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 11003 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
23bed520 | 11004 | { "wxWindow_GetBorder", (PyCFunction) _wrap_wxWindow_GetBorder, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11005 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
11006 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
11007 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
11008 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
11009 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
11010 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 11011 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11012 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, |
11013 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
11014 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
11015 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
11016 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
d56cebe7 | 11017 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, |
3ca6a5f0 BP |
11018 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
11019 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11020 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
11021 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
11022 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
11023 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
11024 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11025 | { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
11026 | { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11027 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, |
0122b7e3 | 11028 | { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11029 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
9416aa89 RD |
11030 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
11031 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
11032 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
11033 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
11034 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
11035 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 11036 | { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 11037 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11038 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
11039 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
11040 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
11041 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
11042 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
11043 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
11044 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11045 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11046 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 11047 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11048 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
11049 | { NULL, NULL } |
11050 | }; | |
1d99702e RD |
11051 | #ifdef __cplusplus |
11052 | } | |
11053 | #endif | |
11054 | /* | |
11055 | * This table is used by the pointer type-checker | |
11056 | */ | |
11057 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11058 | { "_signed_long","_long",0}, |
b1462dfa | 11059 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11060 | { "_wxPrintQuality","_int",0}, |
11061 | { "_wxPrintQuality","_signed_int",0}, | |
11062 | { "_wxPrintQuality","_unsigned_int",0}, | |
11063 | { "_wxPrintQuality","_wxWindowID",0}, | |
11064 | { "_wxPrintQuality","_uint",0}, | |
11065 | { "_wxPrintQuality","_EBool",0}, | |
11066 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11067 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11068 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
11069 | { "_long","_unsigned_long",0}, |
11070 | { "_long","_signed_long",0}, | |
b1462dfa | 11071 | { "_size_t","_wxCoord",0}, |
1d99702e | 11072 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11073 | { "_size_t","_time_t",0}, |
1d99702e RD |
11074 | { "_size_t","_unsigned_int",0}, |
11075 | { "_size_t","_int",0}, | |
11076 | { "_size_t","_wxWindowID",0}, | |
11077 | { "_size_t","_uint",0}, | |
1d99702e | 11078 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
b1462dfa | 11079 | { "_uint","_wxCoord",0}, |
1d99702e | 11080 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11081 | { "_uint","_time_t",0}, |
1d99702e RD |
11082 | { "_uint","_size_t",0}, |
11083 | { "_uint","_unsigned_int",0}, | |
11084 | { "_uint","_int",0}, | |
11085 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11086 | { "_wxChar","_char",0}, |
f6bcfd97 | 11087 | { "_char","_wxChar",0}, |
cdf14688 | 11088 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11089 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11090 | { "_EBool","_wxPrintQuality",0}, |
11091 | { "_EBool","_signed_int",0}, | |
11092 | { "_EBool","_int",0}, | |
11093 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11094 | { "_unsigned_long","_long",0}, |
cdf14688 | 11095 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11096 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11097 | { "_signed_int","_wxPrintQuality",0}, |
11098 | { "_signed_int","_EBool",0}, | |
11099 | { "_signed_int","_wxWindowID",0}, | |
11100 | { "_signed_int","_int",0}, | |
1d99702e RD |
11101 | { "_WXTYPE","_short",0}, |
11102 | { "_WXTYPE","_signed_short",0}, | |
11103 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11104 | { "_unsigned_short","_WXTYPE",0}, |
11105 | { "_unsigned_short","_short",0}, | |
9416aa89 | 11106 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, |
9416aa89 | 11107 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, |
9416aa89 | 11108 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, |
9416aa89 | 11109 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, |
9416aa89 | 11110 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, |
9416aa89 | 11111 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, |
9416aa89 | 11112 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, |
9416aa89 | 11113 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, |
9416aa89 | 11114 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, |
1d99702e RD |
11115 | { "_signed_short","_WXTYPE",0}, |
11116 | { "_signed_short","_short",0}, | |
1d99702e | 11117 | { "_unsigned_char","_byte",0}, |
b1462dfa | 11118 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11119 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11120 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11121 | { "_unsigned_int","_size_t",0}, |
11122 | { "_unsigned_int","_uint",0}, | |
11123 | { "_unsigned_int","_wxWindowID",0}, | |
11124 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11125 | { "_short","_WXTYPE",0}, |
11126 | { "_short","_unsigned_short",0}, | |
11127 | { "_short","_signed_short",0}, | |
b1462dfa | 11128 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11129 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11130 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11131 | { "_wxWindowID","_size_t",0}, |
11132 | { "_wxWindowID","_EBool",0}, | |
11133 | { "_wxWindowID","_uint",0}, | |
11134 | { "_wxWindowID","_int",0}, | |
11135 | { "_wxWindowID","_signed_int",0}, | |
11136 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11137 | { "_int","_wxCoord",0}, |
1d99702e | 11138 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11139 | { "_int","_time_t",0}, |
1d99702e RD |
11140 | { "_int","_size_t",0}, |
11141 | { "_int","_EBool",0}, | |
11142 | { "_int","_uint",0}, | |
11143 | { "_int","_wxWindowID",0}, | |
11144 | { "_int","_unsigned_int",0}, | |
11145 | { "_int","_signed_int",0}, | |
c368d904 RD |
11146 | { "_time_t","_wxCoord",0}, |
11147 | { "_time_t","_wxPrintQuality",0}, | |
11148 | { "_time_t","_unsigned_int",0}, | |
11149 | { "_time_t","_int",0}, | |
11150 | { "_time_t","_wxWindowID",0}, | |
11151 | { "_time_t","_uint",0}, | |
11152 | { "_time_t","_size_t",0}, | |
2f90df85 | 11153 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
b1462dfa RD |
11154 | { "_wxCoord","_int",0}, |
11155 | { "_wxCoord","_signed_int",0}, | |
11156 | { "_wxCoord","_unsigned_int",0}, | |
11157 | { "_wxCoord","_wxWindowID",0}, | |
11158 | { "_wxCoord","_uint",0}, | |
11159 | { "_wxCoord","_EBool",0}, | |
11160 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11161 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11162 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 11163 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
1d99702e | 11164 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, |
1d99702e | 11165 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, |
1d99702e | 11166 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, |
1d99702e | 11167 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, |
2f90df85 | 11168 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
2f90df85 | 11169 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, |
b1462dfa | 11170 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, |
1d99702e | 11171 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
1d99702e | 11172 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, |
1d99702e RD |
11173 | {0,0,0}}; |
11174 | ||
8ab979d7 RD |
11175 | static PyObject *SWIG_globals; |
11176 | #ifdef __cplusplus | |
11177 | extern "C" | |
11178 | #endif | |
1d99702e | 11179 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
11180 | PyObject *m, *d; |
11181 | SWIG_globals = SWIG_newvarlink(); | |
11182 | m = Py_InitModule("windowsc", windowscMethods); | |
11183 | d = PyModule_GetDict(m); | |
1d99702e RD |
11184 | { |
11185 | int i; | |
11186 | for (i = 0; _swig_mapping[i].n1; i++) | |
11187 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11188 | } | |
8ab979d7 | 11189 | } |