]>
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 | ||
137b5242 RD |
89 | // Put some wx default wxChar* values into wxStrings. |
90 | DECLARE_DEF_STRING(PanelNameStr); | |
91 | static const wxString wxPyEmptyString(wxT("")); | |
92 | ||
2f90df85 RD |
93 | class wxPyValidator : public wxValidator { |
94 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
95 | public: | |
96 | wxPyValidator() { | |
97 | } | |
2f90df85 RD |
98 | |
99 | ~wxPyValidator() { | |
100 | } | |
101 | ||
19a97bd6 | 102 | wxObject* Clone() const { |
694759cf RD |
103 | wxPyValidator* ptr = NULL; |
104 | wxPyValidator* self = (wxPyValidator*)this; | |
2f90df85 | 105 | |
4268f798 | 106 | wxPyBeginBlockThreads(); |
694759cf RD |
107 | if (self->m_myInst.findCallback("Clone")) { |
108 | PyObject* ro; | |
109 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
f6bcfd97 BP |
110 | if (ro) { |
111 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
112 | Py_DECREF(ro); | |
113 | } | |
694759cf | 114 | } |
4268f798 | 115 | wxPyEndBlockThreads(); |
19a97bd6 | 116 | |
694759cf RD |
117 | // This is very dangerous!!! But is the only way I could find |
118 | // to squash a memory leak. Currently it is okay, but if the | |
119 | // validator architecture in wxWindows ever changes, problems | |
120 | // could arise. | |
121 | delete self; | |
694759cf RD |
122 | return ptr; |
123 | } | |
2f90df85 | 124 | |
9416aa89 | 125 | |
2f90df85 RD |
126 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); |
127 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
128 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
129 | ||
130 | PYPRIVATE; | |
2f90df85 RD |
131 | }; |
132 | ||
133 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
134 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
135 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
136 | ||
137 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
8ab979d7 | 138 | |
8ab979d7 | 139 | |
2f90df85 RD |
140 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { |
141 | wxWindow* win = new wxWindow; | |
142 | win->SetHWND(hWnd); | |
143 | win->SubclassWin(hWnd); | |
144 | return win; | |
145 | } | |
146 | #ifdef __cplusplus | |
147 | extern "C" { | |
148 | #endif | |
2f90df85 RD |
149 | static PyObject *_wrap_wxWindow_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { |
150 | PyObject * _resultobj; | |
151 | wxWindow * _result; | |
152 | unsigned long _arg0; | |
153 | char *_kwnames[] = { "hWnd", NULL }; | |
2f90df85 RD |
154 | |
155 | self = self; | |
156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxWindow_FromHWND",_kwnames,&_arg0)) | |
157 | return NULL; | |
158 | { | |
4268f798 | 159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 160 | _result = (wxWindow *)wxWindow_FromHWND(_arg0); |
2f90df85 | 161 | |
4268f798 | 162 | wxPyEndAllowThreads(__tstate); |
493f1553 | 163 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 164 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
165 | return _resultobj; |
166 | } | |
167 | ||
9416aa89 RD |
168 | static void *SwigwxEvtHandlerTowxObject(void *ptr) { |
169 | wxEvtHandler *src; | |
170 | wxObject *dest; | |
171 | src = (wxEvtHandler *) ptr; | |
172 | dest = (wxObject *) src; | |
173 | return (void *) dest; | |
174 | } | |
175 | ||
c368d904 RD |
176 | #define new_wxEvtHandler() (new wxEvtHandler()) |
177 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
178 | PyObject * _resultobj; | |
179 | wxEvtHandler * _result; | |
180 | char *_kwnames[] = { NULL }; | |
181 | char _ptemp[128]; | |
182 | ||
183 | self = self; | |
184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
185 | return NULL; | |
186 | { | |
4268f798 | 187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 188 | _result = (wxEvtHandler *)new_wxEvtHandler(); |
c368d904 | 189 | |
4268f798 | 190 | wxPyEndAllowThreads(__tstate); |
493f1553 | 191 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
192 | } if (_result) { |
193 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
194 | _resultobj = Py_BuildValue("s",_ptemp); | |
195 | } else { | |
196 | Py_INCREF(Py_None); | |
197 | _resultobj = Py_None; | |
198 | } | |
199 | return _resultobj; | |
200 | } | |
201 | ||
2f90df85 RD |
202 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
203 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
204 | PyObject * _resultobj; | |
205 | bool _result; | |
206 | wxEvtHandler * _arg0; | |
207 | wxEvent * _arg1; | |
208 | PyObject * _argo0 = 0; | |
209 | PyObject * _argo1 = 0; | |
210 | char *_kwnames[] = { "self","event", NULL }; | |
211 | ||
212 | self = self; | |
213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
214 | return NULL; | |
215 | if (_argo0) { | |
216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
219 | return NULL; | |
220 | } | |
221 | } | |
222 | if (_argo1) { | |
223 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
224 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
226 | return NULL; | |
227 | } | |
228 | } | |
229 | { | |
4268f798 | 230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 231 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); |
2f90df85 | 232 | |
4268f798 | 233 | wxPyEndAllowThreads(__tstate); |
493f1553 | 234 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
235 | } _resultobj = Py_BuildValue("i",_result); |
236 | return _resultobj; | |
237 | } | |
238 | ||
f6bcfd97 BP |
239 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
240 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
241 | PyObject * _resultobj; | |
242 | wxEvtHandler * _arg0; | |
243 | wxEvent * _arg1; | |
244 | PyObject * _argo0 = 0; | |
245 | PyObject * _argo1 = 0; | |
246 | char *_kwnames[] = { "self","event", NULL }; | |
247 | ||
248 | self = self; | |
249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
250 | return NULL; | |
251 | if (_argo0) { | |
252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
255 | return NULL; | |
256 | } | |
257 | } | |
258 | if (_argo1) { | |
259 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
260 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
262 | return NULL; | |
263 | } | |
264 | } | |
265 | { | |
4268f798 | 266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 267 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); |
f6bcfd97 | 268 | |
4268f798 | 269 | wxPyEndAllowThreads(__tstate); |
493f1553 | 270 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
271 | } Py_INCREF(Py_None); |
272 | _resultobj = Py_None; | |
273 | return _resultobj; | |
274 | } | |
275 | ||
2f90df85 RD |
276 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
277 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
278 | PyObject * _resultobj; | |
279 | bool _result; | |
280 | wxEvtHandler * _arg0; | |
281 | PyObject * _argo0 = 0; | |
282 | char *_kwnames[] = { "self", NULL }; | |
283 | ||
284 | self = self; | |
285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
286 | return NULL; | |
287 | if (_argo0) { | |
288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
291 | return NULL; | |
292 | } | |
293 | } | |
294 | { | |
4268f798 | 295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 296 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); |
2f90df85 | 297 | |
4268f798 | 298 | wxPyEndAllowThreads(__tstate); |
493f1553 | 299 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
300 | } _resultobj = Py_BuildValue("i",_result); |
301 | return _resultobj; | |
302 | } | |
303 | ||
304 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
305 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
306 | PyObject * _resultobj; | |
307 | wxEvtHandler * _arg0; | |
308 | bool _arg1; | |
309 | PyObject * _argo0 = 0; | |
310 | int tempbool1; | |
311 | char *_kwnames[] = { "self","enabled", NULL }; | |
312 | ||
313 | self = self; | |
314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
315 | return NULL; | |
316 | if (_argo0) { | |
317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
320 | return NULL; | |
321 | } | |
322 | } | |
323 | _arg1 = (bool ) tempbool1; | |
324 | { | |
4268f798 | 325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 326 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); |
2f90df85 | 327 | |
4268f798 | 328 | wxPyEndAllowThreads(__tstate); |
493f1553 | 329 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
330 | } Py_INCREF(Py_None); |
331 | _resultobj = Py_None; | |
332 | return _resultobj; | |
333 | } | |
334 | ||
335 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
336 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
337 | PyObject * _resultobj; | |
338 | wxEvtHandler * _result; | |
339 | wxEvtHandler * _arg0; | |
340 | PyObject * _argo0 = 0; | |
341 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
342 | |
343 | self = self; | |
344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
345 | return NULL; | |
346 | if (_argo0) { | |
347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
350 | return NULL; | |
351 | } | |
352 | } | |
353 | { | |
4268f798 | 354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 355 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); |
2f90df85 | 356 | |
4268f798 | 357 | wxPyEndAllowThreads(__tstate); |
493f1553 | 358 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 359 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
360 | return _resultobj; |
361 | } | |
362 | ||
363 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
364 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
365 | PyObject * _resultobj; | |
366 | wxEvtHandler * _result; | |
367 | wxEvtHandler * _arg0; | |
368 | PyObject * _argo0 = 0; | |
369 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
370 | |
371 | self = self; | |
372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
373 | return NULL; | |
374 | if (_argo0) { | |
375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
378 | return NULL; | |
379 | } | |
380 | } | |
381 | { | |
4268f798 | 382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 383 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); |
2f90df85 | 384 | |
4268f798 | 385 | wxPyEndAllowThreads(__tstate); |
493f1553 | 386 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 387 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
388 | return _resultobj; |
389 | } | |
390 | ||
391 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
392 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
393 | PyObject * _resultobj; | |
394 | wxEvtHandler * _arg0; | |
395 | wxEvtHandler * _arg1; | |
396 | PyObject * _argo0 = 0; | |
397 | PyObject * _argo1 = 0; | |
398 | char *_kwnames[] = { "self","handler", NULL }; | |
399 | ||
400 | self = self; | |
401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
402 | return NULL; | |
403 | if (_argo0) { | |
404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
407 | return NULL; | |
408 | } | |
409 | } | |
410 | if (_argo1) { | |
411 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
412 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
414 | return NULL; | |
415 | } | |
416 | } | |
417 | { | |
4268f798 | 418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 419 | wxEvtHandler_SetNextHandler(_arg0,_arg1); |
2f90df85 | 420 | |
4268f798 | 421 | wxPyEndAllowThreads(__tstate); |
493f1553 | 422 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
423 | } Py_INCREF(Py_None); |
424 | _resultobj = Py_None; | |
425 | return _resultobj; | |
426 | } | |
427 | ||
428 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
429 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
430 | PyObject * _resultobj; | |
431 | wxEvtHandler * _arg0; | |
432 | wxEvtHandler * _arg1; | |
433 | PyObject * _argo0 = 0; | |
434 | PyObject * _argo1 = 0; | |
435 | char *_kwnames[] = { "self","handler", NULL }; | |
436 | ||
437 | self = self; | |
438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
439 | return NULL; | |
440 | if (_argo0) { | |
441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
444 | return NULL; | |
445 | } | |
446 | } | |
447 | if (_argo1) { | |
448 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
449 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
451 | return NULL; | |
452 | } | |
453 | } | |
454 | { | |
4268f798 | 455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 456 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); |
2f90df85 | 457 | |
4268f798 | 458 | wxPyEndAllowThreads(__tstate); |
493f1553 | 459 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
460 | } Py_INCREF(Py_None); |
461 | _resultobj = Py_None; | |
462 | return _resultobj; | |
463 | } | |
464 | ||
465 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
466 | if (PyCallable_Check(func)) { | |
467 | self->Connect(id, lastId, eventType, | |
468 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
469 | new wxPyCallback(func)); | |
470 | } | |
25b00b4e RD |
471 | else if (func == Py_None) { |
472 | self->Disconnect(id, lastId, eventType, | |
473 | (wxObjectEventFunction) | |
474 | &wxPyCallback::EventThunker); | |
475 | } | |
476 | else { | |
477 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
478 | } | |
2f90df85 RD |
479 | } |
480 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
481 | PyObject * _resultobj; | |
482 | wxEvtHandler * _arg0; | |
483 | int _arg1; | |
484 | int _arg2; | |
485 | int _arg3; | |
486 | PyObject * _arg4; | |
487 | PyObject * _argo0 = 0; | |
488 | PyObject * _obj4 = 0; | |
489 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
490 | ||
491 | self = self; | |
492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
493 | return NULL; | |
494 | if (_argo0) { | |
495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
498 | return NULL; | |
499 | } | |
500 | } | |
501 | { | |
502 | _arg4 = _obj4; | |
503 | } | |
504 | { | |
4268f798 | 505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 506 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); |
2f90df85 | 507 | |
4268f798 | 508 | wxPyEndAllowThreads(__tstate); |
493f1553 | 509 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
510 | } Py_INCREF(Py_None); |
511 | _resultobj = Py_None; | |
512 | return _resultobj; | |
513 | } | |
514 | ||
6999b0d8 RD |
515 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
516 | return self->Disconnect(id, lastId, eventType, | |
517 | (wxObjectEventFunction) | |
518 | &wxPyCallback::EventThunker); | |
519 | } | |
520 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
521 | PyObject * _resultobj; | |
522 | bool _result; | |
523 | wxEvtHandler * _arg0; | |
524 | int _arg1; | |
525 | int _arg2 = (int ) -1; | |
526 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
527 | PyObject * _argo0 = 0; | |
528 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
529 | ||
530 | self = self; | |
531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
532 | return NULL; | |
533 | if (_argo0) { | |
534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
537 | return NULL; | |
538 | } | |
539 | } | |
540 | { | |
4268f798 | 541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 542 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); |
6999b0d8 | 543 | |
4268f798 | 544 | wxPyEndAllowThreads(__tstate); |
493f1553 | 545 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
546 | } _resultobj = Py_BuildValue("i",_result); |
547 | return _resultobj; | |
548 | } | |
549 | ||
0122b7e3 | 550 | static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject * _self) { |
4acff284 | 551 | self->SetClientObject(new wxPyOORClientData(_self)); |
0122b7e3 RD |
552 | } |
553 | static PyObject *_wrap_wxEvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
554 | PyObject * _resultobj; | |
555 | wxEvtHandler * _arg0; | |
556 | PyObject * _arg1; | |
557 | PyObject * _argo0 = 0; | |
558 | PyObject * _obj1 = 0; | |
559 | char *_kwnames[] = { "self","_self", NULL }; | |
560 | ||
561 | self = self; | |
562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler__setOORInfo",_kwnames,&_argo0,&_obj1)) | |
563 | return NULL; | |
564 | if (_argo0) { | |
565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p."); | |
568 | return NULL; | |
569 | } | |
570 | } | |
571 | { | |
572 | _arg1 = _obj1; | |
573 | } | |
574 | { | |
4268f798 | 575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 576 | wxEvtHandler__setOORInfo(_arg0,_arg1); |
0122b7e3 | 577 | |
4268f798 | 578 | wxPyEndAllowThreads(__tstate); |
0122b7e3 RD |
579 | if (PyErr_Occurred()) return NULL; |
580 | } Py_INCREF(Py_None); | |
581 | _resultobj = Py_None; | |
582 | return _resultobj; | |
583 | } | |
584 | ||
2f90df85 RD |
585 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
586 | wxValidator *src; | |
587 | wxEvtHandler *dest; | |
588 | src = (wxValidator *) ptr; | |
589 | dest = (wxEvtHandler *) src; | |
590 | return (void *) dest; | |
591 | } | |
592 | ||
9416aa89 RD |
593 | static void *SwigwxValidatorTowxObject(void *ptr) { |
594 | wxValidator *src; | |
595 | wxObject *dest; | |
596 | src = (wxValidator *) ptr; | |
597 | dest = (wxObject *) src; | |
598 | return (void *) dest; | |
599 | } | |
600 | ||
2f90df85 RD |
601 | #define new_wxValidator() (new wxValidator()) |
602 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
603 | PyObject * _resultobj; | |
604 | wxValidator * _result; | |
605 | char *_kwnames[] = { NULL }; | |
606 | char _ptemp[128]; | |
607 | ||
608 | self = self; | |
609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
610 | return NULL; | |
611 | { | |
4268f798 | 612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 613 | _result = (wxValidator *)new_wxValidator(); |
2f90df85 | 614 | |
4268f798 | 615 | wxPyEndAllowThreads(__tstate); |
493f1553 | 616 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
617 | } if (_result) { |
618 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
619 | _resultobj = Py_BuildValue("s",_ptemp); | |
620 | } else { | |
621 | Py_INCREF(Py_None); | |
622 | _resultobj = Py_None; | |
623 | } | |
624 | return _resultobj; | |
af309447 | 625 | } |
2f90df85 RD |
626 | |
627 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
628 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 629 | PyObject * _resultobj; |
2f90df85 RD |
630 | wxValidator * _result; |
631 | wxValidator * _arg0; | |
632 | PyObject * _argo0 = 0; | |
633 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
634 | |
635 | self = self; | |
2f90df85 RD |
636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
637 | return NULL; | |
638 | if (_argo0) { | |
639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 642 | return NULL; |
2f90df85 RD |
643 | } |
644 | } | |
cf694132 | 645 | { |
4268f798 | 646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 647 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 | 648 | |
4268f798 | 649 | wxPyEndAllowThreads(__tstate); |
493f1553 | 650 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 651 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
652 | return _resultobj; |
653 | } | |
654 | ||
2f90df85 RD |
655 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
656 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
657 | PyObject * _resultobj; |
658 | wxWindow * _result; | |
2f90df85 RD |
659 | wxValidator * _arg0; |
660 | PyObject * _argo0 = 0; | |
661 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
662 | |
663 | self = self; | |
2f90df85 RD |
664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
665 | return NULL; | |
666 | if (_argo0) { | |
667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 670 | return NULL; |
2f90df85 RD |
671 | } |
672 | } | |
cf694132 | 673 | { |
4268f798 | 674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 675 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 | 676 | |
4268f798 | 677 | wxPyEndAllowThreads(__tstate); |
493f1553 | 678 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 679 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
680 | return _resultobj; |
681 | } | |
682 | ||
2f90df85 RD |
683 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
684 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 685 | PyObject * _resultobj; |
2f90df85 RD |
686 | wxValidator * _arg0; |
687 | wxWindow * _arg1; | |
1d99702e RD |
688 | PyObject * _argo0 = 0; |
689 | PyObject * _argo1 = 0; | |
2f90df85 | 690 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
691 | |
692 | self = self; | |
2f90df85 | 693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 694 | return NULL; |
1d99702e RD |
695 | if (_argo0) { |
696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
699 | return NULL; |
700 | } | |
701 | } | |
1d99702e RD |
702 | if (_argo1) { |
703 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
704 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
706 | return NULL; |
707 | } | |
708 | } | |
709 | { | |
4268f798 | 710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 711 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 | 712 | |
4268f798 | 713 | wxPyEndAllowThreads(__tstate); |
493f1553 | 714 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
715 | } Py_INCREF(Py_None); |
716 | _resultobj = Py_None; | |
cf694132 RD |
717 | return _resultobj; |
718 | } | |
719 | ||
9416aa89 RD |
720 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { |
721 | PyObject * _resultobj; | |
722 | bool _result; | |
723 | char *_kwnames[] = { NULL }; | |
724 | ||
725 | self = self; | |
726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
727 | return NULL; | |
728 | { | |
4268f798 | 729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 730 | _result = (bool )wxValidator::IsSilent(); |
9416aa89 | 731 | |
4268f798 | 732 | wxPyEndAllowThreads(__tstate); |
493f1553 | 733 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
734 | } _resultobj = Py_BuildValue("i",_result); |
735 | return _resultobj; | |
736 | } | |
737 | ||
738 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
739 | PyObject * _resultobj; | |
740 | int _arg0 = (int ) TRUE; | |
741 | char *_kwnames[] = { "doIt", NULL }; | |
742 | ||
743 | self = self; | |
744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
745 | return NULL; | |
746 | { | |
4268f798 | 747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 748 | wxValidator::SetBellOnError(_arg0); |
9416aa89 | 749 | |
4268f798 | 750 | wxPyEndAllowThreads(__tstate); |
493f1553 | 751 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
752 | } Py_INCREF(Py_None); |
753 | _resultobj = Py_None; | |
754 | return _resultobj; | |
755 | } | |
756 | ||
2f90df85 RD |
757 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
758 | wxPyValidator *src; | |
759 | wxValidator *dest; | |
760 | src = (wxPyValidator *) ptr; | |
761 | dest = (wxValidator *) src; | |
762 | return (void *) dest; | |
763 | } | |
764 | ||
765 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
766 | wxPyValidator *src; | |
767 | wxEvtHandler *dest; | |
768 | src = (wxPyValidator *) ptr; | |
769 | dest = (wxEvtHandler *) src; | |
770 | return (void *) dest; | |
771 | } | |
772 | ||
9416aa89 RD |
773 | static void *SwigwxPyValidatorTowxObject(void *ptr) { |
774 | wxPyValidator *src; | |
775 | wxObject *dest; | |
776 | src = (wxPyValidator *) ptr; | |
777 | dest = (wxObject *) src; | |
778 | return (void *) dest; | |
779 | } | |
780 | ||
2f90df85 RD |
781 | #define new_wxPyValidator() (new wxPyValidator()) |
782 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
783 | PyObject * _resultobj; | |
784 | wxPyValidator * _result; | |
785 | char *_kwnames[] = { NULL }; | |
786 | char _ptemp[128]; | |
787 | ||
788 | self = self; | |
789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
790 | return NULL; | |
791 | { | |
4268f798 | 792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 793 | _result = (wxPyValidator *)new_wxPyValidator(); |
2f90df85 | 794 | |
4268f798 | 795 | wxPyEndAllowThreads(__tstate); |
493f1553 | 796 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
797 | } if (_result) { |
798 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
799 | _resultobj = Py_BuildValue("s",_ptemp); | |
800 | } else { | |
801 | Py_INCREF(Py_None); | |
802 | _resultobj = Py_None; | |
803 | } | |
804 | return _resultobj; | |
805 | } | |
806 | ||
0122b7e3 RD |
807 | #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2)) |
808 | static PyObject *_wrap_wxPyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 809 | PyObject * _resultobj; |
2f90df85 RD |
810 | wxPyValidator * _arg0; |
811 | PyObject * _arg1; | |
f6bcfd97 BP |
812 | PyObject * _arg2; |
813 | int _arg3 = (int ) TRUE; | |
1d99702e | 814 | PyObject * _argo0 = 0; |
2f90df85 | 815 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
816 | PyObject * _obj2 = 0; |
817 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
818 | |
819 | self = self; | |
0122b7e3 | 820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 821 | return NULL; |
1d99702e RD |
822 | if (_argo0) { |
823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 | 824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
0122b7e3 | 825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p."); |
8ab979d7 RD |
826 | return NULL; |
827 | } | |
828 | } | |
829 | { | |
2f90df85 | 830 | _arg1 = _obj1; |
8ab979d7 | 831 | } |
f6bcfd97 BP |
832 | { |
833 | _arg2 = _obj2; | |
834 | } | |
cf694132 | 835 | { |
4268f798 | 836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 837 | wxPyValidator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 838 | |
4268f798 | 839 | wxPyEndAllowThreads(__tstate); |
493f1553 | 840 | if (PyErr_Occurred()) return NULL; |
cf694132 | 841 | } Py_INCREF(Py_None); |
8ab979d7 RD |
842 | _resultobj = Py_None; |
843 | return _resultobj; | |
844 | } | |
845 | ||
846 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
847 | wxWindow *src; | |
848 | wxEvtHandler *dest; | |
849 | src = (wxWindow *) ptr; | |
850 | dest = (wxEvtHandler *) src; | |
851 | return (void *) dest; | |
852 | } | |
853 | ||
9416aa89 RD |
854 | static void *SwigwxWindowTowxObject(void *ptr) { |
855 | wxWindow *src; | |
856 | wxObject *dest; | |
857 | src = (wxWindow *) ptr; | |
858 | dest = (wxObject *) src; | |
859 | return (void *) dest; | |
860 | } | |
861 | ||
8ab979d7 | 862 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 863 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
864 | PyObject * _resultobj; |
865 | wxWindow * _result; | |
866 | wxWindow * _arg0; | |
867 | wxWindowID _arg1; | |
e508a2b6 RD |
868 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
869 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 870 | long _arg4 = (long ) 0; |
137b5242 | 871 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 872 | PyObject * _argo0 = 0; |
2f90df85 RD |
873 | wxPoint temp; |
874 | PyObject * _obj2 = 0; | |
875 | wxSize temp0; | |
876 | PyObject * _obj3 = 0; | |
137b5242 | 877 | PyObject * _obj5 = 0; |
efc5f224 | 878 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
879 | char _ptemp[128]; |
880 | ||
881 | self = self; | |
137b5242 | 882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 883 | return NULL; |
1d99702e RD |
884 | if (_argo0) { |
885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
888 | return NULL; | |
889 | } | |
890 | } | |
2f90df85 RD |
891 | if (_obj2) |
892 | { | |
893 | _arg2 = &temp; | |
894 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 895 | return NULL; |
2f90df85 RD |
896 | } |
897 | if (_obj3) | |
898 | { | |
899 | _arg3 = &temp0; | |
900 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 901 | return NULL; |
137b5242 RD |
902 | } |
903 | if (_obj5) | |
904 | { | |
905 | _arg5 = wxString_in_helper(_obj5); | |
906 | if (_arg5 == NULL) | |
907 | return NULL; | |
2f90df85 | 908 | } |
cf694132 | 909 | { |
4268f798 | 910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 911 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 912 | |
4268f798 | 913 | wxPyEndAllowThreads(__tstate); |
493f1553 | 914 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
915 | } if (_result) { |
916 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
917 | _resultobj = Py_BuildValue("s",_ptemp); | |
918 | } else { | |
919 | Py_INCREF(Py_None); | |
920 | _resultobj = Py_None; | |
921 | } | |
137b5242 RD |
922 | { |
923 | if (_obj5) | |
924 | delete _arg5; | |
925 | } | |
8ab979d7 RD |
926 | return _resultobj; |
927 | } | |
928 | ||
09f3d4e6 RD |
929 | #define new_wxPreWindow() (new wxWindow()) |
930 | static PyObject *_wrap_new_wxPreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
931 | PyObject * _resultobj; | |
932 | wxWindow * _result; | |
933 | char *_kwnames[] = { NULL }; | |
934 | char _ptemp[128]; | |
935 | ||
936 | self = self; | |
937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreWindow",_kwnames)) | |
938 | return NULL; | |
939 | { | |
4268f798 | 940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 941 | _result = (wxWindow *)new_wxPreWindow(); |
09f3d4e6 | 942 | |
4268f798 | 943 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
944 | if (PyErr_Occurred()) return NULL; |
945 | } if (_result) { | |
946 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
947 | _resultobj = Py_BuildValue("s",_ptemp); | |
948 | } else { | |
949 | Py_INCREF(Py_None); | |
950 | _resultobj = Py_None; | |
951 | } | |
952 | return _resultobj; | |
953 | } | |
954 | ||
955 | #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
956 | static PyObject *_wrap_wxWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
957 | PyObject * _resultobj; | |
958 | bool _result; | |
959 | wxWindow * _arg0; | |
960 | wxWindow * _arg1; | |
961 | wxWindowID _arg2; | |
962 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
963 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
964 | long _arg5 = (long ) 0; | |
137b5242 | 965 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
09f3d4e6 RD |
966 | PyObject * _argo0 = 0; |
967 | PyObject * _argo1 = 0; | |
968 | wxPoint temp; | |
969 | PyObject * _obj3 = 0; | |
970 | wxSize temp0; | |
971 | PyObject * _obj4 = 0; | |
137b5242 | 972 | PyObject * _obj6 = 0; |
09f3d4e6 RD |
973 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
974 | ||
975 | self = self; | |
137b5242 | 976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
09f3d4e6 RD |
977 | return NULL; |
978 | if (_argo0) { | |
979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p."); | |
982 | return NULL; | |
983 | } | |
984 | } | |
985 | if (_argo1) { | |
986 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
987 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p."); | |
989 | return NULL; | |
990 | } | |
991 | } | |
992 | if (_obj3) | |
993 | { | |
994 | _arg3 = &temp; | |
995 | if (! wxPoint_helper(_obj3, &_arg3)) | |
996 | return NULL; | |
997 | } | |
998 | if (_obj4) | |
999 | { | |
1000 | _arg4 = &temp0; | |
1001 | if (! wxSize_helper(_obj4, &_arg4)) | |
1002 | return NULL; | |
137b5242 RD |
1003 | } |
1004 | if (_obj6) | |
1005 | { | |
1006 | _arg6 = wxString_in_helper(_obj6); | |
1007 | if (_arg6 == NULL) | |
1008 | return NULL; | |
09f3d4e6 RD |
1009 | } |
1010 | { | |
4268f798 | 1011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 1012 | _result = (bool )wxWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
09f3d4e6 | 1013 | |
4268f798 | 1014 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1015 | if (PyErr_Occurred()) return NULL; |
1016 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
1017 | { |
1018 | if (_obj6) | |
1019 | delete _arg6; | |
1020 | } | |
09f3d4e6 RD |
1021 | return _resultobj; |
1022 | } | |
1023 | ||
8ab979d7 | 1024 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) |
efc5f224 | 1025 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1026 | PyObject * _resultobj; |
1027 | wxWindow * _arg0; | |
1d99702e RD |
1028 | int _arg1 = (int ) wxBOTH; |
1029 | PyObject * _argo0 = 0; | |
efc5f224 | 1030 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1031 | |
1032 | self = self; | |
efc5f224 | 1033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1034 | return NULL; |
1d99702e RD |
1035 | if (_argo0) { |
1036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
1039 | return NULL; | |
1040 | } | |
1041 | } | |
cf694132 | 1042 | { |
4268f798 | 1043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1044 | wxWindow_Center(_arg0,_arg1); |
cf694132 | 1045 | |
4268f798 | 1046 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1047 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1048 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1049 | _resultobj = Py_None; |
1050 | return _resultobj; | |
1051 | } | |
1052 | ||
1053 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 1054 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1055 | PyObject * _resultobj; |
1056 | wxWindow * _arg0; | |
1d99702e RD |
1057 | int _arg1 = (int ) wxBOTH; |
1058 | PyObject * _argo0 = 0; | |
efc5f224 | 1059 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1060 | |
1061 | self = self; | |
efc5f224 | 1062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1063 | return NULL; |
1d99702e RD |
1064 | if (_argo0) { |
1065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
1068 | return NULL; | |
1069 | } | |
1070 | } | |
cf694132 | 1071 | { |
4268f798 | 1072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1073 | wxWindow_Centre(_arg0,_arg1); |
cf694132 | 1074 | |
4268f798 | 1075 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1076 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1077 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1078 | _resultobj = Py_None; |
1079 | return _resultobj; | |
1080 | } | |
1081 | ||
bb0054cd | 1082 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 1083 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1084 | PyObject * _resultobj; |
1085 | wxWindow * _arg0; | |
1d99702e RD |
1086 | int _arg1 = (int ) wxBOTH; |
1087 | PyObject * _argo0 = 0; | |
efc5f224 | 1088 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1089 | |
1090 | self = self; | |
efc5f224 | 1091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1092 | return NULL; |
1d99702e RD |
1093 | if (_argo0) { |
1094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
1097 | return NULL; | |
1098 | } | |
1099 | } | |
1100 | { | |
4268f798 | 1101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1102 | wxWindow_CentreOnParent(_arg0,_arg1); |
bb0054cd | 1103 | |
4268f798 | 1104 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1105 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1106 | } Py_INCREF(Py_None); |
1107 | _resultobj = Py_None; | |
1108 | return _resultobj; | |
1109 | } | |
1110 | ||
1111 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 1112 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1113 | PyObject * _resultobj; |
1114 | wxWindow * _arg0; | |
1d99702e RD |
1115 | int _arg1 = (int ) wxBOTH; |
1116 | PyObject * _argo0 = 0; | |
efc5f224 | 1117 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1118 | |
1119 | self = self; | |
efc5f224 | 1120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1121 | return NULL; |
1d99702e RD |
1122 | if (_argo0) { |
1123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
1126 | return NULL; | |
1127 | } | |
1128 | } | |
1129 | { | |
4268f798 | 1130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1131 | wxWindow_CenterOnParent(_arg0,_arg1); |
bb0054cd | 1132 | |
4268f798 | 1133 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1134 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1135 | } Py_INCREF(Py_None); |
1136 | _resultobj = Py_None; | |
1137 | return _resultobj; | |
1138 | } | |
1139 | ||
3ca6a5f0 BP |
1140 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
1141 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1142 | PyObject * _resultobj; | |
1143 | wxWindow * _arg0; | |
1144 | int _arg1 = (int ) wxBOTH; | |
1145 | PyObject * _argo0 = 0; | |
1146 | char *_kwnames[] = { "self","direction", NULL }; | |
1147 | ||
1148 | self = self; | |
1149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1150 | return NULL; | |
1151 | if (_argo0) { | |
1152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1155 | return NULL; | |
1156 | } | |
1157 | } | |
1158 | { | |
4268f798 | 1159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1160 | wxWindow_CentreOnScreen(_arg0,_arg1); |
3ca6a5f0 | 1161 | |
4268f798 | 1162 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1163 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1164 | } Py_INCREF(Py_None); |
1165 | _resultobj = Py_None; | |
1166 | return _resultobj; | |
1167 | } | |
1168 | ||
1169 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1170 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1171 | PyObject * _resultobj; | |
1172 | wxWindow * _arg0; | |
1173 | int _arg1 = (int ) wxBOTH; | |
1174 | PyObject * _argo0 = 0; | |
1175 | char *_kwnames[] = { "self","direction", NULL }; | |
1176 | ||
1177 | self = self; | |
1178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1179 | return NULL; | |
1180 | if (_argo0) { | |
1181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1184 | return NULL; | |
1185 | } | |
1186 | } | |
1187 | { | |
4268f798 | 1188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1189 | wxWindow_CenterOnScreen(_arg0,_arg1); |
3ca6a5f0 | 1190 | |
4268f798 | 1191 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1192 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1193 | } Py_INCREF(Py_None); |
1194 | _resultobj = Py_None; | |
1195 | return _resultobj; | |
1196 | } | |
1197 | ||
d56cebe7 RD |
1198 | #define wxWindow_Clear(_swigobj) (_swigobj->Clear()) |
1199 | static PyObject *_wrap_wxWindow_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1200 | PyObject * _resultobj; | |
1201 | wxWindow * _arg0; | |
1202 | PyObject * _argo0 = 0; | |
1203 | char *_kwnames[] = { "self", NULL }; | |
1204 | ||
1205 | self = self; | |
1206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Clear",_kwnames,&_argo0)) | |
1207 | return NULL; | |
1208 | if (_argo0) { | |
1209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p."); | |
1212 | return NULL; | |
1213 | } | |
1214 | } | |
1215 | { | |
4268f798 | 1216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1217 | wxWindow_Clear(_arg0); |
d56cebe7 | 1218 | |
4268f798 | 1219 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
1220 | if (PyErr_Occurred()) return NULL; |
1221 | } Py_INCREF(Py_None); | |
1222 | _resultobj = Py_None; | |
1223 | return _resultobj; | |
1224 | } | |
1225 | ||
af309447 | 1226 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1227 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1228 | PyObject * _resultobj; |
1229 | wxWindow * _arg0; | |
1230 | int * _arg1; | |
1231 | int * _arg2; | |
1d99702e | 1232 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1233 | int temp; |
1234 | PyObject * _obj1 = 0; | |
1235 | int temp0; | |
1236 | PyObject * _obj2 = 0; | |
efc5f224 | 1237 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1238 | |
1239 | self = self; | |
efc5f224 | 1240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1241 | return NULL; |
1d99702e RD |
1242 | if (_argo0) { |
1243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1246 | return NULL; |
1247 | } | |
1248 | } | |
1249 | { | |
1250 | temp = (int) PyInt_AsLong(_obj1); | |
1251 | _arg1 = &temp; | |
1252 | } | |
1253 | { | |
1254 | temp0 = (int) PyInt_AsLong(_obj2); | |
1255 | _arg2 = &temp0; | |
1256 | } | |
cf694132 | 1257 | { |
4268f798 | 1258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1259 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); |
cf694132 | 1260 | |
4268f798 | 1261 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1262 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1263 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1264 | _resultobj = Py_None; |
1265 | { | |
1266 | PyObject *o; | |
1267 | o = PyInt_FromLong((long) (*_arg1)); | |
1268 | _resultobj = t_output_helper(_resultobj, o); | |
1269 | } | |
1270 | { | |
1271 | PyObject *o; | |
1272 | o = PyInt_FromLong((long) (*_arg2)); | |
1273 | _resultobj = t_output_helper(_resultobj, o); | |
1274 | } | |
1275 | return _resultobj; | |
1276 | } | |
1277 | ||
af309447 | 1278 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1279 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1280 | PyObject * _resultobj; |
1281 | wxPoint * _result; | |
1282 | wxWindow * _arg0; | |
1283 | wxPoint * _arg1; | |
1d99702e | 1284 | PyObject * _argo0 = 0; |
2f90df85 RD |
1285 | wxPoint temp; |
1286 | PyObject * _obj1 = 0; | |
efc5f224 | 1287 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1288 | char _ptemp[128]; |
1289 | ||
1290 | self = self; | |
2f90df85 | 1291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1292 | return NULL; |
1d99702e RD |
1293 | if (_argo0) { |
1294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1297 | return NULL; | |
1298 | } | |
1299 | } | |
2f90df85 RD |
1300 | { |
1301 | _arg1 = &temp; | |
1302 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1303 | return NULL; |
2f90df85 | 1304 | } |
cf694132 | 1305 | { |
4268f798 | 1306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1307 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); |
cf694132 | 1308 | |
4268f798 | 1309 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1310 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1311 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
1312 | _resultobj = Py_BuildValue("s",_ptemp); |
1313 | return _resultobj; | |
1314 | } | |
1315 | ||
8ab979d7 | 1316 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1317 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1318 | PyObject * _resultobj; |
1319 | bool _result; | |
1320 | wxWindow * _arg0; | |
1d99702e RD |
1321 | int _arg1 = (int ) FALSE; |
1322 | PyObject * _argo0 = 0; | |
efc5f224 | 1323 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1324 | |
1325 | self = self; | |
efc5f224 | 1326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1327 | return NULL; |
1d99702e RD |
1328 | if (_argo0) { |
1329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1332 | return NULL; | |
1333 | } | |
1334 | } | |
cf694132 | 1335 | { |
4268f798 | 1336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1337 | _result = (bool )wxWindow_Close(_arg0,_arg1); |
cf694132 | 1338 | |
4268f798 | 1339 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1340 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1341 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1342 | return _resultobj; |
1343 | } | |
1344 | ||
1345 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1346 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1347 | PyObject * _resultobj; |
1348 | bool _result; | |
1349 | wxWindow * _arg0; | |
1d99702e | 1350 | PyObject * _argo0 = 0; |
efc5f224 | 1351 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1352 | |
1353 | self = self; | |
efc5f224 | 1354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1355 | return NULL; |
1d99702e RD |
1356 | if (_argo0) { |
1357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1360 | return NULL; | |
1361 | } | |
1362 | } | |
cf694132 | 1363 | { |
4268f798 | 1364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1365 | _result = (bool )wxWindow_Destroy(_arg0); |
cf694132 | 1366 | |
4268f798 | 1367 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1368 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1369 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1370 | return _resultobj; |
1371 | } | |
1372 | ||
1373 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1374 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1375 | PyObject * _resultobj; |
1376 | wxWindow * _arg0; | |
1d99702e | 1377 | PyObject * _argo0 = 0; |
efc5f224 | 1378 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1379 | |
1380 | self = self; | |
efc5f224 | 1381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1382 | return NULL; |
1d99702e RD |
1383 | if (_argo0) { |
1384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1387 | return NULL; | |
1388 | } | |
1389 | } | |
cf694132 | 1390 | { |
4268f798 | 1391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1392 | wxWindow_DestroyChildren(_arg0); |
cf694132 | 1393 | |
4268f798 | 1394 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1395 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1396 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1397 | _resultobj = Py_None; |
1398 | return _resultobj; | |
1399 | } | |
1400 | ||
ac346f50 RD |
1401 | #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted()) |
1402 | static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1403 | PyObject * _resultobj; | |
1404 | bool _result; | |
1405 | wxWindow * _arg0; | |
1406 | PyObject * _argo0 = 0; | |
1407 | char *_kwnames[] = { "self", NULL }; | |
1408 | ||
1409 | self = self; | |
1410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0)) | |
1411 | return NULL; | |
1412 | if (_argo0) { | |
1413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p."); | |
1416 | return NULL; | |
1417 | } | |
1418 | } | |
1419 | { | |
4268f798 | 1420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1421 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); |
ac346f50 | 1422 | |
4268f798 | 1423 | wxPyEndAllowThreads(__tstate); |
ac346f50 RD |
1424 | if (PyErr_Occurred()) return NULL; |
1425 | } _resultobj = Py_BuildValue("i",_result); | |
1426 | return _resultobj; | |
1427 | } | |
1428 | ||
8ab979d7 | 1429 | #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0)) |
efc5f224 | 1430 | static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1431 | PyObject * _resultobj; |
1432 | wxWindow * _arg0; | |
1433 | bool _arg1; | |
1d99702e | 1434 | PyObject * _argo0 = 0; |
8ab979d7 | 1435 | int tempbool1; |
efc5f224 | 1436 | char *_kwnames[] = { "self","accept", NULL }; |
8ab979d7 RD |
1437 | |
1438 | self = self; | |
efc5f224 | 1439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1440 | return NULL; |
1d99702e RD |
1441 | if (_argo0) { |
1442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p."); |
1445 | return NULL; | |
1446 | } | |
1447 | } | |
1448 | _arg1 = (bool ) tempbool1; | |
cf694132 | 1449 | { |
4268f798 | 1450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1451 | wxWindow_DragAcceptFiles(_arg0,_arg1); |
cf694132 | 1452 | |
4268f798 | 1453 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1454 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1455 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1456 | _resultobj = Py_None; |
1457 | return _resultobj; | |
1458 | } | |
1459 | ||
1460 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
efc5f224 | 1461 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1462 | PyObject * _resultobj; |
1463 | wxWindow * _arg0; | |
1464 | bool _arg1; | |
1d99702e | 1465 | PyObject * _argo0 = 0; |
8ab979d7 | 1466 | int tempbool1; |
efc5f224 | 1467 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1468 | |
1469 | self = self; | |
efc5f224 | 1470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1471 | return NULL; |
1d99702e RD |
1472 | if (_argo0) { |
1473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1476 | return NULL; | |
1477 | } | |
1478 | } | |
1479 | _arg1 = (bool ) tempbool1; | |
cf694132 | 1480 | { |
4268f798 | 1481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1482 | wxWindow_Enable(_arg0,_arg1); |
cf694132 | 1483 | |
4268f798 | 1484 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1485 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1486 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1487 | _resultobj = Py_None; |
1488 | return _resultobj; | |
1489 | } | |
1490 | ||
af309447 | 1491 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1492 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1493 | PyObject * _resultobj; |
1494 | wxWindow * _result; | |
1495 | wxWindow * _arg0; | |
1496 | long _arg1; | |
1d99702e | 1497 | PyObject * _argo0 = 0; |
efc5f224 | 1498 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1499 | |
1500 | self = self; | |
efc5f224 | 1501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1502 | return NULL; |
1d99702e RD |
1503 | if (_argo0) { |
1504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1507 | return NULL; |
1508 | } | |
1509 | } | |
cf694132 | 1510 | { |
4268f798 | 1511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1512 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); |
cf694132 | 1513 | |
4268f798 | 1514 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1515 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1516 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1517 | return _resultobj; |
1518 | } | |
1519 | ||
1520 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1521 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1522 | PyObject * _resultobj; |
1523 | wxWindow * _result; | |
1524 | wxWindow * _arg0; | |
1525 | wxString * _arg1; | |
1d99702e | 1526 | PyObject * _argo0 = 0; |
8ab979d7 | 1527 | PyObject * _obj1 = 0; |
efc5f224 | 1528 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1529 | |
1530 | self = self; | |
efc5f224 | 1531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1532 | return NULL; |
1d99702e RD |
1533 | if (_argo0) { |
1534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1537 | return NULL; | |
1538 | } | |
1539 | } | |
1540 | { | |
c8bc7bb8 RD |
1541 | _arg1 = wxString_in_helper(_obj1); |
1542 | if (_arg1 == NULL) | |
8ab979d7 | 1543 | return NULL; |
8ab979d7 | 1544 | } |
cf694132 | 1545 | { |
4268f798 | 1546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1547 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); |
cf694132 | 1548 | |
4268f798 | 1549 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1550 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1551 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1552 | { |
1553 | if (_obj1) | |
1554 | delete _arg1; | |
1555 | } | |
1556 | return _resultobj; | |
1557 | } | |
1558 | ||
1559 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1560 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1561 | PyObject * _resultobj; |
1562 | wxWindow * _arg0; | |
1d99702e | 1563 | PyObject * _argo0 = 0; |
efc5f224 | 1564 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1565 | |
1566 | self = self; | |
efc5f224 | 1567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1568 | return NULL; |
1d99702e RD |
1569 | if (_argo0) { |
1570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1573 | return NULL; | |
1574 | } | |
1575 | } | |
cf694132 | 1576 | { |
4268f798 | 1577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1578 | wxWindow_Fit(_arg0); |
cf694132 | 1579 | |
4268f798 | 1580 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1581 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1582 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1583 | _resultobj = Py_None; |
1584 | return _resultobj; | |
1585 | } | |
1586 | ||
1587 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
efc5f224 | 1588 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1589 | PyObject * _resultobj; |
1590 | wxColour * _result; | |
1591 | wxWindow * _arg0; | |
1d99702e | 1592 | PyObject * _argo0 = 0; |
efc5f224 | 1593 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1594 | char _ptemp[128]; |
1595 | ||
1596 | self = self; | |
efc5f224 | 1597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1598 | return NULL; |
1d99702e RD |
1599 | if (_argo0) { |
1600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1603 | return NULL; | |
1604 | } | |
1605 | } | |
cf694132 | 1606 | { |
4268f798 | 1607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1608 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); |
cf694132 | 1609 | |
4268f798 | 1610 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1611 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1612 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1613 | _resultobj = Py_BuildValue("s",_ptemp); |
1614 | return _resultobj; | |
1615 | } | |
1616 | ||
23bed520 RD |
1617 | #define wxWindow_GetBorder(_swigobj) (_swigobj->GetBorder()) |
1618 | static PyObject *_wrap_wxWindow_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1619 | PyObject * _resultobj; | |
1620 | wxBorder _result; | |
1621 | wxWindow * _arg0; | |
1622 | PyObject * _argo0 = 0; | |
1623 | char *_kwnames[] = { "self", NULL }; | |
1624 | ||
1625 | self = self; | |
1626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBorder",_kwnames,&_argo0)) | |
1627 | return NULL; | |
1628 | if (_argo0) { | |
1629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBorder. Expected _wxWindow_p."); | |
1632 | return NULL; | |
1633 | } | |
1634 | } | |
1635 | { | |
1636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1637 | _result = (wxBorder )wxWindow_GetBorder(_arg0); |
23bed520 RD |
1638 | |
1639 | wxPyEndAllowThreads(__tstate); | |
1640 | if (PyErr_Occurred()) return NULL; | |
1641 | } _resultobj = Py_BuildValue("i",_result); | |
1642 | return _resultobj; | |
1643 | } | |
1644 | ||
d426c97e RD |
1645 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1646 | wxWindowList& list = self->GetChildren(); | |
1647 | return wxPy_ConvertList(&list, "wxWindow"); | |
1648 | } | |
1649 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1650 | PyObject * _resultobj; | |
1651 | PyObject * _result; | |
1652 | wxWindow * _arg0; | |
1653 | PyObject * _argo0 = 0; | |
1654 | char *_kwnames[] = { "self", NULL }; | |
1655 | ||
1656 | self = self; | |
1657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1658 | return NULL; | |
1659 | if (_argo0) { | |
1660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1663 | return NULL; | |
1664 | } | |
1665 | } | |
1666 | { | |
4268f798 | 1667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1668 | _result = (PyObject *)wxWindow_GetChildren(_arg0); |
d426c97e | 1669 | |
4268f798 | 1670 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1671 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
1672 | }{ |
1673 | _resultobj = _result; | |
1674 | } | |
1675 | return _resultobj; | |
1676 | } | |
1677 | ||
8ab979d7 | 1678 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1679 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1680 | PyObject * _resultobj; |
1681 | int _result; | |
1682 | wxWindow * _arg0; | |
1d99702e | 1683 | PyObject * _argo0 = 0; |
efc5f224 | 1684 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1685 | |
1686 | self = self; | |
efc5f224 | 1687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1688 | return NULL; |
1d99702e RD |
1689 | if (_argo0) { |
1690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1693 | return NULL; | |
1694 | } | |
1695 | } | |
cf694132 | 1696 | { |
4268f798 | 1697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1698 | _result = (int )wxWindow_GetCharHeight(_arg0); |
cf694132 | 1699 | |
4268f798 | 1700 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1701 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1702 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1703 | return _resultobj; |
1704 | } | |
1705 | ||
1706 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1707 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1708 | PyObject * _resultobj; |
1709 | int _result; | |
1710 | wxWindow * _arg0; | |
1d99702e | 1711 | PyObject * _argo0 = 0; |
efc5f224 | 1712 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1713 | |
1714 | self = self; | |
efc5f224 | 1715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1716 | return NULL; |
1d99702e RD |
1717 | if (_argo0) { |
1718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1721 | return NULL; | |
1722 | } | |
1723 | } | |
cf694132 | 1724 | { |
4268f798 | 1725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1726 | _result = (int )wxWindow_GetCharWidth(_arg0); |
cf694132 | 1727 | |
4268f798 | 1728 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1729 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1730 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1731 | return _resultobj; |
1732 | } | |
1733 | ||
b8b8dda7 | 1734 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1735 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1736 | PyObject * _resultobj; |
1737 | wxWindow * _arg0; | |
1738 | int * _arg1; | |
1739 | int temp; | |
1740 | int * _arg2; | |
1741 | int temp0; | |
1d99702e | 1742 | PyObject * _argo0 = 0; |
efc5f224 | 1743 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1744 | |
1745 | self = self; | |
1746 | { | |
1747 | _arg1 = &temp; | |
1748 | } | |
1749 | { | |
1750 | _arg2 = &temp0; | |
1751 | } | |
efc5f224 | 1752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1753 | return NULL; |
1d99702e RD |
1754 | if (_argo0) { |
1755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1758 | return NULL; |
1759 | } | |
1760 | } | |
cf694132 | 1761 | { |
4268f798 | 1762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1763 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 1764 | |
4268f798 | 1765 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1766 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1767 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1768 | _resultobj = Py_None; |
1769 | { | |
1770 | PyObject *o; | |
1771 | o = PyInt_FromLong((long) (*_arg1)); | |
1772 | _resultobj = t_output_helper(_resultobj, o); | |
1773 | } | |
1774 | { | |
1775 | PyObject *o; | |
1776 | o = PyInt_FromLong((long) (*_arg2)); | |
1777 | _resultobj = t_output_helper(_resultobj, o); | |
1778 | } | |
1779 | return _resultobj; | |
1780 | } | |
1781 | ||
b8b8dda7 | 1782 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1783 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1784 | PyObject * _resultobj; |
1785 | wxSize * _result; | |
1786 | wxWindow * _arg0; | |
1d99702e | 1787 | PyObject * _argo0 = 0; |
efc5f224 | 1788 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1789 | char _ptemp[128]; |
1790 | ||
1791 | self = self; | |
efc5f224 | 1792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1793 | return NULL; |
1d99702e RD |
1794 | if (_argo0) { |
1795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1798 | return NULL; | |
1799 | } | |
1800 | } | |
cf694132 | 1801 | { |
4268f798 | 1802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1803 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); |
cf694132 | 1804 | |
4268f798 | 1805 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1806 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1807 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
1808 | _resultobj = Py_BuildValue("s",_ptemp); |
1809 | return _resultobj; | |
1810 | } | |
1811 | ||
23bed520 RD |
1812 | #define wxWindow_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin()) |
1813 | static PyObject *_wrap_wxWindow_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1814 | PyObject * _resultobj; | |
1815 | wxPoint * _result; | |
1816 | wxWindow * _arg0; | |
1817 | PyObject * _argo0 = 0; | |
1818 | char *_kwnames[] = { "self", NULL }; | |
1819 | char _ptemp[128]; | |
1820 | ||
1821 | self = self; | |
1822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientAreaOrigin",_kwnames,&_argo0)) | |
1823 | return NULL; | |
1824 | if (_argo0) { | |
1825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientAreaOrigin. Expected _wxWindow_p."); | |
1828 | return NULL; | |
1829 | } | |
1830 | } | |
1831 | { | |
1832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1833 | _result = new wxPoint (wxWindow_GetClientAreaOrigin(_arg0)); |
23bed520 RD |
1834 | |
1835 | wxPyEndAllowThreads(__tstate); | |
1836 | if (PyErr_Occurred()) return NULL; | |
1837 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1838 | _resultobj = Py_BuildValue("s",_ptemp); | |
1839 | return _resultobj; | |
1840 | } | |
1841 | ||
1842 | #define wxWindow_GetClientRect(_swigobj) (_swigobj->GetClientRect()) | |
1843 | static PyObject *_wrap_wxWindow_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1844 | PyObject * _resultobj; | |
1845 | wxRect * _result; | |
1846 | wxWindow * _arg0; | |
1847 | PyObject * _argo0 = 0; | |
1848 | char *_kwnames[] = { "self", NULL }; | |
1849 | char _ptemp[128]; | |
1850 | ||
1851 | self = self; | |
1852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientRect",_kwnames,&_argo0)) | |
1853 | return NULL; | |
1854 | if (_argo0) { | |
1855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientRect. Expected _wxWindow_p."); | |
1858 | return NULL; | |
1859 | } | |
1860 | } | |
1861 | { | |
1862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1863 | _result = new wxRect (wxWindow_GetClientRect(_arg0)); |
23bed520 RD |
1864 | |
1865 | wxPyEndAllowThreads(__tstate); | |
1866 | if (PyErr_Occurred()) return NULL; | |
1867 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
1868 | _resultobj = Py_BuildValue("s",_ptemp); | |
1869 | return _resultobj; | |
1870 | } | |
1871 | ||
8ab979d7 | 1872 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1873 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1874 | PyObject * _resultobj; |
1875 | wxLayoutConstraints * _result; | |
1876 | wxWindow * _arg0; | |
1d99702e | 1877 | PyObject * _argo0 = 0; |
efc5f224 | 1878 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1879 | char _ptemp[128]; |
1880 | ||
1881 | self = self; | |
efc5f224 | 1882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1883 | return NULL; |
1d99702e RD |
1884 | if (_argo0) { |
1885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1888 | return NULL; | |
1889 | } | |
1890 | } | |
cf694132 | 1891 | { |
4268f798 | 1892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1893 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); |
cf694132 | 1894 | |
4268f798 | 1895 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1896 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1897 | } if (_result) { |
1898 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1899 | _resultobj = Py_BuildValue("s",_ptemp); | |
1900 | } else { | |
1901 | Py_INCREF(Py_None); | |
1902 | _resultobj = Py_None; | |
1903 | } | |
8ab979d7 RD |
1904 | return _resultobj; |
1905 | } | |
1906 | ||
1afc06c2 RD |
1907 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1908 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1909 | PyObject * _resultobj; | |
1910 | wxEvtHandler * _result; | |
1911 | wxWindow * _arg0; | |
1912 | PyObject * _argo0 = 0; | |
1913 | char *_kwnames[] = { "self", NULL }; | |
1afc06c2 RD |
1914 | |
1915 | self = self; | |
1916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1917 | return NULL; | |
1918 | if (_argo0) { | |
1919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1922 | return NULL; | |
1923 | } | |
1924 | } | |
1925 | { | |
4268f798 | 1926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1927 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); |
1afc06c2 | 1928 | |
4268f798 | 1929 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1930 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1931 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
1932 | return _resultobj; |
1933 | } | |
1934 | ||
8ab979d7 | 1935 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 1936 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1937 | PyObject * _resultobj; |
1938 | wxFont * _result; | |
1939 | wxWindow * _arg0; | |
1d99702e | 1940 | PyObject * _argo0 = 0; |
efc5f224 | 1941 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1942 | char _ptemp[128]; |
1943 | ||
1944 | self = self; | |
efc5f224 | 1945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 1946 | return NULL; |
1d99702e RD |
1947 | if (_argo0) { |
1948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
1951 | return NULL; | |
1952 | } | |
1953 | } | |
cf694132 | 1954 | { |
4268f798 | 1955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1956 | _result = new wxFont (wxWindow_GetFont(_arg0)); |
cf694132 | 1957 | |
4268f798 | 1958 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1959 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1960 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1961 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
1962 | return _resultobj; |
1963 | } | |
1964 | ||
1965 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 1966 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1967 | PyObject * _resultobj; |
1968 | wxColour * _result; | |
1969 | wxWindow * _arg0; | |
1d99702e | 1970 | PyObject * _argo0 = 0; |
efc5f224 | 1971 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1972 | char _ptemp[128]; |
1973 | ||
1974 | self = self; | |
efc5f224 | 1975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1976 | return NULL; |
1d99702e RD |
1977 | if (_argo0) { |
1978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
1981 | return NULL; | |
1982 | } | |
1983 | } | |
cf694132 | 1984 | { |
4268f798 | 1985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1986 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); |
cf694132 | 1987 | |
4268f798 | 1988 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1989 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1990 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1991 | _resultobj = Py_BuildValue("s",_ptemp); |
1992 | return _resultobj; | |
1993 | } | |
1994 | ||
1995 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 1996 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1997 | PyObject * _resultobj; |
1998 | wxWindow * _result; | |
1999 | wxWindow * _arg0; | |
1d99702e | 2000 | PyObject * _argo0 = 0; |
efc5f224 | 2001 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2002 | |
2003 | self = self; | |
efc5f224 | 2004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 2005 | return NULL; |
1d99702e RD |
2006 | if (_argo0) { |
2007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
2010 | return NULL; | |
2011 | } | |
2012 | } | |
cf694132 | 2013 | { |
4268f798 | 2014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2015 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); |
cf694132 | 2016 | |
4268f798 | 2017 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2018 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2019 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2020 | return _resultobj; |
2021 | } | |
2022 | ||
2abc0a0f | 2023 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 2024 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
2025 | } |
2026 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2027 | PyObject * _resultobj; | |
2028 | long _result; | |
2029 | wxWindow * _arg0; | |
2030 | PyObject * _argo0 = 0; | |
2031 | char *_kwnames[] = { "self", NULL }; | |
2032 | ||
2033 | self = self; | |
2034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
2035 | return NULL; | |
2036 | if (_argo0) { | |
2037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
2040 | return NULL; | |
2041 | } | |
2042 | } | |
2043 | { | |
4268f798 | 2044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2045 | _result = (long )wxWindow_GetHandle(_arg0); |
2abc0a0f | 2046 | |
4268f798 | 2047 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2048 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
2049 | } _resultobj = Py_BuildValue("l",_result); |
2050 | return _resultobj; | |
2051 | } | |
2052 | ||
8ab979d7 | 2053 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 2054 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2055 | PyObject * _resultobj; |
2056 | int _result; | |
2057 | wxWindow * _arg0; | |
1d99702e | 2058 | PyObject * _argo0 = 0; |
efc5f224 | 2059 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2060 | |
2061 | self = self; | |
efc5f224 | 2062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 2063 | return NULL; |
1d99702e RD |
2064 | if (_argo0) { |
2065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
2068 | return NULL; | |
2069 | } | |
2070 | } | |
cf694132 | 2071 | { |
4268f798 | 2072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2073 | _result = (int )wxWindow_GetId(_arg0); |
cf694132 | 2074 | |
4268f798 | 2075 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2076 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2077 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2078 | return _resultobj; |
2079 | } | |
2080 | ||
8ab979d7 | 2081 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 2082 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2083 | PyObject * _resultobj; |
2084 | wxString * _result; | |
2085 | wxWindow * _arg0; | |
1d99702e | 2086 | PyObject * _argo0 = 0; |
efc5f224 | 2087 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2088 | |
2089 | self = self; | |
efc5f224 | 2090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 2091 | return NULL; |
1d99702e RD |
2092 | if (_argo0) { |
2093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
2096 | return NULL; | |
2097 | } | |
2098 | } | |
8ab979d7 | 2099 | { |
4268f798 | 2100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2101 | _result = new wxString (wxWindow_GetLabel(_arg0)); |
cf694132 | 2102 | |
4268f798 | 2103 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2104 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2105 | }{ |
c8bc7bb8 RD |
2106 | #if wxUSE_UNICODE |
2107 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2108 | #else | |
eec92d76 | 2109 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2110 | #endif |
8ab979d7 RD |
2111 | } |
2112 | { | |
2113 | delete _result; | |
2114 | } | |
2115 | return _resultobj; | |
2116 | } | |
2117 | ||
bb0054cd | 2118 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 2119 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2120 | PyObject * _resultobj; |
2121 | wxWindow * _arg0; | |
2122 | wxString * _arg1; | |
1d99702e | 2123 | PyObject * _argo0 = 0; |
bb0054cd | 2124 | PyObject * _obj1 = 0; |
efc5f224 | 2125 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
2126 | |
2127 | self = self; | |
efc5f224 | 2128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 2129 | return NULL; |
1d99702e RD |
2130 | if (_argo0) { |
2131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
2134 | return NULL; | |
2135 | } | |
2136 | } | |
2137 | { | |
c8bc7bb8 RD |
2138 | _arg1 = wxString_in_helper(_obj1); |
2139 | if (_arg1 == NULL) | |
bb0054cd | 2140 | return NULL; |
bb0054cd RD |
2141 | } |
2142 | { | |
4268f798 | 2143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2144 | wxWindow_SetLabel(_arg0,*_arg1); |
bb0054cd | 2145 | |
4268f798 | 2146 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2147 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2148 | } Py_INCREF(Py_None); |
2149 | _resultobj = Py_None; | |
2150 | { | |
2151 | if (_obj1) | |
2152 | delete _arg1; | |
2153 | } | |
2154 | return _resultobj; | |
2155 | } | |
2156 | ||
8ab979d7 | 2157 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2158 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2159 | PyObject * _resultobj; |
2160 | wxString * _result; | |
2161 | wxWindow * _arg0; | |
1d99702e | 2162 | PyObject * _argo0 = 0; |
efc5f224 | 2163 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2164 | |
2165 | self = self; | |
efc5f224 | 2166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2167 | return NULL; |
1d99702e RD |
2168 | if (_argo0) { |
2169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2172 | return NULL; | |
2173 | } | |
2174 | } | |
8ab979d7 | 2175 | { |
4268f798 | 2176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2177 | _result = new wxString (wxWindow_GetName(_arg0)); |
cf694132 | 2178 | |
4268f798 | 2179 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2180 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2181 | }{ |
c8bc7bb8 RD |
2182 | #if wxUSE_UNICODE |
2183 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2184 | #else | |
eec92d76 | 2185 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2186 | #endif |
8ab979d7 RD |
2187 | } |
2188 | { | |
2189 | delete _result; | |
2190 | } | |
2191 | return _resultobj; | |
2192 | } | |
2193 | ||
2194 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2195 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2196 | PyObject * _resultobj; |
2197 | wxWindow * _result; | |
2198 | wxWindow * _arg0; | |
1d99702e | 2199 | PyObject * _argo0 = 0; |
efc5f224 | 2200 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2201 | |
2202 | self = self; | |
efc5f224 | 2203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2204 | return NULL; |
1d99702e RD |
2205 | if (_argo0) { |
2206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2209 | return NULL; | |
2210 | } | |
2211 | } | |
cf694132 | 2212 | { |
4268f798 | 2213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2214 | _result = (wxWindow *)wxWindow_GetParent(_arg0); |
cf694132 | 2215 | |
4268f798 | 2216 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2217 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2218 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2219 | return _resultobj; |
2220 | } | |
2221 | ||
b8b8dda7 | 2222 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2223 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2224 | PyObject * _resultobj; |
2225 | wxWindow * _arg0; | |
2226 | int * _arg1; | |
2227 | int temp; | |
2228 | int * _arg2; | |
2229 | int temp0; | |
1d99702e | 2230 | PyObject * _argo0 = 0; |
efc5f224 | 2231 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2232 | |
2233 | self = self; | |
2234 | { | |
2235 | _arg1 = &temp; | |
2236 | } | |
2237 | { | |
2238 | _arg2 = &temp0; | |
2239 | } | |
efc5f224 | 2240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2241 | return NULL; |
1d99702e RD |
2242 | if (_argo0) { |
2243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2246 | return NULL; | |
2247 | } | |
2248 | } | |
cf694132 | 2249 | { |
4268f798 | 2250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2251 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); |
cf694132 | 2252 | |
4268f798 | 2253 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2254 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2255 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
2256 | _resultobj = Py_None; |
2257 | { | |
2258 | PyObject *o; | |
2259 | o = PyInt_FromLong((long) (*_arg1)); | |
2260 | _resultobj = t_output_helper(_resultobj, o); | |
2261 | } | |
2262 | { | |
2263 | PyObject *o; | |
2264 | o = PyInt_FromLong((long) (*_arg2)); | |
2265 | _resultobj = t_output_helper(_resultobj, o); | |
2266 | } | |
2267 | return _resultobj; | |
2268 | } | |
2269 | ||
2270 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2271 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2272 | PyObject * _resultobj; |
2273 | wxPoint * _result; | |
2274 | wxWindow * _arg0; | |
1d99702e | 2275 | PyObject * _argo0 = 0; |
efc5f224 | 2276 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2277 | char _ptemp[128]; |
2278 | ||
2279 | self = self; | |
efc5f224 | 2280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2281 | return NULL; |
1d99702e RD |
2282 | if (_argo0) { |
2283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2286 | return NULL; | |
2287 | } | |
2288 | } | |
cf694132 | 2289 | { |
4268f798 | 2290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2291 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); |
cf694132 | 2292 | |
4268f798 | 2293 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2294 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2295 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
2296 | _resultobj = Py_BuildValue("s",_ptemp); |
2297 | return _resultobj; | |
2298 | } | |
2299 | ||
2300 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2301 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2302 | PyObject * _resultobj; |
2303 | wxRect * _result; | |
2304 | wxWindow * _arg0; | |
1d99702e | 2305 | PyObject * _argo0 = 0; |
efc5f224 | 2306 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2307 | char _ptemp[128]; |
2308 | ||
2309 | self = self; | |
efc5f224 | 2310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2311 | return NULL; |
1d99702e RD |
2312 | if (_argo0) { |
2313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2316 | return NULL; | |
2317 | } | |
2318 | } | |
cf694132 | 2319 | { |
4268f798 | 2320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2321 | _result = new wxRect (wxWindow_GetRect(_arg0)); |
cf694132 | 2322 | |
4268f798 | 2323 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2324 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2325 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
b8b8dda7 RD |
2326 | _resultobj = Py_BuildValue("s",_ptemp); |
2327 | return _resultobj; | |
2328 | } | |
2329 | ||
8ab979d7 | 2330 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2331 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2332 | PyObject * _resultobj; |
2333 | int _result; | |
2334 | wxWindow * _arg0; | |
2335 | int _arg1; | |
1d99702e | 2336 | PyObject * _argo0 = 0; |
efc5f224 | 2337 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2338 | |
2339 | self = self; | |
efc5f224 | 2340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2341 | return NULL; |
1d99702e RD |
2342 | if (_argo0) { |
2343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2346 | return NULL; | |
2347 | } | |
2348 | } | |
cf694132 | 2349 | { |
4268f798 | 2350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2351 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); |
cf694132 | 2352 | |
4268f798 | 2353 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2354 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2355 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2356 | return _resultobj; |
2357 | } | |
2358 | ||
2359 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2360 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2361 | PyObject * _resultobj; |
2362 | int _result; | |
2363 | wxWindow * _arg0; | |
2364 | int _arg1; | |
1d99702e | 2365 | PyObject * _argo0 = 0; |
efc5f224 | 2366 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2367 | |
2368 | self = self; | |
efc5f224 | 2369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2370 | return NULL; |
1d99702e RD |
2371 | if (_argo0) { |
2372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2375 | return NULL; | |
2376 | } | |
2377 | } | |
cf694132 | 2378 | { |
4268f798 | 2379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2380 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); |
cf694132 | 2381 | |
4268f798 | 2382 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2383 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2384 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2385 | return _resultobj; |
2386 | } | |
2387 | ||
2388 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2389 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2390 | PyObject * _resultobj; |
2391 | int _result; | |
2392 | wxWindow * _arg0; | |
2393 | int _arg1; | |
1d99702e | 2394 | PyObject * _argo0 = 0; |
efc5f224 | 2395 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2396 | |
2397 | self = self; | |
efc5f224 | 2398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2399 | return NULL; |
1d99702e RD |
2400 | if (_argo0) { |
2401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2404 | return NULL; | |
2405 | } | |
2406 | } | |
cf694132 | 2407 | { |
4268f798 | 2408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2409 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); |
cf694132 | 2410 | |
4268f798 | 2411 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2412 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2413 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2414 | return _resultobj; |
2415 | } | |
2416 | ||
b8b8dda7 | 2417 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2418 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2419 | PyObject * _resultobj; |
2420 | wxWindow * _arg0; | |
2421 | int * _arg1; | |
2422 | int temp; | |
2423 | int * _arg2; | |
2424 | int temp0; | |
1d99702e | 2425 | PyObject * _argo0 = 0; |
efc5f224 | 2426 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2427 | |
2428 | self = self; | |
2429 | { | |
2430 | _arg1 = &temp; | |
2431 | } | |
2432 | { | |
2433 | _arg2 = &temp0; | |
2434 | } | |
efc5f224 | 2435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2436 | return NULL; |
1d99702e RD |
2437 | if (_argo0) { |
2438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2441 | return NULL; |
2442 | } | |
2443 | } | |
cf694132 | 2444 | { |
4268f798 | 2445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2446 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 2447 | |
4268f798 | 2448 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2449 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2450 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2451 | _resultobj = Py_None; |
2452 | { | |
2453 | PyObject *o; | |
2454 | o = PyInt_FromLong((long) (*_arg1)); | |
2455 | _resultobj = t_output_helper(_resultobj, o); | |
2456 | } | |
2457 | { | |
2458 | PyObject *o; | |
2459 | o = PyInt_FromLong((long) (*_arg2)); | |
2460 | _resultobj = t_output_helper(_resultobj, o); | |
2461 | } | |
2462 | return _resultobj; | |
2463 | } | |
2464 | ||
b8b8dda7 | 2465 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2466 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2467 | PyObject * _resultobj; |
2468 | wxSize * _result; | |
2469 | wxWindow * _arg0; | |
1d99702e | 2470 | PyObject * _argo0 = 0; |
efc5f224 | 2471 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2472 | char _ptemp[128]; |
2473 | ||
2474 | self = self; | |
efc5f224 | 2475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2476 | return NULL; |
1d99702e RD |
2477 | if (_argo0) { |
2478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2481 | return NULL; | |
2482 | } | |
2483 | } | |
cf694132 | 2484 | { |
4268f798 | 2485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2486 | _result = new wxSize (wxWindow_GetSize(_arg0)); |
cf694132 | 2487 | |
4268f798 | 2488 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2489 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2490 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
2491 | _resultobj = Py_BuildValue("s",_ptemp); |
2492 | return _resultobj; | |
2493 | } | |
2494 | ||
8ab979d7 | 2495 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2496 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2497 | PyObject * _resultobj; |
2498 | wxWindow * _arg0; | |
2499 | wxString * _arg1; | |
2500 | int * _arg2; | |
2501 | int temp; | |
2502 | int * _arg3; | |
2503 | int temp0; | |
1d99702e | 2504 | PyObject * _argo0 = 0; |
8ab979d7 | 2505 | PyObject * _obj1 = 0; |
efc5f224 | 2506 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2507 | |
2508 | self = self; | |
2509 | { | |
2510 | _arg2 = &temp; | |
2511 | } | |
2512 | { | |
2513 | _arg3 = &temp0; | |
2514 | } | |
efc5f224 | 2515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2516 | return NULL; |
1d99702e RD |
2517 | if (_argo0) { |
2518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2521 | return NULL; | |
2522 | } | |
2523 | } | |
2524 | { | |
c8bc7bb8 RD |
2525 | _arg1 = wxString_in_helper(_obj1); |
2526 | if (_arg1 == NULL) | |
8ab979d7 | 2527 | return NULL; |
8ab979d7 | 2528 | } |
cf694132 | 2529 | { |
4268f798 | 2530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2531 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 2532 | |
4268f798 | 2533 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2534 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2535 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2536 | _resultobj = Py_None; |
2537 | { | |
2538 | PyObject *o; | |
2539 | o = PyInt_FromLong((long) (*_arg2)); | |
2540 | _resultobj = t_output_helper(_resultobj, o); | |
2541 | } | |
2542 | { | |
2543 | PyObject *o; | |
2544 | o = PyInt_FromLong((long) (*_arg3)); | |
2545 | _resultobj = t_output_helper(_resultobj, o); | |
2546 | } | |
2547 | { | |
2548 | if (_obj1) | |
2549 | delete _arg1; | |
2550 | } | |
2551 | return _resultobj; | |
2552 | } | |
2553 | ||
af309447 | 2554 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2555 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2556 | PyObject * _resultobj; |
2557 | wxWindow * _arg0; | |
2558 | wxString * _arg1; | |
2559 | int * _arg2; | |
2560 | int temp; | |
2561 | int * _arg3; | |
2562 | int temp0; | |
2563 | int * _arg4; | |
2564 | int temp1; | |
2565 | int * _arg5; | |
2566 | int temp2; | |
1d99702e RD |
2567 | wxFont * _arg6 = (wxFont *) NULL; |
2568 | PyObject * _argo0 = 0; | |
af309447 | 2569 | PyObject * _obj1 = 0; |
1d99702e | 2570 | PyObject * _argo6 = 0; |
efc5f224 | 2571 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2572 | |
2573 | self = self; | |
2574 | { | |
2575 | _arg2 = &temp; | |
2576 | } | |
2577 | { | |
2578 | _arg3 = &temp0; | |
2579 | } | |
2580 | { | |
2581 | _arg4 = &temp1; | |
2582 | } | |
2583 | { | |
2584 | _arg5 = &temp2; | |
2585 | } | |
efc5f224 | 2586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2587 | return NULL; |
1d99702e RD |
2588 | if (_argo0) { |
2589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2592 | return NULL; | |
2593 | } | |
2594 | } | |
2595 | { | |
c8bc7bb8 RD |
2596 | _arg1 = wxString_in_helper(_obj1); |
2597 | if (_arg1 == NULL) | |
af309447 | 2598 | return NULL; |
af309447 | 2599 | } |
1d99702e RD |
2600 | if (_argo6) { |
2601 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2602 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2604 | return NULL; | |
2605 | } | |
2606 | } | |
cf694132 | 2607 | { |
4268f798 | 2608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2609 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 2610 | |
4268f798 | 2611 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2612 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2613 | } Py_INCREF(Py_None); |
af309447 RD |
2614 | _resultobj = Py_None; |
2615 | { | |
2616 | PyObject *o; | |
2617 | o = PyInt_FromLong((long) (*_arg2)); | |
2618 | _resultobj = t_output_helper(_resultobj, o); | |
2619 | } | |
2620 | { | |
2621 | PyObject *o; | |
2622 | o = PyInt_FromLong((long) (*_arg3)); | |
2623 | _resultobj = t_output_helper(_resultobj, o); | |
2624 | } | |
2625 | { | |
2626 | PyObject *o; | |
2627 | o = PyInt_FromLong((long) (*_arg4)); | |
2628 | _resultobj = t_output_helper(_resultobj, o); | |
2629 | } | |
2630 | { | |
2631 | PyObject *o; | |
2632 | o = PyInt_FromLong((long) (*_arg5)); | |
2633 | _resultobj = t_output_helper(_resultobj, o); | |
2634 | } | |
2635 | { | |
2636 | if (_obj1) | |
2637 | delete _arg1; | |
2638 | } | |
2639 | return _resultobj; | |
2640 | } | |
2641 | ||
8ab979d7 | 2642 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2643 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2644 | PyObject * _resultobj; |
2645 | wxString * _result; | |
2646 | wxWindow * _arg0; | |
1d99702e | 2647 | PyObject * _argo0 = 0; |
efc5f224 | 2648 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2649 | |
2650 | self = self; | |
efc5f224 | 2651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2652 | return NULL; |
1d99702e RD |
2653 | if (_argo0) { |
2654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2657 | return NULL; | |
2658 | } | |
2659 | } | |
8ab979d7 | 2660 | { |
4268f798 | 2661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2662 | _result = new wxString (wxWindow_GetTitle(_arg0)); |
cf694132 | 2663 | |
4268f798 | 2664 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2665 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2666 | }{ |
c8bc7bb8 RD |
2667 | #if wxUSE_UNICODE |
2668 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2669 | #else | |
eec92d76 | 2670 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2671 | #endif |
8ab979d7 RD |
2672 | } |
2673 | { | |
2674 | delete _result; | |
2675 | } | |
2676 | return _resultobj; | |
2677 | } | |
2678 | ||
8bf5d46e | 2679 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2680 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2681 | PyObject * _resultobj; |
2682 | wxRegion * _result; | |
2683 | wxWindow * _arg0; | |
1d99702e | 2684 | PyObject * _argo0 = 0; |
efc5f224 | 2685 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2686 | char _ptemp[128]; |
2687 | ||
2688 | self = self; | |
efc5f224 | 2689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2690 | return NULL; |
1d99702e RD |
2691 | if (_argo0) { |
2692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2695 | return NULL; | |
2696 | } | |
2697 | } | |
2698 | { | |
4268f798 | 2699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2700 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); |
8bf5d46e | 2701 | |
4268f798 | 2702 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2703 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
2704 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); |
2705 | _resultobj = Py_BuildValue("s",_ptemp); | |
2706 | return _resultobj; | |
2707 | } | |
2708 | ||
8ab979d7 | 2709 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2710 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2711 | PyObject * _resultobj; |
2712 | long _result; | |
2713 | wxWindow * _arg0; | |
1d99702e | 2714 | PyObject * _argo0 = 0; |
efc5f224 | 2715 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2716 | |
2717 | self = self; | |
efc5f224 | 2718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2719 | return NULL; |
1d99702e RD |
2720 | if (_argo0) { |
2721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2724 | return NULL; | |
2725 | } | |
2726 | } | |
cf694132 | 2727 | { |
4268f798 | 2728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2729 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); |
cf694132 | 2730 | |
4268f798 | 2731 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2732 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2733 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2734 | return _resultobj; |
2735 | } | |
2736 | ||
f6bcfd97 BP |
2737 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2738 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2739 | PyObject * _resultobj; | |
2740 | wxWindow * _arg0; | |
2741 | long _arg1; | |
2742 | PyObject * _argo0 = 0; | |
2743 | char *_kwnames[] = { "self","style", NULL }; | |
2744 | ||
2745 | self = self; | |
2746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2747 | return NULL; | |
2748 | if (_argo0) { | |
2749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2752 | return NULL; | |
2753 | } | |
2754 | } | |
2755 | { | |
4268f798 | 2756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2757 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); |
f6bcfd97 | 2758 | |
4268f798 | 2759 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2760 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2761 | } Py_INCREF(Py_None); |
2762 | _resultobj = Py_None; | |
2763 | return _resultobj; | |
2764 | } | |
2765 | ||
2766 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2767 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2768 | PyObject * _resultobj; | |
2769 | wxWindow * _arg0; | |
2770 | long _arg1; | |
2771 | PyObject * _argo0 = 0; | |
2772 | char *_kwnames[] = { "self","style", NULL }; | |
2773 | ||
2774 | self = self; | |
2775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2776 | return NULL; | |
2777 | if (_argo0) { | |
2778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2781 | return NULL; | |
2782 | } | |
2783 | } | |
2784 | { | |
4268f798 | 2785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2786 | wxWindow_SetWindowStyle(_arg0,_arg1); |
f6bcfd97 | 2787 | |
4268f798 | 2788 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2789 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2790 | } Py_INCREF(Py_None); |
2791 | _resultobj = Py_None; | |
2792 | return _resultobj; | |
2793 | } | |
2794 | ||
23bed520 RD |
2795 | #define wxWindow_HasScrollbar(_swigobj,_swigarg0) (_swigobj->HasScrollbar(_swigarg0)) |
2796 | static PyObject *_wrap_wxWindow_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2797 | PyObject * _resultobj; | |
2798 | bool _result; | |
2799 | wxWindow * _arg0; | |
2800 | int _arg1; | |
2801 | PyObject * _argo0 = 0; | |
2802 | char *_kwnames[] = { "self","orient", NULL }; | |
2803 | ||
2804 | self = self; | |
2805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_HasScrollbar",_kwnames,&_argo0,&_arg1)) | |
2806 | return NULL; | |
2807 | if (_argo0) { | |
2808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasScrollbar. Expected _wxWindow_p."); | |
2811 | return NULL; | |
2812 | } | |
2813 | } | |
2814 | { | |
2815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2816 | _result = (bool )wxWindow_HasScrollbar(_arg0,_arg1); |
23bed520 RD |
2817 | |
2818 | wxPyEndAllowThreads(__tstate); | |
2819 | if (PyErr_Occurred()) return NULL; | |
2820 | } _resultobj = Py_BuildValue("i",_result); | |
2821 | return _resultobj; | |
2822 | } | |
2823 | ||
bb0054cd | 2824 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2825 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2826 | PyObject * _resultobj; |
2827 | bool _result; | |
2828 | wxWindow * _arg0; | |
1d99702e | 2829 | PyObject * _argo0 = 0; |
efc5f224 | 2830 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2831 | |
2832 | self = self; | |
efc5f224 | 2833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2834 | return NULL; |
1d99702e RD |
2835 | if (_argo0) { |
2836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2839 | return NULL; | |
2840 | } | |
2841 | } | |
2842 | { | |
4268f798 | 2843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2844 | _result = (bool )wxWindow_Hide(_arg0); |
bb0054cd | 2845 | |
4268f798 | 2846 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2847 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2848 | } _resultobj = Py_BuildValue("i",_result); |
2849 | return _resultobj; | |
2850 | } | |
2851 | ||
23bed520 RD |
2852 | #define wxWindow_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0)) |
2853 | static PyObject *_wrap_wxWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2854 | PyObject * _resultobj; | |
2855 | wxHitTest _result; | |
2856 | wxWindow * _arg0; | |
2857 | wxPoint * _arg1; | |
2858 | PyObject * _argo0 = 0; | |
2859 | wxPoint temp; | |
2860 | PyObject * _obj1 = 0; | |
2861 | char *_kwnames[] = { "self","pt", NULL }; | |
2862 | ||
2863 | self = self; | |
2864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_HitTest",_kwnames,&_argo0,&_obj1)) | |
2865 | return NULL; | |
2866 | if (_argo0) { | |
2867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HitTest. Expected _wxWindow_p."); | |
2870 | return NULL; | |
2871 | } | |
2872 | } | |
2873 | { | |
2874 | _arg1 = &temp; | |
2875 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2876 | return NULL; | |
2877 | } | |
2878 | { | |
2879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2880 | _result = (wxHitTest )wxWindow_HitTest(_arg0,*_arg1); |
23bed520 RD |
2881 | |
2882 | wxPyEndAllowThreads(__tstate); | |
2883 | if (PyErr_Occurred()) return NULL; | |
2884 | } _resultobj = Py_BuildValue("i",_result); | |
2885 | return _resultobj; | |
2886 | } | |
2887 | ||
8ab979d7 | 2888 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2889 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2890 | PyObject * _resultobj; |
2891 | wxWindow * _arg0; | |
1d99702e | 2892 | PyObject * _argo0 = 0; |
efc5f224 | 2893 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2894 | |
2895 | self = self; | |
efc5f224 | 2896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2897 | return NULL; |
1d99702e RD |
2898 | if (_argo0) { |
2899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2902 | return NULL; | |
2903 | } | |
2904 | } | |
cf694132 | 2905 | { |
4268f798 | 2906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2907 | wxWindow_InitDialog(_arg0); |
cf694132 | 2908 | |
4268f798 | 2909 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2910 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2911 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2912 | _resultobj = Py_None; |
2913 | return _resultobj; | |
2914 | } | |
2915 | ||
2916 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 2917 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2918 | PyObject * _resultobj; |
2919 | bool _result; | |
2920 | wxWindow * _arg0; | |
1d99702e | 2921 | PyObject * _argo0 = 0; |
efc5f224 | 2922 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2923 | |
2924 | self = self; | |
efc5f224 | 2925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 2926 | return NULL; |
1d99702e RD |
2927 | if (_argo0) { |
2928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2931 | return NULL; | |
2932 | } | |
2933 | } | |
cf694132 | 2934 | { |
4268f798 | 2935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2936 | _result = (bool )wxWindow_IsEnabled(_arg0); |
cf694132 | 2937 | |
4268f798 | 2938 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2939 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2940 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2941 | return _resultobj; |
2942 | } | |
2943 | ||
1b55cabf RD |
2944 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2945 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2946 | PyObject * _resultobj; | |
2947 | bool _result; | |
2948 | wxWindow * _arg0; | |
2949 | int _arg1; | |
2950 | int _arg2; | |
2951 | int _arg3 = (int ) 0; | |
2952 | int _arg4 = (int ) 0; | |
2953 | PyObject * _argo0 = 0; | |
2954 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2955 | ||
2956 | self = self; | |
2957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2958 | return NULL; | |
2959 | if (_argo0) { | |
2960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2963 | return NULL; | |
2964 | } | |
2965 | } | |
2966 | { | |
4268f798 | 2967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2968 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); |
1b55cabf | 2969 | |
4268f798 | 2970 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2971 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2972 | } _resultobj = Py_BuildValue("i",_result); |
2973 | return _resultobj; | |
2974 | } | |
2975 | ||
2976 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2977 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2978 | PyObject * _resultobj; | |
2979 | bool _result; | |
2980 | wxWindow * _arg0; | |
2981 | wxPoint * _arg1; | |
2982 | PyObject * _argo0 = 0; | |
2983 | wxPoint temp; | |
2984 | PyObject * _obj1 = 0; | |
2985 | char *_kwnames[] = { "self","pt", NULL }; | |
2986 | ||
2987 | self = self; | |
2988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2989 | return NULL; | |
2990 | if (_argo0) { | |
2991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2994 | return NULL; | |
2995 | } | |
2996 | } | |
2997 | { | |
2998 | _arg1 = &temp; | |
2999 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3000 | return NULL; | |
3001 | } | |
3002 | { | |
4268f798 | 3003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3004 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); |
1b55cabf | 3005 | |
4268f798 | 3006 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3007 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3008 | } _resultobj = Py_BuildValue("i",_result); |
3009 | return _resultobj; | |
3010 | } | |
3011 | ||
3012 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
3013 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3014 | PyObject * _resultobj; | |
3015 | bool _result; | |
3016 | wxWindow * _arg0; | |
3017 | wxRect * _arg1; | |
3018 | PyObject * _argo0 = 0; | |
3019 | wxRect temp; | |
3020 | PyObject * _obj1 = 0; | |
3021 | char *_kwnames[] = { "self","rect", NULL }; | |
3022 | ||
3023 | self = self; | |
3024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
3025 | return NULL; | |
3026 | if (_argo0) { | |
3027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
3030 | return NULL; | |
3031 | } | |
3032 | } | |
3033 | { | |
3034 | _arg1 = &temp; | |
3035 | if (! wxRect_helper(_obj1, &_arg1)) | |
3036 | return NULL; | |
3037 | } | |
3038 | { | |
4268f798 | 3039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3040 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); |
1b55cabf | 3041 | |
4268f798 | 3042 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3043 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3044 | } _resultobj = Py_BuildValue("i",_result); |
3045 | return _resultobj; | |
3046 | } | |
3047 | ||
8ab979d7 | 3048 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 3049 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3050 | PyObject * _resultobj; |
3051 | bool _result; | |
3052 | wxWindow * _arg0; | |
1d99702e | 3053 | PyObject * _argo0 = 0; |
efc5f224 | 3054 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3055 | |
3056 | self = self; | |
efc5f224 | 3057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 3058 | return NULL; |
1d99702e RD |
3059 | if (_argo0) { |
3060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
3063 | return NULL; | |
3064 | } | |
3065 | } | |
cf694132 | 3066 | { |
4268f798 | 3067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3068 | _result = (bool )wxWindow_IsRetained(_arg0); |
cf694132 | 3069 | |
4268f798 | 3070 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3071 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3072 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3073 | return _resultobj; |
3074 | } | |
3075 | ||
3076 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 3077 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3078 | PyObject * _resultobj; |
3079 | bool _result; | |
3080 | wxWindow * _arg0; | |
1d99702e | 3081 | PyObject * _argo0 = 0; |
efc5f224 | 3082 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3083 | |
3084 | self = self; | |
efc5f224 | 3085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 3086 | return NULL; |
1d99702e RD |
3087 | if (_argo0) { |
3088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
3091 | return NULL; | |
3092 | } | |
3093 | } | |
cf694132 | 3094 | { |
4268f798 | 3095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3096 | _result = (bool )wxWindow_IsShown(_arg0); |
cf694132 | 3097 | |
4268f798 | 3098 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3099 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3100 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3101 | return _resultobj; |
3102 | } | |
3103 | ||
bb0054cd | 3104 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 3105 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3106 | PyObject * _resultobj; |
3107 | bool _result; | |
3108 | wxWindow * _arg0; | |
1d99702e | 3109 | PyObject * _argo0 = 0; |
efc5f224 | 3110 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
3111 | |
3112 | self = self; | |
efc5f224 | 3113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 3114 | return NULL; |
1d99702e RD |
3115 | if (_argo0) { |
3116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
3119 | return NULL; | |
3120 | } | |
3121 | } | |
3122 | { | |
4268f798 | 3123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3124 | _result = (bool )wxWindow_IsTopLevel(_arg0); |
bb0054cd | 3125 | |
4268f798 | 3126 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3127 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3128 | } _resultobj = Py_BuildValue("i",_result); |
3129 | return _resultobj; | |
3130 | } | |
3131 | ||
8ab979d7 | 3132 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 3133 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3134 | PyObject * _resultobj; |
3135 | wxWindow * _arg0; | |
1d99702e | 3136 | PyObject * _argo0 = 0; |
efc5f224 | 3137 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3138 | |
3139 | self = self; | |
efc5f224 | 3140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 3141 | return NULL; |
1d99702e RD |
3142 | if (_argo0) { |
3143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
3146 | return NULL; | |
3147 | } | |
3148 | } | |
cf694132 | 3149 | { |
4268f798 | 3150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3151 | wxWindow_Layout(_arg0); |
cf694132 | 3152 | |
4268f798 | 3153 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3154 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3155 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3156 | _resultobj = Py_None; |
3157 | return _resultobj; | |
3158 | } | |
3159 | ||
3160 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3161 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3162 | PyObject * _resultobj; |
3163 | bool _result; | |
3164 | wxWindow * _arg0; | |
3165 | wxWindow * _arg1; | |
3166 | wxString * _arg2; | |
1d99702e RD |
3167 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
3168 | PyObject * _argo0 = 0; | |
3169 | PyObject * _argo1 = 0; | |
8ab979d7 | 3170 | PyObject * _obj2 = 0; |
1d99702e | 3171 | PyObject * _argo3 = 0; |
efc5f224 | 3172 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
8ab979d7 RD |
3173 | |
3174 | self = self; | |
efc5f224 | 3175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
8ab979d7 | 3176 | return NULL; |
1d99702e RD |
3177 | if (_argo0) { |
3178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3181 | return NULL; | |
3182 | } | |
3183 | } | |
1d99702e RD |
3184 | if (_argo1) { |
3185 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3186 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
3187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3188 | return NULL; | |
3189 | } | |
3190 | } | |
3191 | { | |
c8bc7bb8 RD |
3192 | _arg2 = wxString_in_helper(_obj2); |
3193 | if (_arg2 == NULL) | |
8ab979d7 | 3194 | return NULL; |
8ab979d7 | 3195 | } |
1d99702e RD |
3196 | if (_argo3) { |
3197 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3198 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
8ab979d7 RD |
3199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
3200 | return NULL; | |
3201 | } | |
3202 | } | |
cf694132 | 3203 | { |
4268f798 | 3204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3205 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 3206 | |
4268f798 | 3207 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3208 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3209 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3210 | { |
3211 | if (_obj2) | |
3212 | delete _arg2; | |
3213 | } | |
3214 | return _resultobj; | |
3215 | } | |
3216 | ||
3217 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
efc5f224 | 3218 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3219 | PyObject * _resultobj; |
3220 | wxWindow * _arg0; | |
1d99702e | 3221 | PyObject * _argo0 = 0; |
efc5f224 | 3222 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3223 | |
3224 | self = self; | |
efc5f224 | 3225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3226 | return NULL; |
1d99702e RD |
3227 | if (_argo0) { |
3228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3231 | return NULL; | |
3232 | } | |
3233 | } | |
cf694132 | 3234 | { |
4268f798 | 3235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3236 | wxWindow_Lower(_arg0); |
cf694132 | 3237 | |
4268f798 | 3238 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3239 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3240 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3241 | _resultobj = Py_None; |
3242 | return _resultobj; | |
3243 | } | |
3244 | ||
3245 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3246 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3247 | PyObject * _resultobj; |
3248 | wxWindow * _arg0; | |
900d9886 | 3249 | bool _arg1 = (bool ) TRUE; |
1d99702e | 3250 | PyObject * _argo0 = 0; |
900d9886 | 3251 | int tempbool1 = (int) TRUE; |
efc5f224 | 3252 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3253 | |
3254 | self = self; | |
900d9886 | 3255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3256 | return NULL; |
1d99702e RD |
3257 | if (_argo0) { |
3258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3261 | return NULL; | |
3262 | } | |
3263 | } | |
3264 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3265 | { |
4268f798 | 3266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3267 | wxWindow_MakeModal(_arg0,_arg1); |
cf694132 | 3268 | |
4268f798 | 3269 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3270 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3271 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3272 | _resultobj = Py_None; |
3273 | return _resultobj; | |
3274 | } | |
3275 | ||
23bed520 | 3276 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Move(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3277 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3278 | PyObject * _resultobj; |
3279 | wxWindow * _arg0; | |
3280 | int _arg1; | |
3281 | int _arg2; | |
23bed520 | 3282 | int _arg3 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 3283 | PyObject * _argo0 = 0; |
23bed520 | 3284 | char *_kwnames[] = { "self","x","y","flags", NULL }; |
8ab979d7 RD |
3285 | |
3286 | self = self; | |
23bed520 | 3287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
af309447 | 3288 | return NULL; |
1d99702e RD |
3289 | if (_argo0) { |
3290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3293 | return NULL; | |
3294 | } | |
3295 | } | |
cf694132 | 3296 | { |
4268f798 | 3297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3298 | wxWindow_MoveXY(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3299 | |
4268f798 | 3300 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3301 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3302 | } Py_INCREF(Py_None); |
af309447 RD |
3303 | _resultobj = Py_None; |
3304 | return _resultobj; | |
3305 | } | |
3306 | ||
23bed520 | 3307 | #define wxWindow_Move(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3308 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3309 | PyObject * _resultobj; |
3310 | wxWindow * _arg0; | |
3311 | wxPoint * _arg1; | |
23bed520 | 3312 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 3313 | PyObject * _argo0 = 0; |
2f90df85 RD |
3314 | wxPoint temp; |
3315 | PyObject * _obj1 = 0; | |
23bed520 | 3316 | char *_kwnames[] = { "self","point","flags", NULL }; |
af309447 RD |
3317 | |
3318 | self = self; | |
23bed520 | 3319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_Move",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 3320 | return NULL; |
1d99702e RD |
3321 | if (_argo0) { |
3322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3325 | return NULL; | |
3326 | } | |
3327 | } | |
2f90df85 RD |
3328 | { |
3329 | _arg1 = &temp; | |
3330 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3331 | return NULL; |
2f90df85 | 3332 | } |
cf694132 | 3333 | { |
4268f798 | 3334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3335 | wxWindow_Move(_arg0,*_arg1,_arg2); |
cf694132 | 3336 | |
4268f798 | 3337 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3338 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3339 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3340 | _resultobj = Py_None; |
3341 | return _resultobj; | |
3342 | } | |
3343 | ||
1afc06c2 RD |
3344 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3345 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3346 | PyObject * _resultobj; | |
3347 | wxEvtHandler * _result; | |
3348 | wxWindow * _arg0; | |
3349 | bool _arg1 = (bool ) FALSE; | |
3350 | PyObject * _argo0 = 0; | |
3351 | int tempbool1 = (int) FALSE; | |
3352 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
1afc06c2 RD |
3353 | |
3354 | self = self; | |
3355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3356 | return NULL; | |
3357 | if (_argo0) { | |
3358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3361 | return NULL; | |
3362 | } | |
3363 | } | |
3364 | _arg1 = (bool ) tempbool1; | |
3365 | { | |
4268f798 | 3366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3367 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); |
1afc06c2 | 3368 | |
4268f798 | 3369 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3370 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 3371 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
3372 | return _resultobj; |
3373 | } | |
3374 | ||
3375 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3376 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3377 | PyObject * _resultobj; | |
3378 | wxWindow * _arg0; | |
3379 | wxEvtHandler * _arg1; | |
3380 | PyObject * _argo0 = 0; | |
3381 | PyObject * _argo1 = 0; | |
3382 | char *_kwnames[] = { "self","handler", NULL }; | |
3383 | ||
3384 | self = self; | |
3385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3386 | return NULL; | |
3387 | if (_argo0) { | |
3388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3391 | return NULL; | |
3392 | } | |
3393 | } | |
3394 | if (_argo1) { | |
3395 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3396 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3398 | return NULL; | |
3399 | } | |
3400 | } | |
3401 | { | |
4268f798 | 3402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3403 | wxWindow_PushEventHandler(_arg0,_arg1); |
1afc06c2 | 3404 | |
4268f798 | 3405 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3406 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
3407 | } Py_INCREF(Py_None); |
3408 | _resultobj = Py_None; | |
3409 | return _resultobj; | |
3410 | } | |
3411 | ||
c6c593e8 RD |
3412 | #define wxWindow_RemoveEventHandler(_swigobj,_swigarg0) (_swigobj->RemoveEventHandler(_swigarg0)) |
3413 | static PyObject *_wrap_wxWindow_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3414 | PyObject * _resultobj; | |
3415 | bool _result; | |
3416 | wxWindow * _arg0; | |
3417 | wxEvtHandler * _arg1; | |
3418 | PyObject * _argo0 = 0; | |
3419 | PyObject * _argo1 = 0; | |
3420 | char *_kwnames[] = { "self","handler", NULL }; | |
3421 | ||
3422 | self = self; | |
3423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveEventHandler",_kwnames,&_argo0,&_argo1)) | |
3424 | return NULL; | |
3425 | if (_argo0) { | |
3426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveEventHandler. Expected _wxWindow_p."); | |
3429 | return NULL; | |
3430 | } | |
3431 | } | |
3432 | if (_argo1) { | |
3433 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3434 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveEventHandler. Expected _wxEvtHandler_p."); | |
3436 | return NULL; | |
3437 | } | |
3438 | } | |
3439 | { | |
3440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3441 | _result = (bool )wxWindow_RemoveEventHandler(_arg0,_arg1); |
c6c593e8 RD |
3442 | |
3443 | wxPyEndAllowThreads(__tstate); | |
3444 | if (PyErr_Occurred()) return NULL; | |
3445 | } _resultobj = Py_BuildValue("i",_result); | |
3446 | return _resultobj; | |
3447 | } | |
3448 | ||
8bf5d46e | 3449 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3450 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3451 | PyObject * _resultobj; |
3452 | bool _result; | |
3453 | wxWindow * _arg0; | |
3454 | wxMenu * _arg1; | |
3455 | int _arg2; | |
3456 | int _arg3; | |
1d99702e RD |
3457 | PyObject * _argo0 = 0; |
3458 | PyObject * _argo1 = 0; | |
efc5f224 | 3459 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3460 | |
3461 | self = self; | |
efc5f224 | 3462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3463 | return NULL; |
1d99702e RD |
3464 | if (_argo0) { |
3465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3468 | return NULL; | |
3469 | } | |
3470 | } | |
1d99702e RD |
3471 | if (_argo1) { |
3472 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3473 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3475 | return NULL; | |
3476 | } | |
3477 | } | |
3478 | { | |
4268f798 | 3479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3480 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); |
8bf5d46e | 3481 | |
4268f798 | 3482 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3483 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
3484 | } _resultobj = Py_BuildValue("i",_result); |
3485 | return _resultobj; | |
3486 | } | |
3487 | ||
3488 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3489 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3490 | PyObject * _resultobj; |
3491 | bool _result; | |
3492 | wxWindow * _arg0; | |
3493 | wxMenu * _arg1; | |
3494 | wxPoint * _arg2; | |
1d99702e RD |
3495 | PyObject * _argo0 = 0; |
3496 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3497 | wxPoint temp; |
3498 | PyObject * _obj2 = 0; | |
efc5f224 | 3499 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3500 | |
3501 | self = self; | |
2f90df85 | 3502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3503 | return NULL; |
1d99702e RD |
3504 | if (_argo0) { |
3505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3508 | return NULL; | |
3509 | } | |
3510 | } | |
1d99702e RD |
3511 | if (_argo1) { |
3512 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3513 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3515 | return NULL; | |
3516 | } | |
3517 | } | |
2f90df85 RD |
3518 | { |
3519 | _arg2 = &temp; | |
3520 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3521 | return NULL; |
2f90df85 | 3522 | } |
cf694132 | 3523 | { |
4268f798 | 3524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3525 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 | 3526 | |
4268f798 | 3527 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3528 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3529 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3530 | return _resultobj; |
3531 | } | |
3532 | ||
3533 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3534 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3535 | PyObject * _resultobj; |
3536 | wxWindow * _arg0; | |
1d99702e | 3537 | PyObject * _argo0 = 0; |
efc5f224 | 3538 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3539 | |
3540 | self = self; | |
efc5f224 | 3541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3542 | return NULL; |
1d99702e RD |
3543 | if (_argo0) { |
3544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3547 | return NULL; | |
3548 | } | |
3549 | } | |
cf694132 | 3550 | { |
4268f798 | 3551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3552 | wxWindow_Raise(_arg0); |
cf694132 | 3553 | |
4268f798 | 3554 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3555 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3556 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3557 | _resultobj = Py_None; |
3558 | return _resultobj; | |
3559 | } | |
3560 | ||
3561 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3562 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3563 | PyObject * _resultobj; |
3564 | wxWindow * _arg0; | |
1d99702e RD |
3565 | bool _arg1 = (bool ) TRUE; |
3566 | wxRect * _arg2 = (wxRect *) NULL; | |
3567 | PyObject * _argo0 = 0; | |
3568 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3569 | wxRect temp; |
3570 | PyObject * _obj2 = 0; | |
efc5f224 | 3571 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3572 | |
3573 | self = self; | |
2f90df85 | 3574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3575 | return NULL; |
1d99702e RD |
3576 | if (_argo0) { |
3577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3580 | return NULL; | |
3581 | } | |
3582 | } | |
3583 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3584 | if (_obj2) |
3585 | { | |
3586 | _arg2 = &temp; | |
3587 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3588 | return NULL; |
2f90df85 | 3589 | } |
cf694132 | 3590 | { |
4268f798 | 3591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3592 | wxWindow_Refresh(_arg0,_arg1,_arg2); |
cf694132 | 3593 | |
4268f798 | 3594 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3595 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3596 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3597 | _resultobj = Py_None; |
3598 | return _resultobj; | |
3599 | } | |
3600 | ||
09f3d4e6 RD |
3601 | #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0)) |
3602 | static PyObject *_wrap_wxWindow_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3603 | PyObject * _resultobj; | |
3604 | wxWindow * _arg0; | |
3605 | wxRect * _arg1; | |
3606 | PyObject * _argo0 = 0; | |
3607 | wxRect temp; | |
3608 | PyObject * _obj1 = 0; | |
3609 | char *_kwnames[] = { "self","rect", NULL }; | |
3610 | ||
3611 | self = self; | |
3612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RefreshRect",_kwnames,&_argo0,&_obj1)) | |
3613 | return NULL; | |
3614 | if (_argo0) { | |
3615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p."); | |
3618 | return NULL; | |
3619 | } | |
3620 | } | |
3621 | { | |
3622 | _arg1 = &temp; | |
3623 | if (! wxRect_helper(_obj1, &_arg1)) | |
3624 | return NULL; | |
3625 | } | |
3626 | { | |
4268f798 | 3627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3628 | wxWindow_RefreshRect(_arg0,*_arg1); |
09f3d4e6 | 3629 | |
4268f798 | 3630 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
3631 | if (PyErr_Occurred()) return NULL; |
3632 | } Py_INCREF(Py_None); | |
3633 | _resultobj = Py_None; | |
3634 | return _resultobj; | |
3635 | } | |
3636 | ||
b7e72427 RD |
3637 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3638 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3639 | PyObject * _resultobj; | |
3640 | wxWindow * _arg0; | |
3641 | wxWindow * _arg1; | |
3642 | PyObject * _argo0 = 0; | |
3643 | PyObject * _argo1 = 0; | |
3644 | char *_kwnames[] = { "self","child", NULL }; | |
3645 | ||
3646 | self = self; | |
3647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3648 | return NULL; | |
3649 | if (_argo0) { | |
3650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3653 | return NULL; | |
3654 | } | |
3655 | } | |
3656 | if (_argo1) { | |
3657 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3658 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3660 | return NULL; | |
3661 | } | |
3662 | } | |
3663 | { | |
4268f798 | 3664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3665 | wxWindow_RemoveChild(_arg0,_arg1); |
b7e72427 | 3666 | |
4268f798 | 3667 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3668 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
3669 | } Py_INCREF(Py_None); |
3670 | _resultobj = Py_None; | |
3671 | return _resultobj; | |
3672 | } | |
3673 | ||
bb0054cd | 3674 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3675 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3676 | PyObject * _resultobj; |
3677 | bool _result; | |
3678 | wxWindow * _arg0; | |
3679 | wxWindow * _arg1; | |
1d99702e RD |
3680 | PyObject * _argo0 = 0; |
3681 | PyObject * _argo1 = 0; | |
efc5f224 | 3682 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3683 | |
3684 | self = self; | |
efc5f224 | 3685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3686 | return NULL; |
1d99702e RD |
3687 | if (_argo0) { |
3688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3691 | return NULL; | |
3692 | } | |
3693 | } | |
1d99702e RD |
3694 | if (_argo1) { |
3695 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3696 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3698 | return NULL; | |
3699 | } | |
3700 | } | |
3701 | { | |
4268f798 | 3702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3703 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); |
bb0054cd | 3704 | |
4268f798 | 3705 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3706 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3707 | } _resultobj = Py_BuildValue("i",_result); |
3708 | return _resultobj; | |
3709 | } | |
3710 | ||
af309447 | 3711 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3712 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3713 | PyObject * _resultobj; |
3714 | wxWindow * _arg0; | |
3715 | int * _arg1; | |
3716 | int * _arg2; | |
1d99702e | 3717 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3718 | int temp; |
3719 | PyObject * _obj1 = 0; | |
3720 | int temp0; | |
3721 | PyObject * _obj2 = 0; | |
efc5f224 | 3722 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3723 | |
3724 | self = self; | |
efc5f224 | 3725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3726 | return NULL; |
1d99702e RD |
3727 | if (_argo0) { |
3728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3731 | return NULL; |
3732 | } | |
3733 | } | |
3734 | { | |
3735 | temp = (int) PyInt_AsLong(_obj1); | |
3736 | _arg1 = &temp; | |
3737 | } | |
3738 | { | |
3739 | temp0 = (int) PyInt_AsLong(_obj2); | |
3740 | _arg2 = &temp0; | |
3741 | } | |
cf694132 | 3742 | { |
4268f798 | 3743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3744 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); |
cf694132 | 3745 | |
4268f798 | 3746 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3747 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3748 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3749 | _resultobj = Py_None; |
3750 | { | |
3751 | PyObject *o; | |
3752 | o = PyInt_FromLong((long) (*_arg1)); | |
3753 | _resultobj = t_output_helper(_resultobj, o); | |
3754 | } | |
3755 | { | |
3756 | PyObject *o; | |
3757 | o = PyInt_FromLong((long) (*_arg2)); | |
3758 | _resultobj = t_output_helper(_resultobj, o); | |
3759 | } | |
3760 | return _resultobj; | |
3761 | } | |
3762 | ||
af309447 | 3763 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3764 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3765 | PyObject * _resultobj; |
3766 | wxPoint * _result; | |
3767 | wxWindow * _arg0; | |
3768 | wxPoint * _arg1; | |
1d99702e | 3769 | PyObject * _argo0 = 0; |
2f90df85 RD |
3770 | wxPoint temp; |
3771 | PyObject * _obj1 = 0; | |
efc5f224 | 3772 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3773 | char _ptemp[128]; |
3774 | ||
3775 | self = self; | |
2f90df85 | 3776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3777 | return NULL; |
1d99702e RD |
3778 | if (_argo0) { |
3779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3782 | return NULL; | |
3783 | } | |
3784 | } | |
2f90df85 RD |
3785 | { |
3786 | _arg1 = &temp; | |
3787 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3788 | return NULL; |
2f90df85 | 3789 | } |
cf694132 | 3790 | { |
4268f798 | 3791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3792 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); |
cf694132 | 3793 | |
4268f798 | 3794 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3795 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3796 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
3797 | _resultobj = Py_BuildValue("s",_ptemp); |
3798 | return _resultobj; | |
3799 | } | |
3800 | ||
8ab979d7 | 3801 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3802 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3803 | PyObject * _resultobj; |
3804 | wxWindow * _arg0; | |
3805 | int _arg1; | |
3806 | int _arg2; | |
1d99702e RD |
3807 | wxRect * _arg3 = (wxRect *) NULL; |
3808 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3809 | wxRect temp; |
3810 | PyObject * _obj3 = 0; | |
efc5f224 | 3811 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3812 | |
3813 | self = self; | |
2f90df85 | 3814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
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")) { | |
8ab979d7 RD |
3819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3820 | return NULL; | |
3821 | } | |
3822 | } | |
2f90df85 RD |
3823 | if (_obj3) |
3824 | { | |
3825 | _arg3 = &temp; | |
3826 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3827 | return NULL; |
2f90df85 | 3828 | } |
cf694132 | 3829 | { |
4268f798 | 3830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3831 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3832 | |
4268f798 | 3833 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3834 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3835 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3836 | _resultobj = Py_None; |
3837 | return _resultobj; | |
3838 | } | |
3839 | ||
3840 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) | |
efc5f224 | 3841 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3842 | PyObject * _resultobj; |
3843 | wxWindow * _arg0; | |
3844 | bool _arg1; | |
1d99702e | 3845 | PyObject * _argo0 = 0; |
8ab979d7 | 3846 | int tempbool1; |
efc5f224 | 3847 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3848 | |
3849 | self = self; | |
efc5f224 | 3850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3851 | return NULL; |
1d99702e RD |
3852 | if (_argo0) { |
3853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3856 | return NULL; | |
3857 | } | |
3858 | } | |
3859 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3860 | { |
4268f798 | 3861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3862 | wxWindow_SetAutoLayout(_arg0,_arg1); |
cf694132 | 3863 | |
4268f798 | 3864 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3865 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3866 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3867 | _resultobj = Py_None; |
3868 | return _resultobj; | |
3869 | } | |
3870 | ||
9d8bd15f RD |
3871 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3872 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3873 | PyObject * _resultobj; | |
3874 | bool _result; | |
3875 | wxWindow * _arg0; | |
3876 | PyObject * _argo0 = 0; | |
3877 | char *_kwnames[] = { "self", NULL }; | |
3878 | ||
3879 | self = self; | |
3880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3881 | return NULL; | |
3882 | if (_argo0) { | |
3883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3886 | return NULL; | |
3887 | } | |
3888 | } | |
3889 | { | |
4268f798 | 3890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3891 | _result = (bool )wxWindow_GetAutoLayout(_arg0); |
9d8bd15f | 3892 | |
4268f798 | 3893 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3894 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
3895 | } _resultobj = Py_BuildValue("i",_result); |
3896 | return _resultobj; | |
3897 | } | |
3898 | ||
8ab979d7 | 3899 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3900 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3901 | PyObject * _resultobj; |
3902 | wxWindow * _arg0; | |
3903 | wxColour * _arg1; | |
1d99702e | 3904 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3905 | wxColour temp; |
3906 | PyObject * _obj1 = 0; | |
efc5f224 | 3907 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3908 | |
3909 | self = self; | |
f6bcfd97 | 3910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3911 | return NULL; |
1d99702e RD |
3912 | if (_argo0) { |
3913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3916 | return NULL; | |
3917 | } | |
3918 | } | |
f6bcfd97 BP |
3919 | { |
3920 | _arg1 = &temp; | |
3921 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3922 | return NULL; |
f6bcfd97 | 3923 | } |
cf694132 | 3924 | { |
4268f798 | 3925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3926 | wxWindow_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 3927 | |
4268f798 | 3928 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3929 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3930 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3931 | _resultobj = Py_None; |
3932 | return _resultobj; | |
3933 | } | |
3934 | ||
3935 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 3936 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3937 | PyObject * _resultobj; |
3938 | wxWindow * _arg0; | |
3939 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
3940 | PyObject * _argo0 = 0; |
3941 | PyObject * _argo1 = 0; | |
efc5f224 | 3942 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
3943 | |
3944 | self = self; | |
efc5f224 | 3945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3946 | return NULL; |
1d99702e RD |
3947 | if (_argo0) { |
3948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3951 | return NULL; | |
3952 | } | |
3953 | } | |
1d99702e RD |
3954 | if (_argo1) { |
3955 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3956 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
3957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3958 | return NULL; | |
3959 | } | |
3960 | } | |
cf694132 | 3961 | { |
4268f798 | 3962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3963 | wxWindow_SetConstraints(_arg0,_arg1); |
cf694132 | 3964 | |
4268f798 | 3965 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3966 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3967 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3968 | _resultobj = Py_None; |
3969 | return _resultobj; | |
3970 | } | |
3971 | ||
2f90df85 RD |
3972 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
3973 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3974 | PyObject * _resultobj; | |
3975 | wxWindow * _arg0; | |
3976 | wxLayoutConstraints * _arg1; | |
3977 | PyObject * _argo0 = 0; | |
3978 | PyObject * _argo1 = 0; | |
3979 | char *_kwnames[] = { "self","constraints", NULL }; | |
3980 | ||
3981 | self = self; | |
3982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3983 | return NULL; | |
3984 | if (_argo0) { | |
3985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3988 | return NULL; | |
3989 | } | |
3990 | } | |
3991 | if (_argo1) { | |
3992 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3993 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3995 | return NULL; | |
3996 | } | |
3997 | } | |
3998 | { | |
4268f798 | 3999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4000 | wxWindow_UnsetConstraints(_arg0,_arg1); |
2f90df85 | 4001 | |
4268f798 | 4002 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4003 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4004 | } Py_INCREF(Py_None); |
4005 | _resultobj = Py_None; | |
4006 | return _resultobj; | |
4007 | } | |
4008 | ||
8ab979d7 | 4009 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 4010 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4011 | PyObject * _resultobj; |
4012 | wxWindow * _arg0; | |
1d99702e | 4013 | PyObject * _argo0 = 0; |
efc5f224 | 4014 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4015 | |
4016 | self = self; | |
efc5f224 | 4017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 4018 | return NULL; |
1d99702e RD |
4019 | if (_argo0) { |
4020 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4021 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
4023 | return NULL; | |
4024 | } | |
4025 | } | |
cf694132 | 4026 | { |
4268f798 | 4027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4028 | wxWindow_SetFocus(_arg0); |
cf694132 | 4029 | |
4268f798 | 4030 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4031 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4032 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4033 | _resultobj = Py_None; |
4034 | return _resultobj; | |
4035 | } | |
4036 | ||
2a74d141 RD |
4037 | #define wxWindow_SetFocusFromKbd(_swigobj) (_swigobj->SetFocusFromKbd()) |
4038 | static PyObject *_wrap_wxWindow_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4039 | PyObject * _resultobj; | |
4040 | wxWindow * _arg0; | |
4041 | PyObject * _argo0 = 0; | |
4042 | char *_kwnames[] = { "self", NULL }; | |
4043 | ||
4044 | self = self; | |
4045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocusFromKbd",_kwnames,&_argo0)) | |
4046 | return NULL; | |
4047 | if (_argo0) { | |
4048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocusFromKbd. Expected _wxWindow_p."); | |
4051 | return NULL; | |
4052 | } | |
4053 | } | |
4054 | { | |
4055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4056 | wxWindow_SetFocusFromKbd(_arg0); | |
4057 | ||
4058 | wxPyEndAllowThreads(__tstate); | |
4059 | if (PyErr_Occurred()) return NULL; | |
4060 | } Py_INCREF(Py_None); | |
4061 | _resultobj = Py_None; | |
4062 | return _resultobj; | |
4063 | } | |
4064 | ||
2f90df85 RD |
4065 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
4066 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4067 | PyObject * _resultobj; | |
4068 | bool _result; | |
4069 | wxWindow * _arg0; | |
4070 | PyObject * _argo0 = 0; | |
4071 | char *_kwnames[] = { "self", NULL }; | |
4072 | ||
4073 | self = self; | |
4074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
4075 | return NULL; | |
4076 | if (_argo0) { | |
4077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
4080 | return NULL; | |
4081 | } | |
4082 | } | |
4083 | { | |
4268f798 | 4084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4085 | _result = (bool )wxWindow_AcceptsFocus(_arg0); |
2f90df85 | 4086 | |
4268f798 | 4087 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4088 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4089 | } _resultobj = Py_BuildValue("i",_result); |
4090 | return _resultobj; | |
4091 | } | |
4092 | ||
8ab979d7 | 4093 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 4094 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4095 | PyObject * _resultobj; |
4096 | wxWindow * _arg0; | |
4097 | wxFont * _arg1; | |
1d99702e RD |
4098 | PyObject * _argo0 = 0; |
4099 | PyObject * _argo1 = 0; | |
efc5f224 | 4100 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
4101 | |
4102 | self = self; | |
efc5f224 | 4103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4104 | return NULL; |
1d99702e RD |
4105 | if (_argo0) { |
4106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
4109 | return NULL; | |
4110 | } | |
4111 | } | |
1d99702e RD |
4112 | if (_argo1) { |
4113 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4114 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
4115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
4116 | return NULL; | |
4117 | } | |
4118 | } | |
cf694132 | 4119 | { |
4268f798 | 4120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4121 | wxWindow_SetFont(_arg0,*_arg1); |
cf694132 | 4122 | |
4268f798 | 4123 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4124 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4125 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4126 | _resultobj = Py_None; |
4127 | return _resultobj; | |
4128 | } | |
4129 | ||
4130 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 4131 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4132 | PyObject * _resultobj; |
4133 | wxWindow * _arg0; | |
4134 | wxColour * _arg1; | |
1d99702e | 4135 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4136 | wxColour temp; |
4137 | PyObject * _obj1 = 0; | |
efc5f224 | 4138 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
4139 | |
4140 | self = self; | |
f6bcfd97 | 4141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4142 | return NULL; |
1d99702e RD |
4143 | if (_argo0) { |
4144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
4147 | return NULL; | |
4148 | } | |
4149 | } | |
f6bcfd97 BP |
4150 | { |
4151 | _arg1 = &temp; | |
4152 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4153 | return NULL; |
f6bcfd97 | 4154 | } |
cf694132 | 4155 | { |
4268f798 | 4156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4157 | wxWindow_SetForegroundColour(_arg0,*_arg1); |
cf694132 | 4158 | |
4268f798 | 4159 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4160 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4161 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4162 | _resultobj = Py_None; |
4163 | return _resultobj; | |
4164 | } | |
4165 | ||
4166 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 4167 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4168 | PyObject * _resultobj; |
4169 | wxWindow * _arg0; | |
4170 | int _arg1; | |
1d99702e | 4171 | PyObject * _argo0 = 0; |
efc5f224 | 4172 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
4173 | |
4174 | self = self; | |
efc5f224 | 4175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4176 | return NULL; |
1d99702e RD |
4177 | if (_argo0) { |
4178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
4181 | return NULL; | |
4182 | } | |
4183 | } | |
cf694132 | 4184 | { |
4268f798 | 4185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4186 | wxWindow_SetId(_arg0,_arg1); |
cf694132 | 4187 | |
4268f798 | 4188 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4189 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4190 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4191 | _resultobj = Py_None; |
4192 | return _resultobj; | |
4193 | } | |
4194 | ||
4195 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 4196 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4197 | PyObject * _resultobj; |
4198 | wxWindow * _arg0; | |
4199 | wxString * _arg1; | |
1d99702e | 4200 | PyObject * _argo0 = 0; |
8ab979d7 | 4201 | PyObject * _obj1 = 0; |
efc5f224 | 4202 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
4203 | |
4204 | self = self; | |
efc5f224 | 4205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4206 | return NULL; |
1d99702e RD |
4207 | if (_argo0) { |
4208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
4211 | return NULL; | |
4212 | } | |
4213 | } | |
4214 | { | |
c8bc7bb8 RD |
4215 | _arg1 = wxString_in_helper(_obj1); |
4216 | if (_arg1 == NULL) | |
185d7c3e | 4217 | return NULL; |
8ab979d7 | 4218 | } |
cf694132 | 4219 | { |
4268f798 | 4220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4221 | wxWindow_SetName(_arg0,*_arg1); |
cf694132 | 4222 | |
4268f798 | 4223 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4224 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4225 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4226 | _resultobj = Py_None; |
4227 | { | |
4228 | if (_obj1) | |
4229 | delete _arg1; | |
4230 | } | |
4231 | return _resultobj; | |
4232 | } | |
4233 | ||
8ab979d7 | 4234 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4235 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4236 | PyObject * _resultobj; |
4237 | wxWindow * _arg0; | |
4238 | int _arg1; | |
4239 | int _arg2; | |
4240 | int _arg3; | |
4241 | int _arg4; | |
eb715945 | 4242 | int _arg5 = (int ) TRUE; |
1d99702e | 4243 | PyObject * _argo0 = 0; |
efc5f224 | 4244 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4245 | |
4246 | self = self; | |
eb715945 | 4247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4248 | return NULL; |
1d99702e RD |
4249 | if (_argo0) { |
4250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4253 | return NULL; | |
4254 | } | |
4255 | } | |
cf694132 | 4256 | { |
4268f798 | 4257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4258 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 4259 | |
4268f798 | 4260 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4261 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4262 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4263 | _resultobj = Py_None; |
4264 | return _resultobj; | |
4265 | } | |
4266 | ||
4267 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4268 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4269 | PyObject * _resultobj; |
4270 | wxWindow * _arg0; | |
4271 | int _arg1; | |
4272 | int _arg2; | |
1d99702e RD |
4273 | bool _arg3 = (bool ) TRUE; |
4274 | PyObject * _argo0 = 0; | |
4275 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4276 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4277 | |
4278 | self = self; | |
efc5f224 | 4279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4280 | return NULL; |
1d99702e RD |
4281 | if (_argo0) { |
4282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4285 | return NULL; | |
4286 | } | |
4287 | } | |
4288 | _arg3 = (bool ) tempbool3; | |
cf694132 | 4289 | { |
4268f798 | 4290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4291 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 4292 | |
4268f798 | 4293 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4294 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4295 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4296 | _resultobj = Py_None; |
4297 | return _resultobj; | |
4298 | } | |
4299 | ||
4300 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4301 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4302 | PyObject * _resultobj; |
4303 | wxWindow * _arg0; | |
4304 | int _arg1; | |
4305 | int _arg2; | |
4306 | int _arg3; | |
4307 | int _arg4; | |
1d99702e RD |
4308 | int _arg5 = (int ) wxSIZE_AUTO; |
4309 | PyObject * _argo0 = 0; | |
efc5f224 | 4310 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4311 | |
4312 | self = self; | |
efc5f224 | 4313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4314 | return NULL; |
1d99702e RD |
4315 | if (_argo0) { |
4316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4319 | return NULL; | |
4320 | } | |
4321 | } | |
cf694132 | 4322 | { |
4268f798 | 4323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4324 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 4325 | |
4268f798 | 4326 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4327 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4328 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4329 | _resultobj = Py_None; |
4330 | return _resultobj; | |
4331 | } | |
4332 | ||
4333 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4334 | self->SetSize(size); |
8ab979d7 | 4335 | } |
efc5f224 | 4336 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4337 | PyObject * _resultobj; |
4338 | wxWindow * _arg0; | |
4339 | wxSize * _arg1; | |
1d99702e | 4340 | PyObject * _argo0 = 0; |
2f90df85 RD |
4341 | wxSize temp; |
4342 | PyObject * _obj1 = 0; | |
efc5f224 | 4343 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4344 | |
4345 | self = self; | |
2f90df85 | 4346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4347 | return NULL; |
1d99702e RD |
4348 | if (_argo0) { |
4349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4352 | return NULL; | |
4353 | } | |
4354 | } | |
2f90df85 RD |
4355 | { |
4356 | _arg1 = &temp; | |
4357 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4358 | return NULL; |
2f90df85 | 4359 | } |
cf694132 | 4360 | { |
4268f798 | 4361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4362 | wxWindow_SetSize(_arg0,*_arg1); |
cf694132 | 4363 | |
4268f798 | 4364 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4365 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4366 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4367 | _resultobj = Py_None; |
4368 | return _resultobj; | |
4369 | } | |
4370 | ||
23bed520 RD |
4371 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos,int flags) { |
4372 | self->Move(pos, flags); | |
8ab979d7 | 4373 | } |
efc5f224 | 4374 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4375 | PyObject * _resultobj; |
4376 | wxWindow * _arg0; | |
4377 | wxPoint * _arg1; | |
23bed520 | 4378 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 4379 | PyObject * _argo0 = 0; |
2f90df85 RD |
4380 | wxPoint temp; |
4381 | PyObject * _obj1 = 0; | |
23bed520 | 4382 | char *_kwnames[] = { "self","pos","flags", NULL }; |
8ab979d7 RD |
4383 | |
4384 | self = self; | |
23bed520 | 4385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 4386 | return NULL; |
1d99702e RD |
4387 | if (_argo0) { |
4388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4391 | return NULL; | |
4392 | } | |
4393 | } | |
2f90df85 RD |
4394 | { |
4395 | _arg1 = &temp; | |
4396 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4397 | return NULL; |
2f90df85 | 4398 | } |
cf694132 | 4399 | { |
4268f798 | 4400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4401 | wxWindow_SetPosition(_arg0,*_arg1,_arg2); |
cf694132 | 4402 | |
4268f798 | 4403 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4404 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4405 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4406 | _resultobj = Py_None; |
4407 | return _resultobj; | |
4408 | } | |
4409 | ||
dbbb98cd RD |
4410 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4411 | self->SetSize(rect, sizeFlags); | |
4412 | } | |
4413 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4414 | PyObject * _resultobj; | |
4415 | wxWindow * _arg0; | |
4416 | wxRect * _arg1; | |
4417 | int _arg2 = (int ) wxSIZE_AUTO; | |
4418 | PyObject * _argo0 = 0; | |
4419 | wxRect temp; | |
4420 | PyObject * _obj1 = 0; | |
4421 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4422 | ||
4423 | self = self; | |
4424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4425 | return NULL; | |
4426 | if (_argo0) { | |
4427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4430 | return NULL; | |
4431 | } | |
4432 | } | |
4433 | { | |
4434 | _arg1 = &temp; | |
4435 | if (! wxRect_helper(_obj1, &_arg1)) | |
4436 | return NULL; | |
4437 | } | |
4438 | { | |
4268f798 | 4439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4440 | wxWindow_SetRect(_arg0,*_arg1,_arg2); |
dbbb98cd | 4441 | |
4268f798 | 4442 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4443 | if (PyErr_Occurred()) return NULL; |
dbbb98cd RD |
4444 | } Py_INCREF(Py_None); |
4445 | _resultobj = Py_None; | |
4446 | return _resultobj; | |
4447 | } | |
4448 | ||
8ab979d7 | 4449 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4450 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4451 | PyObject * _resultobj; |
4452 | wxWindow * _arg0; | |
2a74d141 RD |
4453 | int _arg1; |
4454 | int _arg2; | |
1d99702e RD |
4455 | int _arg3 = (int ) -1; |
4456 | int _arg4 = (int ) -1; | |
4457 | int _arg5 = (int ) -1; | |
4458 | int _arg6 = (int ) -1; | |
4459 | PyObject * _argo0 = 0; | |
efc5f224 | 4460 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4461 | |
4462 | self = self; | |
2a74d141 | 4463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|iiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4464 | return NULL; |
1d99702e RD |
4465 | if (_argo0) { |
4466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4469 | return NULL; | |
4470 | } | |
4471 | } | |
cf694132 | 4472 | { |
4268f798 | 4473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4474 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 4475 | |
4268f798 | 4476 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4477 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4478 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4479 | _resultobj = Py_None; |
4480 | return _resultobj; | |
4481 | } | |
4482 | ||
2a74d141 RD |
4483 | #define wxWindow_SetVirtualSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetVirtualSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4484 | static PyObject *_wrap_wxWindow_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4485 | PyObject * _resultobj; | |
4486 | wxWindow * _arg0; | |
4487 | int _arg1; | |
4488 | int _arg2; | |
4489 | int _arg3 = (int ) -1; | |
4490 | int _arg4 = (int ) -1; | |
4491 | PyObject * _argo0 = 0; | |
4492 | char *_kwnames[] = { "self","minW","minH","maxW","maxH", NULL }; | |
4493 | ||
4494 | self = self; | |
4495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_SetVirtualSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
4496 | return NULL; | |
4497 | if (_argo0) { | |
4498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSizeHints. Expected _wxWindow_p."); | |
4501 | return NULL; | |
4502 | } | |
4503 | } | |
4504 | { | |
4505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4506 | wxWindow_SetVirtualSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4); | |
4507 | ||
4508 | wxPyEndAllowThreads(__tstate); | |
4509 | if (PyErr_Occurred()) return NULL; | |
4510 | } Py_INCREF(Py_None); | |
4511 | _resultobj = Py_None; | |
4512 | return _resultobj; | |
4513 | } | |
4514 | ||
4515 | #define wxWindow_SetVirtualSize(_swigobj,_swigarg0) (_swigobj->SetVirtualSize(_swigarg0)) | |
4516 | static PyObject *_wrap_wxWindow_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4517 | PyObject * _resultobj; | |
4518 | wxWindow * _arg0; | |
4519 | wxSize * _arg1; | |
4520 | PyObject * _argo0 = 0; | |
4521 | wxSize temp; | |
4522 | PyObject * _obj1 = 0; | |
4523 | char *_kwnames[] = { "self","size", NULL }; | |
4524 | ||
4525 | self = self; | |
4526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetVirtualSize",_kwnames,&_argo0,&_obj1)) | |
4527 | return NULL; | |
4528 | if (_argo0) { | |
4529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSize. Expected _wxWindow_p."); | |
4532 | return NULL; | |
4533 | } | |
4534 | } | |
4535 | { | |
4536 | _arg1 = &temp; | |
4537 | if (! wxSize_helper(_obj1, &_arg1)) | |
4538 | return NULL; | |
4539 | } | |
4540 | { | |
4541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4542 | wxWindow_SetVirtualSize(_arg0,*_arg1); | |
4543 | ||
4544 | wxPyEndAllowThreads(__tstate); | |
4545 | if (PyErr_Occurred()) return NULL; | |
4546 | } Py_INCREF(Py_None); | |
4547 | _resultobj = Py_None; | |
4548 | return _resultobj; | |
4549 | } | |
4550 | ||
4551 | #define wxWindow_SetVirtualSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetVirtualSize(_swigarg0,_swigarg1)) | |
4552 | static PyObject *_wrap_wxWindow_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4553 | PyObject * _resultobj; | |
4554 | wxWindow * _arg0; | |
4555 | int _arg1; | |
4556 | int _arg2; | |
4557 | PyObject * _argo0 = 0; | |
4558 | char *_kwnames[] = { "self","x","y", NULL }; | |
4559 | ||
4560 | self = self; | |
4561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetVirtualSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4562 | return NULL; | |
4563 | if (_argo0) { | |
4564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSizeWH. Expected _wxWindow_p."); | |
4567 | return NULL; | |
4568 | } | |
4569 | } | |
4570 | { | |
4571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4572 | wxWindow_SetVirtualSizeWH(_arg0,_arg1,_arg2); | |
4573 | ||
4574 | wxPyEndAllowThreads(__tstate); | |
4575 | if (PyErr_Occurred()) return NULL; | |
4576 | } Py_INCREF(Py_None); | |
4577 | _resultobj = Py_None; | |
4578 | return _resultobj; | |
4579 | } | |
4580 | ||
4581 | #define wxWindow_GetVirtualSize(_swigobj) (_swigobj->GetVirtualSize()) | |
4582 | static PyObject *_wrap_wxWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4583 | PyObject * _resultobj; | |
4584 | wxSize * _result; | |
4585 | wxWindow * _arg0; | |
4586 | PyObject * _argo0 = 0; | |
4587 | char *_kwnames[] = { "self", NULL }; | |
4588 | char _ptemp[128]; | |
4589 | ||
4590 | self = self; | |
4591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetVirtualSize",_kwnames,&_argo0)) | |
4592 | return NULL; | |
4593 | if (_argo0) { | |
4594 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4595 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetVirtualSize. Expected _wxWindow_p."); | |
4597 | return NULL; | |
4598 | } | |
4599 | } | |
4600 | { | |
4601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4602 | _result = new wxSize (wxWindow_GetVirtualSize(_arg0)); | |
4603 | ||
4604 | wxPyEndAllowThreads(__tstate); | |
4605 | if (PyErr_Occurred()) return NULL; | |
4606 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4607 | _resultobj = Py_BuildValue("s",_ptemp); | |
4608 | return _resultobj; | |
4609 | } | |
4610 | ||
4611 | #define wxWindow_GetVirtualSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) | |
4612 | static PyObject *_wrap_wxWindow_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4613 | PyObject * _resultobj; | |
4614 | wxWindow * _arg0; | |
4615 | int * _arg1; | |
4616 | int temp; | |
4617 | int * _arg2; | |
4618 | int temp0; | |
4619 | PyObject * _argo0 = 0; | |
4620 | char *_kwnames[] = { "self", NULL }; | |
4621 | ||
4622 | self = self; | |
4623 | { | |
4624 | _arg1 = &temp; | |
4625 | } | |
4626 | { | |
4627 | _arg2 = &temp0; | |
4628 | } | |
4629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetVirtualSizeTuple",_kwnames,&_argo0)) | |
4630 | return NULL; | |
4631 | if (_argo0) { | |
4632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetVirtualSizeTuple. Expected _wxWindow_p."); | |
4635 | return NULL; | |
4636 | } | |
4637 | } | |
4638 | { | |
4639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4640 | wxWindow_GetVirtualSizeTuple(_arg0,_arg1,_arg2); | |
4641 | ||
4642 | wxPyEndAllowThreads(__tstate); | |
4643 | if (PyErr_Occurred()) return NULL; | |
4644 | } Py_INCREF(Py_None); | |
4645 | _resultobj = Py_None; | |
4646 | { | |
4647 | PyObject *o; | |
4648 | o = PyInt_FromLong((long) (*_arg1)); | |
4649 | _resultobj = t_output_helper(_resultobj, o); | |
4650 | } | |
4651 | { | |
4652 | PyObject *o; | |
4653 | o = PyInt_FromLong((long) (*_arg2)); | |
4654 | _resultobj = t_output_helper(_resultobj, o); | |
4655 | } | |
4656 | return _resultobj; | |
4657 | } | |
4658 | ||
af309447 | 4659 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4660 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4661 | PyObject * _resultobj; |
4662 | wxWindow * _arg0; | |
4663 | int _arg1; | |
4664 | int _arg2; | |
1d99702e | 4665 | PyObject * _argo0 = 0; |
efc5f224 | 4666 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4667 | |
4668 | self = self; | |
efc5f224 | 4669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4670 | return NULL; |
1d99702e RD |
4671 | if (_argo0) { |
4672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4675 | return NULL; | |
4676 | } | |
4677 | } | |
cf694132 | 4678 | { |
4268f798 | 4679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4680 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); |
cf694132 | 4681 | |
4268f798 | 4682 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4683 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4684 | } Py_INCREF(Py_None); |
af309447 RD |
4685 | _resultobj = Py_None; |
4686 | return _resultobj; | |
4687 | } | |
4688 | ||
4689 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4690 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4691 | PyObject * _resultobj; |
4692 | wxWindow * _arg0; | |
4693 | wxSize * _arg1; | |
1d99702e | 4694 | PyObject * _argo0 = 0; |
2f90df85 RD |
4695 | wxSize temp; |
4696 | PyObject * _obj1 = 0; | |
efc5f224 | 4697 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4698 | |
4699 | self = self; | |
2f90df85 | 4700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4701 | return NULL; |
1d99702e RD |
4702 | if (_argo0) { |
4703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4706 | return NULL; | |
4707 | } | |
4708 | } | |
2f90df85 RD |
4709 | { |
4710 | _arg1 = &temp; | |
4711 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4712 | return NULL; |
2f90df85 | 4713 | } |
cf694132 | 4714 | { |
4268f798 | 4715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4716 | wxWindow_SetClientSize(_arg0,*_arg1); |
cf694132 | 4717 | |
4268f798 | 4718 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4719 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4720 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4721 | _resultobj = Py_None; |
4722 | return _resultobj; | |
4723 | } | |
4724 | ||
4725 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4726 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4727 | PyObject * _resultobj; |
4728 | wxWindow * _arg0; | |
4729 | wxCursor * _arg1; | |
1d99702e RD |
4730 | PyObject * _argo0 = 0; |
4731 | PyObject * _argo1 = 0; | |
efc5f224 | 4732 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4733 | |
4734 | self = self; | |
efc5f224 | 4735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4736 | return NULL; |
1d99702e RD |
4737 | if (_argo0) { |
4738 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4739 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4741 | return NULL; | |
4742 | } | |
4743 | } | |
1d99702e RD |
4744 | if (_argo1) { |
4745 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4746 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4748 | return NULL; | |
4749 | } | |
4750 | } | |
cf694132 | 4751 | { |
4268f798 | 4752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4753 | wxWindow_SetCursor(_arg0,*_arg1); |
cf694132 | 4754 | |
4268f798 | 4755 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4756 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4757 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4758 | _resultobj = Py_None; |
4759 | return _resultobj; | |
4760 | } | |
4761 | ||
1afc06c2 RD |
4762 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4763 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4764 | PyObject * _resultobj; | |
4765 | wxWindow * _arg0; | |
4766 | wxEvtHandler * _arg1; | |
4767 | PyObject * _argo0 = 0; | |
4768 | PyObject * _argo1 = 0; | |
4769 | char *_kwnames[] = { "self","handler", NULL }; | |
4770 | ||
4771 | self = self; | |
4772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4773 | return NULL; | |
4774 | if (_argo0) { | |
4775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4778 | return NULL; | |
4779 | } | |
4780 | } | |
4781 | if (_argo1) { | |
4782 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4783 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4785 | return NULL; | |
4786 | } | |
4787 | } | |
4788 | { | |
4268f798 | 4789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4790 | wxWindow_SetEventHandler(_arg0,_arg1); |
1afc06c2 | 4791 | |
4268f798 | 4792 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4793 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
4794 | } Py_INCREF(Py_None); |
4795 | _resultobj = Py_None; | |
4796 | return _resultobj; | |
4797 | } | |
4798 | ||
83b18bab RD |
4799 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
4800 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4801 | PyObject * _resultobj; | |
4802 | wxWindow * _arg0; | |
4803 | long _arg1; | |
4804 | PyObject * _argo0 = 0; | |
4805 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4806 | ||
4807 | self = self; | |
4808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4809 | return NULL; | |
4810 | if (_argo0) { | |
4811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4814 | return NULL; | |
4815 | } | |
4816 | } | |
4817 | { | |
4268f798 | 4818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4819 | wxWindow_SetExtraStyle(_arg0,_arg1); |
83b18bab | 4820 | |
4268f798 | 4821 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4822 | if (PyErr_Occurred()) return NULL; |
83b18bab RD |
4823 | } Py_INCREF(Py_None); |
4824 | _resultobj = Py_None; | |
4825 | return _resultobj; | |
4826 | } | |
4827 | ||
8ab979d7 | 4828 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4829 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4830 | PyObject * _resultobj; |
4831 | wxWindow * _arg0; | |
4832 | wxString * _arg1; | |
1d99702e | 4833 | PyObject * _argo0 = 0; |
8ab979d7 | 4834 | PyObject * _obj1 = 0; |
efc5f224 | 4835 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4836 | |
4837 | self = self; | |
efc5f224 | 4838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4839 | return NULL; |
1d99702e RD |
4840 | if (_argo0) { |
4841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4844 | return NULL; | |
4845 | } | |
4846 | } | |
4847 | { | |
c8bc7bb8 RD |
4848 | _arg1 = wxString_in_helper(_obj1); |
4849 | if (_arg1 == NULL) | |
185d7c3e | 4850 | return NULL; |
8ab979d7 | 4851 | } |
cf694132 | 4852 | { |
4268f798 | 4853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4854 | wxWindow_SetTitle(_arg0,*_arg1); |
cf694132 | 4855 | |
4268f798 | 4856 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4857 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4858 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4859 | _resultobj = Py_None; |
4860 | { | |
4861 | if (_obj1) | |
4862 | delete _arg1; | |
4863 | } | |
4864 | return _resultobj; | |
4865 | } | |
4866 | ||
4867 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4868 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4869 | PyObject * _resultobj; |
4870 | bool _result; | |
4871 | wxWindow * _arg0; | |
7b7ac0ab | 4872 | bool _arg1 = (bool ) TRUE; |
1d99702e | 4873 | PyObject * _argo0 = 0; |
7b7ac0ab | 4874 | int tempbool1 = (int) TRUE; |
efc5f224 | 4875 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4876 | |
4877 | self = self; | |
7b7ac0ab | 4878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4879 | return NULL; |
1d99702e RD |
4880 | if (_argo0) { |
4881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
4884 | return NULL; | |
4885 | } | |
4886 | } | |
4887 | _arg1 = (bool ) tempbool1; | |
cf694132 | 4888 | { |
4268f798 | 4889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4890 | _result = (bool )wxWindow_Show(_arg0,_arg1); |
cf694132 | 4891 | |
4268f798 | 4892 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4893 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4894 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4895 | return _resultobj; |
4896 | } | |
4897 | ||
4898 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4899 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4900 | PyObject * _resultobj; |
4901 | bool _result; | |
4902 | wxWindow * _arg0; | |
1d99702e | 4903 | PyObject * _argo0 = 0; |
efc5f224 | 4904 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4905 | |
4906 | self = self; | |
efc5f224 | 4907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4908 | return NULL; |
1d99702e RD |
4909 | if (_argo0) { |
4910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4913 | return NULL; | |
4914 | } | |
4915 | } | |
cf694132 | 4916 | { |
4268f798 | 4917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4918 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); |
cf694132 | 4919 | |
4268f798 | 4920 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4921 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4922 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4923 | return _resultobj; |
4924 | } | |
4925 | ||
4926 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4927 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4928 | PyObject * _resultobj; |
4929 | bool _result; | |
4930 | wxWindow * _arg0; | |
1d99702e | 4931 | PyObject * _argo0 = 0; |
efc5f224 | 4932 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4933 | |
4934 | self = self; | |
efc5f224 | 4935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4936 | return NULL; |
1d99702e RD |
4937 | if (_argo0) { |
4938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4941 | return NULL; | |
4942 | } | |
4943 | } | |
cf694132 | 4944 | { |
4268f798 | 4945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4946 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); |
cf694132 | 4947 | |
4268f798 | 4948 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4949 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4950 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4951 | return _resultobj; |
4952 | } | |
4953 | ||
23bed520 RD |
4954 | #define wxWindow_UpdateWindowUI(_swigobj) (_swigobj->UpdateWindowUI()) |
4955 | static PyObject *_wrap_wxWindow_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4956 | PyObject * _resultobj; | |
4957 | wxWindow * _arg0; | |
4958 | PyObject * _argo0 = 0; | |
4959 | char *_kwnames[] = { "self", NULL }; | |
4960 | ||
4961 | self = self; | |
4962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_UpdateWindowUI",_kwnames,&_argo0)) | |
4963 | return NULL; | |
4964 | if (_argo0) { | |
4965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UpdateWindowUI. Expected _wxWindow_p."); | |
4968 | return NULL; | |
4969 | } | |
4970 | } | |
4971 | { | |
4972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4973 | wxWindow_UpdateWindowUI(_arg0); |
23bed520 RD |
4974 | |
4975 | wxPyEndAllowThreads(__tstate); | |
4976 | if (PyErr_Occurred()) return NULL; | |
4977 | } Py_INCREF(Py_None); | |
4978 | _resultobj = Py_None; | |
4979 | return _resultobj; | |
4980 | } | |
4981 | ||
8ab979d7 | 4982 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) |
efc5f224 | 4983 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4984 | PyObject * _resultobj; |
4985 | bool _result; | |
4986 | wxWindow * _arg0; | |
1d99702e | 4987 | PyObject * _argo0 = 0; |
efc5f224 | 4988 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4989 | |
4990 | self = self; | |
efc5f224 | 4991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 4992 | return NULL; |
1d99702e RD |
4993 | if (_argo0) { |
4994 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4995 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
4997 | return NULL; | |
4998 | } | |
4999 | } | |
cf694132 | 5000 | { |
4268f798 | 5001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5002 | _result = (bool )wxWindow_Validate(_arg0); |
cf694132 | 5003 | |
4268f798 | 5004 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5005 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5006 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5007 | return _resultobj; |
5008 | } | |
5009 | ||
b8b8dda7 | 5010 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 5011 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5012 | PyObject * _resultobj; |
5013 | wxPoint * _result; | |
5014 | wxWindow * _arg0; | |
5015 | wxPoint * _arg1; | |
1d99702e | 5016 | PyObject * _argo0 = 0; |
2f90df85 RD |
5017 | wxPoint temp; |
5018 | PyObject * _obj1 = 0; | |
efc5f224 | 5019 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
5020 | char _ptemp[128]; |
5021 | ||
5022 | self = self; | |
2f90df85 | 5023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5024 | return NULL; |
1d99702e RD |
5025 | if (_argo0) { |
5026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
5029 | return NULL; | |
5030 | } | |
5031 | } | |
2f90df85 RD |
5032 | { |
5033 | _arg1 = &temp; | |
5034 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5035 | return NULL; |
2f90df85 | 5036 | } |
cf694132 | 5037 | { |
4268f798 | 5038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5039 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); |
cf694132 | 5040 | |
4268f798 | 5041 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5042 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5043 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
5044 | _resultobj = Py_BuildValue("s",_ptemp); |
5045 | return _resultobj; | |
5046 | } | |
5047 | ||
5048 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 5049 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5050 | PyObject * _resultobj; |
5051 | wxSize * _result; | |
5052 | wxWindow * _arg0; | |
5053 | wxSize * _arg1; | |
1d99702e | 5054 | PyObject * _argo0 = 0; |
2f90df85 RD |
5055 | wxSize temp; |
5056 | PyObject * _obj1 = 0; | |
efc5f224 | 5057 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
5058 | char _ptemp[128]; |
5059 | ||
5060 | self = self; | |
2f90df85 | 5061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5062 | return NULL; |
1d99702e RD |
5063 | if (_argo0) { |
5064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
5067 | return NULL; | |
5068 | } | |
5069 | } | |
2f90df85 RD |
5070 | { |
5071 | _arg1 = &temp; | |
5072 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5073 | return NULL; |
2f90df85 | 5074 | } |
cf694132 | 5075 | { |
4268f798 | 5076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5077 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); |
cf694132 | 5078 | |
4268f798 | 5079 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5080 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5081 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
5082 | _resultobj = Py_BuildValue("s",_ptemp); |
5083 | return _resultobj; | |
5084 | } | |
5085 | ||
5086 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 5087 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5088 | PyObject * _resultobj; |
5089 | wxPoint * _result; | |
5090 | wxWindow * _arg0; | |
5091 | wxPoint * _arg1; | |
1d99702e | 5092 | PyObject * _argo0 = 0; |
2f90df85 RD |
5093 | wxPoint temp; |
5094 | PyObject * _obj1 = 0; | |
efc5f224 | 5095 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
5096 | char _ptemp[128]; |
5097 | ||
5098 | self = self; | |
2f90df85 | 5099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5100 | return NULL; |
1d99702e RD |
5101 | if (_argo0) { |
5102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
5105 | return NULL; | |
5106 | } | |
5107 | } | |
2f90df85 RD |
5108 | { |
5109 | _arg1 = &temp; | |
5110 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5111 | return NULL; |
2f90df85 | 5112 | } |
cf694132 | 5113 | { |
4268f798 | 5114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5115 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); |
cf694132 | 5116 | |
4268f798 | 5117 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5118 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5119 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
5120 | _resultobj = Py_BuildValue("s",_ptemp); |
5121 | return _resultobj; | |
5122 | } | |
5123 | ||
5124 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 5125 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5126 | PyObject * _resultobj; |
5127 | wxSize * _result; | |
5128 | wxWindow * _arg0; | |
5129 | wxSize * _arg1; | |
1d99702e | 5130 | PyObject * _argo0 = 0; |
2f90df85 RD |
5131 | wxSize temp; |
5132 | PyObject * _obj1 = 0; | |
efc5f224 | 5133 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
5134 | char _ptemp[128]; |
5135 | ||
5136 | self = self; | |
2f90df85 | 5137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5138 | return NULL; |
1d99702e RD |
5139 | if (_argo0) { |
5140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
5143 | return NULL; | |
5144 | } | |
5145 | } | |
2f90df85 RD |
5146 | { |
5147 | _arg1 = &temp; | |
5148 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5149 | return NULL; |
2f90df85 | 5150 | } |
cf694132 | 5151 | { |
4268f798 | 5152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5153 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); |
cf694132 | 5154 | |
4268f798 | 5155 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5156 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5157 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
5158 | _resultobj = Py_BuildValue("s",_ptemp); |
5159 | return _resultobj; | |
5160 | } | |
5161 | ||
af309447 | 5162 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 5163 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5164 | PyObject * _resultobj; |
5165 | wxWindow * _arg0; | |
5166 | wxString * _arg1; | |
1d99702e | 5167 | PyObject * _argo0 = 0; |
af309447 | 5168 | PyObject * _obj1 = 0; |
efc5f224 | 5169 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
5170 | |
5171 | self = self; | |
efc5f224 | 5172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 5173 | return NULL; |
1d99702e RD |
5174 | if (_argo0) { |
5175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
5178 | return NULL; | |
5179 | } | |
5180 | } | |
5181 | { | |
c8bc7bb8 RD |
5182 | _arg1 = wxString_in_helper(_obj1); |
5183 | if (_arg1 == NULL) | |
185d7c3e | 5184 | return NULL; |
af309447 | 5185 | } |
cf694132 | 5186 | { |
4268f798 | 5187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5188 | wxWindow_SetToolTipString(_arg0,*_arg1); |
cf694132 | 5189 | |
4268f798 | 5190 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5191 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5192 | } Py_INCREF(Py_None); |
af309447 RD |
5193 | _resultobj = Py_None; |
5194 | { | |
5195 | if (_obj1) | |
5196 | delete _arg1; | |
5197 | } | |
5198 | return _resultobj; | |
5199 | } | |
5200 | ||
5201 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 5202 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5203 | PyObject * _resultobj; |
5204 | wxWindow * _arg0; | |
5205 | wxToolTip * _arg1; | |
1d99702e RD |
5206 | PyObject * _argo0 = 0; |
5207 | PyObject * _argo1 = 0; | |
efc5f224 | 5208 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
5209 | |
5210 | self = self; | |
efc5f224 | 5211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 5212 | return NULL; |
1d99702e RD |
5213 | if (_argo0) { |
5214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
5217 | return NULL; | |
5218 | } | |
5219 | } | |
1d99702e RD |
5220 | if (_argo1) { |
5221 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5222 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
5223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
5224 | return NULL; | |
5225 | } | |
5226 | } | |
cf694132 | 5227 | { |
4268f798 | 5228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5229 | wxWindow_SetToolTip(_arg0,_arg1); |
cf694132 | 5230 | |
4268f798 | 5231 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5232 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5233 | } Py_INCREF(Py_None); |
af309447 RD |
5234 | _resultobj = Py_None; |
5235 | return _resultobj; | |
5236 | } | |
5237 | ||
5238 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 5239 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5240 | PyObject * _resultobj; |
5241 | wxToolTip * _result; | |
5242 | wxWindow * _arg0; | |
1d99702e | 5243 | PyObject * _argo0 = 0; |
efc5f224 | 5244 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
5245 | |
5246 | self = self; | |
efc5f224 | 5247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 5248 | return NULL; |
1d99702e RD |
5249 | if (_argo0) { |
5250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
5253 | return NULL; | |
5254 | } | |
5255 | } | |
cf694132 | 5256 | { |
4268f798 | 5257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5258 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); |
cf694132 | 5259 | |
4268f798 | 5260 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5261 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5262 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
5263 | return _resultobj; |
5264 | } | |
5265 | ||
a541c325 | 5266 | #define wxWindow_SetSizer(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizer(_swigarg0,_swigarg1)) |
2f90df85 RD |
5267 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { |
5268 | PyObject * _resultobj; | |
5269 | wxWindow * _arg0; | |
5270 | wxSizer * _arg1; | |
a541c325 | 5271 | bool _arg2 = (bool ) TRUE; |
2f90df85 RD |
5272 | PyObject * _argo0 = 0; |
5273 | PyObject * _argo1 = 0; | |
a541c325 RD |
5274 | int tempbool2 = (int) TRUE; |
5275 | char *_kwnames[] = { "self","sizer","deleteOld", NULL }; | |
2f90df85 RD |
5276 | |
5277 | self = self; | |
a541c325 | 5278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1,&tempbool2)) |
2f90df85 RD |
5279 | return NULL; |
5280 | if (_argo0) { | |
5281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
5284 | return NULL; | |
5285 | } | |
5286 | } | |
5287 | if (_argo1) { | |
5288 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5289 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
5291 | return NULL; | |
5292 | } | |
5293 | } | |
a541c325 | 5294 | _arg2 = (bool ) tempbool2; |
2f90df85 | 5295 | { |
4268f798 | 5296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a541c325 | 5297 | wxWindow_SetSizer(_arg0,_arg1,_arg2); |
2f90df85 | 5298 | |
4268f798 | 5299 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5300 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5301 | } Py_INCREF(Py_None); |
5302 | _resultobj = Py_None; | |
5303 | return _resultobj; | |
5304 | } | |
5305 | ||
2a74d141 RD |
5306 | #define wxWindow_SetSizerAndFit(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizerAndFit(_swigarg0,_swigarg1)) |
5307 | static PyObject *_wrap_wxWindow_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5308 | PyObject * _resultobj; | |
5309 | wxWindow * _arg0; | |
5310 | wxSizer * _arg1; | |
5311 | bool _arg2 = (bool ) TRUE; | |
5312 | PyObject * _argo0 = 0; | |
5313 | PyObject * _argo1 = 0; | |
5314 | int tempbool2 = (int) TRUE; | |
5315 | char *_kwnames[] = { "self","sizer","deleteOld", NULL }; | |
5316 | ||
5317 | self = self; | |
5318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizerAndFit",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
5319 | return NULL; | |
5320 | if (_argo0) { | |
5321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizerAndFit. Expected _wxWindow_p."); | |
5324 | return NULL; | |
5325 | } | |
5326 | } | |
5327 | if (_argo1) { | |
5328 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5329 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizerAndFit. Expected _wxSizer_p."); | |
5331 | return NULL; | |
5332 | } | |
5333 | } | |
5334 | _arg2 = (bool ) tempbool2; | |
5335 | { | |
5336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5337 | wxWindow_SetSizerAndFit(_arg0,_arg1,_arg2); | |
5338 | ||
5339 | wxPyEndAllowThreads(__tstate); | |
5340 | if (PyErr_Occurred()) return NULL; | |
5341 | } Py_INCREF(Py_None); | |
5342 | _resultobj = Py_None; | |
5343 | return _resultobj; | |
5344 | } | |
5345 | ||
f6bcfd97 BP |
5346 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
5347 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5348 | PyObject * _resultobj; | |
5349 | wxSizer * _result; | |
5350 | wxWindow * _arg0; | |
5351 | PyObject * _argo0 = 0; | |
5352 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
5353 | |
5354 | self = self; | |
5355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
5356 | return NULL; | |
5357 | if (_argo0) { | |
5358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
5361 | return NULL; | |
5362 | } | |
5363 | } | |
5364 | { | |
4268f798 | 5365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5366 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); |
f6bcfd97 | 5367 | |
4268f798 | 5368 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5369 | if (PyErr_Occurred()) return NULL; |
2f4e9287 | 5370 | }{ _resultobj = wxPyMake_wxSizer(_result); } |
f6bcfd97 BP |
5371 | return _resultobj; |
5372 | } | |
5373 | ||
be90c029 RD |
5374 | #define wxWindow_SetContainingSizer(_swigobj,_swigarg0) (_swigobj->SetContainingSizer(_swigarg0)) |
5375 | static PyObject *_wrap_wxWindow_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5376 | PyObject * _resultobj; | |
5377 | wxWindow * _arg0; | |
5378 | wxSizer * _arg1; | |
5379 | PyObject * _argo0 = 0; | |
5380 | PyObject * _argo1 = 0; | |
5381 | char *_kwnames[] = { "self","sizer", NULL }; | |
5382 | ||
5383 | self = self; | |
5384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetContainingSizer",_kwnames,&_argo0,&_argo1)) | |
5385 | return NULL; | |
5386 | if (_argo0) { | |
5387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetContainingSizer. Expected _wxWindow_p."); | |
5390 | return NULL; | |
5391 | } | |
5392 | } | |
5393 | if (_argo1) { | |
5394 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5395 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetContainingSizer. Expected _wxSizer_p."); | |
5397 | return NULL; | |
5398 | } | |
5399 | } | |
5400 | { | |
5401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5402 | wxWindow_SetContainingSizer(_arg0,_arg1); |
be90c029 RD |
5403 | |
5404 | wxPyEndAllowThreads(__tstate); | |
5405 | if (PyErr_Occurred()) return NULL; | |
5406 | } Py_INCREF(Py_None); | |
5407 | _resultobj = Py_None; | |
5408 | return _resultobj; | |
5409 | } | |
5410 | ||
5411 | #define wxWindow_GetContainingSizer(_swigobj) (_swigobj->GetContainingSizer()) | |
5412 | static PyObject *_wrap_wxWindow_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5413 | PyObject * _resultobj; | |
5414 | wxSizer * _result; | |
5415 | wxWindow * _arg0; | |
5416 | PyObject * _argo0 = 0; | |
5417 | char *_kwnames[] = { "self", NULL }; | |
5418 | ||
5419 | self = self; | |
5420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetContainingSizer",_kwnames,&_argo0)) | |
5421 | return NULL; | |
5422 | if (_argo0) { | |
5423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetContainingSizer. Expected _wxWindow_p."); | |
5426 | return NULL; | |
5427 | } | |
5428 | } | |
5429 | { | |
5430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5431 | _result = (wxSizer *)wxWindow_GetContainingSizer(_arg0); |
be90c029 RD |
5432 | |
5433 | wxPyEndAllowThreads(__tstate); | |
5434 | if (PyErr_Occurred()) return NULL; | |
5435 | }{ _resultobj = wxPyMake_wxSizer(_result); } | |
5436 | return _resultobj; | |
5437 | } | |
5438 | ||
2f90df85 RD |
5439 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
5440 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5441 | PyObject * _resultobj; | |
5442 | wxValidator * _result; | |
5443 | wxWindow * _arg0; | |
5444 | PyObject * _argo0 = 0; | |
5445 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
5446 | |
5447 | self = self; | |
5448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
5449 | return NULL; | |
5450 | if (_argo0) { | |
5451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
5454 | return NULL; | |
5455 | } | |
5456 | } | |
5457 | { | |
4268f798 | 5458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5459 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); |
2f90df85 | 5460 | |
4268f798 | 5461 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5462 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5463 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
5464 | return _resultobj; |
5465 | } | |
5466 | ||
5467 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5468 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5469 | PyObject * _resultobj; | |
5470 | wxWindow * _arg0; | |
5471 | wxValidator * _arg1; | |
5472 | PyObject * _argo0 = 0; | |
5473 | PyObject * _argo1 = 0; | |
5474 | char *_kwnames[] = { "self","validator", NULL }; | |
5475 | ||
5476 | self = self; | |
5477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
5478 | return NULL; | |
5479 | if (_argo0) { | |
5480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5483 | return NULL; | |
5484 | } | |
5485 | } | |
5486 | if (_argo1) { | |
5487 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5488 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
5489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5490 | return NULL; | |
5491 | } | |
5492 | } | |
5493 | { | |
4268f798 | 5494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5495 | wxWindow_SetValidator(_arg0,*_arg1); |
2f90df85 | 5496 | |
4268f798 | 5497 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5498 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5499 | } Py_INCREF(Py_None); |
5500 | _resultobj = Py_None; | |
5501 | return _resultobj; | |
5502 | } | |
5503 | ||
b1462dfa RD |
5504 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5505 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5506 | PyObject * _resultobj; | |
5507 | wxWindow * _arg0; | |
5508 | wxDropTarget * _arg1; | |
5509 | PyObject * _argo0 = 0; | |
5510 | PyObject * _argo1 = 0; | |
5511 | char *_kwnames[] = { "self","target", NULL }; | |
5512 | ||
5513 | self = self; | |
5514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5515 | return NULL; | |
5516 | if (_argo0) { | |
5517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5520 | return NULL; | |
5521 | } | |
5522 | } | |
5523 | if (_argo1) { | |
5524 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5525 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5527 | return NULL; | |
5528 | } | |
5529 | } | |
5530 | { | |
4268f798 | 5531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5532 | wxWindow_SetDropTarget(_arg0,_arg1); |
b1462dfa | 5533 | |
4268f798 | 5534 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5535 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5536 | } Py_INCREF(Py_None); |
5537 | _resultobj = Py_None; | |
5538 | return _resultobj; | |
5539 | } | |
5540 | ||
5541 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5542 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5543 | PyObject * _resultobj; | |
5544 | wxDropTarget * _result; | |
5545 | wxWindow * _arg0; | |
5546 | PyObject * _argo0 = 0; | |
5547 | char *_kwnames[] = { "self", NULL }; | |
5548 | char _ptemp[128]; | |
5549 | ||
5550 | self = self; | |
5551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5552 | return NULL; | |
5553 | if (_argo0) { | |
5554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5557 | return NULL; | |
5558 | } | |
5559 | } | |
5560 | { | |
4268f798 | 5561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5562 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); |
b1462dfa | 5563 | |
4268f798 | 5564 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5565 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5566 | } if (_result) { |
5567 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5568 | _resultobj = Py_BuildValue("s",_ptemp); | |
5569 | } else { | |
5570 | Py_INCREF(Py_None); | |
5571 | _resultobj = Py_None; | |
5572 | } | |
5573 | return _resultobj; | |
5574 | } | |
5575 | ||
694759cf RD |
5576 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5577 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5578 | PyObject * _resultobj; | |
5579 | wxSize * _result; | |
5580 | wxWindow * _arg0; | |
5581 | PyObject * _argo0 = 0; | |
5582 | char *_kwnames[] = { "self", NULL }; | |
5583 | char _ptemp[128]; | |
5584 | ||
5585 | self = self; | |
5586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5587 | return NULL; | |
5588 | if (_argo0) { | |
5589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5592 | return NULL; | |
5593 | } | |
5594 | } | |
5595 | { | |
4268f798 | 5596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5597 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); |
694759cf | 5598 | |
4268f798 | 5599 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5600 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5601 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5602 | _resultobj = Py_BuildValue("s",_ptemp); | |
5603 | return _resultobj; | |
5604 | } | |
5605 | ||
a541c325 RD |
5606 | #define wxWindow_GetMaxSize(_swigobj) (_swigobj->GetMaxSize()) |
5607 | static PyObject *_wrap_wxWindow_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5608 | PyObject * _resultobj; | |
5609 | wxSize * _result; | |
5610 | wxWindow * _arg0; | |
5611 | PyObject * _argo0 = 0; | |
5612 | char *_kwnames[] = { "self", NULL }; | |
5613 | char _ptemp[128]; | |
5614 | ||
5615 | self = self; | |
5616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetMaxSize",_kwnames,&_argo0)) | |
5617 | return NULL; | |
5618 | if (_argo0) { | |
5619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetMaxSize. Expected _wxWindow_p."); | |
5622 | return NULL; | |
5623 | } | |
5624 | } | |
5625 | { | |
5626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5627 | _result = new wxSize (wxWindow_GetMaxSize(_arg0)); | |
5628 | ||
5629 | wxPyEndAllowThreads(__tstate); | |
5630 | if (PyErr_Occurred()) return NULL; | |
5631 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5632 | _resultobj = Py_BuildValue("s",_ptemp); | |
5633 | return _resultobj; | |
5634 | } | |
5635 | ||
a1df7a95 RD |
5636 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5637 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5638 | PyObject * _resultobj; | |
5639 | wxWindow * _arg0; | |
5640 | wxCaret * _arg1; | |
5641 | PyObject * _argo0 = 0; | |
5642 | PyObject * _argo1 = 0; | |
5643 | char *_kwnames[] = { "self","caret", NULL }; | |
5644 | ||
5645 | self = self; | |
5646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5647 | return NULL; | |
5648 | if (_argo0) { | |
5649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5652 | return NULL; | |
5653 | } | |
5654 | } | |
5655 | if (_argo1) { | |
5656 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5657 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5659 | return NULL; | |
5660 | } | |
5661 | } | |
5662 | { | |
4268f798 | 5663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5664 | wxWindow_SetCaret(_arg0,_arg1); |
a1df7a95 | 5665 | |
4268f798 | 5666 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5667 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5668 | } Py_INCREF(Py_None); |
5669 | _resultobj = Py_None; | |
5670 | return _resultobj; | |
5671 | } | |
5672 | ||
5673 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5674 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5675 | PyObject * _resultobj; | |
5676 | wxCaret * _result; | |
5677 | wxWindow * _arg0; | |
5678 | PyObject * _argo0 = 0; | |
5679 | char *_kwnames[] = { "self", NULL }; | |
5680 | char _ptemp[128]; | |
5681 | ||
5682 | self = self; | |
5683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5684 | return NULL; | |
5685 | if (_argo0) { | |
5686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5689 | return NULL; | |
5690 | } | |
5691 | } | |
5692 | { | |
4268f798 | 5693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5694 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); |
a1df7a95 | 5695 | |
4268f798 | 5696 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5697 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5698 | } if (_result) { |
5699 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5700 | _resultobj = Py_BuildValue("s",_ptemp); | |
5701 | } else { | |
5702 | Py_INCREF(Py_None); | |
5703 | _resultobj = Py_None; | |
5704 | } | |
5705 | return _resultobj; | |
5706 | } | |
5707 | ||
3a0958b1 RD |
5708 | #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze()) |
5709 | static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5710 | PyObject * _resultobj; | |
5711 | wxWindow * _arg0; | |
5712 | PyObject * _argo0 = 0; | |
5713 | char *_kwnames[] = { "self", NULL }; | |
5714 | ||
5715 | self = self; | |
5716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0)) | |
5717 | return NULL; | |
5718 | if (_argo0) { | |
5719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p."); | |
5722 | return NULL; | |
5723 | } | |
5724 | } | |
5725 | { | |
4268f798 | 5726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5727 | wxWindow_Freeze(_arg0); |
3a0958b1 | 5728 | |
4268f798 | 5729 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
5730 | if (PyErr_Occurred()) return NULL; |
5731 | } Py_INCREF(Py_None); | |
5732 | _resultobj = Py_None; | |
5733 | return _resultobj; | |
5734 | } | |
5735 | ||
5736 | #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw()) | |
5737 | static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5738 | PyObject * _resultobj; | |
5739 | wxWindow * _arg0; | |
5740 | PyObject * _argo0 = 0; | |
5741 | char *_kwnames[] = { "self", NULL }; | |
5742 | ||
5743 | self = self; | |
5744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0)) | |
5745 | return NULL; | |
5746 | if (_argo0) { | |
5747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p."); | |
5750 | return NULL; | |
5751 | } | |
5752 | } | |
5753 | { | |
4268f798 | 5754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5755 | wxWindow_Thaw(_arg0); |
3a0958b1 | 5756 | |
4268f798 | 5757 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
5758 | if (PyErr_Occurred()) return NULL; |
5759 | } Py_INCREF(Py_None); | |
5760 | _resultobj = Py_None; | |
5761 | return _resultobj; | |
5762 | } | |
5763 | ||
09f3d4e6 RD |
5764 | #define wxWindow_Update(_swigobj) (_swigobj->Update()) |
5765 | static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5766 | PyObject * _resultobj; | |
5767 | wxWindow * _arg0; | |
5768 | PyObject * _argo0 = 0; | |
5769 | char *_kwnames[] = { "self", NULL }; | |
5770 | ||
5771 | self = self; | |
5772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0)) | |
5773 | return NULL; | |
5774 | if (_argo0) { | |
5775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p."); | |
5778 | return NULL; | |
5779 | } | |
5780 | } | |
5781 | { | |
4268f798 | 5782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5783 | wxWindow_Update(_arg0); |
09f3d4e6 | 5784 | |
4268f798 | 5785 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5786 | if (PyErr_Occurred()) return NULL; |
5787 | } Py_INCREF(Py_None); | |
5788 | _resultobj = Py_None; | |
5789 | return _resultobj; | |
5790 | } | |
5791 | ||
4f3449b4 RD |
5792 | #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText()) |
5793 | static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5794 | PyObject * _resultobj; | |
5795 | wxString * _result; | |
5796 | wxWindow * _arg0; | |
5797 | PyObject * _argo0 = 0; | |
5798 | char *_kwnames[] = { "self", NULL }; | |
5799 | ||
5800 | self = self; | |
5801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0)) | |
5802 | return NULL; | |
5803 | if (_argo0) { | |
5804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p."); | |
5807 | return NULL; | |
5808 | } | |
5809 | } | |
5810 | { | |
4268f798 | 5811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5812 | _result = new wxString (wxWindow_GetHelpText(_arg0)); |
4f3449b4 | 5813 | |
4268f798 | 5814 | wxPyEndAllowThreads(__tstate); |
4f3449b4 RD |
5815 | if (PyErr_Occurred()) return NULL; |
5816 | }{ | |
c8bc7bb8 RD |
5817 | #if wxUSE_UNICODE |
5818 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5819 | #else | |
4f3449b4 | 5820 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5821 | #endif |
4f3449b4 RD |
5822 | } |
5823 | { | |
5824 | delete _result; | |
5825 | } | |
5826 | return _resultobj; | |
5827 | } | |
5828 | ||
5829 | #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0)) | |
5830 | static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5831 | PyObject * _resultobj; | |
5832 | wxWindow * _arg0; | |
5833 | wxString * _arg1; | |
5834 | PyObject * _argo0 = 0; | |
5835 | PyObject * _obj1 = 0; | |
5836 | char *_kwnames[] = { "self","helpText", NULL }; | |
5837 | ||
5838 | self = self; | |
5839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1)) | |
5840 | return NULL; | |
5841 | if (_argo0) { | |
5842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p."); | |
5845 | return NULL; | |
5846 | } | |
5847 | } | |
5848 | { | |
c8bc7bb8 RD |
5849 | _arg1 = wxString_in_helper(_obj1); |
5850 | if (_arg1 == NULL) | |
4f3449b4 | 5851 | return NULL; |
4f3449b4 RD |
5852 | } |
5853 | { | |
4268f798 | 5854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5855 | wxWindow_SetHelpText(_arg0,*_arg1); |
4f3449b4 | 5856 | |
4268f798 | 5857 | wxPyEndAllowThreads(__tstate); |
4f3449b4 RD |
5858 | if (PyErr_Occurred()) return NULL; |
5859 | } Py_INCREF(Py_None); | |
5860 | _resultobj = Py_None; | |
5861 | { | |
5862 | if (_obj1) | |
5863 | delete _arg1; | |
5864 | } | |
5865 | return _resultobj; | |
5866 | } | |
5867 | ||
23bed520 RD |
5868 | #define wxWindow_SetHelpTextForId(_swigobj,_swigarg0) (_swigobj->SetHelpTextForId(_swigarg0)) |
5869 | static PyObject *_wrap_wxWindow_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5870 | PyObject * _resultobj; | |
5871 | wxWindow * _arg0; | |
5872 | wxString * _arg1; | |
5873 | PyObject * _argo0 = 0; | |
5874 | PyObject * _obj1 = 0; | |
5875 | char *_kwnames[] = { "self","text", NULL }; | |
5876 | ||
5877 | self = self; | |
5878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpTextForId",_kwnames,&_argo0,&_obj1)) | |
5879 | return NULL; | |
5880 | if (_argo0) { | |
5881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpTextForId. Expected _wxWindow_p."); | |
5884 | return NULL; | |
5885 | } | |
5886 | } | |
5887 | { | |
c8bc7bb8 RD |
5888 | _arg1 = wxString_in_helper(_obj1); |
5889 | if (_arg1 == NULL) | |
23bed520 | 5890 | return NULL; |
23bed520 RD |
5891 | } |
5892 | { | |
5893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5894 | wxWindow_SetHelpTextForId(_arg0,*_arg1); |
23bed520 RD |
5895 | |
5896 | wxPyEndAllowThreads(__tstate); | |
5897 | if (PyErr_Occurred()) return NULL; | |
5898 | } Py_INCREF(Py_None); | |
5899 | _resultobj = Py_None; | |
5900 | { | |
5901 | if (_obj1) | |
5902 | delete _arg1; | |
5903 | } | |
5904 | return _resultobj; | |
5905 | } | |
5906 | ||
c7e7022c RD |
5907 | #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0)) |
5908 | static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5909 | PyObject * _resultobj; | |
5910 | bool _result; | |
5911 | wxWindow * _arg0; | |
5912 | int _arg1; | |
5913 | PyObject * _argo0 = 0; | |
5914 | char *_kwnames[] = { "self","lines", NULL }; | |
5915 | ||
5916 | self = self; | |
5917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1)) | |
5918 | return NULL; | |
5919 | if (_argo0) { | |
5920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p."); | |
5923 | return NULL; | |
5924 | } | |
5925 | } | |
5926 | { | |
4268f798 | 5927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5928 | _result = (bool )wxWindow_ScrollLines(_arg0,_arg1); |
c7e7022c | 5929 | |
4268f798 | 5930 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5931 | if (PyErr_Occurred()) return NULL; |
5932 | } _resultobj = Py_BuildValue("i",_result); | |
5933 | return _resultobj; | |
5934 | } | |
5935 | ||
5936 | #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0)) | |
5937 | static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5938 | PyObject * _resultobj; | |
5939 | bool _result; | |
5940 | wxWindow * _arg0; | |
5941 | int _arg1; | |
5942 | PyObject * _argo0 = 0; | |
5943 | char *_kwnames[] = { "self","pages", NULL }; | |
5944 | ||
5945 | self = self; | |
5946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1)) | |
5947 | return NULL; | |
5948 | if (_argo0) { | |
5949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p."); | |
5952 | return NULL; | |
5953 | } | |
5954 | } | |
5955 | { | |
4268f798 | 5956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5957 | _result = (bool )wxWindow_ScrollPages(_arg0,_arg1); |
c7e7022c | 5958 | |
4268f798 | 5959 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5960 | if (PyErr_Occurred()) return NULL; |
5961 | } _resultobj = Py_BuildValue("i",_result); | |
5962 | return _resultobj; | |
5963 | } | |
5964 | ||
5965 | #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp()) | |
5966 | static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5967 | PyObject * _resultobj; | |
5968 | bool _result; | |
5969 | wxWindow * _arg0; | |
5970 | PyObject * _argo0 = 0; | |
5971 | char *_kwnames[] = { "self", NULL }; | |
5972 | ||
5973 | self = self; | |
5974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0)) | |
5975 | return NULL; | |
5976 | if (_argo0) { | |
5977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p."); | |
5980 | return NULL; | |
5981 | } | |
5982 | } | |
5983 | { | |
4268f798 | 5984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5985 | _result = (bool )wxWindow_LineUp(_arg0); |
c7e7022c | 5986 | |
4268f798 | 5987 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5988 | if (PyErr_Occurred()) return NULL; |
5989 | } _resultobj = Py_BuildValue("i",_result); | |
5990 | return _resultobj; | |
5991 | } | |
5992 | ||
5993 | #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown()) | |
5994 | static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5995 | PyObject * _resultobj; | |
5996 | bool _result; | |
5997 | wxWindow * _arg0; | |
5998 | PyObject * _argo0 = 0; | |
5999 | char *_kwnames[] = { "self", NULL }; | |
6000 | ||
6001 | self = self; | |
6002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0)) | |
6003 | return NULL; | |
6004 | if (_argo0) { | |
6005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p."); | |
6008 | return NULL; | |
6009 | } | |
6010 | } | |
6011 | { | |
4268f798 | 6012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6013 | _result = (bool )wxWindow_LineDown(_arg0); |
c7e7022c | 6014 | |
4268f798 | 6015 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
6016 | if (PyErr_Occurred()) return NULL; |
6017 | } _resultobj = Py_BuildValue("i",_result); | |
6018 | return _resultobj; | |
6019 | } | |
6020 | ||
6021 | #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp()) | |
6022 | static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6023 | PyObject * _resultobj; | |
6024 | bool _result; | |
6025 | wxWindow * _arg0; | |
6026 | PyObject * _argo0 = 0; | |
6027 | char *_kwnames[] = { "self", NULL }; | |
6028 | ||
6029 | self = self; | |
6030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0)) | |
6031 | return NULL; | |
6032 | if (_argo0) { | |
6033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p."); | |
6036 | return NULL; | |
6037 | } | |
6038 | } | |
6039 | { | |
4268f798 | 6040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6041 | _result = (bool )wxWindow_PageUp(_arg0); |
c7e7022c | 6042 | |
4268f798 | 6043 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
6044 | if (PyErr_Occurred()) return NULL; |
6045 | } _resultobj = Py_BuildValue("i",_result); | |
6046 | return _resultobj; | |
6047 | } | |
6048 | ||
6049 | #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown()) | |
6050 | static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6051 | PyObject * _resultobj; | |
6052 | bool _result; | |
6053 | wxWindow * _arg0; | |
6054 | PyObject * _argo0 = 0; | |
6055 | char *_kwnames[] = { "self", NULL }; | |
6056 | ||
6057 | self = self; | |
6058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0)) | |
6059 | return NULL; | |
6060 | if (_argo0) { | |
6061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p."); | |
6064 | return NULL; | |
6065 | } | |
6066 | } | |
6067 | { | |
4268f798 | 6068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6069 | _result = (bool )wxWindow_PageDown(_arg0); |
c7e7022c | 6070 | |
4268f798 | 6071 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
6072 | if (PyErr_Occurred()) return NULL; |
6073 | } _resultobj = Py_BuildValue("i",_result); | |
6074 | return _resultobj; | |
6075 | } | |
6076 | ||
09f3d4e6 RD |
6077 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
6078 | PyObject * _resultobj; | |
6079 | wxWindow * _result; | |
6080 | char *_kwnames[] = { NULL }; | |
6081 | ||
6082 | self = self; | |
6083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
6084 | return NULL; | |
6085 | { | |
4268f798 | 6086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6087 | _result = (wxWindow *)wxWindow::FindFocus(); |
09f3d4e6 | 6088 | |
4268f798 | 6089 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6090 | if (PyErr_Occurred()) return NULL; |
6091 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6092 | return _resultobj; | |
6093 | } | |
6094 | ||
6095 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6096 | PyObject * _resultobj; | |
6097 | int _result; | |
6098 | char *_kwnames[] = { NULL }; | |
6099 | ||
6100 | self = self; | |
6101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
6102 | return NULL; | |
6103 | { | |
4268f798 | 6104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6105 | _result = (int )wxWindow::NewControlId(); |
09f3d4e6 | 6106 | |
4268f798 | 6107 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6108 | if (PyErr_Occurred()) return NULL; |
6109 | } _resultobj = Py_BuildValue("i",_result); | |
6110 | return _resultobj; | |
6111 | } | |
6112 | ||
6113 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6114 | PyObject * _resultobj; | |
6115 | int _result; | |
6116 | int _arg0; | |
6117 | char *_kwnames[] = { "id", NULL }; | |
6118 | ||
6119 | self = self; | |
6120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
6121 | return NULL; | |
6122 | { | |
4268f798 | 6123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6124 | _result = (int )wxWindow::NextControlId(_arg0); |
09f3d4e6 | 6125 | |
4268f798 | 6126 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6127 | if (PyErr_Occurred()) return NULL; |
6128 | } _resultobj = Py_BuildValue("i",_result); | |
6129 | return _resultobj; | |
6130 | } | |
6131 | ||
6132 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6133 | PyObject * _resultobj; | |
6134 | int _result; | |
6135 | int _arg0; | |
6136 | char *_kwnames[] = { "id", NULL }; | |
6137 | ||
6138 | self = self; | |
6139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
6140 | return NULL; | |
6141 | { | |
4268f798 | 6142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6143 | _result = (int )wxWindow::PrevControlId(_arg0); |
09f3d4e6 | 6144 | |
4268f798 | 6145 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6146 | if (PyErr_Occurred()) return NULL; |
6147 | } _resultobj = Py_BuildValue("i",_result); | |
6148 | return _resultobj; | |
6149 | } | |
6150 | ||
76bfdc78 RD |
6151 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
6152 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6153 | PyObject * _resultobj; | |
6154 | wxWindow * _arg0; | |
6155 | wxAcceleratorTable * _arg1; | |
6156 | PyObject * _argo0 = 0; | |
6157 | PyObject * _argo1 = 0; | |
6158 | char *_kwnames[] = { "self","accel", NULL }; | |
6159 | ||
6160 | self = self; | |
6161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) | |
6162 | return NULL; | |
6163 | if (_argo0) { | |
6164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); | |
6167 | return NULL; | |
6168 | } | |
6169 | } | |
6170 | if (_argo1) { | |
6171 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6172 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
6173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); | |
6174 | return NULL; | |
6175 | } | |
6176 | } | |
6177 | { | |
4268f798 | 6178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6179 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); |
76bfdc78 | 6180 | |
4268f798 | 6181 | wxPyEndAllowThreads(__tstate); |
76bfdc78 RD |
6182 | if (PyErr_Occurred()) return NULL; |
6183 | } Py_INCREF(Py_None); | |
6184 | _resultobj = Py_None; | |
6185 | return _resultobj; | |
6186 | } | |
6187 | ||
900d9886 RD |
6188 | #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable()) |
6189 | static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6190 | PyObject * _resultobj; | |
6191 | wxAcceleratorTable * _result; | |
6192 | wxWindow * _arg0; | |
6193 | PyObject * _argo0 = 0; | |
6194 | char *_kwnames[] = { "self", NULL }; | |
6195 | char _ptemp[128]; | |
6196 | ||
6197 | self = self; | |
6198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0)) | |
6199 | return NULL; | |
6200 | if (_argo0) { | |
6201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p."); | |
6204 | return NULL; | |
6205 | } | |
6206 | } | |
6207 | { | |
4268f798 | 6208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6209 | _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0); |
900d9886 | 6210 | |
4268f798 | 6211 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
6212 | if (PyErr_Occurred()) return NULL; |
6213 | } if (_result) { | |
6214 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p"); | |
6215 | _resultobj = Py_BuildValue("s",_ptemp); | |
6216 | } else { | |
6217 | Py_INCREF(Py_None); | |
6218 | _resultobj = Py_None; | |
6219 | } | |
6220 | return _resultobj; | |
6221 | } | |
6222 | ||
07c99b26 RD |
6223 | #define wxWindow_OnPaint(_swigobj,_swigarg0) (_swigobj->OnPaint(_swigarg0)) |
6224 | static PyObject *_wrap_wxWindow_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
78e8819c RD |
6225 | PyObject * _resultobj; |
6226 | wxWindow * _arg0; | |
6227 | wxPaintEvent * _arg1; | |
6228 | PyObject * _argo0 = 0; | |
6229 | PyObject * _argo1 = 0; | |
6230 | char *_kwnames[] = { "self","event", NULL }; | |
6231 | ||
6232 | self = self; | |
07c99b26 | 6233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_OnPaint",_kwnames,&_argo0,&_argo1)) |
78e8819c RD |
6234 | return NULL; |
6235 | if (_argo0) { | |
6236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
07c99b26 | 6238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_OnPaint. Expected _wxWindow_p."); |
78e8819c RD |
6239 | return NULL; |
6240 | } | |
6241 | } | |
6242 | if (_argo1) { | |
6243 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6244 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPaintEvent_p")) { | |
07c99b26 | 6245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_OnPaint. Expected _wxPaintEvent_p."); |
78e8819c RD |
6246 | return NULL; |
6247 | } | |
6248 | } | |
6249 | { | |
4268f798 | 6250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6251 | wxWindow_OnPaint(_arg0,*_arg1); |
78e8819c | 6252 | |
4268f798 | 6253 | wxPyEndAllowThreads(__tstate); |
78e8819c RD |
6254 | if (PyErr_Occurred()) return NULL; |
6255 | } Py_INCREF(Py_None); | |
6256 | _resultobj = Py_None; | |
6257 | return _resultobj; | |
6258 | } | |
6259 | ||
5a2930ab RD |
6260 | #define wxWindow_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
6261 | static PyObject *_wrap_wxWindow_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6262 | PyObject * _resultobj; | |
26e335b8 | 6263 | wxWindow * _result; |
5a2930ab RD |
6264 | wxWindow * _arg0; |
6265 | PyObject * _argo0 = 0; | |
6266 | char *_kwnames[] = { "self", NULL }; | |
6267 | ||
6268 | self = self; | |
6269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDefaultItem",_kwnames,&_argo0)) | |
6270 | return NULL; | |
6271 | if (_argo0) { | |
6272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDefaultItem. Expected _wxWindow_p."); | |
6275 | return NULL; | |
6276 | } | |
6277 | } | |
6278 | { | |
6279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26e335b8 | 6280 | _result = (wxWindow *)wxWindow_GetDefaultItem(_arg0); |
5a2930ab RD |
6281 | |
6282 | wxPyEndAllowThreads(__tstate); | |
6283 | if (PyErr_Occurred()) return NULL; | |
6284 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6285 | return _resultobj; | |
6286 | } | |
6287 | ||
6288 | #define wxWindow_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
6289 | static PyObject *_wrap_wxWindow_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6290 | PyObject * _resultobj; | |
26e335b8 | 6291 | wxWindow * _result; |
5a2930ab | 6292 | wxWindow * _arg0; |
26e335b8 | 6293 | wxWindow * _arg1; |
5a2930ab RD |
6294 | PyObject * _argo0 = 0; |
6295 | PyObject * _argo1 = 0; | |
6296 | char *_kwnames[] = { "self","btn", NULL }; | |
6297 | ||
6298 | self = self; | |
6299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDefaultItem",_kwnames,&_argo0,&_argo1)) | |
6300 | return NULL; | |
6301 | if (_argo0) { | |
6302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
6305 | return NULL; | |
6306 | } | |
6307 | } | |
6308 | if (_argo1) { | |
6309 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
26e335b8 RD |
6310 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
6311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
5a2930ab RD |
6312 | return NULL; |
6313 | } | |
6314 | } | |
6315 | { | |
6316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26e335b8 | 6317 | _result = (wxWindow *)wxWindow_SetDefaultItem(_arg0,_arg1); |
5a2930ab RD |
6318 | |
6319 | wxPyEndAllowThreads(__tstate); | |
6320 | if (PyErr_Occurred()) return NULL; | |
26e335b8 | 6321 | }{ _resultobj = wxPyMake_wxObject(_result); } |
5a2930ab RD |
6322 | return _resultobj; |
6323 | } | |
6324 | ||
0b85cc38 RD |
6325 | #define wxWindow_SetTmpDefaultItem(_swigobj,_swigarg0) (_swigobj->SetTmpDefaultItem(_swigarg0)) |
6326 | static PyObject *_wrap_wxWindow_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6327 | PyObject * _resultobj; | |
6328 | wxWindow * _arg0; | |
6329 | wxWindow * _arg1; | |
6330 | PyObject * _argo0 = 0; | |
6331 | PyObject * _argo1 = 0; | |
6332 | char *_kwnames[] = { "self","win", NULL }; | |
6333 | ||
6334 | self = self; | |
6335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTmpDefaultItem",_kwnames,&_argo0,&_argo1)) | |
6336 | return NULL; | |
6337 | if (_argo0) { | |
6338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTmpDefaultItem. Expected _wxWindow_p."); | |
6341 | return NULL; | |
6342 | } | |
6343 | } | |
6344 | if (_argo1) { | |
6345 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6346 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetTmpDefaultItem. Expected _wxWindow_p."); | |
6348 | return NULL; | |
6349 | } | |
6350 | } | |
6351 | { | |
6352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6353 | wxWindow_SetTmpDefaultItem(_arg0,_arg1); | |
6354 | ||
6355 | wxPyEndAllowThreads(__tstate); | |
6356 | if (PyErr_Occurred()) return NULL; | |
6357 | } Py_INCREF(Py_None); | |
6358 | _resultobj = Py_None; | |
6359 | return _resultobj; | |
6360 | } | |
6361 | ||
6d26dc89 RD |
6362 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) |
6363 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6364 | PyObject * _resultobj; | |
6365 | wxWindow * _arg0; | |
6366 | int _arg1; | |
6367 | int _arg2; | |
6368 | PyObject * _argo0 = 0; | |
6369 | char *_kwnames[] = { "self","x","y", NULL }; | |
6370 | ||
6371 | self = self; | |
6372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6373 | return NULL; | |
6374 | if (_argo0) { | |
6375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); | |
6378 | return NULL; | |
6379 | } | |
6380 | } | |
6381 | { | |
6382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6383 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
6384 | ||
6385 | wxPyEndAllowThreads(__tstate); | |
6386 | if (PyErr_Occurred()) return NULL; | |
6387 | } Py_INCREF(Py_None); | |
6388 | _resultobj = Py_None; | |
6389 | return _resultobj; | |
6390 | } | |
6391 | ||
6392 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
6393 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6394 | PyObject * _resultobj; | |
6395 | wxWindow * _arg0; | |
6396 | PyObject * _argo0 = 0; | |
6397 | char *_kwnames[] = { "self", NULL }; | |
6398 | ||
6399 | self = self; | |
6400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) | |
6401 | return NULL; | |
6402 | if (_argo0) { | |
6403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); | |
6406 | return NULL; | |
6407 | } | |
6408 | } | |
6409 | { | |
6410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6411 | wxWindow_CaptureMouse(_arg0); | |
6412 | ||
6413 | wxPyEndAllowThreads(__tstate); | |
6414 | if (PyErr_Occurred()) return NULL; | |
6415 | } Py_INCREF(Py_None); | |
6416 | _resultobj = Py_None; | |
6417 | return _resultobj; | |
6418 | } | |
6419 | ||
6420 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
6421 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6422 | PyObject * _resultobj; | |
6423 | wxWindow * _arg0; | |
6424 | PyObject * _argo0 = 0; | |
6425 | char *_kwnames[] = { "self", NULL }; | |
6426 | ||
6427 | self = self; | |
6428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) | |
6429 | return NULL; | |
6430 | if (_argo0) { | |
6431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); | |
6434 | return NULL; | |
6435 | } | |
6436 | } | |
6437 | { | |
6438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6439 | wxWindow_ReleaseMouse(_arg0); | |
6440 | ||
6441 | wxPyEndAllowThreads(__tstate); | |
6442 | if (PyErr_Occurred()) return NULL; | |
6443 | } Py_INCREF(Py_None); | |
6444 | _resultobj = Py_None; | |
6445 | return _resultobj; | |
6446 | } | |
6447 | ||
6448 | static PyObject *_wrap_wxWindow_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6449 | PyObject * _resultobj; | |
6450 | wxWindow * _result; | |
6451 | char *_kwnames[] = { NULL }; | |
6452 | ||
6453 | self = self; | |
6454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_GetCapture",_kwnames)) | |
6455 | return NULL; | |
6456 | { | |
6457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6458 | _result = (wxWindow *)wxWindow::GetCapture(); | |
6459 | ||
6460 | wxPyEndAllowThreads(__tstate); | |
6461 | if (PyErr_Occurred()) return NULL; | |
6462 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6463 | return _resultobj; | |
6464 | } | |
6465 | ||
6466 | #define wxWindow_HasCapture(_swigobj) (_swigobj->HasCapture()) | |
6467 | static PyObject *_wrap_wxWindow_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6468 | PyObject * _resultobj; | |
6469 | bool _result; | |
6470 | wxWindow * _arg0; | |
6471 | PyObject * _argo0 = 0; | |
6472 | char *_kwnames[] = { "self", NULL }; | |
6473 | ||
6474 | self = self; | |
6475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_HasCapture",_kwnames,&_argo0)) | |
6476 | return NULL; | |
6477 | if (_argo0) { | |
6478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasCapture. Expected _wxWindow_p."); | |
6481 | return NULL; | |
6482 | } | |
6483 | } | |
6484 | { | |
6485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6486 | _result = (bool )wxWindow_HasCapture(_arg0); | |
6487 | ||
6488 | wxPyEndAllowThreads(__tstate); | |
6489 | if (PyErr_Occurred()) return NULL; | |
6490 | } _resultobj = Py_BuildValue("i",_result); | |
6491 | return _resultobj; | |
6492 | } | |
6493 | ||
8ab979d7 RD |
6494 | static void *SwigwxPanelTowxWindow(void *ptr) { |
6495 | wxPanel *src; | |
6496 | wxWindow *dest; | |
6497 | src = (wxPanel *) ptr; | |
6498 | dest = (wxWindow *) src; | |
6499 | return (void *) dest; | |
6500 | } | |
6501 | ||
6502 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
6503 | wxPanel *src; | |
6504 | wxEvtHandler *dest; | |
6505 | src = (wxPanel *) ptr; | |
6506 | dest = (wxEvtHandler *) src; | |
6507 | return (void *) dest; | |
6508 | } | |
6509 | ||
9416aa89 RD |
6510 | static void *SwigwxPanelTowxObject(void *ptr) { |
6511 | wxPanel *src; | |
6512 | wxObject *dest; | |
6513 | src = (wxPanel *) ptr; | |
6514 | dest = (wxObject *) src; | |
6515 | return (void *) dest; | |
6516 | } | |
6517 | ||
8ab979d7 | 6518 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6519 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6520 | PyObject * _resultobj; |
6521 | wxPanel * _result; | |
6522 | wxWindow * _arg0; | |
6523 | wxWindowID _arg1; | |
e508a2b6 RD |
6524 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6525 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 6526 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
137b5242 | 6527 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 6528 | PyObject * _argo0 = 0; |
2f90df85 RD |
6529 | wxPoint temp; |
6530 | PyObject * _obj2 = 0; | |
6531 | wxSize temp0; | |
6532 | PyObject * _obj3 = 0; | |
137b5242 | 6533 | PyObject * _obj5 = 0; |
efc5f224 | 6534 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6535 | char _ptemp[128]; |
6536 | ||
6537 | self = self; | |
137b5242 | 6538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 6539 | return NULL; |
1d99702e RD |
6540 | if (_argo0) { |
6541 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6542 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
6544 | return NULL; | |
6545 | } | |
6546 | } | |
2f90df85 RD |
6547 | if (_obj2) |
6548 | { | |
6549 | _arg2 = &temp; | |
6550 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6551 | return NULL; |
2f90df85 RD |
6552 | } |
6553 | if (_obj3) | |
6554 | { | |
6555 | _arg3 = &temp0; | |
6556 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6557 | return NULL; |
137b5242 RD |
6558 | } |
6559 | if (_obj5) | |
6560 | { | |
6561 | _arg5 = wxString_in_helper(_obj5); | |
6562 | if (_arg5 == NULL) | |
6563 | return NULL; | |
2f90df85 | 6564 | } |
cf694132 | 6565 | { |
4268f798 | 6566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6567 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 6568 | |
4268f798 | 6569 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6570 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6571 | } if (_result) { |
6572 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6573 | _resultobj = Py_BuildValue("s",_ptemp); | |
6574 | } else { | |
6575 | Py_INCREF(Py_None); | |
6576 | _resultobj = Py_None; | |
6577 | } | |
137b5242 RD |
6578 | { |
6579 | if (_obj5) | |
6580 | delete _arg5; | |
6581 | } | |
8ab979d7 RD |
6582 | return _resultobj; |
6583 | } | |
6584 | ||
09f3d4e6 RD |
6585 | #define new_wxPrePanel() (new wxPanel()) |
6586 | static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6587 | PyObject * _resultobj; | |
6588 | wxPanel * _result; | |
6589 | char *_kwnames[] = { NULL }; | |
6590 | char _ptemp[128]; | |
6591 | ||
6592 | self = self; | |
6593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames)) | |
6594 | return NULL; | |
6595 | { | |
4268f798 | 6596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6597 | _result = (wxPanel *)new_wxPrePanel(); |
09f3d4e6 | 6598 | |
4268f798 | 6599 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6600 | if (PyErr_Occurred()) return NULL; |
6601 | } if (_result) { | |
6602 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6603 | _resultobj = Py_BuildValue("s",_ptemp); | |
6604 | } else { | |
6605 | Py_INCREF(Py_None); | |
6606 | _resultobj = Py_None; | |
6607 | } | |
6608 | return _resultobj; | |
6609 | } | |
6610 | ||
6611 | #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6612 | static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6613 | PyObject * _resultobj; | |
6614 | bool _result; | |
6615 | wxPanel * _arg0; | |
6616 | wxWindow * _arg1; | |
6617 | wxWindowID _arg2; | |
6618 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6619 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6620 | long _arg5 = (long ) wxTAB_TRAVERSAL; | |
137b5242 | 6621 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
09f3d4e6 RD |
6622 | PyObject * _argo0 = 0; |
6623 | PyObject * _argo1 = 0; | |
6624 | wxPoint temp; | |
6625 | PyObject * _obj3 = 0; | |
6626 | wxSize temp0; | |
6627 | PyObject * _obj4 = 0; | |
137b5242 | 6628 | PyObject * _obj6 = 0; |
09f3d4e6 RD |
6629 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
6630 | ||
6631 | self = self; | |
137b5242 | 6632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
09f3d4e6 RD |
6633 | return NULL; |
6634 | if (_argo0) { | |
6635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
6637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p."); | |
6638 | return NULL; | |
6639 | } | |
6640 | } | |
6641 | if (_argo1) { | |
6642 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6643 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p."); | |
6645 | return NULL; | |
6646 | } | |
6647 | } | |
6648 | if (_obj3) | |
6649 | { | |
6650 | _arg3 = &temp; | |
6651 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6652 | return NULL; | |
6653 | } | |
6654 | if (_obj4) | |
6655 | { | |
6656 | _arg4 = &temp0; | |
6657 | if (! wxSize_helper(_obj4, &_arg4)) | |
6658 | return NULL; | |
137b5242 RD |
6659 | } |
6660 | if (_obj6) | |
6661 | { | |
6662 | _arg6 = wxString_in_helper(_obj6); | |
6663 | if (_arg6 == NULL) | |
6664 | return NULL; | |
09f3d4e6 RD |
6665 | } |
6666 | { | |
4268f798 | 6667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6668 | _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
09f3d4e6 | 6669 | |
4268f798 | 6670 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6671 | if (PyErr_Occurred()) return NULL; |
6672 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
6673 | { |
6674 | if (_obj6) | |
6675 | delete _arg6; | |
6676 | } | |
09f3d4e6 RD |
6677 | return _resultobj; |
6678 | } | |
6679 | ||
8ab979d7 | 6680 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 6681 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6682 | PyObject * _resultobj; |
6683 | wxPanel * _arg0; | |
1d99702e | 6684 | PyObject * _argo0 = 0; |
efc5f224 | 6685 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6686 | |
6687 | self = self; | |
efc5f224 | 6688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 6689 | return NULL; |
1d99702e RD |
6690 | if (_argo0) { |
6691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
6693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
6694 | return NULL; | |
6695 | } | |
6696 | } | |
cf694132 | 6697 | { |
4268f798 | 6698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6699 | wxPanel_InitDialog(_arg0); |
cf694132 | 6700 | |
4268f798 | 6701 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6702 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6703 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6704 | _resultobj = Py_None; |
6705 | return _resultobj; | |
6706 | } | |
6707 | ||
bb0054cd RD |
6708 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
6709 | wxScrolledWindow *src; | |
6710 | wxPanel *dest; | |
6711 | src = (wxScrolledWindow *) ptr; | |
6712 | dest = (wxPanel *) src; | |
6713 | return (void *) dest; | |
6714 | } | |
6715 | ||
8ab979d7 RD |
6716 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
6717 | wxScrolledWindow *src; | |
6718 | wxWindow *dest; | |
6719 | src = (wxScrolledWindow *) ptr; | |
6720 | dest = (wxWindow *) src; | |
6721 | return (void *) dest; | |
6722 | } | |
6723 | ||
6724 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
6725 | wxScrolledWindow *src; | |
6726 | wxEvtHandler *dest; | |
6727 | src = (wxScrolledWindow *) ptr; | |
6728 | dest = (wxEvtHandler *) src; | |
6729 | return (void *) dest; | |
6730 | } | |
6731 | ||
9416aa89 RD |
6732 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
6733 | wxScrolledWindow *src; | |
6734 | wxObject *dest; | |
6735 | src = (wxScrolledWindow *) ptr; | |
6736 | dest = (wxObject *) src; | |
6737 | return (void *) dest; | |
6738 | } | |
6739 | ||
8ab979d7 | 6740 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6741 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6742 | PyObject * _resultobj; |
6743 | wxScrolledWindow * _result; | |
6744 | wxWindow * _arg0; | |
1d99702e | 6745 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
6746 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6747 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 6748 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
137b5242 | 6749 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 6750 | PyObject * _argo0 = 0; |
2f90df85 RD |
6751 | wxPoint temp; |
6752 | PyObject * _obj2 = 0; | |
6753 | wxSize temp0; | |
6754 | PyObject * _obj3 = 0; | |
137b5242 | 6755 | PyObject * _obj5 = 0; |
efc5f224 | 6756 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6757 | char _ptemp[128]; |
6758 | ||
6759 | self = self; | |
137b5242 | 6760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 6761 | return NULL; |
1d99702e RD |
6762 | if (_argo0) { |
6763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
6766 | return NULL; | |
6767 | } | |
6768 | } | |
2f90df85 RD |
6769 | if (_obj2) |
6770 | { | |
6771 | _arg2 = &temp; | |
6772 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6773 | return NULL; |
2f90df85 RD |
6774 | } |
6775 | if (_obj3) | |
6776 | { | |
6777 | _arg3 = &temp0; | |
6778 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6779 | return NULL; |
137b5242 RD |
6780 | } |
6781 | if (_obj5) | |
6782 | { | |
6783 | _arg5 = wxString_in_helper(_obj5); | |
6784 | if (_arg5 == NULL) | |
6785 | return NULL; | |
2f90df85 | 6786 | } |
cf694132 | 6787 | { |
4268f798 | 6788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6789 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 6790 | |
4268f798 | 6791 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6792 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6793 | } if (_result) { |
6794 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6795 | _resultobj = Py_BuildValue("s",_ptemp); | |
6796 | } else { | |
6797 | Py_INCREF(Py_None); | |
6798 | _resultobj = Py_None; | |
6799 | } | |
137b5242 RD |
6800 | { |
6801 | if (_obj5) | |
6802 | delete _arg5; | |
6803 | } | |
8ab979d7 RD |
6804 | return _resultobj; |
6805 | } | |
6806 | ||
09f3d4e6 RD |
6807 | #define new_wxPreScrolledWindow() (new wxScrolledWindow()) |
6808 | static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6809 | PyObject * _resultobj; | |
6810 | wxScrolledWindow * _result; | |
6811 | char *_kwnames[] = { NULL }; | |
6812 | char _ptemp[128]; | |
6813 | ||
6814 | self = self; | |
6815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames)) | |
6816 | return NULL; | |
6817 | { | |
4268f798 | 6818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6819 | _result = (wxScrolledWindow *)new_wxPreScrolledWindow(); |
09f3d4e6 | 6820 | |
4268f798 | 6821 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6822 | if (PyErr_Occurred()) return NULL; |
6823 | } if (_result) { | |
6824 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6825 | _resultobj = Py_BuildValue("s",_ptemp); | |
6826 | } else { | |
6827 | Py_INCREF(Py_None); | |
6828 | _resultobj = Py_None; | |
6829 | } | |
6830 | return _resultobj; | |
6831 | } | |
6832 | ||
6833 | #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6834 | static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6835 | PyObject * _resultobj; | |
6836 | bool _result; | |
6837 | wxScrolledWindow * _arg0; | |
6838 | wxWindow * _arg1; | |
6839 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6840 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6841 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6842 | long _arg5 = (long ) wxHSCROLL|wxVSCROLL; | |
137b5242 | 6843 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
09f3d4e6 RD |
6844 | PyObject * _argo0 = 0; |
6845 | PyObject * _argo1 = 0; | |
6846 | wxPoint temp; | |
6847 | PyObject * _obj3 = 0; | |
6848 | wxSize temp0; | |
6849 | PyObject * _obj4 = 0; | |
137b5242 | 6850 | PyObject * _obj6 = 0; |
09f3d4e6 RD |
6851 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
6852 | ||
6853 | self = self; | |
137b5242 | 6854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
09f3d4e6 RD |
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_Create. Expected _wxScrolledWindow_p."); | |
6860 | return NULL; | |
6861 | } | |
6862 | } | |
6863 | if (_argo1) { | |
6864 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6865 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p."); | |
6867 | return NULL; | |
6868 | } | |
6869 | } | |
6870 | if (_obj3) | |
6871 | { | |
6872 | _arg3 = &temp; | |
6873 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6874 | return NULL; | |
6875 | } | |
6876 | if (_obj4) | |
6877 | { | |
6878 | _arg4 = &temp0; | |
6879 | if (! wxSize_helper(_obj4, &_arg4)) | |
6880 | return NULL; | |
137b5242 RD |
6881 | } |
6882 | if (_obj6) | |
6883 | { | |
6884 | _arg6 = wxString_in_helper(_obj6); | |
6885 | if (_arg6 == NULL) | |
6886 | return NULL; | |
09f3d4e6 RD |
6887 | } |
6888 | { | |
4268f798 | 6889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6890 | _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
09f3d4e6 | 6891 | |
4268f798 | 6892 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6893 | if (PyErr_Occurred()) return NULL; |
6894 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
6895 | { |
6896 | if (_obj6) | |
6897 | delete _arg6; | |
6898 | } | |
09f3d4e6 RD |
6899 | return _resultobj; |
6900 | } | |
6901 | ||
8ab979d7 | 6902 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) |
efc5f224 | 6903 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6904 | PyObject * _resultobj; |
6905 | wxScrolledWindow * _arg0; | |
6906 | bool _arg1; | |
6907 | bool _arg2; | |
1d99702e | 6908 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6909 | int tempbool1; |
6910 | int tempbool2; | |
efc5f224 | 6911 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
6912 | |
6913 | self = self; | |
efc5f224 | 6914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 6915 | return NULL; |
1d99702e RD |
6916 | if (_argo0) { |
6917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
6920 | return NULL; | |
6921 | } | |
6922 | } | |
6923 | _arg1 = (bool ) tempbool1; | |
6924 | _arg2 = (bool ) tempbool2; | |
cf694132 | 6925 | { |
4268f798 | 6926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6927 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); |
cf694132 | 6928 | |
4268f798 | 6929 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6930 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6931 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6932 | _resultobj = Py_None; |
6933 | return _resultobj; | |
6934 | } | |
6935 | ||
b7e72427 RD |
6936 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
6937 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6938 | PyObject * _resultobj; | |
6939 | int _result; | |
6940 | wxScrolledWindow * _arg0; | |
6941 | int _arg1; | |
6942 | PyObject * _argo0 = 0; | |
6943 | char *_kwnames[] = { "self","orient", NULL }; | |
6944 | ||
6945 | self = self; | |
6946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6947 | return NULL; | |
6948 | if (_argo0) { | |
6949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6952 | return NULL; | |
6953 | } | |
6954 | } | |
6955 | { | |
4268f798 | 6956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6957 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); |
b7e72427 | 6958 | |
4268f798 | 6959 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6960 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6961 | } _resultobj = Py_BuildValue("i",_result); |
6962 | return _resultobj; | |
6963 | } | |
6964 | ||
8ab979d7 | 6965 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 6966 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6967 | PyObject * _resultobj; |
6968 | wxScrolledWindow * _arg0; | |
6969 | int * _arg1; | |
6970 | int temp; | |
6971 | int * _arg2; | |
6972 | int temp0; | |
1d99702e | 6973 | PyObject * _argo0 = 0; |
efc5f224 | 6974 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6975 | |
6976 | self = self; | |
6977 | { | |
6978 | _arg1 = &temp; | |
6979 | } | |
6980 | { | |
6981 | _arg2 = &temp0; | |
6982 | } | |
efc5f224 | 6983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 6984 | return NULL; |
1d99702e RD |
6985 | if (_argo0) { |
6986 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6987 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
6989 | return NULL; | |
6990 | } | |
6991 | } | |
cf694132 | 6992 | { |
4268f798 | 6993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6994 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); |
cf694132 | 6995 | |
4268f798 | 6996 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6997 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6998 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6999 | _resultobj = Py_None; |
7000 | { | |
7001 | PyObject *o; | |
7002 | o = PyInt_FromLong((long) (*_arg1)); | |
7003 | _resultobj = t_output_helper(_resultobj, o); | |
7004 | } | |
7005 | { | |
7006 | PyObject *o; | |
7007 | o = PyInt_FromLong((long) (*_arg2)); | |
7008 | _resultobj = t_output_helper(_resultobj, o); | |
7009 | } | |
7010 | return _resultobj; | |
7011 | } | |
7012 | ||
b7e72427 RD |
7013 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
7014 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7015 | PyObject * _resultobj; | |
7016 | wxWindow * _result; | |
7017 | wxScrolledWindow * _arg0; | |
7018 | PyObject * _argo0 = 0; | |
7019 | char *_kwnames[] = { "self", NULL }; | |
b7e72427 RD |
7020 | |
7021 | self = self; | |
7022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
7023 | return NULL; | |
7024 | if (_argo0) { | |
7025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
7028 | return NULL; | |
7029 | } | |
7030 | } | |
7031 | { | |
4268f798 | 7032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7033 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); |
b7e72427 | 7034 | |
4268f798 | 7035 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7036 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7037 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b7e72427 RD |
7038 | return _resultobj; |
7039 | } | |
7040 | ||
8ab979d7 | 7041 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 7042 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7043 | PyObject * _resultobj; |
7044 | bool _result; | |
7045 | wxScrolledWindow * _arg0; | |
1d99702e | 7046 | PyObject * _argo0 = 0; |
efc5f224 | 7047 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7048 | |
7049 | self = self; | |
efc5f224 | 7050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 7051 | return NULL; |
1d99702e RD |
7052 | if (_argo0) { |
7053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
7056 | return NULL; | |
7057 | } | |
7058 | } | |
cf694132 | 7059 | { |
4268f798 | 7060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7061 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); |
cf694132 | 7062 | |
4268f798 | 7063 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7064 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7065 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7066 | return _resultobj; |
7067 | } | |
7068 | ||
7069 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 7070 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7071 | PyObject * _resultobj; |
7072 | wxScrolledWindow * _arg0; | |
7073 | wxDC * _arg1; | |
1d99702e RD |
7074 | PyObject * _argo0 = 0; |
7075 | PyObject * _argo1 = 0; | |
efc5f224 | 7076 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
7077 | |
7078 | self = self; | |
efc5f224 | 7079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7080 | return NULL; |
1d99702e RD |
7081 | if (_argo0) { |
7082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
7085 | return NULL; | |
7086 | } | |
7087 | } | |
1d99702e RD |
7088 | if (_argo1) { |
7089 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7090 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
7091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
7092 | return NULL; | |
7093 | } | |
7094 | } | |
cf694132 | 7095 | { |
4268f798 | 7096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7097 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); |
cf694132 | 7098 | |
4268f798 | 7099 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7100 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7101 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7102 | _resultobj = Py_None; |
7103 | return _resultobj; | |
7104 | } | |
7105 | ||
7106 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 7107 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7108 | PyObject * _resultobj; |
7109 | wxScrolledWindow * _arg0; | |
7110 | int _arg1; | |
7111 | int _arg2; | |
1d99702e | 7112 | PyObject * _argo0 = 0; |
efc5f224 | 7113 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7114 | |
7115 | self = self; | |
efc5f224 | 7116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7117 | return NULL; |
1d99702e RD |
7118 | if (_argo0) { |
7119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
7122 | return NULL; | |
7123 | } | |
7124 | } | |
cf694132 | 7125 | { |
4268f798 | 7126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7127 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); |
cf694132 | 7128 | |
4268f798 | 7129 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7130 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7131 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7132 | _resultobj = Py_None; |
7133 | return _resultobj; | |
7134 | } | |
7135 | ||
f6bcfd97 | 7136 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 7137 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7138 | PyObject * _resultobj; |
7139 | wxScrolledWindow * _arg0; | |
7140 | int _arg1; | |
7141 | int _arg2; | |
7142 | int _arg3; | |
7143 | int _arg4; | |
1d99702e RD |
7144 | int _arg5 = (int ) 0; |
7145 | int _arg6 = (int ) 0; | |
f6bcfd97 | 7146 | int _arg7 = (int ) FALSE; |
1d99702e | 7147 | PyObject * _argo0 = 0; |
f6bcfd97 | 7148 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
7149 | |
7150 | self = self; | |
f6bcfd97 | 7151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 7152 | return NULL; |
1d99702e RD |
7153 | if (_argo0) { |
7154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
7157 | return NULL; | |
7158 | } | |
7159 | } | |
cf694132 | 7160 | { |
4268f798 | 7161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7162 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 | 7163 | |
4268f798 | 7164 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7165 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7166 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7167 | _resultobj = Py_None; |
7168 | return _resultobj; | |
7169 | } | |
7170 | ||
b7e72427 RD |
7171 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
7172 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7173 | PyObject * _resultobj; | |
7174 | wxScrolledWindow * _arg0; | |
7175 | int _arg1; | |
7176 | int _arg2; | |
7177 | PyObject * _argo0 = 0; | |
7178 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
7179 | ||
7180 | self = self; | |
7181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7182 | return NULL; | |
7183 | if (_argo0) { | |
7184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
7187 | return NULL; | |
7188 | } | |
7189 | } | |
7190 | { | |
4268f798 | 7191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7192 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); |
b7e72427 | 7193 | |
4268f798 | 7194 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7195 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
7196 | } Py_INCREF(Py_None); |
7197 | _resultobj = Py_None; | |
7198 | return _resultobj; | |
7199 | } | |
7200 | ||
eb715945 RD |
7201 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
7202 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7203 | PyObject * _resultobj; | |
7204 | wxScrolledWindow * _arg0; | |
7205 | wxWindow * _arg1; | |
7206 | PyObject * _argo0 = 0; | |
7207 | PyObject * _argo1 = 0; | |
7208 | char *_kwnames[] = { "self","window", NULL }; | |
7209 | ||
7210 | self = self; | |
7211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
7212 | return NULL; | |
7213 | if (_argo0) { | |
7214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
7217 | return NULL; | |
7218 | } | |
7219 | } | |
7220 | if (_argo1) { | |
7221 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7222 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
7224 | return NULL; | |
7225 | } | |
7226 | } | |
7227 | { | |
4268f798 | 7228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7229 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); |
eb715945 | 7230 | |
4268f798 | 7231 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7232 | if (PyErr_Occurred()) return NULL; |
eb715945 RD |
7233 | } Py_INCREF(Py_None); |
7234 | _resultobj = Py_None; | |
7235 | return _resultobj; | |
7236 | } | |
7237 | ||
4c9993c3 RD |
7238 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
7239 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7240 | PyObject * _resultobj; | |
7241 | wxScrolledWindow * _arg0; | |
7242 | int * _arg1; | |
7243 | int temp; | |
7244 | int * _arg2; | |
7245 | int temp0; | |
7246 | PyObject * _argo0 = 0; | |
7247 | char *_kwnames[] = { "self", NULL }; | |
7248 | ||
7249 | self = self; | |
7250 | { | |
7251 | _arg1 = &temp; | |
7252 | } | |
7253 | { | |
7254 | _arg2 = &temp0; | |
7255 | } | |
7256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
7257 | return NULL; | |
7258 | if (_argo0) { | |
7259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
7262 | return NULL; | |
7263 | } | |
7264 | } | |
7265 | { | |
4268f798 | 7266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7267 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); |
4c9993c3 | 7268 | |
4268f798 | 7269 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7270 | if (PyErr_Occurred()) return NULL; |
4c9993c3 RD |
7271 | } Py_INCREF(Py_None); |
7272 | _resultobj = Py_None; | |
7273 | { | |
7274 | PyObject *o; | |
7275 | o = PyInt_FromLong((long) (*_arg1)); | |
7276 | _resultobj = t_output_helper(_resultobj, o); | |
7277 | } | |
7278 | { | |
7279 | PyObject *o; | |
7280 | o = PyInt_FromLong((long) (*_arg2)); | |
7281 | _resultobj = t_output_helper(_resultobj, o); | |
7282 | } | |
7283 | return _resultobj; | |
7284 | } | |
7285 | ||
e9159fe8 RD |
7286 | #define wxScrolledWindow_CalcScrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcScrolledPosition(_swigarg0)) |
7287 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7288 | PyObject * _resultobj; | |
7289 | wxPoint * _result; | |
7290 | wxScrolledWindow * _arg0; | |
7291 | wxPoint * _arg1; | |
7292 | PyObject * _argo0 = 0; | |
7293 | wxPoint temp; | |
7294 | PyObject * _obj1 = 0; | |
7295 | char *_kwnames[] = { "self","pt", NULL }; | |
7296 | char _ptemp[128]; | |
7297 | ||
7298 | self = self; | |
7299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcScrolledPosition1",_kwnames,&_argo0,&_obj1)) | |
7300 | return NULL; | |
7301 | if (_argo0) { | |
7302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition1. Expected _wxScrolledWindow_p."); | |
7305 | return NULL; | |
7306 | } | |
7307 | } | |
7308 | { | |
7309 | _arg1 = &temp; | |
7310 | if (! wxPoint_helper(_obj1, &_arg1)) | |
7311 | return NULL; | |
7312 | } | |
7313 | { | |
7314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7315 | _result = new wxPoint (wxScrolledWindow_CalcScrolledPosition1(_arg0,*_arg1)); | |
7316 | ||
7317 | wxPyEndAllowThreads(__tstate); | |
7318 | if (PyErr_Occurred()) return NULL; | |
7319 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
7320 | _resultobj = Py_BuildValue("s",_ptemp); | |
7321 | return _resultobj; | |
7322 | } | |
7323 | ||
7324 | #define wxScrolledWindow_CalcScrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7325 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d8bd15f RD |
7326 | PyObject * _resultobj; |
7327 | wxScrolledWindow * _arg0; | |
7328 | int _arg1; | |
7329 | int _arg2; | |
7330 | int * _arg3; | |
7331 | int temp; | |
7332 | int * _arg4; | |
7333 | int temp0; | |
7334 | PyObject * _argo0 = 0; | |
7335 | char *_kwnames[] = { "self","x","y", NULL }; | |
7336 | ||
7337 | self = self; | |
7338 | { | |
7339 | _arg3 = &temp; | |
7340 | } | |
7341 | { | |
7342 | _arg4 = &temp0; | |
7343 | } | |
e9159fe8 | 7344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) |
9d8bd15f RD |
7345 | return NULL; |
7346 | if (_argo0) { | |
7347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
e9159fe8 | 7349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition2. Expected _wxScrolledWindow_p."); |
9d8bd15f RD |
7350 | return NULL; |
7351 | } | |
7352 | } | |
7353 | { | |
4268f798 | 7354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 7355 | wxScrolledWindow_CalcScrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d8bd15f | 7356 | |
4268f798 | 7357 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7358 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
7359 | } Py_INCREF(Py_None); |
7360 | _resultobj = Py_None; | |
7361 | { | |
7362 | PyObject *o; | |
7363 | o = PyInt_FromLong((long) (*_arg3)); | |
7364 | _resultobj = t_output_helper(_resultobj, o); | |
7365 | } | |
7366 | { | |
7367 | PyObject *o; | |
7368 | o = PyInt_FromLong((long) (*_arg4)); | |
7369 | _resultobj = t_output_helper(_resultobj, o); | |
7370 | } | |
7371 | return _resultobj; | |
7372 | } | |
7373 | ||
e9159fe8 RD |
7374 | #define wxScrolledWindow_CalcUnscrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcUnscrolledPosition(_swigarg0)) |
7375 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7376 | PyObject * _resultobj; | |
7377 | wxPoint * _result; | |
7378 | wxScrolledWindow * _arg0; | |
7379 | wxPoint * _arg1; | |
7380 | PyObject * _argo0 = 0; | |
7381 | wxPoint temp; | |
7382 | PyObject * _obj1 = 0; | |
7383 | char *_kwnames[] = { "self","pt", NULL }; | |
7384 | char _ptemp[128]; | |
7385 | ||
7386 | self = self; | |
7387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcUnscrolledPosition1",_kwnames,&_argo0,&_obj1)) | |
7388 | return NULL; | |
7389 | if (_argo0) { | |
7390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition1. Expected _wxScrolledWindow_p."); | |
7393 | return NULL; | |
7394 | } | |
7395 | } | |
7396 | { | |
7397 | _arg1 = &temp; | |
7398 | if (! wxPoint_helper(_obj1, &_arg1)) | |
7399 | return NULL; | |
7400 | } | |
7401 | { | |
7402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7403 | _result = new wxPoint (wxScrolledWindow_CalcUnscrolledPosition1(_arg0,*_arg1)); | |
7404 | ||
7405 | wxPyEndAllowThreads(__tstate); | |
7406 | if (PyErr_Occurred()) return NULL; | |
7407 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
7408 | _resultobj = Py_BuildValue("s",_ptemp); | |
7409 | return _resultobj; | |
7410 | } | |
7411 | ||
7412 | #define wxScrolledWindow_CalcUnscrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7413 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d8bd15f RD |
7414 | PyObject * _resultobj; |
7415 | wxScrolledWindow * _arg0; | |
7416 | int _arg1; | |
7417 | int _arg2; | |
7418 | int * _arg3; | |
7419 | int temp; | |
7420 | int * _arg4; | |
7421 | int temp0; | |
7422 | PyObject * _argo0 = 0; | |
7423 | char *_kwnames[] = { "self","x","y", NULL }; | |
7424 | ||
7425 | self = self; | |
7426 | { | |
7427 | _arg3 = &temp; | |
7428 | } | |
7429 | { | |
7430 | _arg4 = &temp0; | |
7431 | } | |
e9159fe8 | 7432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) |
9d8bd15f RD |
7433 | return NULL; |
7434 | if (_argo0) { | |
7435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
e9159fe8 | 7437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition2. Expected _wxScrolledWindow_p."); |
9d8bd15f RD |
7438 | return NULL; |
7439 | } | |
7440 | } | |
7441 | { | |
4268f798 | 7442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 7443 | wxScrolledWindow_CalcUnscrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d8bd15f | 7444 | |
4268f798 | 7445 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7446 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
7447 | } Py_INCREF(Py_None); |
7448 | _resultobj = Py_None; | |
7449 | { | |
7450 | PyObject *o; | |
7451 | o = PyInt_FromLong((long) (*_arg3)); | |
7452 | _resultobj = t_output_helper(_resultobj, o); | |
7453 | } | |
7454 | { | |
7455 | PyObject *o; | |
7456 | o = PyInt_FromLong((long) (*_arg4)); | |
7457 | _resultobj = t_output_helper(_resultobj, o); | |
7458 | } | |
7459 | return _resultobj; | |
7460 | } | |
7461 | ||
d1679124 RD |
7462 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
7463 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7464 | PyObject * _resultobj; | |
7465 | wxScrolledWindow * _arg0; | |
7466 | double _arg1; | |
7467 | double _arg2; | |
7468 | PyObject * _argo0 = 0; | |
7469 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
7470 | ||
7471 | self = self; | |
7472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7473 | return NULL; | |
7474 | if (_argo0) { | |
7475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
7478 | return NULL; | |
7479 | } | |
7480 | } | |
7481 | { | |
4268f798 | 7482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7483 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); |
d1679124 | 7484 | |
4268f798 | 7485 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7486 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
7487 | } Py_INCREF(Py_None); |
7488 | _resultobj = Py_None; | |
7489 | return _resultobj; | |
7490 | } | |
7491 | ||
7492 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
7493 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7494 | PyObject * _resultobj; | |
7495 | double _result; | |
7496 | wxScrolledWindow * _arg0; | |
7497 | PyObject * _argo0 = 0; | |
7498 | char *_kwnames[] = { "self", NULL }; | |
7499 | ||
7500 | self = self; | |
7501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
7502 | return NULL; | |
7503 | if (_argo0) { | |
7504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
7507 | return NULL; | |
7508 | } | |
7509 | } | |
7510 | { | |
4268f798 | 7511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 RD |
7512 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); |
7513 | ||
7514 | wxPyEndAllowThreads(__tstate); | |
7515 | if (PyErr_Occurred()) return NULL; | |
7516 | } _resultobj = Py_BuildValue("d",_result); | |
7517 | return _resultobj; | |
7518 | } | |
7519 | ||
7520 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
7521 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7522 | PyObject * _resultobj; | |
7523 | double _result; | |
7524 | wxScrolledWindow * _arg0; | |
7525 | PyObject * _argo0 = 0; | |
7526 | char *_kwnames[] = { "self", NULL }; | |
7527 | ||
7528 | self = self; | |
7529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
7530 | return NULL; | |
7531 | if (_argo0) { | |
7532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
7535 | return NULL; | |
7536 | } | |
7537 | } | |
7538 | { | |
7539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7540 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); | |
7541 | ||
7542 | wxPyEndAllowThreads(__tstate); | |
7543 | if (PyErr_Occurred()) return NULL; | |
7544 | } _resultobj = Py_BuildValue("d",_result); | |
7545 | return _resultobj; | |
7546 | } | |
7547 | ||
7548 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
7549 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7550 | PyObject * _resultobj; | |
7551 | wxScrolledWindow * _arg0; | |
7552 | PyObject * _argo0 = 0; | |
7553 | char *_kwnames[] = { "self", NULL }; | |
7554 | ||
7555 | self = self; | |
7556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
7557 | return NULL; | |
7558 | if (_argo0) { | |
7559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
7562 | return NULL; | |
7563 | } | |
7564 | } | |
7565 | { | |
7566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7567 | wxScrolledWindow_AdjustScrollbars(_arg0); | |
7568 | ||
7569 | wxPyEndAllowThreads(__tstate); | |
7570 | if (PyErr_Occurred()) return NULL; | |
7571 | } Py_INCREF(Py_None); | |
7572 | _resultobj = Py_None; | |
7573 | return _resultobj; | |
7574 | } | |
7575 | ||
7576 | #define wxScrolledWindow_Layout(_swigobj) (_swigobj->Layout()) | |
7577 | static PyObject *_wrap_wxScrolledWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7578 | PyObject * _resultobj; | |
7579 | bool _result; | |
7580 | wxScrolledWindow * _arg0; | |
7581 | PyObject * _argo0 = 0; | |
7582 | char *_kwnames[] = { "self", NULL }; | |
7583 | ||
7584 | self = self; | |
7585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_Layout",_kwnames,&_argo0)) | |
7586 | return NULL; | |
7587 | if (_argo0) { | |
7588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Layout. Expected _wxScrolledWindow_p."); | |
7591 | return NULL; | |
7592 | } | |
7593 | } | |
7594 | { | |
7595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7596 | _result = (bool )wxScrolledWindow_Layout(_arg0); | |
7597 | ||
7598 | wxPyEndAllowThreads(__tstate); | |
7599 | if (PyErr_Occurred()) return NULL; | |
7600 | } _resultobj = Py_BuildValue("i",_result); | |
7601 | return _resultobj; | |
7602 | } | |
7603 | ||
2a74d141 RD |
7604 | #define wxScrolledWindow_SetScrollRate(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollRate(_swigarg0,_swigarg1)) |
7605 | static PyObject *_wrap_wxScrolledWindow_SetScrollRate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7606 | PyObject * _resultobj; | |
7607 | wxScrolledWindow * _arg0; | |
7608 | int _arg1; | |
7609 | int _arg2; | |
7610 | PyObject * _argo0 = 0; | |
7611 | char *_kwnames[] = { "self","xstep","ystep", NULL }; | |
7612 | ||
7613 | self = self; | |
7614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollRate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7615 | return NULL; | |
7616 | if (_argo0) { | |
7617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollRate. Expected _wxScrolledWindow_p."); | |
7620 | return NULL; | |
7621 | } | |
7622 | } | |
7623 | { | |
7624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7625 | wxScrolledWindow_SetScrollRate(_arg0,_arg1,_arg2); | |
7626 | ||
7627 | wxPyEndAllowThreads(__tstate); | |
7628 | if (PyErr_Occurred()) return NULL; | |
7629 | } Py_INCREF(Py_None); | |
7630 | _resultobj = Py_None; | |
7631 | return _resultobj; | |
7632 | } | |
7633 | ||
e9159fe8 RD |
7634 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
7635 | wxMenu *src; | |
7636 | wxEvtHandler *dest; | |
7637 | src = (wxMenu *) ptr; | |
7638 | dest = (wxEvtHandler *) src; | |
7639 | return (void *) dest; | |
7640 | } | |
7641 | ||
7642 | static void *SwigwxMenuTowxObject(void *ptr) { | |
7643 | wxMenu *src; | |
7644 | wxObject *dest; | |
7645 | src = (wxMenu *) ptr; | |
7646 | dest = (wxObject *) src; | |
7647 | return (void *) dest; | |
7648 | } | |
7649 | ||
7650 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) | |
7651 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7652 | PyObject * _resultobj; | |
7653 | wxMenu * _result; | |
137b5242 | 7654 | wxString * _arg0 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
7655 | long _arg1 = (long ) 0; |
7656 | PyObject * _obj0 = 0; | |
7657 | char *_kwnames[] = { "title","style", NULL }; | |
7658 | char _ptemp[128]; | |
7659 | ||
7660 | self = self; | |
7661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) | |
7662 | return NULL; | |
7663 | if (_obj0) | |
7664 | { | |
7665 | _arg0 = wxString_in_helper(_obj0); | |
7666 | if (_arg0 == NULL) | |
7667 | return NULL; | |
7668 | } | |
7669 | { | |
7670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7671 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); | |
7672 | ||
7673 | wxPyEndAllowThreads(__tstate); | |
7674 | if (PyErr_Occurred()) return NULL; | |
7675 | } if (_result) { | |
7676 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7677 | _resultobj = Py_BuildValue("s",_ptemp); | |
7678 | } else { | |
7679 | Py_INCREF(Py_None); | |
7680 | _resultobj = Py_None; | |
7681 | } | |
7682 | { | |
7683 | if (_obj0) | |
7684 | delete _arg0; | |
7685 | } | |
7686 | return _resultobj; | |
7687 | } | |
7688 | ||
7689 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7690 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7691 | PyObject * _resultobj; | |
7692 | wxMenu * _arg0; | |
7693 | int _arg1; | |
7694 | wxString * _arg2; | |
137b5242 | 7695 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
546bfbea | 7696 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
e9159fe8 RD |
7697 | PyObject * _argo0 = 0; |
7698 | PyObject * _obj2 = 0; | |
7699 | PyObject * _obj3 = 0; | |
7700 | char *_kwnames[] = { "self","id","item","helpString","kind", NULL }; | |
7701 | ||
7702 | self = self; | |
7703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
7704 | return NULL; | |
7705 | if (_argo0) { | |
7706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); | |
7709 | return NULL; | |
7710 | } | |
7711 | } | |
7712 | { | |
7713 | _arg2 = wxString_in_helper(_obj2); | |
7714 | if (_arg2 == NULL) | |
7715 | return NULL; | |
7716 | } | |
7717 | if (_obj3) | |
7718 | { | |
7719 | _arg3 = wxString_in_helper(_obj3); | |
7720 | if (_arg3 == NULL) | |
7721 | return NULL; | |
7722 | } | |
7723 | { | |
7724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7725 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
7726 | ||
7727 | wxPyEndAllowThreads(__tstate); | |
7728 | if (PyErr_Occurred()) return NULL; | |
7729 | } Py_INCREF(Py_None); | |
7730 | _resultobj = Py_None; | |
7731 | { | |
7732 | if (_obj2) | |
7733 | delete _arg2; | |
7734 | } | |
7735 | { | |
7736 | if (_obj3) | |
7737 | delete _arg3; | |
7738 | } | |
7739 | return _resultobj; | |
7740 | } | |
7741 | ||
7742 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7743 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7744 | PyObject * _resultobj; | |
7745 | wxMenu * _arg0; | |
7746 | int _arg1; | |
7747 | wxString * _arg2; | |
7748 | wxMenu * _arg3; | |
137b5242 | 7749 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
7750 | PyObject * _argo0 = 0; |
7751 | PyObject * _obj2 = 0; | |
7752 | PyObject * _argo3 = 0; | |
7753 | PyObject * _obj4 = 0; | |
7754 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; | |
7755 | ||
7756 | self = self; | |
7757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) | |
7758 | return NULL; | |
7759 | if (_argo0) { | |
7760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
7763 | return NULL; | |
7764 | } | |
7765 | } | |
7766 | { | |
7767 | _arg2 = wxString_in_helper(_obj2); | |
7768 | if (_arg2 == NULL) | |
7769 | return NULL; | |
7770 | } | |
7771 | if (_argo3) { | |
7772 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7773 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
7774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
7775 | return NULL; | |
7776 | } | |
7777 | } | |
7778 | if (_obj4) | |
7779 | { | |
7780 | _arg4 = wxString_in_helper(_obj4); | |
7781 | if (_arg4 == NULL) | |
7782 | return NULL; | |
7783 | } | |
7784 | { | |
7785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7786 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
7787 | ||
7788 | wxPyEndAllowThreads(__tstate); | |
7789 | if (PyErr_Occurred()) return NULL; | |
7790 | } Py_INCREF(Py_None); | |
7791 | _resultobj = Py_None; | |
7792 | { | |
7793 | if (_obj2) | |
7794 | delete _arg2; | |
7795 | } | |
7796 | { | |
7797 | if (_obj4) | |
7798 | delete _arg4; | |
7799 | } | |
7800 | return _resultobj; | |
7801 | } | |
7802 | ||
7803 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
7804 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7805 | PyObject * _resultobj; | |
7806 | wxMenu * _arg0; | |
7807 | wxMenuItem * _arg1; | |
7808 | PyObject * _argo0 = 0; | |
7809 | PyObject * _argo1 = 0; | |
7810 | char *_kwnames[] = { "self","item", NULL }; | |
7811 | ||
7812 | self = self; | |
7813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) | |
7814 | return NULL; | |
7815 | if (_argo0) { | |
7816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); | |
7819 | return NULL; | |
7820 | } | |
7821 | } | |
7822 | if (_argo1) { | |
7823 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7824 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); | |
7826 | return NULL; | |
7827 | } | |
7828 | } | |
7829 | { | |
7830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7831 | wxMenu_AppendItem(_arg0,_arg1); | |
7832 | ||
7833 | wxPyEndAllowThreads(__tstate); | |
7834 | if (PyErr_Occurred()) return NULL; | |
7835 | } Py_INCREF(Py_None); | |
7836 | _resultobj = Py_None; | |
7837 | return _resultobj; | |
7838 | } | |
7839 | ||
7840 | #define wxMenu_AppendCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendCheckItem(_swigarg0,_swigarg1,_swigarg2)) | |
7841 | static PyObject *_wrap_wxMenu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7842 | PyObject * _resultobj; | |
7843 | wxMenu * _arg0; | |
7844 | int _arg1; | |
7845 | wxString * _arg2; | |
137b5242 | 7846 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
7847 | PyObject * _argo0 = 0; |
7848 | PyObject * _obj2 = 0; | |
7849 | PyObject * _obj3 = 0; | |
7850 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
7851 | ||
7852 | self = self; | |
7853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) | |
7854 | return NULL; | |
7855 | if (_argo0) { | |
7856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendCheckItem. Expected _wxMenu_p."); | |
7859 | return NULL; | |
7860 | } | |
7861 | } | |
7862 | { | |
7863 | _arg2 = wxString_in_helper(_obj2); | |
7864 | if (_arg2 == NULL) | |
7865 | return NULL; | |
7866 | } | |
7867 | if (_obj3) | |
7868 | { | |
7869 | _arg3 = wxString_in_helper(_obj3); | |
7870 | if (_arg3 == NULL) | |
7871 | return NULL; | |
7872 | } | |
7873 | { | |
7874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7875 | wxMenu_AppendCheckItem(_arg0,_arg1,*_arg2,*_arg3); | |
7876 | ||
7877 | wxPyEndAllowThreads(__tstate); | |
7878 | if (PyErr_Occurred()) return NULL; | |
7879 | } Py_INCREF(Py_None); | |
7880 | _resultobj = Py_None; | |
7881 | { | |
7882 | if (_obj2) | |
7883 | delete _arg2; | |
7884 | } | |
7885 | { | |
7886 | if (_obj3) | |
7887 | delete _arg3; | |
7888 | } | |
7889 | return _resultobj; | |
7890 | } | |
7891 | ||
7892 | #define wxMenu_AppendRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendRadioItem(_swigarg0,_swigarg1,_swigarg2)) | |
7893 | static PyObject *_wrap_wxMenu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7894 | PyObject * _resultobj; | |
7895 | wxMenu * _arg0; | |
7896 | int _arg1; | |
7897 | wxString * _arg2; | |
137b5242 | 7898 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
7899 | PyObject * _argo0 = 0; |
7900 | PyObject * _obj2 = 0; | |
7901 | PyObject * _obj3 = 0; | |
7902 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
7903 | ||
7904 | self = self; | |
7905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) | |
7906 | return NULL; | |
7907 | if (_argo0) { | |
7908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendRadioItem. Expected _wxMenu_p."); | |
7911 | return NULL; | |
7912 | } | |
7913 | } | |
7914 | { | |
7915 | _arg2 = wxString_in_helper(_obj2); | |
7916 | if (_arg2 == NULL) | |
7917 | return NULL; | |
7918 | } | |
7919 | if (_obj3) | |
7920 | { | |
7921 | _arg3 = wxString_in_helper(_obj3); | |
7922 | if (_arg3 == NULL) | |
7923 | return NULL; | |
7924 | } | |
7925 | { | |
7926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7927 | wxMenu_AppendRadioItem(_arg0,_arg1,*_arg2,*_arg3); | |
7928 | ||
7929 | wxPyEndAllowThreads(__tstate); | |
7930 | if (PyErr_Occurred()) return NULL; | |
7931 | } Py_INCREF(Py_None); | |
7932 | _resultobj = Py_None; | |
7933 | { | |
7934 | if (_obj2) | |
7935 | delete _arg2; | |
7936 | } | |
7937 | { | |
7938 | if (_obj3) | |
7939 | delete _arg3; | |
7940 | } | |
7941 | return _resultobj; | |
7942 | } | |
7943 | ||
7944 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) | |
7945 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7946 | PyObject * _resultobj; | |
7947 | wxMenu * _arg0; | |
7948 | PyObject * _argo0 = 0; | |
7949 | char *_kwnames[] = { "self", NULL }; | |
7950 | ||
7951 | self = self; | |
7952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) | |
7953 | return NULL; | |
7954 | if (_argo0) { | |
7955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); | |
7958 | return NULL; | |
7959 | } | |
7960 | } | |
7961 | { | |
7962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7963 | wxMenu_AppendSeparator(_arg0); | |
7964 | ||
7965 | wxPyEndAllowThreads(__tstate); | |
7966 | if (PyErr_Occurred()) return NULL; | |
7967 | } Py_INCREF(Py_None); | |
7968 | _resultobj = Py_None; | |
7969 | return _resultobj; | |
7970 | } | |
7971 | ||
7972 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
7973 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7974 | PyObject * _resultobj; | |
7975 | wxMenu * _arg0; | |
7976 | size_t _arg1; | |
7977 | int _arg2; | |
7978 | wxString * _arg3; | |
137b5242 | 7979 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
546bfbea | 7980 | wxItemKind _arg5 = (wxItemKind ) wxITEM_NORMAL; |
e9159fe8 RD |
7981 | PyObject * _argo0 = 0; |
7982 | PyObject * _obj3 = 0; | |
7983 | PyObject * _obj4 = 0; | |
7984 | char *_kwnames[] = { "self","pos","id","text","help","kind", NULL }; | |
7985 | ||
7986 | self = self; | |
7987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|Oi:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
7988 | return NULL; | |
7989 | if (_argo0) { | |
7990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); | |
7993 | return NULL; | |
7994 | } | |
7995 | } | |
7996 | { | |
7997 | _arg3 = wxString_in_helper(_obj3); | |
7998 | if (_arg3 == NULL) | |
7999 | return NULL; | |
8000 | } | |
8001 | if (_obj4) | |
8002 | { | |
8003 | _arg4 = wxString_in_helper(_obj4); | |
8004 | if (_arg4 == NULL) | |
8005 | return NULL; | |
8006 | } | |
8007 | { | |
8008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8009 | wxMenu_Insert(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); | |
8010 | ||
8011 | wxPyEndAllowThreads(__tstate); | |
8012 | if (PyErr_Occurred()) return NULL; | |
8013 | } Py_INCREF(Py_None); | |
8014 | _resultobj = Py_None; | |
8015 | { | |
8016 | if (_obj3) | |
8017 | delete _arg3; | |
8018 | } | |
8019 | { | |
8020 | if (_obj4) | |
8021 | delete _arg4; | |
8022 | } | |
8023 | return _resultobj; | |
8024 | } | |
8025 | ||
8026 | #define wxMenu_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0)) | |
8027 | static PyObject *_wrap_wxMenu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8028 | PyObject * _resultobj; | |
8029 | wxMenu * _arg0; | |
8030 | size_t _arg1; | |
8031 | PyObject * _argo0 = 0; | |
8032 | char *_kwnames[] = { "self","pos", NULL }; | |
8033 | ||
8034 | self = self; | |
8035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_InsertSeparator",_kwnames,&_argo0,&_arg1)) | |
8036 | return NULL; | |
8037 | if (_argo0) { | |
8038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertSeparator. Expected _wxMenu_p."); | |
8041 | return NULL; | |
8042 | } | |
8043 | } | |
8044 | { | |
8045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8046 | wxMenu_InsertSeparator(_arg0,_arg1); | |
8047 | ||
8048 | wxPyEndAllowThreads(__tstate); | |
8049 | if (PyErr_Occurred()) return NULL; | |
8050 | } Py_INCREF(Py_None); | |
8051 | _resultobj = Py_None; | |
8052 | return _resultobj; | |
8053 | } | |
8054 | ||
8055 | #define wxMenu_InsertCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertCheckItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8056 | static PyObject *_wrap_wxMenu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8057 | PyObject * _resultobj; | |
8058 | wxMenu * _arg0; | |
8059 | size_t _arg1; | |
8060 | int _arg2; | |
8061 | wxString * _arg3; | |
137b5242 | 8062 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
8063 | PyObject * _argo0 = 0; |
8064 | PyObject * _obj3 = 0; | |
8065 | PyObject * _obj4 = 0; | |
8066 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; | |
8067 | ||
8068 | self = self; | |
8069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertCheckItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) | |
8070 | return NULL; | |
8071 | if (_argo0) { | |
8072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertCheckItem. Expected _wxMenu_p."); | |
8075 | return NULL; | |
8076 | } | |
8077 | } | |
8078 | { | |
8079 | _arg3 = wxString_in_helper(_obj3); | |
8080 | if (_arg3 == NULL) | |
8081 | return NULL; | |
8082 | } | |
8083 | if (_obj4) | |
8084 | { | |
8085 | _arg4 = wxString_in_helper(_obj4); | |
8086 | if (_arg4 == NULL) | |
8087 | return NULL; | |
8088 | } | |
8089 | { | |
8090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8091 | wxMenu_InsertCheckItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
8092 | ||
8093 | wxPyEndAllowThreads(__tstate); | |
8094 | if (PyErr_Occurred()) return NULL; | |
8095 | } Py_INCREF(Py_None); | |
8096 | _resultobj = Py_None; | |
8097 | { | |
8098 | if (_obj3) | |
8099 | delete _arg3; | |
8100 | } | |
8101 | { | |
8102 | if (_obj4) | |
8103 | delete _arg4; | |
8104 | } | |
8105 | return _resultobj; | |
8106 | } | |
8107 | ||
8108 | #define wxMenu_InsertRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertRadioItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8109 | static PyObject *_wrap_wxMenu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8110 | PyObject * _resultobj; | |
8111 | wxMenu * _arg0; | |
8112 | size_t _arg1; | |
8113 | int _arg2; | |
8114 | wxString * _arg3; | |
137b5242 | 8115 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
8116 | PyObject * _argo0 = 0; |
8117 | PyObject * _obj3 = 0; | |
8118 | PyObject * _obj4 = 0; | |
8119 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; | |
8120 | ||
8121 | self = self; | |
8122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertRadioItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) | |
8123 | return NULL; | |
8124 | if (_argo0) { | |
8125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertRadioItem. Expected _wxMenu_p."); | |
8128 | return NULL; | |
8129 | } | |
8130 | } | |
8131 | { | |
8132 | _arg3 = wxString_in_helper(_obj3); | |
8133 | if (_arg3 == NULL) | |
8134 | return NULL; | |
8135 | } | |
8136 | if (_obj4) | |
8137 | { | |
8138 | _arg4 = wxString_in_helper(_obj4); | |
8139 | if (_arg4 == NULL) | |
8140 | return NULL; | |
8141 | } | |
8142 | { | |
8143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8144 | wxMenu_InsertRadioItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
8145 | ||
8146 | wxPyEndAllowThreads(__tstate); | |
8147 | if (PyErr_Occurred()) return NULL; | |
8148 | } Py_INCREF(Py_None); | |
8149 | _resultobj = Py_None; | |
8150 | { | |
8151 | if (_obj3) | |
8152 | delete _arg3; | |
8153 | } | |
8154 | { | |
8155 | if (_obj4) | |
8156 | delete _arg4; | |
8157 | } | |
8158 | return _resultobj; | |
8159 | } | |
8160 | ||
8161 | #define wxMenu_InsertMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
8162 | static PyObject *_wrap_wxMenu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8163 | PyObject * _resultobj; | |
8164 | wxMenu * _arg0; | |
8165 | size_t _arg1; | |
8166 | int _arg2; | |
8167 | wxString * _arg3; | |
8168 | wxMenu * _arg4; | |
137b5242 | 8169 | wxString * _arg5 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
8170 | PyObject * _argo0 = 0; |
8171 | PyObject * _obj3 = 0; | |
8172 | PyObject * _argo4 = 0; | |
8173 | PyObject * _obj5 = 0; | |
8174 | char *_kwnames[] = { "self","pos","id","text","submenu","help", NULL }; | |
8175 | ||
8176 | self = self; | |
8177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOO|O:wxMenu_InsertMenu",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_argo4,&_obj5)) | |
8178 | return NULL; | |
8179 | if (_argo0) { | |
8180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertMenu. Expected _wxMenu_p."); | |
8183 | return NULL; | |
8184 | } | |
8185 | } | |
8186 | { | |
8187 | _arg3 = wxString_in_helper(_obj3); | |
8188 | if (_arg3 == NULL) | |
8189 | return NULL; | |
8190 | } | |
8191 | if (_argo4) { | |
8192 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8193 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxMenu_p")) { | |
8194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxMenu_InsertMenu. Expected _wxMenu_p."); | |
8195 | return NULL; | |
8196 | } | |
8197 | } | |
8198 | if (_obj5) | |
8199 | { | |
8200 | _arg5 = wxString_in_helper(_obj5); | |
8201 | if (_arg5 == NULL) | |
8202 | return NULL; | |
8203 | } | |
8204 | { | |
8205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8206 | wxMenu_InsertMenu(_arg0,_arg1,_arg2,*_arg3,_arg4,*_arg5); | |
d1679124 | 8207 | |
4268f798 | 8208 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8209 | if (PyErr_Occurred()) return NULL; |
e9159fe8 RD |
8210 | } Py_INCREF(Py_None); |
8211 | _resultobj = Py_None; | |
8212 | { | |
8213 | if (_obj3) | |
8214 | delete _arg3; | |
8215 | } | |
8216 | { | |
8217 | if (_obj5) | |
8218 | delete _arg5; | |
8219 | } | |
d1679124 RD |
8220 | return _resultobj; |
8221 | } | |
8222 | ||
e9159fe8 RD |
8223 | #define wxMenu_InsertItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
8224 | static PyObject *_wrap_wxMenu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d1679124 | 8225 | PyObject * _resultobj; |
e9159fe8 RD |
8226 | bool _result; |
8227 | wxMenu * _arg0; | |
8228 | size_t _arg1; | |
8229 | wxMenuItem * _arg2; | |
d1679124 | 8230 | PyObject * _argo0 = 0; |
e9159fe8 RD |
8231 | PyObject * _argo2 = 0; |
8232 | char *_kwnames[] = { "self","pos","item", NULL }; | |
d1679124 RD |
8233 | |
8234 | self = self; | |
e9159fe8 | 8235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_InsertItem",_kwnames,&_argo0,&_arg1,&_argo2)) |
d1679124 RD |
8236 | return NULL; |
8237 | if (_argo0) { | |
8238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
e9159fe8 RD |
8239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertItem. Expected _wxMenu_p."); | |
8241 | return NULL; | |
8242 | } | |
8243 | } | |
8244 | if (_argo2) { | |
8245 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8246 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
8247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_InsertItem. Expected _wxMenuItem_p."); | |
d1679124 RD |
8248 | return NULL; |
8249 | } | |
8250 | } | |
8251 | { | |
4268f798 | 8252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8253 | _result = (bool )wxMenu_InsertItem(_arg0,_arg1,_arg2); |
d1679124 | 8254 | |
4268f798 | 8255 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8256 | if (PyErr_Occurred()) return NULL; |
e9159fe8 | 8257 | } _resultobj = Py_BuildValue("i",_result); |
d1679124 RD |
8258 | return _resultobj; |
8259 | } | |
8260 | ||
e9159fe8 RD |
8261 | #define wxMenu_Prepend(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8262 | static PyObject *_wrap_wxMenu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d1679124 | 8263 | PyObject * _resultobj; |
e9159fe8 RD |
8264 | wxMenu * _arg0; |
8265 | int _arg1; | |
8266 | wxString * _arg2; | |
137b5242 | 8267 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
546bfbea | 8268 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
d1679124 | 8269 | PyObject * _argo0 = 0; |
e9159fe8 RD |
8270 | PyObject * _obj2 = 0; |
8271 | PyObject * _obj3 = 0; | |
8272 | char *_kwnames[] = { "self","id","text","help","kind", NULL }; | |
d1679124 RD |
8273 | |
8274 | self = self; | |
e9159fe8 | 8275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Prepend",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
d1679124 RD |
8276 | return NULL; |
8277 | if (_argo0) { | |
8278 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
e9159fe8 RD |
8279 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Prepend. Expected _wxMenu_p."); | |
d1679124 RD |
8281 | return NULL; |
8282 | } | |
8283 | } | |
e9159fe8 RD |
8284 | { |
8285 | _arg2 = wxString_in_helper(_obj2); | |
8286 | if (_arg2 == NULL) | |
8287 | return NULL; | |
8288 | } | |
8289 | if (_obj3) | |
8290 | { | |
8291 | _arg3 = wxString_in_helper(_obj3); | |
8292 | if (_arg3 == NULL) | |
8293 | return NULL; | |
8294 | } | |
d1679124 | 8295 | { |
4268f798 | 8296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8297 | wxMenu_Prepend(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
d1679124 | 8298 | |
4268f798 | 8299 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8300 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
8301 | } Py_INCREF(Py_None); |
8302 | _resultobj = Py_None; | |
e9159fe8 RD |
8303 | { |
8304 | if (_obj2) | |
8305 | delete _arg2; | |
8306 | } | |
8307 | { | |
8308 | if (_obj3) | |
8309 | delete _arg3; | |
8310 | } | |
d1679124 RD |
8311 | return _resultobj; |
8312 | } | |
8313 | ||
e9159fe8 RD |
8314 | #define wxMenu_PrependSeparator(_swigobj) (_swigobj->PrependSeparator()) |
8315 | static PyObject *_wrap_wxMenu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26e335b8 | 8316 | PyObject * _resultobj; |
e9159fe8 | 8317 | wxMenu * _arg0; |
26e335b8 RD |
8318 | PyObject * _argo0 = 0; |
8319 | char *_kwnames[] = { "self", NULL }; | |
8320 | ||
8321 | self = self; | |
e9159fe8 | 8322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_PrependSeparator",_kwnames,&_argo0)) |
26e335b8 RD |
8323 | return NULL; |
8324 | if (_argo0) { | |
8325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
e9159fe8 RD |
8326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependSeparator. Expected _wxMenu_p."); | |
26e335b8 RD |
8328 | return NULL; |
8329 | } | |
8330 | } | |
8331 | { | |
8332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e9159fe8 | 8333 | wxMenu_PrependSeparator(_arg0); |
26e335b8 RD |
8334 | |
8335 | wxPyEndAllowThreads(__tstate); | |
8336 | if (PyErr_Occurred()) return NULL; | |
e9159fe8 RD |
8337 | } Py_INCREF(Py_None); |
8338 | _resultobj = Py_None; | |
26e335b8 RD |
8339 | return _resultobj; |
8340 | } | |
8341 | ||
e9159fe8 RD |
8342 | #define wxMenu_PrependCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependCheckItem(_swigarg0,_swigarg1,_swigarg2)) |
8343 | static PyObject *_wrap_wxMenu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8344 | PyObject * _resultobj; |
e9159fe8 RD |
8345 | wxMenu * _arg0; |
8346 | int _arg1; | |
8347 | wxString * _arg2; | |
137b5242 | 8348 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
8349 | PyObject * _argo0 = 0; |
8350 | PyObject * _obj2 = 0; | |
8351 | PyObject * _obj3 = 0; | |
8352 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
8ab979d7 RD |
8353 | |
8354 | self = self; | |
e9159fe8 | 8355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
8ab979d7 | 8356 | return NULL; |
e9159fe8 RD |
8357 | if (_argo0) { |
8358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependCheckItem. Expected _wxMenu_p."); | |
8361 | return NULL; | |
8362 | } | |
8363 | } | |
8ab979d7 | 8364 | { |
e9159fe8 RD |
8365 | _arg2 = wxString_in_helper(_obj2); |
8366 | if (_arg2 == NULL) | |
8367 | return NULL; | |
8368 | } | |
8369 | if (_obj3) | |
8370 | { | |
8371 | _arg3 = wxString_in_helper(_obj3); | |
8372 | if (_arg3 == NULL) | |
185d7c3e | 8373 | return NULL; |
8ab979d7 | 8374 | } |
cf694132 | 8375 | { |
4268f798 | 8376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8377 | wxMenu_PrependCheckItem(_arg0,_arg1,*_arg2,*_arg3); |
cf694132 | 8378 | |
4268f798 | 8379 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8380 | if (PyErr_Occurred()) return NULL; |
e9159fe8 RD |
8381 | } Py_INCREF(Py_None); |
8382 | _resultobj = Py_None; | |
8ab979d7 | 8383 | { |
e9159fe8 RD |
8384 | if (_obj2) |
8385 | delete _arg2; | |
8386 | } | |
8387 | { | |
8388 | if (_obj3) | |
8389 | delete _arg3; | |
8ab979d7 RD |
8390 | } |
8391 | return _resultobj; | |
8392 | } | |
8393 | ||
e9159fe8 RD |
8394 | #define wxMenu_PrependRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependRadioItem(_swigarg0,_swigarg1,_swigarg2)) |
8395 | static PyObject *_wrap_wxMenu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8396 | PyObject * _resultobj; |
8397 | wxMenu * _arg0; | |
8398 | int _arg1; | |
8399 | wxString * _arg2; | |
137b5242 | 8400 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
1d99702e | 8401 | PyObject * _argo0 = 0; |
8ab979d7 RD |
8402 | PyObject * _obj2 = 0; |
8403 | PyObject * _obj3 = 0; | |
e9159fe8 | 8404 | char *_kwnames[] = { "self","id","text","help", NULL }; |
8ab979d7 RD |
8405 | |
8406 | self = self; | |
e9159fe8 | 8407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
8ab979d7 | 8408 | return NULL; |
1d99702e RD |
8409 | if (_argo0) { |
8410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
e9159fe8 | 8412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependRadioItem. Expected _wxMenu_p."); |
8ab979d7 RD |
8413 | return NULL; |
8414 | } | |
8415 | } | |
8416 | { | |
c8bc7bb8 RD |
8417 | _arg2 = wxString_in_helper(_obj2); |
8418 | if (_arg2 == NULL) | |
8ab979d7 | 8419 | return NULL; |
8ab979d7 RD |
8420 | } |
8421 | if (_obj3) | |
8422 | { | |
c8bc7bb8 RD |
8423 | _arg3 = wxString_in_helper(_obj3); |
8424 | if (_arg3 == NULL) | |
8ab979d7 | 8425 | return NULL; |
8ab979d7 | 8426 | } |
cf694132 | 8427 | { |
4268f798 | 8428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8429 | wxMenu_PrependRadioItem(_arg0,_arg1,*_arg2,*_arg3); |
cf694132 | 8430 | |
4268f798 | 8431 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8432 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8433 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8434 | _resultobj = Py_None; |
8435 | { | |
8436 | if (_obj2) | |
8437 | delete _arg2; | |
8438 | } | |
8439 | { | |
8440 | if (_obj3) | |
8441 | delete _arg3; | |
8442 | } | |
8443 | return _resultobj; | |
8444 | } | |
8445 | ||
e9159fe8 RD |
8446 | #define wxMenu_PrependMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8447 | static PyObject *_wrap_wxMenu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8448 | PyObject * _resultobj; |
8449 | wxMenu * _arg0; | |
8450 | int _arg1; | |
8451 | wxString * _arg2; | |
8452 | wxMenu * _arg3; | |
137b5242 | 8453 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
1d99702e | 8454 | PyObject * _argo0 = 0; |
8ab979d7 | 8455 | PyObject * _obj2 = 0; |
1d99702e | 8456 | PyObject * _argo3 = 0; |
8ab979d7 | 8457 | PyObject * _obj4 = 0; |
e9159fe8 | 8458 | char *_kwnames[] = { "self","id","text","submenu","help", NULL }; |
8ab979d7 RD |
8459 | |
8460 | self = self; | |
e9159fe8 | 8461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_PrependMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 8462 | return NULL; |
1d99702e RD |
8463 | if (_argo0) { |
8464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
e9159fe8 | 8466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependMenu. Expected _wxMenu_p."); |
8ab979d7 RD |
8467 | return NULL; |
8468 | } | |
8469 | } | |
8470 | { | |
c8bc7bb8 RD |
8471 | _arg2 = wxString_in_helper(_obj2); |
8472 | if (_arg2 == NULL) | |
185d7c3e | 8473 | return NULL; |
8ab979d7 | 8474 | } |
1d99702e RD |
8475 | if (_argo3) { |
8476 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8477 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
e9159fe8 | 8478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_PrependMenu. Expected _wxMenu_p."); |
8ab979d7 RD |
8479 | return NULL; |
8480 | } | |
8481 | } | |
8482 | if (_obj4) | |
8483 | { | |
c8bc7bb8 RD |
8484 | _arg4 = wxString_in_helper(_obj4); |
8485 | if (_arg4 == NULL) | |
185d7c3e | 8486 | return NULL; |
8ab979d7 | 8487 | } |
cf694132 | 8488 | { |
4268f798 | 8489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8490 | wxMenu_PrependMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); |
cf694132 | 8491 | |
4268f798 | 8492 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8493 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8494 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8495 | _resultobj = Py_None; |
8496 | { | |
8497 | if (_obj2) | |
8498 | delete _arg2; | |
8499 | } | |
8500 | { | |
8501 | if (_obj4) | |
8502 | delete _arg4; | |
8503 | } | |
8504 | return _resultobj; | |
8505 | } | |
8506 | ||
e9159fe8 RD |
8507 | #define wxMenu_PrependItem(_swigobj,_swigarg0) (_swigobj->Prepend(_swigarg0)) |
8508 | static PyObject *_wrap_wxMenu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
8509 | PyObject * _resultobj; |
8510 | wxMenu * _arg0; | |
8511 | wxMenuItem * _arg1; | |
1d99702e RD |
8512 | PyObject * _argo0 = 0; |
8513 | PyObject * _argo1 = 0; | |
efc5f224 | 8514 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
8515 | |
8516 | self = self; | |
e9159fe8 | 8517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_PrependItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 8518 | return NULL; |
1d99702e RD |
8519 | if (_argo0) { |
8520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
e9159fe8 | 8522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependItem. Expected _wxMenu_p."); |
af309447 RD |
8523 | return NULL; |
8524 | } | |
8525 | } | |
1d99702e RD |
8526 | if (_argo1) { |
8527 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8528 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
e9159fe8 | 8529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_PrependItem. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8530 | return NULL; |
8531 | } | |
8532 | } | |
cf694132 | 8533 | { |
4268f798 | 8534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8535 | wxMenu_PrependItem(_arg0,_arg1); |
cf694132 | 8536 | |
4268f798 | 8537 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8538 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8539 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8540 | _resultobj = Py_None; |
8541 | return _resultobj; | |
8542 | } | |
8543 | ||
8544 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 8545 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8546 | PyObject * _resultobj; |
8547 | wxMenu * _arg0; | |
1d99702e | 8548 | PyObject * _argo0 = 0; |
efc5f224 | 8549 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8550 | |
8551 | self = self; | |
efc5f224 | 8552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 8553 | return NULL; |
1d99702e RD |
8554 | if (_argo0) { |
8555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
8558 | return NULL; | |
8559 | } | |
8560 | } | |
cf694132 | 8561 | { |
4268f798 | 8562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8563 | wxMenu_Break(_arg0); |
cf694132 | 8564 | |
4268f798 | 8565 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8566 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8567 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8568 | _resultobj = Py_None; |
8569 | return _resultobj; | |
8570 | } | |
8571 | ||
8572 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 8573 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8574 | PyObject * _resultobj; |
8575 | wxMenu * _arg0; | |
8576 | int _arg1; | |
8577 | bool _arg2; | |
1d99702e | 8578 | PyObject * _argo0 = 0; |
8ab979d7 | 8579 | int tempbool2; |
efc5f224 | 8580 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
8581 | |
8582 | self = self; | |
efc5f224 | 8583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 8584 | return NULL; |
1d99702e RD |
8585 | if (_argo0) { |
8586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
8589 | return NULL; | |
8590 | } | |
8591 | } | |
8592 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8593 | { |
4268f798 | 8594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8595 | wxMenu_Check(_arg0,_arg1,_arg2); |
cf694132 | 8596 | |
4268f798 | 8597 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8598 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8599 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8600 | _resultobj = Py_None; |
8601 | return _resultobj; | |
8602 | } | |
8603 | ||
b1462dfa RD |
8604 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8605 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8606 | PyObject * _resultobj; | |
8607 | bool _result; | |
8608 | wxMenu * _arg0; | |
8609 | int _arg1; | |
8610 | PyObject * _argo0 = 0; | |
8611 | char *_kwnames[] = { "self","id", NULL }; | |
8612 | ||
8613 | self = self; | |
8614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
8615 | return NULL; | |
8616 | if (_argo0) { | |
8617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
8620 | return NULL; | |
8621 | } | |
8622 | } | |
8623 | { | |
4268f798 | 8624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8625 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); |
b1462dfa | 8626 | |
4268f798 | 8627 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8628 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8629 | } _resultobj = Py_BuildValue("i",_result); |
8630 | return _resultobj; | |
8631 | } | |
8632 | ||
8ab979d7 | 8633 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 8634 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8635 | PyObject * _resultobj; |
8636 | wxMenu * _arg0; | |
8637 | int _arg1; | |
8638 | bool _arg2; | |
1d99702e | 8639 | PyObject * _argo0 = 0; |
8ab979d7 | 8640 | int tempbool2; |
efc5f224 | 8641 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
8642 | |
8643 | self = self; | |
efc5f224 | 8644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 8645 | return NULL; |
1d99702e RD |
8646 | if (_argo0) { |
8647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
8650 | return NULL; | |
8651 | } | |
8652 | } | |
8653 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8654 | { |
4268f798 | 8655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8656 | wxMenu_Enable(_arg0,_arg1,_arg2); |
cf694132 | 8657 | |
4268f798 | 8658 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8659 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8660 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8661 | _resultobj = Py_None; |
8662 | return _resultobj; | |
8663 | } | |
8664 | ||
b1462dfa RD |
8665 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8666 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8667 | PyObject * _resultobj; | |
8668 | bool _result; | |
8669 | wxMenu * _arg0; | |
8670 | int _arg1; | |
8671 | PyObject * _argo0 = 0; | |
8672 | char *_kwnames[] = { "self","id", NULL }; | |
8673 | ||
8674 | self = self; | |
8675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
8676 | return NULL; | |
8677 | if (_argo0) { | |
8678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
8681 | return NULL; | |
8682 | } | |
8683 | } | |
8684 | { | |
4268f798 | 8685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8686 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); |
b1462dfa | 8687 | |
4268f798 | 8688 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8689 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8690 | } _resultobj = Py_BuildValue("i",_result); |
8691 | return _resultobj; | |
8692 | } | |
8693 | ||
8ab979d7 | 8694 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 8695 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8696 | PyObject * _resultobj; |
8697 | int _result; | |
8698 | wxMenu * _arg0; | |
8699 | wxString * _arg1; | |
1d99702e | 8700 | PyObject * _argo0 = 0; |
8ab979d7 | 8701 | PyObject * _obj1 = 0; |
efc5f224 | 8702 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
8703 | |
8704 | self = self; | |
efc5f224 | 8705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8706 | return NULL; |
1d99702e RD |
8707 | if (_argo0) { |
8708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
8711 | return NULL; | |
8712 | } | |
8713 | } | |
8714 | { | |
c8bc7bb8 RD |
8715 | _arg1 = wxString_in_helper(_obj1); |
8716 | if (_arg1 == NULL) | |
185d7c3e | 8717 | return NULL; |
8ab979d7 | 8718 | } |
cf694132 | 8719 | { |
4268f798 | 8720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8721 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); |
cf694132 | 8722 | |
4268f798 | 8723 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8724 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8725 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8726 | { |
8727 | if (_obj1) | |
8728 | delete _arg1; | |
8729 | } | |
8730 | return _resultobj; | |
8731 | } | |
8732 | ||
b1462dfa RD |
8733 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
8734 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8735 | PyObject * _resultobj; | |
8736 | wxMenuItem * _result; | |
8737 | wxMenu * _arg0; | |
8738 | int _arg1; | |
8739 | PyObject * _argo0 = 0; | |
8740 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
8741 | |
8742 | self = self; | |
8743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8744 | return NULL; | |
8745 | if (_argo0) { | |
8746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
8749 | return NULL; | |
8750 | } | |
8751 | } | |
8752 | { | |
4268f798 | 8753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8754 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); |
b1462dfa | 8755 | |
4268f798 | 8756 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8757 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8758 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
8759 | return _resultobj; |
8760 | } | |
8761 | ||
8ab979d7 | 8762 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 8763 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8764 | PyObject * _resultobj; |
8765 | wxString * _result; | |
8766 | wxMenu * _arg0; | |
1d99702e | 8767 | PyObject * _argo0 = 0; |
efc5f224 | 8768 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8769 | |
8770 | self = self; | |
efc5f224 | 8771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 8772 | return NULL; |
1d99702e RD |
8773 | if (_argo0) { |
8774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
8777 | return NULL; | |
8778 | } | |
8779 | } | |
8ab979d7 | 8780 | { |
4268f798 | 8781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8782 | _result = new wxString (wxMenu_GetTitle(_arg0)); |
cf694132 | 8783 | |
4268f798 | 8784 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8785 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8786 | }{ |
c8bc7bb8 RD |
8787 | #if wxUSE_UNICODE |
8788 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8789 | #else | |
eec92d76 | 8790 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8791 | #endif |
8ab979d7 RD |
8792 | } |
8793 | { | |
8794 | delete _result; | |
8795 | } | |
8796 | return _resultobj; | |
8797 | } | |
8798 | ||
8799 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 8800 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8801 | PyObject * _resultobj; |
8802 | wxMenu * _arg0; | |
8803 | wxString * _arg1; | |
1d99702e | 8804 | PyObject * _argo0 = 0; |
8ab979d7 | 8805 | PyObject * _obj1 = 0; |
efc5f224 | 8806 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
8807 | |
8808 | self = self; | |
efc5f224 | 8809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8810 | return NULL; |
1d99702e RD |
8811 | if (_argo0) { |
8812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
8815 | return NULL; | |
8816 | } | |
8817 | } | |
8818 | { | |
c8bc7bb8 RD |
8819 | _arg1 = wxString_in_helper(_obj1); |
8820 | if (_arg1 == NULL) | |
185d7c3e | 8821 | return NULL; |
8ab979d7 | 8822 | } |
cf694132 | 8823 | { |
4268f798 | 8824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8825 | wxMenu_SetTitle(_arg0,*_arg1); |
cf694132 | 8826 | |
4268f798 | 8827 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8828 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8829 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8830 | _resultobj = Py_None; |
8831 | { | |
8832 | if (_obj1) | |
8833 | delete _arg1; | |
8834 | } | |
8835 | return _resultobj; | |
8836 | } | |
8837 | ||
b1462dfa RD |
8838 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
8839 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8840 | PyObject * _resultobj; |
b1462dfa | 8841 | wxString * _result; |
8ab979d7 RD |
8842 | wxMenu * _arg0; |
8843 | int _arg1; | |
1d99702e | 8844 | PyObject * _argo0 = 0; |
efc5f224 | 8845 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8846 | |
8847 | self = self; | |
b1462dfa | 8848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8849 | return NULL; |
1d99702e RD |
8850 | if (_argo0) { |
8851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
8854 | return NULL; |
8855 | } | |
8856 | } | |
cf694132 | 8857 | { |
4268f798 | 8858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8859 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 | 8860 | |
4268f798 | 8861 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8862 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8863 | }{ |
c8bc7bb8 RD |
8864 | #if wxUSE_UNICODE |
8865 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8866 | #else | |
eec92d76 | 8867 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8868 | #endif |
b1462dfa RD |
8869 | } |
8870 | { | |
8871 | delete _result; | |
8872 | } | |
8ab979d7 RD |
8873 | return _resultobj; |
8874 | } | |
8875 | ||
b1462dfa RD |
8876 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
8877 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8878 | PyObject * _resultobj; |
8ab979d7 RD |
8879 | wxMenu * _arg0; |
8880 | int _arg1; | |
b1462dfa | 8881 | wxString * _arg2; |
1d99702e | 8882 | PyObject * _argo0 = 0; |
b1462dfa RD |
8883 | PyObject * _obj2 = 0; |
8884 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
8885 | |
8886 | self = self; | |
b1462dfa | 8887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8888 | return NULL; |
1d99702e RD |
8889 | if (_argo0) { |
8890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
8893 | return NULL; |
8894 | } | |
8895 | } | |
b1462dfa | 8896 | { |
c8bc7bb8 RD |
8897 | _arg2 = wxString_in_helper(_obj2); |
8898 | if (_arg2 == NULL) | |
185d7c3e | 8899 | return NULL; |
b1462dfa | 8900 | } |
8ab979d7 | 8901 | { |
4268f798 | 8902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8903 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 8904 | |
4268f798 | 8905 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8906 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8907 | } Py_INCREF(Py_None); |
8908 | _resultobj = Py_None; | |
8ab979d7 | 8909 | { |
b1462dfa RD |
8910 | if (_obj2) |
8911 | delete _arg2; | |
8ab979d7 RD |
8912 | } |
8913 | return _resultobj; | |
8914 | } | |
8915 | ||
b1462dfa RD |
8916 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
8917 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8918 | PyObject * _resultobj; |
8919 | wxString * _result; | |
8920 | wxMenu * _arg0; | |
8921 | int _arg1; | |
1d99702e | 8922 | PyObject * _argo0 = 0; |
efc5f224 | 8923 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8924 | |
8925 | self = self; | |
b1462dfa | 8926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8927 | return NULL; |
1d99702e RD |
8928 | if (_argo0) { |
8929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
8932 | return NULL; |
8933 | } | |
8934 | } | |
8ab979d7 | 8935 | { |
4268f798 | 8936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8937 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 | 8938 | |
4268f798 | 8939 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8940 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8941 | }{ |
c8bc7bb8 RD |
8942 | #if wxUSE_UNICODE |
8943 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8944 | #else | |
eec92d76 | 8945 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8946 | #endif |
8ab979d7 RD |
8947 | } |
8948 | { | |
8949 | delete _result; | |
8950 | } | |
8951 | return _resultobj; | |
8952 | } | |
8953 | ||
8954 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 8955 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8956 | PyObject * _resultobj; |
8957 | wxMenu * _arg0; | |
8958 | int _arg1; | |
8959 | wxString * _arg2; | |
1d99702e | 8960 | PyObject * _argo0 = 0; |
8ab979d7 | 8961 | PyObject * _obj2 = 0; |
efc5f224 | 8962 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
8963 | |
8964 | self = self; | |
efc5f224 | 8965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8966 | return NULL; |
1d99702e RD |
8967 | if (_argo0) { |
8968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
8971 | return NULL; | |
8972 | } | |
8973 | } | |
8974 | { | |
c8bc7bb8 RD |
8975 | _arg2 = wxString_in_helper(_obj2); |
8976 | if (_arg2 == NULL) | |
185d7c3e | 8977 | return NULL; |
8ab979d7 | 8978 | } |
cf694132 | 8979 | { |
4268f798 | 8980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8981 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); |
cf694132 | 8982 | |
4268f798 | 8983 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8984 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8985 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8986 | _resultobj = Py_None; |
8987 | { | |
8988 | if (_obj2) | |
8989 | delete _arg2; | |
8990 | } | |
8991 | return _resultobj; | |
8992 | } | |
8993 | ||
b1462dfa RD |
8994 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
8995 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8996 | PyObject * _resultobj; |
8ab979d7 | 8997 | wxMenu * _arg0; |
b1462dfa | 8998 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 8999 | PyObject * _argo0 = 0; |
b1462dfa RD |
9000 | PyObject * _argo1 = 0; |
9001 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
9002 | |
9003 | self = self; | |
b1462dfa | 9004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9005 | return NULL; |
1d99702e RD |
9006 | if (_argo0) { |
9007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
9009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
9010 | return NULL; | |
9011 | } | |
9012 | } | |
9013 | if (_argo1) { | |
9014 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9015 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
9016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
9017 | return NULL; |
9018 | } | |
9019 | } | |
cf694132 | 9020 | { |
4268f798 | 9021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9022 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 | 9023 | |
4268f798 | 9024 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9025 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9026 | } Py_INCREF(Py_None); |
9027 | _resultobj = Py_None; | |
8ab979d7 RD |
9028 | return _resultobj; |
9029 | } | |
9030 | ||
b1462dfa RD |
9031 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
9032 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9033 | PyObject * _resultobj; |
9034 | bool _result; | |
9035 | wxMenu * _arg0; | |
9036 | int _arg1; | |
1d99702e | 9037 | PyObject * _argo0 = 0; |
efc5f224 | 9038 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9039 | |
9040 | self = self; | |
b1462dfa | 9041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9042 | return NULL; |
1d99702e RD |
9043 | if (_argo0) { |
9044 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9045 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
9047 | return NULL; |
9048 | } | |
9049 | } | |
cf694132 | 9050 | { |
4268f798 | 9051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9052 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 | 9053 | |
4268f798 | 9054 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9055 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9056 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9057 | return _resultobj; |
9058 | } | |
9059 | ||
b1462dfa RD |
9060 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
9061 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9062 | PyObject * _resultobj; |
b1462dfa | 9063 | bool _result; |
8ab979d7 | 9064 | wxMenu * _arg0; |
b1462dfa | 9065 | wxMenuItem * _arg1; |
1d99702e | 9066 | PyObject * _argo0 = 0; |
b1462dfa RD |
9067 | PyObject * _argo1 = 0; |
9068 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
9069 | |
9070 | self = self; | |
b1462dfa | 9071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9072 | return NULL; |
1d99702e RD |
9073 | if (_argo0) { |
9074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
9077 | return NULL; |
9078 | } | |
9079 | } | |
b1462dfa RD |
9080 | if (_argo1) { |
9081 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9082 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
9083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 9084 | return NULL; |
b1462dfa | 9085 | } |
8ab979d7 | 9086 | } |
cf694132 | 9087 | { |
4268f798 | 9088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9089 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 | 9090 | |
4268f798 | 9091 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9092 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9093 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9094 | return _resultobj; |
9095 | } | |
9096 | ||
b1462dfa RD |
9097 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
9098 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 9099 | PyObject * _resultobj; |
b1462dfa | 9100 | wxMenuItem * _result; |
efc5f224 | 9101 | wxMenu * _arg0; |
b1462dfa | 9102 | int _arg1; |
efc5f224 | 9103 | PyObject * _argo0 = 0; |
b1462dfa | 9104 | char *_kwnames[] = { "self","id", NULL }; |
efc5f224 RD |
9105 | |
9106 | self = self; | |
b1462dfa | 9107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
9108 | return NULL; |
9109 | if (_argo0) { | |
9110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
9113 | return NULL; |
9114 | } | |
9115 | } | |
9116 | { | |
4268f798 | 9117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9118 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 | 9119 | |
4268f798 | 9120 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9121 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9122 | }{ _resultobj = wxPyMake_wxObject(_result); } |
efc5f224 RD |
9123 | return _resultobj; |
9124 | } | |
9125 | ||
b1462dfa RD |
9126 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
9127 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9128 | PyObject * _resultobj; |
b1462dfa RD |
9129 | wxMenuItem * _result; |
9130 | wxMenu * _arg0; | |
9131 | wxMenuItem * _arg1; | |
9132 | PyObject * _argo0 = 0; | |
9133 | PyObject * _argo1 = 0; | |
9134 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
9135 | |
9136 | self = self; | |
b1462dfa RD |
9137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
9138 | return NULL; | |
9139 | if (_argo0) { | |
9140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
9143 | return NULL; | |
9144 | } | |
9145 | } | |
9146 | if (_argo1) { | |
9147 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9148 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
9149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 9150 | return NULL; |
b1462dfa RD |
9151 | } |
9152 | } | |
cf694132 | 9153 | { |
4268f798 | 9154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9155 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 | 9156 | |
4268f798 | 9157 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9158 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9159 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9160 | return _resultobj; |
9161 | } | |
9162 | ||
eb715945 | 9163 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 9164 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 9165 | PyObject * _resultobj; |
b1462dfa | 9166 | wxMenu * _arg0; |
1d99702e | 9167 | PyObject * _argo0 = 0; |
b1462dfa | 9168 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9169 | |
9170 | self = self; | |
b1462dfa | 9171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 9172 | return NULL; |
1d99702e RD |
9173 | if (_argo0) { |
9174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
9177 | return NULL; |
9178 | } | |
9179 | } | |
cf694132 | 9180 | { |
4268f798 | 9181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9182 | wxMenu_Destroy(_arg0); |
cf694132 | 9183 | |
4268f798 | 9184 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9185 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9186 | } Py_INCREF(Py_None); |
8ab979d7 | 9187 | _resultobj = Py_None; |
8ab979d7 RD |
9188 | return _resultobj; |
9189 | } | |
9190 | ||
b1462dfa RD |
9191 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
9192 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9193 | PyObject * _resultobj; |
b1462dfa RD |
9194 | bool _result; |
9195 | wxMenu * _arg0; | |
8ab979d7 | 9196 | int _arg1; |
1d99702e | 9197 | PyObject * _argo0 = 0; |
b1462dfa | 9198 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9199 | |
9200 | self = self; | |
b1462dfa | 9201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9202 | return NULL; |
1d99702e RD |
9203 | if (_argo0) { |
9204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
9207 | return NULL; |
9208 | } | |
9209 | } | |
cf694132 | 9210 | { |
4268f798 | 9211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9212 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 | 9213 | |
4268f798 | 9214 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9215 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9216 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9217 | return _resultobj; |
9218 | } | |
9219 | ||
b1462dfa RD |
9220 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
9221 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9222 | PyObject * _resultobj; |
b1462dfa RD |
9223 | bool _result; |
9224 | wxMenu * _arg0; | |
9225 | wxMenuItem * _arg1; | |
1d99702e | 9226 | PyObject * _argo0 = 0; |
b1462dfa RD |
9227 | PyObject * _argo1 = 0; |
9228 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
9229 | |
9230 | self = self; | |
b1462dfa | 9231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9232 | return NULL; |
1d99702e RD |
9233 | if (_argo0) { |
9234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
9237 | return NULL; | |
9238 | } | |
9239 | } | |
9240 | if (_argo1) { | |
9241 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9242 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
9243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
9244 | return NULL; |
9245 | } | |
9246 | } | |
cf694132 | 9247 | { |
4268f798 | 9248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9249 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 | 9250 | |
4268f798 | 9251 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9252 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9253 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9254 | return _resultobj; |
9255 | } | |
9256 | ||
b1462dfa RD |
9257 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
9258 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9259 | PyObject * _resultobj; |
b1462dfa RD |
9260 | size_t _result; |
9261 | wxMenu * _arg0; | |
1d99702e | 9262 | PyObject * _argo0 = 0; |
b1462dfa | 9263 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9264 | |
9265 | self = self; | |
b1462dfa | 9266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 9267 | return NULL; |
1d99702e RD |
9268 | if (_argo0) { |
9269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
9272 | return NULL; |
9273 | } | |
9274 | } | |
cf694132 | 9275 | { |
4268f798 | 9276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9277 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 | 9278 | |
4268f798 | 9279 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9280 | if (PyErr_Occurred()) return NULL; |
2abc0a0f | 9281 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9282 | return _resultobj; |
9283 | } | |
9284 | ||
b1462dfa RD |
9285 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
9286 | wxMenuItemList& list = self->GetMenuItems(); | |
9287 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
9288 | } | |
9289 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9290 | PyObject * _resultobj; |
b1462dfa RD |
9291 | PyObject * _result; |
9292 | wxMenu * _arg0; | |
1d99702e | 9293 | PyObject * _argo0 = 0; |
b1462dfa | 9294 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9295 | |
9296 | self = self; | |
b1462dfa | 9297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 9298 | return NULL; |
1d99702e RD |
9299 | if (_argo0) { |
9300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
9303 | return NULL; |
9304 | } | |
9305 | } | |
cf694132 | 9306 | { |
4268f798 | 9307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9308 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 | 9309 | |
4268f798 | 9310 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9311 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9312 | }{ |
9313 | _resultobj = _result; | |
9314 | } | |
8ab979d7 RD |
9315 | return _resultobj; |
9316 | } | |
9317 | ||
b1462dfa RD |
9318 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
9319 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9320 | PyObject * _resultobj; |
b1462dfa RD |
9321 | wxMenu * _arg0; |
9322 | wxEvtHandler * _arg1; | |
1d99702e | 9323 | PyObject * _argo0 = 0; |
b1462dfa RD |
9324 | PyObject * _argo1 = 0; |
9325 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
9326 | |
9327 | self = self; | |
b1462dfa | 9328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9329 | return NULL; |
1d99702e RD |
9330 | if (_argo0) { |
9331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
9334 | return NULL; |
9335 | } | |
9336 | } | |
b1462dfa RD |
9337 | if (_argo1) { |
9338 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9339 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
9340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 9341 | return NULL; |
b1462dfa | 9342 | } |
8ab979d7 | 9343 | } |
cf694132 | 9344 | { |
4268f798 | 9345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9346 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 | 9347 | |
4268f798 | 9348 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9349 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9350 | } Py_INCREF(Py_None); |
9351 | _resultobj = Py_None; | |
8ab979d7 RD |
9352 | return _resultobj; |
9353 | } | |
9354 | ||
b1462dfa RD |
9355 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
9356 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9357 | PyObject * _resultobj; |
b1462dfa RD |
9358 | wxEvtHandler * _result; |
9359 | wxMenu * _arg0; | |
1d99702e | 9360 | PyObject * _argo0 = 0; |
b1462dfa | 9361 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9362 | |
9363 | self = self; | |
b1462dfa | 9364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 9365 | return NULL; |
1d99702e RD |
9366 | if (_argo0) { |
9367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
9370 | return NULL; |
9371 | } | |
9372 | } | |
cf694132 | 9373 | { |
4268f798 | 9374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9375 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 | 9376 | |
4268f798 | 9377 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9378 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9379 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9380 | return _resultobj; |
9381 | } | |
9382 | ||
b1462dfa RD |
9383 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
9384 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 9385 | PyObject * _resultobj; |
b1462dfa RD |
9386 | wxMenu * _arg0; |
9387 | wxWindow * _arg1; | |
2f90df85 | 9388 | PyObject * _argo0 = 0; |
b1462dfa RD |
9389 | PyObject * _argo1 = 0; |
9390 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
9391 | |
9392 | self = self; | |
b1462dfa | 9393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
9394 | return NULL; |
9395 | if (_argo0) { | |
9396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
9399 | return NULL; |
9400 | } | |
9401 | } | |
b1462dfa RD |
9402 | if (_argo1) { |
9403 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9404 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 9406 | return NULL; |
b1462dfa | 9407 | } |
2f90df85 | 9408 | } |
2f90df85 | 9409 | { |
4268f798 | 9410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9411 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 | 9412 | |
4268f798 | 9413 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9414 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
9415 | } Py_INCREF(Py_None); |
9416 | _resultobj = Py_None; | |
2f90df85 RD |
9417 | return _resultobj; |
9418 | } | |
9419 | ||
b1462dfa RD |
9420 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
9421 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9422 | PyObject * _resultobj; |
b1462dfa RD |
9423 | wxWindow * _result; |
9424 | wxMenu * _arg0; | |
1d99702e | 9425 | PyObject * _argo0 = 0; |
b1462dfa | 9426 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9427 | |
9428 | self = self; | |
b1462dfa | 9429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 9430 | return NULL; |
1d99702e RD |
9431 | if (_argo0) { |
9432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
9435 | return NULL; |
9436 | } | |
9437 | } | |
cf694132 | 9438 | { |
4268f798 | 9439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9440 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 | 9441 | |
4268f798 | 9442 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9443 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9444 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9445 | return _resultobj; |
9446 | } | |
9447 | ||
b1462dfa RD |
9448 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
9449 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9450 | PyObject * _resultobj; |
b1462dfa RD |
9451 | long _result; |
9452 | wxMenu * _arg0; | |
1d99702e | 9453 | PyObject * _argo0 = 0; |
b1462dfa | 9454 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9455 | |
9456 | self = self; | |
b1462dfa | 9457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 9458 | return NULL; |
1d99702e RD |
9459 | if (_argo0) { |
9460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
9463 | return NULL; |
9464 | } | |
9465 | } | |
8ab979d7 | 9466 | { |
4268f798 | 9467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9468 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 | 9469 | |
4268f798 | 9470 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9471 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9472 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9473 | return _resultobj; |
9474 | } | |
9475 | ||
b1462dfa RD |
9476 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
9477 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9478 | PyObject * _resultobj; |
b1462dfa RD |
9479 | bool _result; |
9480 | wxMenu * _arg0; | |
1d99702e | 9481 | PyObject * _argo0 = 0; |
b1462dfa | 9482 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9483 | |
9484 | self = self; | |
b1462dfa | 9485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 9486 | return NULL; |
1d99702e RD |
9487 | if (_argo0) { |
9488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
9491 | return NULL; |
9492 | } | |
9493 | } | |
8ab979d7 | 9494 | { |
4268f798 | 9495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9496 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 | 9497 | |
4268f798 | 9498 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9499 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9500 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9501 | return _resultobj; |
9502 | } | |
9503 | ||
b1462dfa RD |
9504 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
9505 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9506 | PyObject * _resultobj; |
b1462dfa RD |
9507 | wxMenu * _arg0; |
9508 | wxMenu * _arg1; | |
1d99702e | 9509 | PyObject * _argo0 = 0; |
b1462dfa RD |
9510 | PyObject * _argo1 = 0; |
9511 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
9512 | |
9513 | self = self; | |
b1462dfa | 9514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9515 | return NULL; |
1d99702e RD |
9516 | if (_argo0) { |
9517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
9520 | return NULL; |
9521 | } | |
9522 | } | |
b1462dfa RD |
9523 | if (_argo1) { |
9524 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9525 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 9527 | return NULL; |
b1462dfa | 9528 | } |
8ab979d7 | 9529 | } |
cf694132 | 9530 | { |
4268f798 | 9531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9532 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 | 9533 | |
4268f798 | 9534 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9535 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9536 | } Py_INCREF(Py_None); |
8ab979d7 | 9537 | _resultobj = Py_None; |
8ab979d7 RD |
9538 | return _resultobj; |
9539 | } | |
9540 | ||
b1462dfa RD |
9541 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
9542 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9543 | PyObject * _resultobj; |
b1462dfa RD |
9544 | wxMenu * _result; |
9545 | wxMenu * _arg0; | |
1d99702e | 9546 | PyObject * _argo0 = 0; |
b1462dfa | 9547 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9548 | |
9549 | self = self; | |
b1462dfa | 9550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 9551 | return NULL; |
1d99702e RD |
9552 | if (_argo0) { |
9553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
9556 | return NULL; |
9557 | } | |
9558 | } | |
8ab979d7 | 9559 | { |
4268f798 | 9560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9561 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 | 9562 | |
4268f798 | 9563 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9564 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9565 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 9566 | return _resultobj; |
8ab979d7 | 9567 | } |
b1462dfa RD |
9568 | |
9569 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
9570 | wxMenuBar *src; | |
9571 | wxWindow *dest; | |
9572 | src = (wxMenuBar *) ptr; | |
9573 | dest = (wxWindow *) src; | |
9574 | return (void *) dest; | |
9575 | } | |
9576 | ||
9577 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
9578 | wxMenuBar *src; | |
9579 | wxEvtHandler *dest; | |
9580 | src = (wxMenuBar *) ptr; | |
9581 | dest = (wxEvtHandler *) src; | |
9582 | return (void *) dest; | |
8ab979d7 | 9583 | } |
b1462dfa | 9584 | |
9416aa89 RD |
9585 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
9586 | wxMenuBar *src; | |
9587 | wxObject *dest; | |
9588 | src = (wxMenuBar *) ptr; | |
9589 | dest = (wxObject *) src; | |
9590 | return (void *) dest; | |
9591 | } | |
9592 | ||
c368d904 | 9593 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
9594 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9595 | PyObject * _resultobj; | |
9596 | wxMenuBar * _result; | |
c368d904 RD |
9597 | long _arg0 = (long ) 0; |
9598 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
9599 | char _ptemp[128]; |
9600 | ||
9601 | self = self; | |
c368d904 | 9602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
9603 | return NULL; |
9604 | { | |
4268f798 | 9605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9606 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa | 9607 | |
4268f798 | 9608 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9609 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9610 | } if (_result) { |
9611 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
9612 | _resultobj = Py_BuildValue("s",_ptemp); | |
9613 | } else { | |
9614 | Py_INCREF(Py_None); | |
9615 | _resultobj = Py_None; | |
9616 | } | |
8ab979d7 RD |
9617 | return _resultobj; |
9618 | } | |
9619 | ||
b1462dfa RD |
9620 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
9621 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9622 | PyObject * _resultobj; |
b1462dfa | 9623 | bool _result; |
8ab979d7 | 9624 | wxMenuBar * _arg0; |
b1462dfa | 9625 | wxMenu * _arg1; |
8ab979d7 | 9626 | wxString * _arg2; |
1d99702e | 9627 | PyObject * _argo0 = 0; |
b1462dfa | 9628 | PyObject * _argo1 = 0; |
8ab979d7 | 9629 | PyObject * _obj2 = 0; |
b1462dfa | 9630 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
9631 | |
9632 | self = self; | |
b1462dfa | 9633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 9634 | return NULL; |
1d99702e RD |
9635 | if (_argo0) { |
9636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
9638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
9639 | return NULL; | |
9640 | } | |
9641 | } | |
9642 | if (_argo1) { | |
9643 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9644 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
9646 | return NULL; |
9647 | } | |
9648 | } | |
9649 | { | |
c8bc7bb8 RD |
9650 | _arg2 = wxString_in_helper(_obj2); |
9651 | if (_arg2 == NULL) | |
185d7c3e | 9652 | return NULL; |
8ab979d7 | 9653 | } |
cf694132 | 9654 | { |
4268f798 | 9655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9656 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 | 9657 | |
4268f798 | 9658 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9659 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9660 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9661 | { |
9662 | if (_obj2) | |
9663 | delete _arg2; | |
9664 | } | |
9665 | return _resultobj; | |
9666 | } | |
9667 | ||
b1462dfa RD |
9668 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
9669 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9670 | PyObject * _resultobj; |
b1462dfa | 9671 | bool _result; |
8ab979d7 | 9672 | wxMenuBar * _arg0; |
b1462dfa RD |
9673 | size_t _arg1; |
9674 | wxMenu * _arg2; | |
9675 | wxString * _arg3; | |
1d99702e | 9676 | PyObject * _argo0 = 0; |
b1462dfa RD |
9677 | PyObject * _argo2 = 0; |
9678 | PyObject * _obj3 = 0; | |
9679 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
9680 | |
9681 | self = self; | |
b1462dfa | 9682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 9683 | return NULL; |
1d99702e RD |
9684 | if (_argo0) { |
9685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
9687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
9688 | return NULL; | |
9689 | } | |
9690 | } | |
9691 | if (_argo2) { | |
9692 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9693 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
9694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
9695 | return NULL; |
9696 | } | |
9697 | } | |
b1462dfa | 9698 | { |
c8bc7bb8 RD |
9699 | _arg3 = wxString_in_helper(_obj3); |
9700 | if (_arg3 == NULL) | |
185d7c3e | 9701 | return NULL; |
b1462dfa | 9702 | } |
cf694132 | 9703 | { |
4268f798 | 9704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9705 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 9706 | |
4268f798 | 9707 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9708 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9709 | } _resultobj = Py_BuildValue("i",_result); |
b1462dfa RD |
9710 | { |
9711 | if (_obj3) | |
9712 | delete _arg3; | |
9713 | } | |
8ab979d7 RD |
9714 | return _resultobj; |
9715 | } | |
9716 | ||
b1462dfa RD |
9717 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
9718 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9719 | PyObject * _resultobj; |
b1462dfa | 9720 | size_t _result; |
8ab979d7 | 9721 | wxMenuBar * _arg0; |
1d99702e | 9722 | PyObject * _argo0 = 0; |
b1462dfa | 9723 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9724 | |
9725 | self = self; | |
b1462dfa | 9726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 9727 | return NULL; |
1d99702e RD |
9728 | if (_argo0) { |
9729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 9731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
9732 | return NULL; |
9733 | } | |
9734 | } | |
cf694132 | 9735 | { |
4268f798 | 9736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9737 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 | 9738 | |
4268f798 | 9739 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9740 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9741 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9742 | return _resultobj; |
9743 | } | |
9744 | ||
b1462dfa RD |
9745 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
9746 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 9747 | PyObject * _resultobj; |
b1462dfa | 9748 | wxMenu * _result; |
06c0fba4 | 9749 | wxMenuBar * _arg0; |
b1462dfa | 9750 | size_t _arg1; |
06c0fba4 | 9751 | PyObject * _argo0 = 0; |
b1462dfa | 9752 | char *_kwnames[] = { "self","pos", NULL }; |
06c0fba4 RD |
9753 | |
9754 | self = self; | |
b1462dfa | 9755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
9756 | return NULL; |
9757 | if (_argo0) { | |
9758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 9760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
9761 | return NULL; |
9762 | } | |
9763 | } | |
9764 | { | |
4268f798 | 9765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9766 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 | 9767 | |
4268f798 | 9768 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9769 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9770 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
9771 | return _resultobj; |
9772 | } | |
9773 | ||
2abc0a0f RD |
9774 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
9775 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9776 | PyObject * _resultobj; | |
9777 | wxMenu * _result; | |
9778 | wxMenuBar * _arg0; | |
9779 | size_t _arg1; | |
9780 | wxMenu * _arg2; | |
9781 | wxString * _arg3; | |
9782 | PyObject * _argo0 = 0; | |
9783 | PyObject * _argo2 = 0; | |
9784 | PyObject * _obj3 = 0; | |
9785 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
2abc0a0f RD |
9786 | |
9787 | self = self; | |
9788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
9789 | return NULL; | |
9790 | if (_argo0) { | |
9791 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9792 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
9794 | return NULL; | |
9795 | } | |
9796 | } | |
9797 | if (_argo2) { | |
9798 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9799 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
9800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
9801 | return NULL; | |
9802 | } | |
9803 | } | |
9804 | { | |
c8bc7bb8 RD |
9805 | _arg3 = wxString_in_helper(_obj3); |
9806 | if (_arg3 == NULL) | |
185d7c3e | 9807 | return NULL; |
2abc0a0f RD |
9808 | } |
9809 | { | |
4268f798 | 9810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9811 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); |
2abc0a0f | 9812 | |
4268f798 | 9813 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9814 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9815 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
9816 | { |
9817 | if (_obj3) | |
9818 | delete _arg3; | |
9819 | } | |
9820 | return _resultobj; | |
9821 | } | |
9822 | ||
9823 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
9824 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9825 | PyObject * _resultobj; | |
9826 | wxMenu * _result; | |
9827 | wxMenuBar * _arg0; | |
9828 | size_t _arg1; | |
9829 | PyObject * _argo0 = 0; | |
9830 | char *_kwnames[] = { "self","pos", NULL }; | |
2abc0a0f RD |
9831 | |
9832 | self = self; | |
9833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
9834 | return NULL; | |
9835 | if (_argo0) { | |
9836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
9839 | return NULL; | |
9840 | } | |
9841 | } | |
9842 | { | |
4268f798 | 9843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9844 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); |
2abc0a0f | 9845 | |
4268f798 | 9846 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9847 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9848 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
9849 | return _resultobj; |
9850 | } | |
9851 | ||
b1462dfa RD |
9852 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
9853 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9854 | PyObject * _resultobj; |
b1462dfa RD |
9855 | wxMenuBar * _arg0; |
9856 | size_t _arg1; | |
9857 | bool _arg2; | |
9858 | PyObject * _argo0 = 0; | |
9859 | int tempbool2; | |
9860 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
9861 | ||
9862 | self = self; | |
9863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9864 | return NULL; | |
9865 | if (_argo0) { | |
9866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
9869 | return NULL; | |
9870 | } | |
9871 | } | |
9872 | _arg2 = (bool ) tempbool2; | |
9873 | { | |
4268f798 | 9874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9875 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); |
b1462dfa | 9876 | |
4268f798 | 9877 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9878 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9879 | } Py_INCREF(Py_None); |
9880 | _resultobj = Py_None; | |
9881 | return _resultobj; | |
9882 | } | |
9883 | ||
9884 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
9885 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9886 | PyObject * _resultobj; | |
9887 | wxMenuBar * _arg0; | |
9888 | size_t _arg1; | |
9889 | wxString * _arg2; | |
1d99702e | 9890 | PyObject * _argo0 = 0; |
cf694132 | 9891 | PyObject * _obj2 = 0; |
b1462dfa | 9892 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
9893 | |
9894 | self = self; | |
b1462dfa | 9895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 9896 | return NULL; |
1d99702e RD |
9897 | if (_argo0) { |
9898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
9901 | return NULL; |
9902 | } | |
9903 | } | |
cf694132 | 9904 | { |
c8bc7bb8 RD |
9905 | _arg2 = wxString_in_helper(_obj2); |
9906 | if (_arg2 == NULL) | |
185d7c3e | 9907 | return NULL; |
cf694132 | 9908 | } |
cf694132 | 9909 | { |
4268f798 | 9910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9911 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); |
b1462dfa | 9912 | |
4268f798 | 9913 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9914 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9915 | } Py_INCREF(Py_None); |
9916 | _resultobj = Py_None; | |
9917 | { | |
9918 | if (_obj2) | |
9919 | delete _arg2; | |
9920 | } | |
9921 | return _resultobj; | |
9922 | } | |
9923 | ||
9924 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
9925 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9926 | PyObject * _resultobj; | |
9927 | wxString * _result; | |
9928 | wxMenuBar * _arg0; | |
9929 | size_t _arg1; | |
9930 | PyObject * _argo0 = 0; | |
9931 | char *_kwnames[] = { "self","pos", NULL }; | |
9932 | ||
9933 | self = self; | |
9934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
9935 | return NULL; | |
9936 | if (_argo0) { | |
9937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
9940 | return NULL; | |
9941 | } | |
9942 | } | |
9943 | { | |
4268f798 | 9944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9945 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); |
b1462dfa | 9946 | |
4268f798 | 9947 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9948 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9949 | }{ |
c8bc7bb8 RD |
9950 | #if wxUSE_UNICODE |
9951 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9952 | #else | |
eec92d76 | 9953 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9954 | #endif |
b1462dfa RD |
9955 | } |
9956 | { | |
9957 | delete _result; | |
9958 | } | |
9959 | return _resultobj; | |
9960 | } | |
9961 | ||
3a0958b1 RD |
9962 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) |
9963 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9964 | PyObject * _resultobj; | |
9965 | int _result; | |
9966 | wxMenuBar * _arg0; | |
9967 | wxString * _arg1; | |
9968 | PyObject * _argo0 = 0; | |
9969 | PyObject * _obj1 = 0; | |
9970 | char *_kwnames[] = { "self","title", NULL }; | |
9971 | ||
9972 | self = self; | |
9973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) | |
9974 | return NULL; | |
9975 | if (_argo0) { | |
9976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); | |
9979 | return NULL; | |
9980 | } | |
9981 | } | |
9982 | { | |
c8bc7bb8 RD |
9983 | _arg1 = wxString_in_helper(_obj1); |
9984 | if (_arg1 == NULL) | |
3a0958b1 | 9985 | return NULL; |
3a0958b1 RD |
9986 | } |
9987 | { | |
4268f798 | 9988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9989 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); |
3a0958b1 | 9990 | |
4268f798 | 9991 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
9992 | if (PyErr_Occurred()) return NULL; |
9993 | } _resultobj = Py_BuildValue("i",_result); | |
9994 | { | |
9995 | if (_obj1) | |
9996 | delete _arg1; | |
9997 | } | |
9998 | return _resultobj; | |
9999 | } | |
10000 | ||
b1462dfa RD |
10001 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) |
10002 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10003 | PyObject * _resultobj; | |
10004 | int _result; | |
10005 | wxMenuBar * _arg0; | |
10006 | wxString * _arg1; | |
10007 | wxString * _arg2; | |
10008 | PyObject * _argo0 = 0; | |
10009 | PyObject * _obj1 = 0; | |
10010 | PyObject * _obj2 = 0; | |
10011 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
10012 | ||
10013 | self = self; | |
10014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
10015 | return NULL; | |
10016 | if (_argo0) { | |
10017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
10020 | return NULL; | |
10021 | } | |
10022 | } | |
10023 | { | |
c8bc7bb8 RD |
10024 | _arg1 = wxString_in_helper(_obj1); |
10025 | if (_arg1 == NULL) | |
185d7c3e | 10026 | return NULL; |
cf694132 | 10027 | } |
b1462dfa | 10028 | { |
c8bc7bb8 RD |
10029 | _arg2 = wxString_in_helper(_obj2); |
10030 | if (_arg2 == NULL) | |
b1462dfa | 10031 | return NULL; |
b1462dfa RD |
10032 | } |
10033 | { | |
4268f798 | 10034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10035 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); |
b1462dfa | 10036 | |
4268f798 | 10037 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10038 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10039 | } _resultobj = Py_BuildValue("i",_result); |
10040 | { | |
10041 | if (_obj1) | |
10042 | delete _arg1; | |
10043 | } | |
10044 | { | |
10045 | if (_obj2) | |
10046 | delete _arg2; | |
10047 | } | |
10048 | return _resultobj; | |
10049 | } | |
10050 | ||
10051 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
10052 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10053 | PyObject * _resultobj; | |
10054 | wxMenuItem * _result; | |
10055 | wxMenuBar * _arg0; | |
10056 | int _arg1; | |
10057 | PyObject * _argo0 = 0; | |
10058 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
10059 | |
10060 | self = self; | |
10061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
10062 | return NULL; | |
10063 | if (_argo0) { | |
10064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
10067 | return NULL; |
10068 | } | |
10069 | } | |
10070 | { | |
4268f798 | 10071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10072 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 | 10073 | |
4268f798 | 10074 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10075 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 10076 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 10077 | return _resultobj; |
cf694132 | 10078 | } |
b1462dfa RD |
10079 | |
10080 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
10081 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10082 | PyObject * _resultobj; | |
10083 | wxMenuBar * _arg0; | |
10084 | int _arg1; | |
10085 | bool _arg2; | |
10086 | PyObject * _argo0 = 0; | |
10087 | int tempbool2; | |
10088 | char *_kwnames[] = { "self","id","enable", NULL }; | |
10089 | ||
10090 | self = self; | |
10091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
10092 | return NULL; | |
10093 | if (_argo0) { | |
10094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
10097 | return NULL; | |
10098 | } | |
10099 | } | |
10100 | _arg2 = (bool ) tempbool2; | |
cf694132 | 10101 | { |
4268f798 | 10102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10103 | wxMenuBar_Enable(_arg0,_arg1,_arg2); |
b1462dfa | 10104 | |
4268f798 | 10105 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10106 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10107 | } Py_INCREF(Py_None); |
10108 | _resultobj = Py_None; | |
10109 | return _resultobj; | |
cf694132 | 10110 | } |
b1462dfa RD |
10111 | |
10112 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
10113 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10114 | PyObject * _resultobj; | |
10115 | wxMenuBar * _arg0; | |
10116 | int _arg1; | |
10117 | bool _arg2; | |
10118 | PyObject * _argo0 = 0; | |
10119 | int tempbool2; | |
10120 | char *_kwnames[] = { "self","id","check", NULL }; | |
10121 | ||
10122 | self = self; | |
10123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
10124 | return NULL; | |
10125 | if (_argo0) { | |
10126 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
10129 | return NULL; | |
10130 | } | |
10131 | } | |
10132 | _arg2 = (bool ) tempbool2; | |
10133 | { | |
4268f798 | 10134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10135 | wxMenuBar_Check(_arg0,_arg1,_arg2); |
b1462dfa | 10136 | |
4268f798 | 10137 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10138 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10139 | } Py_INCREF(Py_None); |
10140 | _resultobj = Py_None; | |
cf694132 RD |
10141 | return _resultobj; |
10142 | } | |
10143 | ||
b1462dfa RD |
10144 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
10145 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10146 | PyObject * _resultobj; |
10147 | bool _result; | |
b1462dfa RD |
10148 | wxMenuBar * _arg0; |
10149 | int _arg1; | |
1d99702e | 10150 | PyObject * _argo0 = 0; |
b1462dfa | 10151 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10152 | |
10153 | self = self; | |
b1462dfa | 10154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10155 | return NULL; |
1d99702e RD |
10156 | if (_argo0) { |
10157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10160 | return NULL; |
10161 | } | |
10162 | } | |
cf694132 | 10163 | { |
4268f798 | 10164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10165 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 | 10166 | |
4268f798 | 10167 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10168 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10169 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10170 | return _resultobj; |
10171 | } | |
10172 | ||
b1462dfa RD |
10173 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
10174 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10175 | PyObject * _resultobj; |
10176 | bool _result; | |
b1462dfa RD |
10177 | wxMenuBar * _arg0; |
10178 | int _arg1; | |
1d99702e | 10179 | PyObject * _argo0 = 0; |
b1462dfa | 10180 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10181 | |
10182 | self = self; | |
b1462dfa | 10183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10184 | return NULL; |
1d99702e RD |
10185 | if (_argo0) { |
10186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10189 | return NULL; |
10190 | } | |
10191 | } | |
cf694132 | 10192 | { |
4268f798 | 10193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10194 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 | 10195 | |
4268f798 | 10196 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10197 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10198 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10199 | return _resultobj; |
10200 | } | |
10201 | ||
b1462dfa RD |
10202 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
10203 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10204 | PyObject * _resultobj; |
b1462dfa RD |
10205 | wxMenuBar * _arg0; |
10206 | int _arg1; | |
10207 | wxString * _arg2; | |
1d99702e | 10208 | PyObject * _argo0 = 0; |
b1462dfa RD |
10209 | PyObject * _obj2 = 0; |
10210 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
10211 | |
10212 | self = self; | |
b1462dfa | 10213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 10214 | return NULL; |
1d99702e RD |
10215 | if (_argo0) { |
10216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10219 | return NULL; |
10220 | } | |
10221 | } | |
b1462dfa | 10222 | { |
c8bc7bb8 RD |
10223 | _arg2 = wxString_in_helper(_obj2); |
10224 | if (_arg2 == NULL) | |
b1462dfa | 10225 | return NULL; |
b1462dfa | 10226 | } |
cf694132 | 10227 | { |
4268f798 | 10228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10229 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 10230 | |
4268f798 | 10231 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10232 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10233 | } Py_INCREF(Py_None); |
10234 | _resultobj = Py_None; | |
10235 | { | |
10236 | if (_obj2) | |
10237 | delete _arg2; | |
10238 | } | |
8ab979d7 RD |
10239 | return _resultobj; |
10240 | } | |
10241 | ||
b1462dfa RD |
10242 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
10243 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10244 | PyObject * _resultobj; |
b1462dfa RD |
10245 | wxString * _result; |
10246 | wxMenuBar * _arg0; | |
10247 | int _arg1; | |
1d99702e | 10248 | PyObject * _argo0 = 0; |
b1462dfa | 10249 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10250 | |
10251 | self = self; | |
b1462dfa | 10252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10253 | return NULL; |
1d99702e RD |
10254 | if (_argo0) { |
10255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
10258 | return NULL; | |
10259 | } | |
10260 | } | |
10261 | { | |
4268f798 | 10262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10263 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); |
b1462dfa | 10264 | |
4268f798 | 10265 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10266 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10267 | }{ |
c8bc7bb8 RD |
10268 | #if wxUSE_UNICODE |
10269 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10270 | #else | |
eec92d76 | 10271 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10272 | #endif |
b1462dfa RD |
10273 | } |
10274 | { | |
10275 | delete _result; | |
10276 | } | |
10277 | return _resultobj; | |
10278 | } | |
10279 | ||
10280 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
10281 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10282 | PyObject * _resultobj; | |
10283 | wxMenuBar * _arg0; | |
10284 | int _arg1; | |
10285 | wxString * _arg2; | |
10286 | PyObject * _argo0 = 0; | |
10287 | PyObject * _obj2 = 0; | |
10288 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
10289 | ||
10290 | self = self; | |
10291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
10292 | return NULL; | |
10293 | if (_argo0) { | |
10294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
10297 | return NULL; | |
10298 | } | |
10299 | } | |
10300 | { | |
c8bc7bb8 RD |
10301 | _arg2 = wxString_in_helper(_obj2); |
10302 | if (_arg2 == NULL) | |
b1462dfa | 10303 | return NULL; |
b1462dfa RD |
10304 | } |
10305 | { | |
4268f798 | 10306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10307 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); |
b1462dfa | 10308 | |
4268f798 | 10309 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10310 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10311 | } Py_INCREF(Py_None); |
10312 | _resultobj = Py_None; | |
10313 | { | |
10314 | if (_obj2) | |
10315 | delete _arg2; | |
10316 | } | |
10317 | return _resultobj; | |
10318 | } | |
10319 | ||
10320 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
10321 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10322 | PyObject * _resultobj; | |
10323 | wxString * _result; | |
10324 | wxMenuBar * _arg0; | |
10325 | int _arg1; | |
10326 | PyObject * _argo0 = 0; | |
10327 | char *_kwnames[] = { "self","id", NULL }; | |
10328 | ||
10329 | self = self; | |
10330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
10331 | return NULL; | |
10332 | if (_argo0) { | |
10333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10336 | return NULL; |
10337 | } | |
10338 | } | |
cf694132 | 10339 | { |
4268f798 | 10340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10341 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 | 10342 | |
4268f798 | 10343 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10344 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10345 | }{ |
c8bc7bb8 RD |
10346 | #if wxUSE_UNICODE |
10347 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10348 | #else | |
eec92d76 | 10349 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10350 | #endif |
b1462dfa RD |
10351 | } |
10352 | { | |
10353 | delete _result; | |
10354 | } | |
8ab979d7 RD |
10355 | return _resultobj; |
10356 | } | |
10357 | ||
9416aa89 RD |
10358 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
10359 | wxMenuItem *src; | |
10360 | wxObject *dest; | |
10361 | src = (wxMenuItem *) ptr; | |
10362 | dest = (wxObject *) src; | |
10363 | return (void *) dest; | |
10364 | } | |
10365 | ||
b1462dfa RD |
10366 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
10367 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10368 | PyObject * _resultobj; |
b1462dfa RD |
10369 | wxMenuItem * _result; |
10370 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 10371 | int _arg1 = (int ) wxID_SEPARATOR; |
137b5242 RD |
10372 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
10373 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
546bfbea | 10374 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
b1462dfa | 10375 | wxMenu * _arg5 = (wxMenu *) NULL; |
1d99702e | 10376 | PyObject * _argo0 = 0; |
b1462dfa RD |
10377 | PyObject * _obj2 = 0; |
10378 | PyObject * _obj3 = 0; | |
b1462dfa | 10379 | PyObject * _argo5 = 0; |
e9159fe8 | 10380 | char *_kwnames[] = { "parentMenu","id","text","help","kind","subMenu", NULL }; |
b1462dfa | 10381 | char _ptemp[128]; |
8ab979d7 RD |
10382 | |
10383 | self = self; | |
e9159fe8 | 10384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5)) |
8ab979d7 | 10385 | return NULL; |
1d99702e RD |
10386 | if (_argo0) { |
10387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
10389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
10390 | return NULL; | |
10391 | } | |
10392 | } | |
10393 | if (_obj2) | |
10394 | { | |
c8bc7bb8 RD |
10395 | _arg2 = wxString_in_helper(_obj2); |
10396 | if (_arg2 == NULL) | |
b1462dfa | 10397 | return NULL; |
b1462dfa RD |
10398 | } |
10399 | if (_obj3) | |
10400 | { | |
c8bc7bb8 RD |
10401 | _arg3 = wxString_in_helper(_obj3); |
10402 | if (_arg3 == NULL) | |
b1462dfa | 10403 | return NULL; |
b1462dfa | 10404 | } |
b1462dfa RD |
10405 | if (_argo5) { |
10406 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
10407 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
10408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
10409 | return NULL; |
10410 | } | |
10411 | } | |
cf694132 | 10412 | { |
4268f798 | 10413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10414 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 | 10415 | |
4268f798 | 10416 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10417 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10418 | } if (_result) { |
10419 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
10420 | _resultobj = Py_BuildValue("s",_ptemp); | |
10421 | } else { | |
10422 | Py_INCREF(Py_None); | |
10423 | _resultobj = Py_None; | |
10424 | } | |
10425 | { | |
10426 | if (_obj2) | |
10427 | delete _arg2; | |
10428 | } | |
10429 | { | |
10430 | if (_obj3) | |
10431 | delete _arg3; | |
10432 | } | |
8ab979d7 RD |
10433 | return _resultobj; |
10434 | } | |
10435 | ||
b1462dfa RD |
10436 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
10437 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10438 | PyObject * _resultobj; |
b1462dfa | 10439 | wxMenu * _result; |
8ab979d7 | 10440 | wxMenuItem * _arg0; |
1d99702e | 10441 | PyObject * _argo0 = 0; |
efc5f224 | 10442 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10443 | |
10444 | self = self; | |
b1462dfa | 10445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 10446 | return NULL; |
1d99702e RD |
10447 | if (_argo0) { |
10448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10451 | return NULL; |
10452 | } | |
10453 | } | |
cf694132 | 10454 | { |
4268f798 | 10455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10456 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 | 10457 | |
4268f798 | 10458 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10459 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 10460 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
10461 | return _resultobj; |
10462 | } | |
10463 | ||
2abc0a0f RD |
10464 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
10465 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10466 | PyObject * _resultobj; |
10467 | wxMenuItem * _arg0; | |
2abc0a0f | 10468 | int _arg1; |
1d99702e | 10469 | PyObject * _argo0 = 0; |
2abc0a0f | 10470 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10471 | |
10472 | self = self; | |
2abc0a0f | 10473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10474 | return NULL; |
1d99702e RD |
10475 | if (_argo0) { |
10476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 10478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10479 | return NULL; |
10480 | } | |
10481 | } | |
cf694132 | 10482 | { |
4268f798 | 10483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10484 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 | 10485 | |
4268f798 | 10486 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10487 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10488 | } Py_INCREF(Py_None); |
8ab979d7 | 10489 | _resultobj = Py_None; |
8ab979d7 RD |
10490 | return _resultobj; |
10491 | } | |
10492 | ||
b1462dfa RD |
10493 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
10494 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10495 | PyObject * _resultobj; |
b1462dfa | 10496 | int _result; |
8ab979d7 | 10497 | wxMenuItem * _arg0; |
1d99702e | 10498 | PyObject * _argo0 = 0; |
efc5f224 | 10499 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10500 | |
10501 | self = self; | |
b1462dfa | 10502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 10503 | return NULL; |
1d99702e RD |
10504 | if (_argo0) { |
10505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10508 | return NULL; |
10509 | } | |
10510 | } | |
8ab979d7 | 10511 | { |
4268f798 | 10512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10513 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 | 10514 | |
4268f798 | 10515 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10516 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10517 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10518 | return _resultobj; |
10519 | } | |
10520 | ||
b1462dfa RD |
10521 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
10522 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10523 | PyObject * _resultobj; |
b1462dfa | 10524 | bool _result; |
8ab979d7 | 10525 | wxMenuItem * _arg0; |
1d99702e | 10526 | PyObject * _argo0 = 0; |
efc5f224 | 10527 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10528 | |
10529 | self = self; | |
b1462dfa | 10530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 10531 | return NULL; |
1d99702e RD |
10532 | if (_argo0) { |
10533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10536 | return NULL; |
10537 | } | |
10538 | } | |
8ab979d7 | 10539 | { |
4268f798 | 10540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10541 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 | 10542 | |
4268f798 | 10543 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10544 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10545 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10546 | return _resultobj; |
10547 | } | |
10548 | ||
b1462dfa RD |
10549 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
10550 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10551 | PyObject * _resultobj; |
10552 | wxMenuItem * _arg0; | |
10553 | wxString * _arg1; | |
1d99702e | 10554 | PyObject * _argo0 = 0; |
8ab979d7 | 10555 | PyObject * _obj1 = 0; |
b1462dfa | 10556 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
10557 | |
10558 | self = self; | |
b1462dfa | 10559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 10560 | return NULL; |
1d99702e RD |
10561 | if (_argo0) { |
10562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10565 | return NULL; |
10566 | } | |
10567 | } | |
10568 | { | |
c8bc7bb8 RD |
10569 | _arg1 = wxString_in_helper(_obj1); |
10570 | if (_arg1 == NULL) | |
185d7c3e | 10571 | return NULL; |
8ab979d7 | 10572 | } |
cf694132 | 10573 | { |
4268f798 | 10574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10575 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 | 10576 | |
4268f798 | 10577 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10578 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10579 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10580 | _resultobj = Py_None; |
10581 | { | |
10582 | if (_obj1) | |
10583 | delete _arg1; | |
10584 | } | |
10585 | return _resultobj; | |
10586 | } | |
10587 | ||
b1462dfa RD |
10588 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
10589 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10590 | PyObject * _resultobj; |
b1462dfa | 10591 | wxString * _result; |
8ab979d7 | 10592 | wxMenuItem * _arg0; |
1d99702e | 10593 | PyObject * _argo0 = 0; |
b1462dfa | 10594 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10595 | |
10596 | self = self; | |
b1462dfa | 10597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 10598 | return NULL; |
1d99702e RD |
10599 | if (_argo0) { |
10600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10603 | return NULL; |
10604 | } | |
10605 | } | |
cf694132 | 10606 | { |
4268f798 | 10607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10608 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 | 10609 | |
4268f798 | 10610 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10611 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10612 | }{ |
c8bc7bb8 RD |
10613 | #if wxUSE_UNICODE |
10614 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10615 | #else | |
eec92d76 | 10616 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10617 | #endif |
8ab979d7 | 10618 | } |
cf694132 | 10619 | { |
b1462dfa RD |
10620 | delete _result; |
10621 | } | |
cf694132 RD |
10622 | return _resultobj; |
10623 | } | |
10624 | ||
b1462dfa RD |
10625 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
10626 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10627 | PyObject * _resultobj; |
b1462dfa | 10628 | wxString * _result; |
cf694132 | 10629 | wxMenuItem * _arg0; |
1d99702e | 10630 | PyObject * _argo0 = 0; |
efc5f224 | 10631 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10632 | |
10633 | self = self; | |
b1462dfa | 10634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 10635 | return NULL; |
1d99702e RD |
10636 | if (_argo0) { |
10637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
10640 | return NULL; |
10641 | } | |
10642 | } | |
10643 | { | |
4268f798 | 10644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10645 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
b1462dfa | 10646 | _result = (wxString *) &_result_ref; |
cf694132 | 10647 | |
4268f798 | 10648 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10649 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10650 | }{ |
c8bc7bb8 RD |
10651 | #if wxUSE_UNICODE |
10652 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10653 | #else | |
eec92d76 | 10654 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10655 | #endif |
cf694132 | 10656 | } |
cf694132 RD |
10657 | return _resultobj; |
10658 | } | |
10659 | ||
e9159fe8 RD |
10660 | #define wxMenuItem_GetKind(_swigobj) (_swigobj->GetKind()) |
10661 | static PyObject *_wrap_wxMenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10662 | PyObject * _resultobj; | |
10663 | wxItemKind _result; | |
10664 | wxMenuItem * _arg0; | |
10665 | PyObject * _argo0 = 0; | |
10666 | char *_kwnames[] = { "self", NULL }; | |
10667 | ||
10668 | self = self; | |
10669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetKind",_kwnames,&_argo0)) | |
10670 | return NULL; | |
10671 | if (_argo0) { | |
10672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetKind. Expected _wxMenuItem_p."); | |
10675 | return NULL; | |
10676 | } | |
10677 | } | |
10678 | { | |
10679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10680 | _result = (wxItemKind )wxMenuItem_GetKind(_arg0); | |
10681 | ||
10682 | wxPyEndAllowThreads(__tstate); | |
10683 | if (PyErr_Occurred()) return NULL; | |
10684 | } _resultobj = Py_BuildValue("i",_result); | |
10685 | return _resultobj; | |
10686 | } | |
10687 | ||
b1462dfa RD |
10688 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
10689 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10690 | PyObject * _resultobj; |
cf694132 | 10691 | wxMenuItem * _arg0; |
b1462dfa | 10692 | bool _arg1; |
1d99702e | 10693 | PyObject * _argo0 = 0; |
b1462dfa RD |
10694 | int tempbool1; |
10695 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
10696 | |
10697 | self = self; | |
b1462dfa | 10698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 10699 | return NULL; |
1d99702e RD |
10700 | if (_argo0) { |
10701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
10704 | return NULL; |
10705 | } | |
10706 | } | |
b1462dfa | 10707 | _arg1 = (bool ) tempbool1; |
cf694132 | 10708 | { |
4268f798 | 10709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10710 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 | 10711 | |
4268f798 | 10712 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10713 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10714 | } Py_INCREF(Py_None); |
10715 | _resultobj = Py_None; | |
cf694132 RD |
10716 | return _resultobj; |
10717 | } | |
10718 | ||
b1462dfa RD |
10719 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
10720 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10721 | PyObject * _resultobj; |
b1462dfa | 10722 | bool _result; |
cf694132 | 10723 | wxMenuItem * _arg0; |
1d99702e | 10724 | PyObject * _argo0 = 0; |
efc5f224 | 10725 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10726 | |
10727 | self = self; | |
b1462dfa | 10728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 10729 | return NULL; |
1d99702e RD |
10730 | if (_argo0) { |
10731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
10734 | return NULL; |
10735 | } | |
10736 | } | |
10737 | { | |
4268f798 | 10738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10739 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 | 10740 | |
4268f798 | 10741 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10742 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10743 | } _resultobj = Py_BuildValue("i",_result); |
10744 | return _resultobj; | |
10745 | } | |
10746 | ||
b1462dfa RD |
10747 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
10748 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10749 | PyObject * _resultobj; |
b1462dfa | 10750 | bool _result; |
cf694132 | 10751 | wxMenuItem * _arg0; |
1d99702e | 10752 | PyObject * _argo0 = 0; |
efc5f224 | 10753 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10754 | |
10755 | self = self; | |
b1462dfa | 10756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 10757 | return NULL; |
1d99702e RD |
10758 | if (_argo0) { |
10759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
10762 | return NULL; |
10763 | } | |
10764 | } | |
10765 | { | |
4268f798 | 10766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10767 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 | 10768 | |
4268f798 | 10769 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10770 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10771 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
10772 | return _resultobj; |
10773 | } | |
10774 | ||
b1462dfa RD |
10775 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
10776 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
10777 | PyObject * _resultobj; |
10778 | wxMenuItem * _arg0; | |
b1462dfa | 10779 | wxMenu * _arg1; |
1d99702e RD |
10780 | PyObject * _argo0 = 0; |
10781 | PyObject * _argo1 = 0; | |
b1462dfa | 10782 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
10783 | |
10784 | self = self; | |
b1462dfa | 10785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 10786 | return NULL; |
1d99702e RD |
10787 | if (_argo0) { |
10788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
10791 | return NULL; |
10792 | } | |
10793 | } | |
1d99702e RD |
10794 | if (_argo1) { |
10795 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
10796 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
10797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
10798 | return NULL; |
10799 | } | |
10800 | } | |
10801 | { | |
4268f798 | 10802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10803 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 | 10804 | |
4268f798 | 10805 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10806 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10807 | } Py_INCREF(Py_None); |
10808 | _resultobj = Py_None; | |
10809 | return _resultobj; | |
10810 | } | |
10811 | ||
b1462dfa RD |
10812 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
10813 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10814 | PyObject * _resultobj; |
b1462dfa | 10815 | wxMenu * _result; |
cf694132 | 10816 | wxMenuItem * _arg0; |
1d99702e | 10817 | PyObject * _argo0 = 0; |
b1462dfa | 10818 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10819 | |
10820 | self = self; | |
b1462dfa | 10821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 10822 | return NULL; |
1d99702e RD |
10823 | if (_argo0) { |
10824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
10827 | return NULL; |
10828 | } | |
10829 | } | |
b1462dfa | 10830 | { |
4268f798 | 10831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10832 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); |
b1462dfa | 10833 | |
4268f798 | 10834 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10835 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 10836 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
10837 | return _resultobj; |
10838 | } | |
10839 | ||
10840 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
10841 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10842 | PyObject * _resultobj; | |
10843 | wxMenuItem * _arg0; | |
10844 | bool _arg1 = (bool ) TRUE; | |
10845 | PyObject * _argo0 = 0; | |
10846 | int tempbool1 = (int) TRUE; | |
10847 | char *_kwnames[] = { "self","enable", NULL }; | |
10848 | ||
10849 | self = self; | |
10850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
10851 | return NULL; | |
10852 | if (_argo0) { | |
10853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
10856 | return NULL; |
10857 | } | |
10858 | } | |
b1462dfa | 10859 | _arg1 = (bool ) tempbool1; |
cf694132 | 10860 | { |
4268f798 | 10861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10862 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 | 10863 | |
4268f798 | 10864 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10865 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10866 | } Py_INCREF(Py_None); |
10867 | _resultobj = Py_None; | |
10868 | return _resultobj; | |
10869 | } | |
10870 | ||
b1462dfa RD |
10871 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
10872 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10873 | PyObject * _resultobj; |
b1462dfa | 10874 | bool _result; |
cf694132 | 10875 | wxMenuItem * _arg0; |
1d99702e | 10876 | PyObject * _argo0 = 0; |
b1462dfa | 10877 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10878 | |
10879 | self = self; | |
b1462dfa | 10880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 10881 | return NULL; |
1d99702e RD |
10882 | if (_argo0) { |
10883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
10886 | return NULL; |
10887 | } | |
10888 | } | |
10889 | { | |
4268f798 | 10890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10891 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 | 10892 | |
4268f798 | 10893 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10894 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10895 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
10896 | return _resultobj; |
10897 | } | |
10898 | ||
b1462dfa RD |
10899 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
10900 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
10901 | PyObject * _resultobj; |
10902 | wxMenuItem * _arg0; | |
b1462dfa | 10903 | bool _arg1 = (bool ) TRUE; |
1d99702e | 10904 | PyObject * _argo0 = 0; |
b1462dfa RD |
10905 | int tempbool1 = (int) TRUE; |
10906 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
10907 | |
10908 | self = self; | |
b1462dfa | 10909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 10910 | return NULL; |
1d99702e RD |
10911 | if (_argo0) { |
10912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
10915 | return NULL; |
10916 | } | |
10917 | } | |
b1462dfa | 10918 | _arg1 = (bool ) tempbool1; |
cf694132 | 10919 | { |
4268f798 | 10920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10921 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 | 10922 | |
4268f798 | 10923 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10924 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10925 | } Py_INCREF(Py_None); |
10926 | _resultobj = Py_None; | |
10927 | return _resultobj; | |
10928 | } | |
10929 | ||
b1462dfa RD |
10930 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
10931 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 10932 | PyObject * _resultobj; |
b1462dfa | 10933 | bool _result; |
2abc0a0f | 10934 | wxMenuItem * _arg0; |
2abc0a0f | 10935 | PyObject * _argo0 = 0; |
b1462dfa | 10936 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
10937 | |
10938 | self = self; | |
b1462dfa | 10939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
10940 | return NULL; |
10941 | if (_argo0) { | |
10942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10945 | return NULL; |
10946 | } | |
10947 | } | |
2abc0a0f | 10948 | { |
4268f798 | 10949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10950 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f | 10951 | |
4268f798 | 10952 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10953 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10954 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
10955 | return _resultobj; |
10956 | } | |
10957 | ||
b1462dfa RD |
10958 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
10959 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 10960 | PyObject * _resultobj; |
2abc0a0f RD |
10961 | wxMenuItem * _arg0; |
10962 | PyObject * _argo0 = 0; | |
10963 | char *_kwnames[] = { "self", NULL }; | |
10964 | ||
10965 | self = self; | |
b1462dfa | 10966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
10967 | return NULL; |
10968 | if (_argo0) { | |
10969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10972 | return NULL; |
10973 | } | |
10974 | } | |
10975 | { | |
4268f798 | 10976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10977 | wxMenuItem_Toggle(_arg0); |
2abc0a0f | 10978 | |
4268f798 | 10979 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10980 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10981 | } Py_INCREF(Py_None); |
10982 | _resultobj = Py_None; | |
2abc0a0f RD |
10983 | return _resultobj; |
10984 | } | |
10985 | ||
b1462dfa RD |
10986 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
10987 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
10988 | PyObject * _resultobj; |
10989 | wxMenuItem * _arg0; | |
b1462dfa | 10990 | wxString * _arg1; |
1d99702e | 10991 | PyObject * _argo0 = 0; |
b1462dfa RD |
10992 | PyObject * _obj1 = 0; |
10993 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
10994 | |
10995 | self = self; | |
b1462dfa | 10996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 10997 | return NULL; |
1d99702e RD |
10998 | if (_argo0) { |
10999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
11002 | return NULL; |
11003 | } | |
11004 | } | |
b1462dfa | 11005 | { |
c8bc7bb8 RD |
11006 | _arg1 = wxString_in_helper(_obj1); |
11007 | if (_arg1 == NULL) | |
185d7c3e | 11008 | return NULL; |
b1462dfa | 11009 | } |
cf694132 | 11010 | { |
4268f798 | 11011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11012 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 | 11013 | |
4268f798 | 11014 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11015 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11016 | } Py_INCREF(Py_None); |
8ab979d7 | 11017 | _resultobj = Py_None; |
b1462dfa RD |
11018 | { |
11019 | if (_obj1) | |
11020 | delete _arg1; | |
11021 | } | |
8ab979d7 RD |
11022 | return _resultobj; |
11023 | } | |
11024 | ||
b1462dfa RD |
11025 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
11026 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 11027 | PyObject * _resultobj; |
b1462dfa | 11028 | wxString * _result; |
be4d9c1f | 11029 | wxMenuItem * _arg0; |
1d99702e | 11030 | PyObject * _argo0 = 0; |
efc5f224 | 11031 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
11032 | |
11033 | self = self; | |
b1462dfa | 11034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 11035 | return NULL; |
1d99702e RD |
11036 | if (_argo0) { |
11037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
11040 | return NULL; |
11041 | } | |
11042 | } | |
cf694132 | 11043 | { |
4268f798 | 11044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11045 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
b1462dfa | 11046 | _result = (wxString *) &_result_ref; |
cf694132 | 11047 | |
4268f798 | 11048 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11049 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 11050 | }{ |
c8bc7bb8 RD |
11051 | #if wxUSE_UNICODE |
11052 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
11053 | #else | |
eec92d76 | 11054 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11055 | #endif |
b1462dfa | 11056 | } |
be4d9c1f RD |
11057 | return _resultobj; |
11058 | } | |
11059 | ||
b1462dfa RD |
11060 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
11061 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 11062 | PyObject * _resultobj; |
b1462dfa | 11063 | wxAcceleratorEntry * _result; |
2abc0a0f | 11064 | wxMenuItem * _arg0; |
2abc0a0f | 11065 | PyObject * _argo0 = 0; |
b1462dfa RD |
11066 | char *_kwnames[] = { "self", NULL }; |
11067 | char _ptemp[128]; | |
2abc0a0f RD |
11068 | |
11069 | self = self; | |
b1462dfa | 11070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
11071 | return NULL; |
11072 | if (_argo0) { | |
11073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
11076 | return NULL; |
11077 | } | |
11078 | } | |
2abc0a0f | 11079 | { |
4268f798 | 11080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11081 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f | 11082 | |
4268f798 | 11083 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11084 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
11085 | } if (_result) { |
11086 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
11087 | _resultobj = Py_BuildValue("s",_ptemp); | |
11088 | } else { | |
11089 | Py_INCREF(Py_None); | |
11090 | _resultobj = Py_None; | |
11091 | } | |
2abc0a0f RD |
11092 | return _resultobj; |
11093 | } | |
11094 | ||
b1462dfa RD |
11095 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
11096 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
11097 | PyObject * _resultobj; |
11098 | wxMenuItem * _arg0; | |
b1462dfa | 11099 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
11100 | PyObject * _argo0 = 0; |
11101 | PyObject * _argo1 = 0; | |
b1462dfa | 11102 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
11103 | |
11104 | self = self; | |
b1462dfa | 11105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
11106 | return NULL; |
11107 | if (_argo0) { | |
11108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
11111 | return NULL; |
11112 | } | |
11113 | } | |
11114 | if (_argo1) { | |
11115 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
11116 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
11117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
11118 | return NULL; |
11119 | } | |
11120 | } | |
11121 | { | |
4268f798 | 11122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11123 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f | 11124 | |
4268f798 | 11125 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11126 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
11127 | } Py_INCREF(Py_None); |
11128 | _resultobj = Py_None; | |
11129 | return _resultobj; | |
11130 | } | |
11131 | ||
1b62f00d RD |
11132 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
11133 | PyObject * _resultobj; | |
11134 | wxString * _result; | |
11135 | wxString * _arg0; | |
11136 | PyObject * _obj0 = 0; | |
11137 | char *_kwnames[] = { "text", NULL }; | |
11138 | ||
11139 | self = self; | |
11140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
11141 | return NULL; | |
11142 | { | |
c8bc7bb8 RD |
11143 | _arg0 = wxString_in_helper(_obj0); |
11144 | if (_arg0 == NULL) | |
1b62f00d | 11145 | return NULL; |
1b62f00d RD |
11146 | } |
11147 | { | |
4268f798 | 11148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11149 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); |
1b62f00d | 11150 | |
4268f798 | 11151 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11152 | if (PyErr_Occurred()) return NULL; |
1b62f00d | 11153 | }{ |
c8bc7bb8 RD |
11154 | #if wxUSE_UNICODE |
11155 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
11156 | #else | |
1b62f00d | 11157 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11158 | #endif |
1b62f00d RD |
11159 | } |
11160 | { | |
11161 | if (_obj0) | |
11162 | delete _arg0; | |
11163 | } | |
11164 | { | |
11165 | delete _result; | |
11166 | } | |
11167 | return _resultobj; | |
11168 | } | |
11169 | ||
f3d9dc1d RD |
11170 | #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
11171 | static PyObject *_wrap_wxMenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11172 | PyObject * _resultobj; | |
11173 | wxMenuItem * _arg0; | |
11174 | wxFont * _arg1; | |
11175 | PyObject * _argo0 = 0; | |
11176 | PyObject * _argo1 = 0; | |
11177 | char *_kwnames[] = { "self","font", NULL }; | |
11178 | ||
11179 | self = self; | |
11180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
11181 | return NULL; | |
11182 | if (_argo0) { | |
11183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p."); | |
11186 | return NULL; | |
11187 | } | |
11188 | } | |
11189 | if (_argo1) { | |
11190 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11191 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
11192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p."); | |
11193 | return NULL; | |
11194 | } | |
11195 | } | |
11196 | { | |
4268f798 | 11197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11198 | wxMenuItem_SetFont(_arg0,*_arg1); |
f3d9dc1d | 11199 | |
4268f798 | 11200 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11201 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11202 | } Py_INCREF(Py_None); |
11203 | _resultobj = Py_None; | |
11204 | return _resultobj; | |
11205 | } | |
11206 | ||
11207 | #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
11208 | static PyObject *_wrap_wxMenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11209 | PyObject * _resultobj; | |
11210 | wxFont * _result; | |
11211 | wxMenuItem * _arg0; | |
11212 | PyObject * _argo0 = 0; | |
11213 | char *_kwnames[] = { "self", NULL }; | |
11214 | char _ptemp[128]; | |
11215 | ||
11216 | self = self; | |
11217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetFont",_kwnames,&_argo0)) | |
11218 | return NULL; | |
11219 | if (_argo0) { | |
11220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p."); | |
11223 | return NULL; | |
11224 | } | |
11225 | } | |
11226 | { | |
4268f798 | 11227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11228 | _result = new wxFont (wxMenuItem_GetFont(_arg0)); |
f3d9dc1d | 11229 | |
4268f798 | 11230 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11231 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
11232 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
11233 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
11234 | return _resultobj; |
11235 | } | |
11236 | ||
11237 | #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
11238 | static PyObject *_wrap_wxMenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11239 | PyObject * _resultobj; | |
11240 | wxMenuItem * _arg0; | |
11241 | wxColour * _arg1; | |
11242 | PyObject * _argo0 = 0; | |
11243 | wxColour temp; | |
11244 | PyObject * _obj1 = 0; | |
11245 | char *_kwnames[] = { "self","colText", NULL }; | |
11246 | ||
11247 | self = self; | |
11248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
11249 | return NULL; | |
11250 | if (_argo0) { | |
11251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p."); | |
11254 | return NULL; | |
11255 | } | |
11256 | } | |
11257 | { | |
11258 | _arg1 = &temp; | |
11259 | if (! wxColour_helper(_obj1, &_arg1)) | |
11260 | return NULL; | |
11261 | } | |
11262 | { | |
4268f798 | 11263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11264 | wxMenuItem_SetTextColour(_arg0,*_arg1); |
f3d9dc1d | 11265 | |
4268f798 | 11266 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11267 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11268 | } Py_INCREF(Py_None); |
11269 | _resultobj = Py_None; | |
11270 | return _resultobj; | |
11271 | } | |
11272 | ||
11273 | #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
11274 | static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11275 | PyObject * _resultobj; | |
11276 | wxColour * _result; | |
11277 | wxMenuItem * _arg0; | |
11278 | PyObject * _argo0 = 0; | |
11279 | char *_kwnames[] = { "self", NULL }; | |
11280 | char _ptemp[128]; | |
11281 | ||
11282 | self = self; | |
11283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetTextColour",_kwnames,&_argo0)) | |
11284 | return NULL; | |
11285 | if (_argo0) { | |
11286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p."); | |
11289 | return NULL; | |
11290 | } | |
11291 | } | |
11292 | { | |
4268f798 | 11293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11294 | _result = new wxColour (wxMenuItem_GetTextColour(_arg0)); |
f3d9dc1d | 11295 | |
4268f798 | 11296 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11297 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
11298 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
11299 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
11300 | return _resultobj; |
11301 | } | |
11302 | ||
11303 | #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
11304 | static PyObject *_wrap_wxMenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11305 | PyObject * _resultobj; | |
11306 | wxMenuItem * _arg0; | |
11307 | wxColour * _arg1; | |
11308 | PyObject * _argo0 = 0; | |
11309 | wxColour temp; | |
11310 | PyObject * _obj1 = 0; | |
11311 | char *_kwnames[] = { "self","colBack", NULL }; | |
11312 | ||
11313 | self = self; | |
11314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
11315 | return NULL; | |
11316 | if (_argo0) { | |
11317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p."); | |
11320 | return NULL; | |
11321 | } | |
11322 | } | |
11323 | { | |
11324 | _arg1 = &temp; | |
11325 | if (! wxColour_helper(_obj1, &_arg1)) | |
11326 | return NULL; | |
11327 | } | |
11328 | { | |
4268f798 | 11329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11330 | wxMenuItem_SetBackgroundColour(_arg0,*_arg1); |
f3d9dc1d | 11331 | |
4268f798 | 11332 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11333 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11334 | } Py_INCREF(Py_None); |
11335 | _resultobj = Py_None; | |
11336 | return _resultobj; | |
11337 | } | |
11338 | ||
11339 | #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
11340 | static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11341 | PyObject * _resultobj; | |
11342 | wxColour * _result; | |
11343 | wxMenuItem * _arg0; | |
11344 | PyObject * _argo0 = 0; | |
11345 | char *_kwnames[] = { "self", NULL }; | |
11346 | char _ptemp[128]; | |
11347 | ||
11348 | self = self; | |
11349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBackgroundColour",_kwnames,&_argo0)) | |
11350 | return NULL; | |
11351 | if (_argo0) { | |
11352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p."); | |
11355 | return NULL; | |
11356 | } | |
11357 | } | |
11358 | { | |
4268f798 | 11359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11360 | _result = new wxColour (wxMenuItem_GetBackgroundColour(_arg0)); |
f3d9dc1d | 11361 | |
4268f798 | 11362 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11363 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
11364 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
11365 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
11366 | return _resultobj; |
11367 | } | |
11368 | ||
11369 | #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1)) | |
11370 | static PyObject *_wrap_wxMenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11371 | PyObject * _resultobj; | |
11372 | wxMenuItem * _arg0; | |
11373 | wxBitmap * _arg1; | |
11374 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
11375 | PyObject * _argo0 = 0; | |
11376 | PyObject * _argo1 = 0; | |
11377 | PyObject * _argo2 = 0; | |
11378 | char *_kwnames[] = { "self","bmpChecked","bmpUnchecked", NULL }; | |
11379 | ||
11380 | self = self; | |
11381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxMenuItem_SetBitmaps",_kwnames,&_argo0,&_argo1,&_argo2)) | |
11382 | return NULL; | |
11383 | if (_argo0) { | |
11384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p."); | |
11387 | return NULL; | |
11388 | } | |
11389 | } | |
11390 | if (_argo1) { | |
11391 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11392 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
11393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
11394 | return NULL; | |
11395 | } | |
11396 | } | |
11397 | if (_argo2) { | |
11398 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
11399 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
11400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
11401 | return NULL; | |
11402 | } | |
11403 | } | |
11404 | { | |
4268f798 | 11405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11406 | wxMenuItem_SetBitmaps(_arg0,*_arg1,*_arg2); |
f3d9dc1d | 11407 | |
4268f798 | 11408 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11409 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11410 | } Py_INCREF(Py_None); |
11411 | _resultobj = Py_None; | |
11412 | return _resultobj; | |
11413 | } | |
11414 | ||
11415 | #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
11416 | static PyObject *_wrap_wxMenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11417 | PyObject * _resultobj; | |
11418 | wxMenuItem * _arg0; | |
11419 | wxBitmap * _arg1; | |
11420 | PyObject * _argo0 = 0; | |
11421 | PyObject * _argo1 = 0; | |
11422 | char *_kwnames[] = { "self","bmpChecked", NULL }; | |
11423 | ||
11424 | self = self; | |
11425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
11426 | return NULL; | |
11427 | if (_argo0) { | |
11428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p."); | |
11431 | return NULL; | |
11432 | } | |
11433 | } | |
11434 | if (_argo1) { | |
11435 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11436 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
11437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p."); | |
11438 | return NULL; | |
11439 | } | |
11440 | } | |
11441 | { | |
4268f798 | 11442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11443 | wxMenuItem_SetBitmap(_arg0,*_arg1); |
f3d9dc1d | 11444 | |
4268f798 | 11445 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11446 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11447 | } Py_INCREF(Py_None); |
11448 | _resultobj = Py_None; | |
11449 | return _resultobj; | |
11450 | } | |
11451 | ||
11452 | #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0)) | |
11453 | static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11454 | PyObject * _resultobj; | |
11455 | wxBitmap * _result; | |
11456 | wxMenuItem * _arg0; | |
11457 | bool _arg1 = (bool ) TRUE; | |
11458 | PyObject * _argo0 = 0; | |
11459 | int tempbool1 = (int) TRUE; | |
11460 | char *_kwnames[] = { "self","bChecked", NULL }; | |
11461 | char _ptemp[128]; | |
11462 | ||
11463 | self = self; | |
11464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_GetBitmap",_kwnames,&_argo0,&tempbool1)) | |
11465 | return NULL; | |
11466 | if (_argo0) { | |
11467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p."); | |
11470 | return NULL; | |
11471 | } | |
11472 | } | |
11473 | _arg1 = (bool ) tempbool1; | |
11474 | { | |
4268f798 | 11475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11476 | _result = new wxBitmap (wxMenuItem_GetBitmap(_arg0,_arg1)); |
f3d9dc1d | 11477 | |
4268f798 | 11478 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11479 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
11480 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
11481 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
11482 | return _resultobj; |
11483 | } | |
11484 | ||
11485 | #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0)) | |
11486 | static PyObject *_wrap_wxMenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11487 | PyObject * _resultobj; | |
11488 | wxMenuItem * _arg0; | |
11489 | int _arg1; | |
11490 | PyObject * _argo0 = 0; | |
11491 | char *_kwnames[] = { "self","nWidth", NULL }; | |
11492 | ||
11493 | self = self; | |
11494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetMarginWidth",_kwnames,&_argo0,&_arg1)) | |
11495 | return NULL; | |
11496 | if (_argo0) { | |
11497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p."); | |
11500 | return NULL; | |
11501 | } | |
11502 | } | |
11503 | { | |
4268f798 | 11504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11505 | wxMenuItem_SetMarginWidth(_arg0,_arg1); |
f3d9dc1d | 11506 | |
4268f798 | 11507 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11508 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11509 | } Py_INCREF(Py_None); |
11510 | _resultobj = Py_None; | |
11511 | return _resultobj; | |
11512 | } | |
11513 | ||
11514 | #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth()) | |
11515 | static PyObject *_wrap_wxMenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11516 | PyObject * _resultobj; | |
11517 | int _result; | |
11518 | wxMenuItem * _arg0; | |
11519 | PyObject * _argo0 = 0; | |
11520 | char *_kwnames[] = { "self", NULL }; | |
11521 | ||
11522 | self = self; | |
11523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMarginWidth",_kwnames,&_argo0)) | |
11524 | return NULL; | |
11525 | if (_argo0) { | |
11526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p."); | |
11529 | return NULL; | |
11530 | } | |
11531 | } | |
11532 | { | |
4268f798 | 11533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11534 | _result = (int )wxMenuItem_GetMarginWidth(_arg0); |
f3d9dc1d | 11535 | |
4268f798 | 11536 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11537 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11538 | } _resultobj = Py_BuildValue("i",_result); |
11539 | return _resultobj; | |
11540 | } | |
11541 | ||
11542 | static PyObject *_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11543 | PyObject * _resultobj; | |
11544 | int _result; | |
11545 | char *_kwnames[] = { NULL }; | |
11546 | ||
11547 | self = self; | |
11548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMenuItem_GetDefaultMarginWidth",_kwnames)) | |
11549 | return NULL; | |
11550 | { | |
4268f798 | 11551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11552 | _result = (int )wxMenuItem::GetDefaultMarginWidth(); |
f3d9dc1d | 11553 | |
4268f798 | 11554 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11555 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11556 | } _resultobj = Py_BuildValue("i",_result); |
11557 | return _resultobj; | |
11558 | } | |
11559 | ||
11560 | #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn()) | |
11561 | static PyObject *_wrap_wxMenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11562 | PyObject * _resultobj; | |
11563 | bool _result; | |
11564 | wxMenuItem * _arg0; | |
11565 | PyObject * _argo0 = 0; | |
11566 | char *_kwnames[] = { "self", NULL }; | |
11567 | ||
11568 | self = self; | |
11569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsOwnerDrawn",_kwnames,&_argo0)) | |
11570 | return NULL; | |
11571 | if (_argo0) { | |
11572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p."); | |
11575 | return NULL; | |
11576 | } | |
11577 | } | |
11578 | { | |
4268f798 | 11579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11580 | _result = (bool )wxMenuItem_IsOwnerDrawn(_arg0); |
f3d9dc1d | 11581 | |
4268f798 | 11582 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11583 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11584 | } _resultobj = Py_BuildValue("i",_result); |
11585 | return _resultobj; | |
11586 | } | |
11587 | ||
11588 | #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn()) | |
11589 | static PyObject *_wrap_wxMenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11590 | PyObject * _resultobj; | |
11591 | wxMenuItem * _arg0; | |
11592 | PyObject * _argo0 = 0; | |
11593 | char *_kwnames[] = { "self", NULL }; | |
11594 | ||
11595 | self = self; | |
11596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_ResetOwnerDrawn",_kwnames,&_argo0)) | |
11597 | return NULL; | |
11598 | if (_argo0) { | |
11599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p."); | |
11602 | return NULL; | |
11603 | } | |
11604 | } | |
11605 | { | |
4268f798 | 11606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11607 | wxMenuItem_ResetOwnerDrawn(_arg0); |
f3d9dc1d | 11608 | |
4268f798 | 11609 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11610 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11611 | } Py_INCREF(Py_None); |
11612 | _resultobj = Py_None; | |
11613 | return _resultobj; | |
11614 | } | |
11615 | ||
8ab979d7 | 11616 | static PyMethodDef windowscMethods[] = { |
f3d9dc1d RD |
11617 | { "wxMenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, |
11618 | { "wxMenuItem_IsOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
11619 | { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
11620 | { "wxMenuItem_GetMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
11621 | { "wxMenuItem_SetMarginWidth", (PyCFunction) _wrap_wxMenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
11622 | { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11623 | { "wxMenuItem_SetBitmap", (PyCFunction) _wrap_wxMenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11624 | { "wxMenuItem_SetBitmaps", (PyCFunction) _wrap_wxMenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
11625 | { "wxMenuItem_GetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11626 | { "wxMenuItem_SetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11627 | { "wxMenuItem_GetTextColour", (PyCFunction) _wrap_wxMenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11628 | { "wxMenuItem_SetTextColour", (PyCFunction) _wrap_wxMenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11629 | { "wxMenuItem_GetFont", (PyCFunction) _wrap_wxMenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11630 | { "wxMenuItem_SetFont", (PyCFunction) _wrap_wxMenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 11631 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11632 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
11633 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
11634 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
11635 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
11636 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
11637 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11638 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11639 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11640 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11641 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11642 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 11643 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11644 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11645 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
e9159fe8 | 11646 | { "wxMenuItem_GetKind", (PyCFunction) _wrap_wxMenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11647 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, |
11648 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11649 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11650 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11651 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
11652 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11653 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11654 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11655 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11656 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
11657 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 11658 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
11659 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
11660 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11661 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11662 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
11663 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
11664 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
3a0958b1 | 11665 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11666 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, |
11667 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
11668 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
11669 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11670 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11671 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
11672 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
11673 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11674 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
11675 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
11676 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
11677 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
11678 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
11679 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11680 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
11681 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
11682 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11683 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11684 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
11685 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
11686 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
11687 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11688 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11689 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
11690 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
11691 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, |
11692 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11693 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11694 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11695 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11696 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
11697 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11698 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
11699 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 11700 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11701 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11702 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11703 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11704 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11705 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
11706 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
e9159fe8 RD |
11707 | { "wxMenu_PrependItem", (PyCFunction) _wrap_wxMenu_PrependItem, METH_VARARGS | METH_KEYWORDS }, |
11708 | { "wxMenu_PrependMenu", (PyCFunction) _wrap_wxMenu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
11709 | { "wxMenu_PrependRadioItem", (PyCFunction) _wrap_wxMenu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
11710 | { "wxMenu_PrependCheckItem", (PyCFunction) _wrap_wxMenu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
11711 | { "wxMenu_PrependSeparator", (PyCFunction) _wrap_wxMenu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
11712 | { "wxMenu_Prepend", (PyCFunction) _wrap_wxMenu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
11713 | { "wxMenu_InsertItem", (PyCFunction) _wrap_wxMenu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
11714 | { "wxMenu_InsertMenu", (PyCFunction) _wrap_wxMenu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
11715 | { "wxMenu_InsertRadioItem", (PyCFunction) _wrap_wxMenu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
11716 | { "wxMenu_InsertCheckItem", (PyCFunction) _wrap_wxMenu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
11717 | { "wxMenu_InsertSeparator", (PyCFunction) _wrap_wxMenu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
11718 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11719 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, |
e9159fe8 RD |
11720 | { "wxMenu_AppendRadioItem", (PyCFunction) _wrap_wxMenu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, |
11721 | { "wxMenu_AppendCheckItem", (PyCFunction) _wrap_wxMenu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11722 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, |
11723 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
11724 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
11725 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
2a74d141 | 11726 | { "wxScrolledWindow_SetScrollRate", (PyCFunction) _wrap_wxScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS }, |
26e335b8 | 11727 | { "wxScrolledWindow_Layout", (PyCFunction) _wrap_wxScrolledWindow_Layout, METH_VARARGS | METH_KEYWORDS }, |
d1679124 RD |
11728 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
11729 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
11730 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
11731 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
e9159fe8 RD |
11732 | { "wxScrolledWindow_CalcUnscrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition2, METH_VARARGS | METH_KEYWORDS }, |
11733 | { "wxScrolledWindow_CalcUnscrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition1, METH_VARARGS | METH_KEYWORDS }, | |
11734 | { "wxScrolledWindow_CalcScrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition2, METH_VARARGS | METH_KEYWORDS }, | |
11735 | { "wxScrolledWindow_CalcScrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition1, METH_VARARGS | METH_KEYWORDS }, | |
4c9993c3 | 11736 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 11737 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 11738 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11739 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
11740 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
11741 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
11742 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 11743 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11744 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 11745 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11746 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11747 | { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
11748 | { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11749 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11750 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11751 | { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS }, |
11752 | { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11753 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, |
6d26dc89 RD |
11754 | { "wxWindow_HasCapture", (PyCFunction) _wrap_wxWindow_HasCapture, METH_VARARGS | METH_KEYWORDS }, |
11755 | { "wxWindow_GetCapture", (PyCFunction) _wrap_wxWindow_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
11756 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
11757 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
11758 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
0b85cc38 | 11759 | { "wxWindow_SetTmpDefaultItem", (PyCFunction) _wrap_wxWindow_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
5a2930ab RD |
11760 | { "wxWindow_SetDefaultItem", (PyCFunction) _wrap_wxWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
11761 | { "wxWindow_GetDefaultItem", (PyCFunction) _wrap_wxWindow_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
07c99b26 | 11762 | { "wxWindow_OnPaint", (PyCFunction) _wrap_wxWindow_OnPaint, METH_VARARGS | METH_KEYWORDS }, |
900d9886 | 11763 | { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 | 11764 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11765 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
11766 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
11767 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
11768 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c RD |
11769 | { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS }, |
11770 | { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
11771 | { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
11772 | { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
11773 | { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
11774 | { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
23bed520 | 11775 | { "wxWindow_SetHelpTextForId", (PyCFunction) _wrap_wxWindow_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, |
4f3449b4 RD |
11776 | { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS }, |
11777 | { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 | 11778 | { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS }, |
3a0958b1 RD |
11779 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, |
11780 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
11781 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
11782 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
a541c325 | 11783 | { "wxWindow_GetMaxSize", (PyCFunction) _wrap_wxWindow_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, |
694759cf | 11784 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11785 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
11786 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
11787 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
11788 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
be90c029 RD |
11789 | { "wxWindow_GetContainingSizer", (PyCFunction) _wrap_wxWindow_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, |
11790 | { "wxWindow_SetContainingSizer", (PyCFunction) _wrap_wxWindow_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11791 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2a74d141 | 11792 | { "wxWindow_SetSizerAndFit", (PyCFunction) _wrap_wxWindow_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11793 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11794 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
11795 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
11796 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
11797 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
11798 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
11799 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11800 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11801 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11802 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11803 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, |
23bed520 | 11804 | { "wxWindow_UpdateWindowUI", (PyCFunction) _wrap_wxWindow_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11805 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, |
11806 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
11807 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
11808 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
83b18bab | 11809 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11810 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11811 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
11812 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
11813 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
2a74d141 RD |
11814 | { "wxWindow_GetVirtualSizeTuple", (PyCFunction) _wrap_wxWindow_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
11815 | { "wxWindow_GetVirtualSize", (PyCFunction) _wrap_wxWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
11816 | { "wxWindow_SetVirtualSizeWH", (PyCFunction) _wrap_wxWindow_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
11817 | { "wxWindow_SetVirtualSize", (PyCFunction) _wrap_wxWindow_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
11818 | { "wxWindow_SetVirtualSizeHints", (PyCFunction) _wrap_wxWindow_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11819 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, |
dbbb98cd | 11820 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11821 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
11822 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
11823 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
11824 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
11825 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
11826 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
11827 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11828 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11829 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 11830 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
2a74d141 | 11831 | { "wxWindow_SetFocusFromKbd", (PyCFunction) _wrap_wxWindow_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11832 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11833 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11834 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
11835 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 11836 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11837 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11838 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, |
11839 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
11840 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
11841 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 11842 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 | 11843 | { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11844 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, |
11845 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
11846 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
11847 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
c6c593e8 | 11848 | { "wxWindow_RemoveEventHandler", (PyCFunction) _wrap_wxWindow_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11849 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
11850 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11851 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
11852 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
11853 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
11854 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
11855 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
11856 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
11857 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
11858 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
11859 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
11860 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
11861 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
11862 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11863 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
11864 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
23bed520 | 11865 | { "wxWindow_HitTest", (PyCFunction) _wrap_wxWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11866 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, |
23bed520 | 11867 | { "wxWindow_HasScrollbar", (PyCFunction) _wrap_wxWindow_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11868 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
11869 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11870 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
11871 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
11872 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
11873 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11874 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11875 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11876 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11877 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
11878 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
11879 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
11880 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
11881 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
11882 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
11883 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
11884 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
11885 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11886 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11887 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 11888 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11889 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
11890 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11891 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 11892 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11893 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
23bed520 RD |
11894 | { "wxWindow_GetClientRect", (PyCFunction) _wrap_wxWindow_GetClientRect, METH_VARARGS | METH_KEYWORDS }, |
11895 | { "wxWindow_GetClientAreaOrigin", (PyCFunction) _wrap_wxWindow_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11896 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, |
11897 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11898 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
11899 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 11900 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
23bed520 | 11901 | { "wxWindow_GetBorder", (PyCFunction) _wrap_wxWindow_GetBorder, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11902 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
11903 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
11904 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
11905 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
11906 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
11907 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 11908 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11909 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, |
11910 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
11911 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
11912 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
11913 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
d56cebe7 | 11914 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, |
3ca6a5f0 BP |
11915 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
11916 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11917 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
11918 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
11919 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
11920 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11921 | { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
11922 | { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11923 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, |
0122b7e3 | 11924 | { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11925 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
9416aa89 RD |
11926 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
11927 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
11928 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
11929 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
11930 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
11931 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 11932 | { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 11933 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11934 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
11935 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
11936 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
11937 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
11938 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
11939 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
11940 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11941 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11942 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 11943 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11944 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
11945 | { NULL, NULL } |
11946 | }; | |
1d99702e RD |
11947 | #ifdef __cplusplus |
11948 | } | |
11949 | #endif | |
11950 | /* | |
11951 | * This table is used by the pointer type-checker | |
11952 | */ | |
11953 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11954 | { "_signed_long","_long",0}, |
b1462dfa | 11955 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11956 | { "_wxPrintQuality","_int",0}, |
11957 | { "_wxPrintQuality","_signed_int",0}, | |
11958 | { "_wxPrintQuality","_unsigned_int",0}, | |
11959 | { "_wxPrintQuality","_wxWindowID",0}, | |
11960 | { "_wxPrintQuality","_uint",0}, | |
11961 | { "_wxPrintQuality","_EBool",0}, | |
11962 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11963 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11964 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
11965 | { "_long","_unsigned_long",0}, |
11966 | { "_long","_signed_long",0}, | |
b1462dfa | 11967 | { "_size_t","_wxCoord",0}, |
1d99702e | 11968 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11969 | { "_size_t","_time_t",0}, |
1d99702e RD |
11970 | { "_size_t","_unsigned_int",0}, |
11971 | { "_size_t","_int",0}, | |
11972 | { "_size_t","_wxWindowID",0}, | |
11973 | { "_size_t","_uint",0}, | |
1d99702e | 11974 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
b1462dfa | 11975 | { "_uint","_wxCoord",0}, |
1d99702e | 11976 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11977 | { "_uint","_time_t",0}, |
1d99702e RD |
11978 | { "_uint","_size_t",0}, |
11979 | { "_uint","_unsigned_int",0}, | |
11980 | { "_uint","_int",0}, | |
11981 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11982 | { "_wxChar","_char",0}, |
f6bcfd97 | 11983 | { "_char","_wxChar",0}, |
cdf14688 | 11984 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11985 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11986 | { "_EBool","_wxPrintQuality",0}, |
11987 | { "_EBool","_signed_int",0}, | |
11988 | { "_EBool","_int",0}, | |
11989 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11990 | { "_unsigned_long","_long",0}, |
cdf14688 | 11991 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11992 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11993 | { "_signed_int","_wxPrintQuality",0}, |
11994 | { "_signed_int","_EBool",0}, | |
11995 | { "_signed_int","_wxWindowID",0}, | |
11996 | { "_signed_int","_int",0}, | |
1d99702e RD |
11997 | { "_WXTYPE","_short",0}, |
11998 | { "_WXTYPE","_signed_short",0}, | |
11999 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
12000 | { "_unsigned_short","_WXTYPE",0}, |
12001 | { "_unsigned_short","_short",0}, | |
9416aa89 | 12002 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, |
9416aa89 | 12003 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, |
9416aa89 | 12004 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, |
9416aa89 | 12005 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, |
9416aa89 | 12006 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, |
9416aa89 | 12007 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, |
9416aa89 | 12008 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, |
9416aa89 | 12009 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, |
9416aa89 | 12010 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, |
1d99702e RD |
12011 | { "_signed_short","_WXTYPE",0}, |
12012 | { "_signed_short","_short",0}, | |
1d99702e | 12013 | { "_unsigned_char","_byte",0}, |
b1462dfa | 12014 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 12015 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 12016 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
12017 | { "_unsigned_int","_size_t",0}, |
12018 | { "_unsigned_int","_uint",0}, | |
12019 | { "_unsigned_int","_wxWindowID",0}, | |
12020 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
12021 | { "_short","_WXTYPE",0}, |
12022 | { "_short","_unsigned_short",0}, | |
12023 | { "_short","_signed_short",0}, | |
b1462dfa | 12024 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 12025 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 12026 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
12027 | { "_wxWindowID","_size_t",0}, |
12028 | { "_wxWindowID","_EBool",0}, | |
12029 | { "_wxWindowID","_uint",0}, | |
12030 | { "_wxWindowID","_int",0}, | |
12031 | { "_wxWindowID","_signed_int",0}, | |
12032 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 12033 | { "_int","_wxCoord",0}, |
1d99702e | 12034 | { "_int","_wxPrintQuality",0}, |
c368d904 | 12035 | { "_int","_time_t",0}, |
1d99702e RD |
12036 | { "_int","_size_t",0}, |
12037 | { "_int","_EBool",0}, | |
12038 | { "_int","_uint",0}, | |
12039 | { "_int","_wxWindowID",0}, | |
12040 | { "_int","_unsigned_int",0}, | |
12041 | { "_int","_signed_int",0}, | |
c368d904 RD |
12042 | { "_time_t","_wxCoord",0}, |
12043 | { "_time_t","_wxPrintQuality",0}, | |
12044 | { "_time_t","_unsigned_int",0}, | |
12045 | { "_time_t","_int",0}, | |
12046 | { "_time_t","_wxWindowID",0}, | |
12047 | { "_time_t","_uint",0}, | |
12048 | { "_time_t","_size_t",0}, | |
2f90df85 | 12049 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
b1462dfa RD |
12050 | { "_wxCoord","_int",0}, |
12051 | { "_wxCoord","_signed_int",0}, | |
12052 | { "_wxCoord","_unsigned_int",0}, | |
12053 | { "_wxCoord","_wxWindowID",0}, | |
12054 | { "_wxCoord","_uint",0}, | |
12055 | { "_wxCoord","_EBool",0}, | |
12056 | { "_wxCoord","_size_t",0}, | |
c368d904 | 12057 | { "_wxCoord","_time_t",0}, |
b1462dfa | 12058 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 12059 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
1d99702e | 12060 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, |
1d99702e | 12061 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, |
1d99702e | 12062 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, |
1d99702e | 12063 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, |
2f90df85 | 12064 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
2f90df85 | 12065 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, |
b1462dfa | 12066 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, |
1d99702e | 12067 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
1d99702e | 12068 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, |
1d99702e RD |
12069 | {0,0,0}}; |
12070 | ||
8ab979d7 RD |
12071 | static PyObject *SWIG_globals; |
12072 | #ifdef __cplusplus | |
12073 | extern "C" | |
12074 | #endif | |
1d99702e | 12075 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
12076 | PyObject *m, *d; |
12077 | SWIG_globals = SWIG_newvarlink(); | |
12078 | m = Py_InitModule("windowsc", windowscMethods); | |
12079 | d = PyModule_GetDict(m); | |
1d99702e RD |
12080 | { |
12081 | int i; | |
12082 | for (i = 0; _swig_mapping[i].n1; i++) | |
12083 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
12084 | } | |
8ab979d7 | 12085 | } |