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