]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/windows.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
dbbb98cd | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
dbbb98cd | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initwindowsc |
55 | ||
56 | #define SWIG_name "windowsc" | |
57 | ||
58 | #include "helpers.h" | |
8ab979d7 | 59 | #include <wx/menuitem.h> |
9416aa89 | 60 | #include <wx/tooltip.h> |
8ab979d7 | 61 | |
8ab979d7 RD |
62 | |
63 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
64 | PyObject* o2; | |
65 | PyObject* o3; | |
66 | ||
f3d9dc1d | 67 | if (!target) { |
8ab979d7 | 68 | target = o; |
f3d9dc1d | 69 | } else if (target == Py_None) { |
8ab979d7 RD |
70 | Py_DECREF(Py_None); |
71 | target = o; | |
f3d9dc1d | 72 | } else { |
8ab979d7 RD |
73 | if (!PyTuple_Check(target)) { |
74 | o2 = target; | |
75 | target = PyTuple_New(1); | |
76 | PyTuple_SetItem(target, 0, o2); | |
77 | } | |
f3d9dc1d RD |
78 | o3 = PyTuple_New(1); |
79 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
80 | |
81 | o2 = target; | |
f3d9dc1d RD |
82 | target = PySequence_Concat(o2, o3); |
83 | Py_DECREF(o2); | |
8ab979d7 RD |
84 | Py_DECREF(o3); |
85 | } | |
86 | return target; | |
87 | } | |
88 | ||
137b5242 RD |
89 | // Put some wx default wxChar* values into wxStrings. |
90 | DECLARE_DEF_STRING(PanelNameStr); | |
91 | static const wxString wxPyEmptyString(wxT("")); | |
92 | ||
2f90df85 RD |
93 | class wxPyValidator : public wxValidator { |
94 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
95 | public: | |
96 | wxPyValidator() { | |
97 | } | |
2f90df85 RD |
98 | |
99 | ~wxPyValidator() { | |
100 | } | |
101 | ||
19a97bd6 | 102 | wxObject* Clone() const { |
694759cf RD |
103 | wxPyValidator* ptr = NULL; |
104 | wxPyValidator* self = (wxPyValidator*)this; | |
2f90df85 | 105 | |
4268f798 | 106 | wxPyBeginBlockThreads(); |
694759cf RD |
107 | if (self->m_myInst.findCallback("Clone")) { |
108 | PyObject* ro; | |
109 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
f6bcfd97 BP |
110 | if (ro) { |
111 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
112 | Py_DECREF(ro); | |
113 | } | |
694759cf | 114 | } |
4268f798 | 115 | wxPyEndBlockThreads(); |
19a97bd6 | 116 | |
694759cf RD |
117 | // This is very dangerous!!! But is the only way I could find |
118 | // to squash a memory leak. Currently it is okay, but if the | |
119 | // validator architecture in wxWindows ever changes, problems | |
120 | // could arise. | |
121 | delete self; | |
694759cf RD |
122 | return ptr; |
123 | } | |
2f90df85 | 124 | |
9416aa89 | 125 | |
2f90df85 RD |
126 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); |
127 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
128 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
129 | ||
130 | PYPRIVATE; | |
2f90df85 RD |
131 | }; |
132 | ||
133 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
134 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
135 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
136 | ||
137 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
8ab979d7 | 138 | |
8ab979d7 | 139 | |
2f90df85 RD |
140 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { |
141 | wxWindow* win = new wxWindow; | |
142 | win->SetHWND(hWnd); | |
143 | win->SubclassWin(hWnd); | |
144 | return win; | |
145 | } | |
146 | #ifdef __cplusplus | |
147 | extern "C" { | |
148 | #endif | |
2f90df85 RD |
149 | static PyObject *_wrap_wxWindow_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { |
150 | PyObject * _resultobj; | |
151 | wxWindow * _result; | |
152 | unsigned long _arg0; | |
153 | char *_kwnames[] = { "hWnd", NULL }; | |
2f90df85 RD |
154 | |
155 | self = self; | |
156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxWindow_FromHWND",_kwnames,&_arg0)) | |
157 | return NULL; | |
158 | { | |
4268f798 | 159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 160 | _result = (wxWindow *)wxWindow_FromHWND(_arg0); |
2f90df85 | 161 | |
4268f798 | 162 | wxPyEndAllowThreads(__tstate); |
493f1553 | 163 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 164 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
165 | return _resultobj; |
166 | } | |
167 | ||
9416aa89 RD |
168 | static void *SwigwxEvtHandlerTowxObject(void *ptr) { |
169 | wxEvtHandler *src; | |
170 | wxObject *dest; | |
171 | src = (wxEvtHandler *) ptr; | |
172 | dest = (wxObject *) src; | |
173 | return (void *) dest; | |
174 | } | |
175 | ||
c368d904 RD |
176 | #define new_wxEvtHandler() (new wxEvtHandler()) |
177 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
178 | PyObject * _resultobj; | |
179 | wxEvtHandler * _result; | |
180 | char *_kwnames[] = { NULL }; | |
181 | char _ptemp[128]; | |
182 | ||
183 | self = self; | |
184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
185 | return NULL; | |
186 | { | |
4268f798 | 187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 188 | _result = (wxEvtHandler *)new_wxEvtHandler(); |
c368d904 | 189 | |
4268f798 | 190 | wxPyEndAllowThreads(__tstate); |
493f1553 | 191 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
192 | } if (_result) { |
193 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
194 | _resultobj = Py_BuildValue("s",_ptemp); | |
195 | } else { | |
196 | Py_INCREF(Py_None); | |
197 | _resultobj = Py_None; | |
198 | } | |
199 | return _resultobj; | |
200 | } | |
201 | ||
2f90df85 RD |
202 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
203 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
204 | PyObject * _resultobj; | |
205 | bool _result; | |
206 | wxEvtHandler * _arg0; | |
207 | wxEvent * _arg1; | |
208 | PyObject * _argo0 = 0; | |
209 | PyObject * _argo1 = 0; | |
210 | char *_kwnames[] = { "self","event", NULL }; | |
211 | ||
212 | self = self; | |
213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
214 | return NULL; | |
215 | if (_argo0) { | |
216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
219 | return NULL; | |
220 | } | |
221 | } | |
222 | if (_argo1) { | |
223 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
224 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
226 | return NULL; | |
227 | } | |
228 | } | |
229 | { | |
4268f798 | 230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 231 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); |
2f90df85 | 232 | |
4268f798 | 233 | wxPyEndAllowThreads(__tstate); |
493f1553 | 234 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
235 | } _resultobj = Py_BuildValue("i",_result); |
236 | return _resultobj; | |
237 | } | |
238 | ||
f6bcfd97 BP |
239 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
240 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
241 | PyObject * _resultobj; | |
242 | wxEvtHandler * _arg0; | |
243 | wxEvent * _arg1; | |
244 | PyObject * _argo0 = 0; | |
245 | PyObject * _argo1 = 0; | |
246 | char *_kwnames[] = { "self","event", NULL }; | |
247 | ||
248 | self = self; | |
249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
250 | return NULL; | |
251 | if (_argo0) { | |
252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
255 | return NULL; | |
256 | } | |
257 | } | |
258 | if (_argo1) { | |
259 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
260 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
262 | return NULL; | |
263 | } | |
264 | } | |
265 | { | |
4268f798 | 266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 267 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); |
f6bcfd97 | 268 | |
4268f798 | 269 | wxPyEndAllowThreads(__tstate); |
493f1553 | 270 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
271 | } Py_INCREF(Py_None); |
272 | _resultobj = Py_None; | |
273 | return _resultobj; | |
274 | } | |
275 | ||
2f90df85 RD |
276 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
277 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
278 | PyObject * _resultobj; | |
279 | bool _result; | |
280 | wxEvtHandler * _arg0; | |
281 | PyObject * _argo0 = 0; | |
282 | char *_kwnames[] = { "self", NULL }; | |
283 | ||
284 | self = self; | |
285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
286 | return NULL; | |
287 | if (_argo0) { | |
288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
291 | return NULL; | |
292 | } | |
293 | } | |
294 | { | |
4268f798 | 295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 296 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); |
2f90df85 | 297 | |
4268f798 | 298 | wxPyEndAllowThreads(__tstate); |
493f1553 | 299 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
300 | } _resultobj = Py_BuildValue("i",_result); |
301 | return _resultobj; | |
302 | } | |
303 | ||
304 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
305 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
306 | PyObject * _resultobj; | |
307 | wxEvtHandler * _arg0; | |
308 | bool _arg1; | |
309 | PyObject * _argo0 = 0; | |
310 | int tempbool1; | |
311 | char *_kwnames[] = { "self","enabled", NULL }; | |
312 | ||
313 | self = self; | |
314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
315 | return NULL; | |
316 | if (_argo0) { | |
317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
320 | return NULL; | |
321 | } | |
322 | } | |
323 | _arg1 = (bool ) tempbool1; | |
324 | { | |
4268f798 | 325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 326 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); |
2f90df85 | 327 | |
4268f798 | 328 | wxPyEndAllowThreads(__tstate); |
493f1553 | 329 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
330 | } Py_INCREF(Py_None); |
331 | _resultobj = Py_None; | |
332 | return _resultobj; | |
333 | } | |
334 | ||
335 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
336 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
337 | PyObject * _resultobj; | |
338 | wxEvtHandler * _result; | |
339 | wxEvtHandler * _arg0; | |
340 | PyObject * _argo0 = 0; | |
341 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
342 | |
343 | self = self; | |
344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
345 | return NULL; | |
346 | if (_argo0) { | |
347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
350 | return NULL; | |
351 | } | |
352 | } | |
353 | { | |
4268f798 | 354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 355 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); |
2f90df85 | 356 | |
4268f798 | 357 | wxPyEndAllowThreads(__tstate); |
493f1553 | 358 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 359 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
360 | return _resultobj; |
361 | } | |
362 | ||
363 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
364 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
365 | PyObject * _resultobj; | |
366 | wxEvtHandler * _result; | |
367 | wxEvtHandler * _arg0; | |
368 | PyObject * _argo0 = 0; | |
369 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
370 | |
371 | self = self; | |
372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
373 | return NULL; | |
374 | if (_argo0) { | |
375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
378 | return NULL; | |
379 | } | |
380 | } | |
381 | { | |
4268f798 | 382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 383 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); |
2f90df85 | 384 | |
4268f798 | 385 | wxPyEndAllowThreads(__tstate); |
493f1553 | 386 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 387 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
388 | return _resultobj; |
389 | } | |
390 | ||
391 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
392 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
393 | PyObject * _resultobj; | |
394 | wxEvtHandler * _arg0; | |
395 | wxEvtHandler * _arg1; | |
396 | PyObject * _argo0 = 0; | |
397 | PyObject * _argo1 = 0; | |
398 | char *_kwnames[] = { "self","handler", NULL }; | |
399 | ||
400 | self = self; | |
401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
402 | return NULL; | |
403 | if (_argo0) { | |
404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
407 | return NULL; | |
408 | } | |
409 | } | |
410 | if (_argo1) { | |
411 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
412 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
414 | return NULL; | |
415 | } | |
416 | } | |
417 | { | |
4268f798 | 418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 419 | wxEvtHandler_SetNextHandler(_arg0,_arg1); |
2f90df85 | 420 | |
4268f798 | 421 | wxPyEndAllowThreads(__tstate); |
493f1553 | 422 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
423 | } Py_INCREF(Py_None); |
424 | _resultobj = Py_None; | |
425 | return _resultobj; | |
426 | } | |
427 | ||
428 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
429 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
430 | PyObject * _resultobj; | |
431 | wxEvtHandler * _arg0; | |
432 | wxEvtHandler * _arg1; | |
433 | PyObject * _argo0 = 0; | |
434 | PyObject * _argo1 = 0; | |
435 | char *_kwnames[] = { "self","handler", NULL }; | |
436 | ||
437 | self = self; | |
438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
439 | return NULL; | |
440 | if (_argo0) { | |
441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
444 | return NULL; | |
445 | } | |
446 | } | |
447 | if (_argo1) { | |
448 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
449 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
451 | return NULL; | |
452 | } | |
453 | } | |
454 | { | |
4268f798 | 455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 456 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); |
2f90df85 | 457 | |
4268f798 | 458 | wxPyEndAllowThreads(__tstate); |
493f1553 | 459 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
460 | } Py_INCREF(Py_None); |
461 | _resultobj = Py_None; | |
462 | return _resultobj; | |
463 | } | |
464 | ||
465 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
466 | if (PyCallable_Check(func)) { | |
467 | self->Connect(id, lastId, eventType, | |
468 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
469 | new wxPyCallback(func)); | |
470 | } | |
25b00b4e RD |
471 | else if (func == Py_None) { |
472 | self->Disconnect(id, lastId, eventType, | |
473 | (wxObjectEventFunction) | |
474 | &wxPyCallback::EventThunker); | |
475 | } | |
476 | else { | |
477 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
478 | } | |
2f90df85 RD |
479 | } |
480 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
481 | PyObject * _resultobj; | |
482 | wxEvtHandler * _arg0; | |
483 | int _arg1; | |
484 | int _arg2; | |
485 | int _arg3; | |
486 | PyObject * _arg4; | |
487 | PyObject * _argo0 = 0; | |
488 | PyObject * _obj4 = 0; | |
489 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
490 | ||
491 | self = self; | |
492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
493 | return NULL; | |
494 | if (_argo0) { | |
495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
498 | return NULL; | |
499 | } | |
500 | } | |
501 | { | |
502 | _arg4 = _obj4; | |
503 | } | |
504 | { | |
4268f798 | 505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 506 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); |
2f90df85 | 507 | |
4268f798 | 508 | wxPyEndAllowThreads(__tstate); |
493f1553 | 509 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
510 | } Py_INCREF(Py_None); |
511 | _resultobj = Py_None; | |
512 | return _resultobj; | |
513 | } | |
514 | ||
6999b0d8 RD |
515 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
516 | return self->Disconnect(id, lastId, eventType, | |
517 | (wxObjectEventFunction) | |
518 | &wxPyCallback::EventThunker); | |
519 | } | |
520 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
521 | PyObject * _resultobj; | |
522 | bool _result; | |
523 | wxEvtHandler * _arg0; | |
524 | int _arg1; | |
525 | int _arg2 = (int ) -1; | |
526 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
527 | PyObject * _argo0 = 0; | |
528 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
529 | ||
530 | self = self; | |
531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
532 | return NULL; | |
533 | if (_argo0) { | |
534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
537 | return NULL; | |
538 | } | |
539 | } | |
540 | { | |
4268f798 | 541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 542 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); |
6999b0d8 | 543 | |
4268f798 | 544 | wxPyEndAllowThreads(__tstate); |
493f1553 | 545 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
546 | } _resultobj = Py_BuildValue("i",_result); |
547 | return _resultobj; | |
548 | } | |
549 | ||
0122b7e3 | 550 | static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject * _self) { |
4acff284 | 551 | self->SetClientObject(new wxPyOORClientData(_self)); |
0122b7e3 RD |
552 | } |
553 | static PyObject *_wrap_wxEvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
554 | PyObject * _resultobj; | |
555 | wxEvtHandler * _arg0; | |
556 | PyObject * _arg1; | |
557 | PyObject * _argo0 = 0; | |
558 | PyObject * _obj1 = 0; | |
559 | char *_kwnames[] = { "self","_self", NULL }; | |
560 | ||
561 | self = self; | |
562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler__setOORInfo",_kwnames,&_argo0,&_obj1)) | |
563 | return NULL; | |
564 | if (_argo0) { | |
565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p."); | |
568 | return NULL; | |
569 | } | |
570 | } | |
571 | { | |
572 | _arg1 = _obj1; | |
573 | } | |
574 | { | |
4268f798 | 575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 576 | wxEvtHandler__setOORInfo(_arg0,_arg1); |
0122b7e3 | 577 | |
4268f798 | 578 | wxPyEndAllowThreads(__tstate); |
0122b7e3 RD |
579 | if (PyErr_Occurred()) return NULL; |
580 | } Py_INCREF(Py_None); | |
581 | _resultobj = Py_None; | |
582 | return _resultobj; | |
583 | } | |
584 | ||
2f90df85 RD |
585 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
586 | wxValidator *src; | |
587 | wxEvtHandler *dest; | |
588 | src = (wxValidator *) ptr; | |
589 | dest = (wxEvtHandler *) src; | |
590 | return (void *) dest; | |
591 | } | |
592 | ||
9416aa89 RD |
593 | static void *SwigwxValidatorTowxObject(void *ptr) { |
594 | wxValidator *src; | |
595 | wxObject *dest; | |
596 | src = (wxValidator *) ptr; | |
597 | dest = (wxObject *) src; | |
598 | return (void *) dest; | |
599 | } | |
600 | ||
2f90df85 RD |
601 | #define new_wxValidator() (new wxValidator()) |
602 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
603 | PyObject * _resultobj; | |
604 | wxValidator * _result; | |
605 | char *_kwnames[] = { NULL }; | |
606 | char _ptemp[128]; | |
607 | ||
608 | self = self; | |
609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
610 | return NULL; | |
611 | { | |
4268f798 | 612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 613 | _result = (wxValidator *)new_wxValidator(); |
2f90df85 | 614 | |
4268f798 | 615 | wxPyEndAllowThreads(__tstate); |
493f1553 | 616 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
617 | } if (_result) { |
618 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
619 | _resultobj = Py_BuildValue("s",_ptemp); | |
620 | } else { | |
621 | Py_INCREF(Py_None); | |
622 | _resultobj = Py_None; | |
623 | } | |
624 | return _resultobj; | |
af309447 | 625 | } |
2f90df85 RD |
626 | |
627 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
628 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 629 | PyObject * _resultobj; |
2f90df85 RD |
630 | wxValidator * _result; |
631 | wxValidator * _arg0; | |
632 | PyObject * _argo0 = 0; | |
633 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
634 | |
635 | self = self; | |
2f90df85 RD |
636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
637 | return NULL; | |
638 | if (_argo0) { | |
639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 642 | return NULL; |
2f90df85 RD |
643 | } |
644 | } | |
cf694132 | 645 | { |
4268f798 | 646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 647 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 | 648 | |
4268f798 | 649 | wxPyEndAllowThreads(__tstate); |
493f1553 | 650 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 651 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
652 | return _resultobj; |
653 | } | |
654 | ||
2f90df85 RD |
655 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
656 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
657 | PyObject * _resultobj; |
658 | wxWindow * _result; | |
2f90df85 RD |
659 | wxValidator * _arg0; |
660 | PyObject * _argo0 = 0; | |
661 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
662 | |
663 | self = self; | |
2f90df85 RD |
664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
665 | return NULL; | |
666 | if (_argo0) { | |
667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 670 | return NULL; |
2f90df85 RD |
671 | } |
672 | } | |
cf694132 | 673 | { |
4268f798 | 674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 675 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 | 676 | |
4268f798 | 677 | wxPyEndAllowThreads(__tstate); |
493f1553 | 678 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 679 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
680 | return _resultobj; |
681 | } | |
682 | ||
2f90df85 RD |
683 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
684 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 685 | PyObject * _resultobj; |
2f90df85 RD |
686 | wxValidator * _arg0; |
687 | wxWindow * _arg1; | |
1d99702e RD |
688 | PyObject * _argo0 = 0; |
689 | PyObject * _argo1 = 0; | |
2f90df85 | 690 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
691 | |
692 | self = self; | |
2f90df85 | 693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 694 | return NULL; |
1d99702e RD |
695 | if (_argo0) { |
696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
699 | return NULL; |
700 | } | |
701 | } | |
1d99702e RD |
702 | if (_argo1) { |
703 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
704 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
706 | return NULL; |
707 | } | |
708 | } | |
709 | { | |
4268f798 | 710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 711 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 | 712 | |
4268f798 | 713 | wxPyEndAllowThreads(__tstate); |
493f1553 | 714 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
715 | } Py_INCREF(Py_None); |
716 | _resultobj = Py_None; | |
cf694132 RD |
717 | return _resultobj; |
718 | } | |
719 | ||
9416aa89 RD |
720 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { |
721 | PyObject * _resultobj; | |
722 | bool _result; | |
723 | char *_kwnames[] = { NULL }; | |
724 | ||
725 | self = self; | |
726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
727 | return NULL; | |
728 | { | |
4268f798 | 729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 730 | _result = (bool )wxValidator::IsSilent(); |
9416aa89 | 731 | |
4268f798 | 732 | wxPyEndAllowThreads(__tstate); |
493f1553 | 733 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
734 | } _resultobj = Py_BuildValue("i",_result); |
735 | return _resultobj; | |
736 | } | |
737 | ||
738 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
739 | PyObject * _resultobj; | |
740 | int _arg0 = (int ) TRUE; | |
741 | char *_kwnames[] = { "doIt", NULL }; | |
742 | ||
743 | self = self; | |
744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
745 | return NULL; | |
746 | { | |
4268f798 | 747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 748 | wxValidator::SetBellOnError(_arg0); |
9416aa89 | 749 | |
4268f798 | 750 | wxPyEndAllowThreads(__tstate); |
493f1553 | 751 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
752 | } Py_INCREF(Py_None); |
753 | _resultobj = Py_None; | |
754 | return _resultobj; | |
755 | } | |
756 | ||
2f90df85 RD |
757 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
758 | wxPyValidator *src; | |
759 | wxValidator *dest; | |
760 | src = (wxPyValidator *) ptr; | |
761 | dest = (wxValidator *) src; | |
762 | return (void *) dest; | |
763 | } | |
764 | ||
765 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
766 | wxPyValidator *src; | |
767 | wxEvtHandler *dest; | |
768 | src = (wxPyValidator *) ptr; | |
769 | dest = (wxEvtHandler *) src; | |
770 | return (void *) dest; | |
771 | } | |
772 | ||
9416aa89 RD |
773 | static void *SwigwxPyValidatorTowxObject(void *ptr) { |
774 | wxPyValidator *src; | |
775 | wxObject *dest; | |
776 | src = (wxPyValidator *) ptr; | |
777 | dest = (wxObject *) src; | |
778 | return (void *) dest; | |
779 | } | |
780 | ||
2f90df85 RD |
781 | #define new_wxPyValidator() (new wxPyValidator()) |
782 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
783 | PyObject * _resultobj; | |
784 | wxPyValidator * _result; | |
785 | char *_kwnames[] = { NULL }; | |
786 | char _ptemp[128]; | |
787 | ||
788 | self = self; | |
789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
790 | return NULL; | |
791 | { | |
4268f798 | 792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 793 | _result = (wxPyValidator *)new_wxPyValidator(); |
2f90df85 | 794 | |
4268f798 | 795 | wxPyEndAllowThreads(__tstate); |
493f1553 | 796 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
797 | } if (_result) { |
798 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
799 | _resultobj = Py_BuildValue("s",_ptemp); | |
800 | } else { | |
801 | Py_INCREF(Py_None); | |
802 | _resultobj = Py_None; | |
803 | } | |
804 | return _resultobj; | |
805 | } | |
806 | ||
0122b7e3 RD |
807 | #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2)) |
808 | static PyObject *_wrap_wxPyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 809 | PyObject * _resultobj; |
2f90df85 RD |
810 | wxPyValidator * _arg0; |
811 | PyObject * _arg1; | |
f6bcfd97 BP |
812 | PyObject * _arg2; |
813 | int _arg3 = (int ) TRUE; | |
1d99702e | 814 | PyObject * _argo0 = 0; |
2f90df85 | 815 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
816 | PyObject * _obj2 = 0; |
817 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
818 | |
819 | self = self; | |
0122b7e3 | 820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 821 | return NULL; |
1d99702e RD |
822 | if (_argo0) { |
823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 | 824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
0122b7e3 | 825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p."); |
8ab979d7 RD |
826 | return NULL; |
827 | } | |
828 | } | |
829 | { | |
2f90df85 | 830 | _arg1 = _obj1; |
8ab979d7 | 831 | } |
f6bcfd97 BP |
832 | { |
833 | _arg2 = _obj2; | |
834 | } | |
cf694132 | 835 | { |
4268f798 | 836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 837 | wxPyValidator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 838 | |
4268f798 | 839 | wxPyEndAllowThreads(__tstate); |
493f1553 | 840 | if (PyErr_Occurred()) return NULL; |
cf694132 | 841 | } Py_INCREF(Py_None); |
8ab979d7 RD |
842 | _resultobj = Py_None; |
843 | return _resultobj; | |
844 | } | |
845 | ||
846 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
847 | wxWindow *src; | |
848 | wxEvtHandler *dest; | |
849 | src = (wxWindow *) ptr; | |
850 | dest = (wxEvtHandler *) src; | |
851 | return (void *) dest; | |
852 | } | |
853 | ||
9416aa89 RD |
854 | static void *SwigwxWindowTowxObject(void *ptr) { |
855 | wxWindow *src; | |
856 | wxObject *dest; | |
857 | src = (wxWindow *) ptr; | |
858 | dest = (wxObject *) src; | |
859 | return (void *) dest; | |
860 | } | |
861 | ||
8ab979d7 | 862 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 863 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
864 | PyObject * _resultobj; |
865 | wxWindow * _result; | |
866 | wxWindow * _arg0; | |
867 | wxWindowID _arg1; | |
e508a2b6 RD |
868 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
869 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 870 | long _arg4 = (long ) 0; |
137b5242 | 871 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 872 | PyObject * _argo0 = 0; |
2f90df85 RD |
873 | wxPoint temp; |
874 | PyObject * _obj2 = 0; | |
875 | wxSize temp0; | |
876 | PyObject * _obj3 = 0; | |
137b5242 | 877 | PyObject * _obj5 = 0; |
efc5f224 | 878 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
879 | char _ptemp[128]; |
880 | ||
881 | self = self; | |
137b5242 | 882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 883 | return NULL; |
1d99702e RD |
884 | if (_argo0) { |
885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
888 | return NULL; | |
889 | } | |
890 | } | |
2f90df85 RD |
891 | if (_obj2) |
892 | { | |
893 | _arg2 = &temp; | |
894 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 895 | return NULL; |
2f90df85 RD |
896 | } |
897 | if (_obj3) | |
898 | { | |
899 | _arg3 = &temp0; | |
900 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 901 | return NULL; |
137b5242 RD |
902 | } |
903 | if (_obj5) | |
904 | { | |
905 | _arg5 = wxString_in_helper(_obj5); | |
906 | if (_arg5 == NULL) | |
907 | return NULL; | |
2f90df85 | 908 | } |
cf694132 | 909 | { |
4268f798 | 910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 911 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 912 | |
4268f798 | 913 | wxPyEndAllowThreads(__tstate); |
493f1553 | 914 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
915 | } if (_result) { |
916 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
917 | _resultobj = Py_BuildValue("s",_ptemp); | |
918 | } else { | |
919 | Py_INCREF(Py_None); | |
920 | _resultobj = Py_None; | |
921 | } | |
137b5242 RD |
922 | { |
923 | if (_obj5) | |
924 | delete _arg5; | |
925 | } | |
8ab979d7 RD |
926 | return _resultobj; |
927 | } | |
928 | ||
09f3d4e6 RD |
929 | #define new_wxPreWindow() (new wxWindow()) |
930 | static PyObject *_wrap_new_wxPreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
931 | PyObject * _resultobj; | |
932 | wxWindow * _result; | |
933 | char *_kwnames[] = { NULL }; | |
934 | char _ptemp[128]; | |
935 | ||
936 | self = self; | |
937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreWindow",_kwnames)) | |
938 | return NULL; | |
939 | { | |
4268f798 | 940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 941 | _result = (wxWindow *)new_wxPreWindow(); |
09f3d4e6 | 942 | |
4268f798 | 943 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
944 | if (PyErr_Occurred()) return NULL; |
945 | } if (_result) { | |
946 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
947 | _resultobj = Py_BuildValue("s",_ptemp); | |
948 | } else { | |
949 | Py_INCREF(Py_None); | |
950 | _resultobj = Py_None; | |
951 | } | |
952 | return _resultobj; | |
953 | } | |
954 | ||
955 | #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
956 | static PyObject *_wrap_wxWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
957 | PyObject * _resultobj; | |
958 | bool _result; | |
959 | wxWindow * _arg0; | |
960 | wxWindow * _arg1; | |
961 | wxWindowID _arg2; | |
962 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
963 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
964 | long _arg5 = (long ) 0; | |
137b5242 | 965 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
09f3d4e6 RD |
966 | PyObject * _argo0 = 0; |
967 | PyObject * _argo1 = 0; | |
968 | wxPoint temp; | |
969 | PyObject * _obj3 = 0; | |
970 | wxSize temp0; | |
971 | PyObject * _obj4 = 0; | |
137b5242 | 972 | PyObject * _obj6 = 0; |
09f3d4e6 RD |
973 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
974 | ||
975 | self = self; | |
137b5242 | 976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
09f3d4e6 RD |
977 | return NULL; |
978 | if (_argo0) { | |
979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p."); | |
982 | return NULL; | |
983 | } | |
984 | } | |
985 | if (_argo1) { | |
986 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
987 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p."); | |
989 | return NULL; | |
990 | } | |
991 | } | |
992 | if (_obj3) | |
993 | { | |
994 | _arg3 = &temp; | |
995 | if (! wxPoint_helper(_obj3, &_arg3)) | |
996 | return NULL; | |
997 | } | |
998 | if (_obj4) | |
999 | { | |
1000 | _arg4 = &temp0; | |
1001 | if (! wxSize_helper(_obj4, &_arg4)) | |
1002 | return NULL; | |
137b5242 RD |
1003 | } |
1004 | if (_obj6) | |
1005 | { | |
1006 | _arg6 = wxString_in_helper(_obj6); | |
1007 | if (_arg6 == NULL) | |
1008 | return NULL; | |
09f3d4e6 RD |
1009 | } |
1010 | { | |
4268f798 | 1011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 1012 | _result = (bool )wxWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
09f3d4e6 | 1013 | |
4268f798 | 1014 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1015 | if (PyErr_Occurred()) return NULL; |
1016 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
1017 | { |
1018 | if (_obj6) | |
1019 | delete _arg6; | |
1020 | } | |
09f3d4e6 RD |
1021 | return _resultobj; |
1022 | } | |
1023 | ||
8ab979d7 | 1024 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) |
efc5f224 | 1025 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1026 | PyObject * _resultobj; |
1027 | wxWindow * _arg0; | |
1d99702e RD |
1028 | int _arg1 = (int ) wxBOTH; |
1029 | PyObject * _argo0 = 0; | |
efc5f224 | 1030 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1031 | |
1032 | self = self; | |
efc5f224 | 1033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1034 | return NULL; |
1d99702e RD |
1035 | if (_argo0) { |
1036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
1039 | return NULL; | |
1040 | } | |
1041 | } | |
cf694132 | 1042 | { |
4268f798 | 1043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1044 | wxWindow_Center(_arg0,_arg1); |
cf694132 | 1045 | |
4268f798 | 1046 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1047 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1048 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1049 | _resultobj = Py_None; |
1050 | return _resultobj; | |
1051 | } | |
1052 | ||
1053 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 1054 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1055 | PyObject * _resultobj; |
1056 | wxWindow * _arg0; | |
1d99702e RD |
1057 | int _arg1 = (int ) wxBOTH; |
1058 | PyObject * _argo0 = 0; | |
efc5f224 | 1059 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1060 | |
1061 | self = self; | |
efc5f224 | 1062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1063 | return NULL; |
1d99702e RD |
1064 | if (_argo0) { |
1065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
1068 | return NULL; | |
1069 | } | |
1070 | } | |
cf694132 | 1071 | { |
4268f798 | 1072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1073 | wxWindow_Centre(_arg0,_arg1); |
cf694132 | 1074 | |
4268f798 | 1075 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1076 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1077 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1078 | _resultobj = Py_None; |
1079 | return _resultobj; | |
1080 | } | |
1081 | ||
bb0054cd | 1082 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 1083 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1084 | PyObject * _resultobj; |
1085 | wxWindow * _arg0; | |
1d99702e RD |
1086 | int _arg1 = (int ) wxBOTH; |
1087 | PyObject * _argo0 = 0; | |
efc5f224 | 1088 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1089 | |
1090 | self = self; | |
efc5f224 | 1091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1092 | return NULL; |
1d99702e RD |
1093 | if (_argo0) { |
1094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
1097 | return NULL; | |
1098 | } | |
1099 | } | |
1100 | { | |
4268f798 | 1101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1102 | wxWindow_CentreOnParent(_arg0,_arg1); |
bb0054cd | 1103 | |
4268f798 | 1104 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1105 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1106 | } Py_INCREF(Py_None); |
1107 | _resultobj = Py_None; | |
1108 | return _resultobj; | |
1109 | } | |
1110 | ||
1111 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 1112 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1113 | PyObject * _resultobj; |
1114 | wxWindow * _arg0; | |
1d99702e RD |
1115 | int _arg1 = (int ) wxBOTH; |
1116 | PyObject * _argo0 = 0; | |
efc5f224 | 1117 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1118 | |
1119 | self = self; | |
efc5f224 | 1120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1121 | return NULL; |
1d99702e RD |
1122 | if (_argo0) { |
1123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
1126 | return NULL; | |
1127 | } | |
1128 | } | |
1129 | { | |
4268f798 | 1130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1131 | wxWindow_CenterOnParent(_arg0,_arg1); |
bb0054cd | 1132 | |
4268f798 | 1133 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1134 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1135 | } Py_INCREF(Py_None); |
1136 | _resultobj = Py_None; | |
1137 | return _resultobj; | |
1138 | } | |
1139 | ||
3ca6a5f0 BP |
1140 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
1141 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1142 | PyObject * _resultobj; | |
1143 | wxWindow * _arg0; | |
1144 | int _arg1 = (int ) wxBOTH; | |
1145 | PyObject * _argo0 = 0; | |
1146 | char *_kwnames[] = { "self","direction", NULL }; | |
1147 | ||
1148 | self = self; | |
1149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1150 | return NULL; | |
1151 | if (_argo0) { | |
1152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1155 | return NULL; | |
1156 | } | |
1157 | } | |
1158 | { | |
4268f798 | 1159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1160 | wxWindow_CentreOnScreen(_arg0,_arg1); |
3ca6a5f0 | 1161 | |
4268f798 | 1162 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1163 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1164 | } Py_INCREF(Py_None); |
1165 | _resultobj = Py_None; | |
1166 | return _resultobj; | |
1167 | } | |
1168 | ||
1169 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1170 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1171 | PyObject * _resultobj; | |
1172 | wxWindow * _arg0; | |
1173 | int _arg1 = (int ) wxBOTH; | |
1174 | PyObject * _argo0 = 0; | |
1175 | char *_kwnames[] = { "self","direction", NULL }; | |
1176 | ||
1177 | self = self; | |
1178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1179 | return NULL; | |
1180 | if (_argo0) { | |
1181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1184 | return NULL; | |
1185 | } | |
1186 | } | |
1187 | { | |
4268f798 | 1188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1189 | wxWindow_CenterOnScreen(_arg0,_arg1); |
3ca6a5f0 | 1190 | |
4268f798 | 1191 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1192 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1193 | } Py_INCREF(Py_None); |
1194 | _resultobj = Py_None; | |
1195 | return _resultobj; | |
1196 | } | |
1197 | ||
d56cebe7 RD |
1198 | #define wxWindow_Clear(_swigobj) (_swigobj->Clear()) |
1199 | static PyObject *_wrap_wxWindow_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1200 | PyObject * _resultobj; | |
1201 | wxWindow * _arg0; | |
1202 | PyObject * _argo0 = 0; | |
1203 | char *_kwnames[] = { "self", NULL }; | |
1204 | ||
1205 | self = self; | |
1206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Clear",_kwnames,&_argo0)) | |
1207 | return NULL; | |
1208 | if (_argo0) { | |
1209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p."); | |
1212 | return NULL; | |
1213 | } | |
1214 | } | |
1215 | { | |
4268f798 | 1216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1217 | wxWindow_Clear(_arg0); |
d56cebe7 | 1218 | |
4268f798 | 1219 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
1220 | if (PyErr_Occurred()) return NULL; |
1221 | } Py_INCREF(Py_None); | |
1222 | _resultobj = Py_None; | |
1223 | return _resultobj; | |
1224 | } | |
1225 | ||
af309447 | 1226 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1227 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1228 | PyObject * _resultobj; |
1229 | wxWindow * _arg0; | |
1230 | int * _arg1; | |
1231 | int * _arg2; | |
1d99702e | 1232 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1233 | int temp; |
1234 | PyObject * _obj1 = 0; | |
1235 | int temp0; | |
1236 | PyObject * _obj2 = 0; | |
efc5f224 | 1237 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1238 | |
1239 | self = self; | |
efc5f224 | 1240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1241 | return NULL; |
1d99702e RD |
1242 | if (_argo0) { |
1243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1246 | return NULL; |
1247 | } | |
1248 | } | |
1249 | { | |
1250 | temp = (int) PyInt_AsLong(_obj1); | |
1251 | _arg1 = &temp; | |
1252 | } | |
1253 | { | |
1254 | temp0 = (int) PyInt_AsLong(_obj2); | |
1255 | _arg2 = &temp0; | |
1256 | } | |
cf694132 | 1257 | { |
4268f798 | 1258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1259 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); |
cf694132 | 1260 | |
4268f798 | 1261 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1262 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1263 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1264 | _resultobj = Py_None; |
1265 | { | |
1266 | PyObject *o; | |
1267 | o = PyInt_FromLong((long) (*_arg1)); | |
1268 | _resultobj = t_output_helper(_resultobj, o); | |
1269 | } | |
1270 | { | |
1271 | PyObject *o; | |
1272 | o = PyInt_FromLong((long) (*_arg2)); | |
1273 | _resultobj = t_output_helper(_resultobj, o); | |
1274 | } | |
1275 | return _resultobj; | |
1276 | } | |
1277 | ||
af309447 | 1278 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1279 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1280 | PyObject * _resultobj; |
1281 | wxPoint * _result; | |
1282 | wxWindow * _arg0; | |
1283 | wxPoint * _arg1; | |
1d99702e | 1284 | PyObject * _argo0 = 0; |
2f90df85 RD |
1285 | wxPoint temp; |
1286 | PyObject * _obj1 = 0; | |
efc5f224 | 1287 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1288 | char _ptemp[128]; |
1289 | ||
1290 | self = self; | |
2f90df85 | 1291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1292 | return NULL; |
1d99702e RD |
1293 | if (_argo0) { |
1294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1297 | return NULL; | |
1298 | } | |
1299 | } | |
2f90df85 RD |
1300 | { |
1301 | _arg1 = &temp; | |
1302 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1303 | return NULL; |
2f90df85 | 1304 | } |
cf694132 | 1305 | { |
4268f798 | 1306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1307 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); |
cf694132 | 1308 | |
4268f798 | 1309 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1310 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1311 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
1312 | _resultobj = Py_BuildValue("s",_ptemp); |
1313 | return _resultobj; | |
1314 | } | |
1315 | ||
8ab979d7 | 1316 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1317 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1318 | PyObject * _resultobj; |
1319 | bool _result; | |
1320 | wxWindow * _arg0; | |
1d99702e RD |
1321 | int _arg1 = (int ) FALSE; |
1322 | PyObject * _argo0 = 0; | |
efc5f224 | 1323 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1324 | |
1325 | self = self; | |
efc5f224 | 1326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1327 | return NULL; |
1d99702e RD |
1328 | if (_argo0) { |
1329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1332 | return NULL; | |
1333 | } | |
1334 | } | |
cf694132 | 1335 | { |
4268f798 | 1336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1337 | _result = (bool )wxWindow_Close(_arg0,_arg1); |
cf694132 | 1338 | |
4268f798 | 1339 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1340 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1341 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1342 | return _resultobj; |
1343 | } | |
1344 | ||
1345 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1346 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1347 | PyObject * _resultobj; |
1348 | bool _result; | |
1349 | wxWindow * _arg0; | |
1d99702e | 1350 | PyObject * _argo0 = 0; |
efc5f224 | 1351 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1352 | |
1353 | self = self; | |
efc5f224 | 1354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1355 | return NULL; |
1d99702e RD |
1356 | if (_argo0) { |
1357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1360 | return NULL; | |
1361 | } | |
1362 | } | |
cf694132 | 1363 | { |
4268f798 | 1364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1365 | _result = (bool )wxWindow_Destroy(_arg0); |
cf694132 | 1366 | |
4268f798 | 1367 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1368 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1369 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1370 | return _resultobj; |
1371 | } | |
1372 | ||
1373 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1374 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1375 | PyObject * _resultobj; |
1376 | wxWindow * _arg0; | |
1d99702e | 1377 | PyObject * _argo0 = 0; |
efc5f224 | 1378 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1379 | |
1380 | self = self; | |
efc5f224 | 1381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1382 | return NULL; |
1d99702e RD |
1383 | if (_argo0) { |
1384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1387 | return NULL; | |
1388 | } | |
1389 | } | |
cf694132 | 1390 | { |
4268f798 | 1391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1392 | wxWindow_DestroyChildren(_arg0); |
cf694132 | 1393 | |
4268f798 | 1394 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1395 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1396 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1397 | _resultobj = Py_None; |
1398 | return _resultobj; | |
1399 | } | |
1400 | ||
ac346f50 RD |
1401 | #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted()) |
1402 | static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1403 | PyObject * _resultobj; | |
1404 | bool _result; | |
1405 | wxWindow * _arg0; | |
1406 | PyObject * _argo0 = 0; | |
1407 | char *_kwnames[] = { "self", NULL }; | |
1408 | ||
1409 | self = self; | |
1410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0)) | |
1411 | return NULL; | |
1412 | if (_argo0) { | |
1413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p."); | |
1416 | return NULL; | |
1417 | } | |
1418 | } | |
1419 | { | |
4268f798 | 1420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1421 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); |
ac346f50 | 1422 | |
4268f798 | 1423 | wxPyEndAllowThreads(__tstate); |
ac346f50 RD |
1424 | if (PyErr_Occurred()) return NULL; |
1425 | } _resultobj = Py_BuildValue("i",_result); | |
1426 | return _resultobj; | |
1427 | } | |
1428 | ||
8ab979d7 | 1429 | #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0)) |
efc5f224 | 1430 | static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1431 | PyObject * _resultobj; |
1432 | wxWindow * _arg0; | |
1433 | bool _arg1; | |
1d99702e | 1434 | PyObject * _argo0 = 0; |
8ab979d7 | 1435 | int tempbool1; |
efc5f224 | 1436 | char *_kwnames[] = { "self","accept", NULL }; |
8ab979d7 RD |
1437 | |
1438 | self = self; | |
efc5f224 | 1439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1440 | return NULL; |
1d99702e RD |
1441 | if (_argo0) { |
1442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p."); |
1445 | return NULL; | |
1446 | } | |
1447 | } | |
1448 | _arg1 = (bool ) tempbool1; | |
cf694132 | 1449 | { |
4268f798 | 1450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1451 | wxWindow_DragAcceptFiles(_arg0,_arg1); |
cf694132 | 1452 | |
4268f798 | 1453 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1454 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1455 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1456 | _resultobj = Py_None; |
1457 | return _resultobj; | |
1458 | } | |
1459 | ||
1460 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
efc5f224 | 1461 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1462 | PyObject * _resultobj; |
1463 | wxWindow * _arg0; | |
1464 | bool _arg1; | |
1d99702e | 1465 | PyObject * _argo0 = 0; |
8ab979d7 | 1466 | int tempbool1; |
efc5f224 | 1467 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1468 | |
1469 | self = self; | |
efc5f224 | 1470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1471 | return NULL; |
1d99702e RD |
1472 | if (_argo0) { |
1473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1476 | return NULL; | |
1477 | } | |
1478 | } | |
1479 | _arg1 = (bool ) tempbool1; | |
cf694132 | 1480 | { |
4268f798 | 1481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1482 | wxWindow_Enable(_arg0,_arg1); |
cf694132 | 1483 | |
4268f798 | 1484 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1485 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1486 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1487 | _resultobj = Py_None; |
1488 | return _resultobj; | |
1489 | } | |
1490 | ||
af309447 | 1491 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1492 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1493 | PyObject * _resultobj; |
1494 | wxWindow * _result; | |
1495 | wxWindow * _arg0; | |
1496 | long _arg1; | |
1d99702e | 1497 | PyObject * _argo0 = 0; |
efc5f224 | 1498 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1499 | |
1500 | self = self; | |
efc5f224 | 1501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1502 | return NULL; |
1d99702e RD |
1503 | if (_argo0) { |
1504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1507 | return NULL; |
1508 | } | |
1509 | } | |
cf694132 | 1510 | { |
4268f798 | 1511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1512 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); |
cf694132 | 1513 | |
4268f798 | 1514 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1515 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1516 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1517 | return _resultobj; |
1518 | } | |
1519 | ||
1520 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1521 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1522 | PyObject * _resultobj; |
1523 | wxWindow * _result; | |
1524 | wxWindow * _arg0; | |
1525 | wxString * _arg1; | |
1d99702e | 1526 | PyObject * _argo0 = 0; |
8ab979d7 | 1527 | PyObject * _obj1 = 0; |
efc5f224 | 1528 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1529 | |
1530 | self = self; | |
efc5f224 | 1531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1532 | return NULL; |
1d99702e RD |
1533 | if (_argo0) { |
1534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1537 | return NULL; | |
1538 | } | |
1539 | } | |
1540 | { | |
c8bc7bb8 RD |
1541 | _arg1 = wxString_in_helper(_obj1); |
1542 | if (_arg1 == NULL) | |
8ab979d7 | 1543 | return NULL; |
8ab979d7 | 1544 | } |
cf694132 | 1545 | { |
4268f798 | 1546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1547 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); |
cf694132 | 1548 | |
4268f798 | 1549 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1550 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1551 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1552 | { |
1553 | if (_obj1) | |
1554 | delete _arg1; | |
1555 | } | |
1556 | return _resultobj; | |
1557 | } | |
1558 | ||
1559 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1560 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1561 | PyObject * _resultobj; |
1562 | wxWindow * _arg0; | |
1d99702e | 1563 | PyObject * _argo0 = 0; |
efc5f224 | 1564 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1565 | |
1566 | self = self; | |
efc5f224 | 1567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1568 | return NULL; |
1d99702e RD |
1569 | if (_argo0) { |
1570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1573 | return NULL; | |
1574 | } | |
1575 | } | |
cf694132 | 1576 | { |
4268f798 | 1577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1578 | wxWindow_Fit(_arg0); |
cf694132 | 1579 | |
4268f798 | 1580 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1581 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1582 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1583 | _resultobj = Py_None; |
1584 | return _resultobj; | |
1585 | } | |
1586 | ||
1587 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
efc5f224 | 1588 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1589 | PyObject * _resultobj; |
1590 | wxColour * _result; | |
1591 | wxWindow * _arg0; | |
1d99702e | 1592 | PyObject * _argo0 = 0; |
efc5f224 | 1593 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1594 | char _ptemp[128]; |
1595 | ||
1596 | self = self; | |
efc5f224 | 1597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1598 | return NULL; |
1d99702e RD |
1599 | if (_argo0) { |
1600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1603 | return NULL; | |
1604 | } | |
1605 | } | |
cf694132 | 1606 | { |
4268f798 | 1607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1608 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); |
cf694132 | 1609 | |
4268f798 | 1610 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1611 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1612 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1613 | _resultobj = Py_BuildValue("s",_ptemp); |
1614 | return _resultobj; | |
1615 | } | |
1616 | ||
23bed520 RD |
1617 | #define wxWindow_GetBorder(_swigobj) (_swigobj->GetBorder()) |
1618 | static PyObject *_wrap_wxWindow_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1619 | PyObject * _resultobj; | |
1620 | wxBorder _result; | |
1621 | wxWindow * _arg0; | |
1622 | PyObject * _argo0 = 0; | |
1623 | char *_kwnames[] = { "self", NULL }; | |
1624 | ||
1625 | self = self; | |
1626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBorder",_kwnames,&_argo0)) | |
1627 | return NULL; | |
1628 | if (_argo0) { | |
1629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBorder. Expected _wxWindow_p."); | |
1632 | return NULL; | |
1633 | } | |
1634 | } | |
1635 | { | |
1636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1637 | _result = (wxBorder )wxWindow_GetBorder(_arg0); |
23bed520 RD |
1638 | |
1639 | wxPyEndAllowThreads(__tstate); | |
1640 | if (PyErr_Occurred()) return NULL; | |
1641 | } _resultobj = Py_BuildValue("i",_result); | |
1642 | return _resultobj; | |
1643 | } | |
1644 | ||
d426c97e RD |
1645 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1646 | wxWindowList& list = self->GetChildren(); | |
1647 | return wxPy_ConvertList(&list, "wxWindow"); | |
1648 | } | |
1649 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1650 | PyObject * _resultobj; | |
1651 | PyObject * _result; | |
1652 | wxWindow * _arg0; | |
1653 | PyObject * _argo0 = 0; | |
1654 | char *_kwnames[] = { "self", NULL }; | |
1655 | ||
1656 | self = self; | |
1657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1658 | return NULL; | |
1659 | if (_argo0) { | |
1660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1663 | return NULL; | |
1664 | } | |
1665 | } | |
1666 | { | |
4268f798 | 1667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1668 | _result = (PyObject *)wxWindow_GetChildren(_arg0); |
d426c97e | 1669 | |
4268f798 | 1670 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1671 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
1672 | }{ |
1673 | _resultobj = _result; | |
1674 | } | |
1675 | return _resultobj; | |
1676 | } | |
1677 | ||
8ab979d7 | 1678 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1679 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1680 | PyObject * _resultobj; |
1681 | int _result; | |
1682 | wxWindow * _arg0; | |
1d99702e | 1683 | PyObject * _argo0 = 0; |
efc5f224 | 1684 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1685 | |
1686 | self = self; | |
efc5f224 | 1687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1688 | return NULL; |
1d99702e RD |
1689 | if (_argo0) { |
1690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1693 | return NULL; | |
1694 | } | |
1695 | } | |
cf694132 | 1696 | { |
4268f798 | 1697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1698 | _result = (int )wxWindow_GetCharHeight(_arg0); |
cf694132 | 1699 | |
4268f798 | 1700 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1701 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1702 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1703 | return _resultobj; |
1704 | } | |
1705 | ||
1706 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1707 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1708 | PyObject * _resultobj; |
1709 | int _result; | |
1710 | wxWindow * _arg0; | |
1d99702e | 1711 | PyObject * _argo0 = 0; |
efc5f224 | 1712 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1713 | |
1714 | self = self; | |
efc5f224 | 1715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1716 | return NULL; |
1d99702e RD |
1717 | if (_argo0) { |
1718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1721 | return NULL; | |
1722 | } | |
1723 | } | |
cf694132 | 1724 | { |
4268f798 | 1725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1726 | _result = (int )wxWindow_GetCharWidth(_arg0); |
cf694132 | 1727 | |
4268f798 | 1728 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1729 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1730 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1731 | return _resultobj; |
1732 | } | |
1733 | ||
b8b8dda7 | 1734 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1735 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1736 | PyObject * _resultobj; |
1737 | wxWindow * _arg0; | |
1738 | int * _arg1; | |
1739 | int temp; | |
1740 | int * _arg2; | |
1741 | int temp0; | |
1d99702e | 1742 | PyObject * _argo0 = 0; |
efc5f224 | 1743 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1744 | |
1745 | self = self; | |
1746 | { | |
1747 | _arg1 = &temp; | |
1748 | } | |
1749 | { | |
1750 | _arg2 = &temp0; | |
1751 | } | |
efc5f224 | 1752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1753 | return NULL; |
1d99702e RD |
1754 | if (_argo0) { |
1755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1758 | return NULL; |
1759 | } | |
1760 | } | |
cf694132 | 1761 | { |
4268f798 | 1762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1763 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 1764 | |
4268f798 | 1765 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1766 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1767 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1768 | _resultobj = Py_None; |
1769 | { | |
1770 | PyObject *o; | |
1771 | o = PyInt_FromLong((long) (*_arg1)); | |
1772 | _resultobj = t_output_helper(_resultobj, o); | |
1773 | } | |
1774 | { | |
1775 | PyObject *o; | |
1776 | o = PyInt_FromLong((long) (*_arg2)); | |
1777 | _resultobj = t_output_helper(_resultobj, o); | |
1778 | } | |
1779 | return _resultobj; | |
1780 | } | |
1781 | ||
b8b8dda7 | 1782 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1783 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1784 | PyObject * _resultobj; |
1785 | wxSize * _result; | |
1786 | wxWindow * _arg0; | |
1d99702e | 1787 | PyObject * _argo0 = 0; |
efc5f224 | 1788 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1789 | char _ptemp[128]; |
1790 | ||
1791 | self = self; | |
efc5f224 | 1792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1793 | return NULL; |
1d99702e RD |
1794 | if (_argo0) { |
1795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1798 | return NULL; | |
1799 | } | |
1800 | } | |
cf694132 | 1801 | { |
4268f798 | 1802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1803 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); |
cf694132 | 1804 | |
4268f798 | 1805 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1806 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1807 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
1808 | _resultobj = Py_BuildValue("s",_ptemp); |
1809 | return _resultobj; | |
1810 | } | |
1811 | ||
23bed520 RD |
1812 | #define wxWindow_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin()) |
1813 | static PyObject *_wrap_wxWindow_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1814 | PyObject * _resultobj; | |
1815 | wxPoint * _result; | |
1816 | wxWindow * _arg0; | |
1817 | PyObject * _argo0 = 0; | |
1818 | char *_kwnames[] = { "self", NULL }; | |
1819 | char _ptemp[128]; | |
1820 | ||
1821 | self = self; | |
1822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientAreaOrigin",_kwnames,&_argo0)) | |
1823 | return NULL; | |
1824 | if (_argo0) { | |
1825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientAreaOrigin. Expected _wxWindow_p."); | |
1828 | return NULL; | |
1829 | } | |
1830 | } | |
1831 | { | |
1832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1833 | _result = new wxPoint (wxWindow_GetClientAreaOrigin(_arg0)); |
23bed520 RD |
1834 | |
1835 | wxPyEndAllowThreads(__tstate); | |
1836 | if (PyErr_Occurred()) return NULL; | |
1837 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1838 | _resultobj = Py_BuildValue("s",_ptemp); | |
1839 | return _resultobj; | |
1840 | } | |
1841 | ||
1842 | #define wxWindow_GetClientRect(_swigobj) (_swigobj->GetClientRect()) | |
1843 | static PyObject *_wrap_wxWindow_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1844 | PyObject * _resultobj; | |
1845 | wxRect * _result; | |
1846 | wxWindow * _arg0; | |
1847 | PyObject * _argo0 = 0; | |
1848 | char *_kwnames[] = { "self", NULL }; | |
1849 | char _ptemp[128]; | |
1850 | ||
1851 | self = self; | |
1852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientRect",_kwnames,&_argo0)) | |
1853 | return NULL; | |
1854 | if (_argo0) { | |
1855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientRect. Expected _wxWindow_p."); | |
1858 | return NULL; | |
1859 | } | |
1860 | } | |
1861 | { | |
1862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1863 | _result = new wxRect (wxWindow_GetClientRect(_arg0)); |
23bed520 RD |
1864 | |
1865 | wxPyEndAllowThreads(__tstate); | |
1866 | if (PyErr_Occurred()) return NULL; | |
1867 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
1868 | _resultobj = Py_BuildValue("s",_ptemp); | |
1869 | return _resultobj; | |
1870 | } | |
1871 | ||
8ab979d7 | 1872 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1873 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1874 | PyObject * _resultobj; |
1875 | wxLayoutConstraints * _result; | |
1876 | wxWindow * _arg0; | |
1d99702e | 1877 | PyObject * _argo0 = 0; |
efc5f224 | 1878 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1879 | char _ptemp[128]; |
1880 | ||
1881 | self = self; | |
efc5f224 | 1882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1883 | return NULL; |
1d99702e RD |
1884 | if (_argo0) { |
1885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1888 | return NULL; | |
1889 | } | |
1890 | } | |
cf694132 | 1891 | { |
4268f798 | 1892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1893 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); |
cf694132 | 1894 | |
4268f798 | 1895 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1896 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1897 | } if (_result) { |
1898 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1899 | _resultobj = Py_BuildValue("s",_ptemp); | |
1900 | } else { | |
1901 | Py_INCREF(Py_None); | |
1902 | _resultobj = Py_None; | |
1903 | } | |
8ab979d7 RD |
1904 | return _resultobj; |
1905 | } | |
1906 | ||
1afc06c2 RD |
1907 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1908 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1909 | PyObject * _resultobj; | |
1910 | wxEvtHandler * _result; | |
1911 | wxWindow * _arg0; | |
1912 | PyObject * _argo0 = 0; | |
1913 | char *_kwnames[] = { "self", NULL }; | |
1afc06c2 RD |
1914 | |
1915 | self = self; | |
1916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1917 | return NULL; | |
1918 | if (_argo0) { | |
1919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1922 | return NULL; | |
1923 | } | |
1924 | } | |
1925 | { | |
4268f798 | 1926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1927 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); |
1afc06c2 | 1928 | |
4268f798 | 1929 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1930 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1931 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
1932 | return _resultobj; |
1933 | } | |
1934 | ||
8ab979d7 | 1935 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 1936 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1937 | PyObject * _resultobj; |
1938 | wxFont * _result; | |
1939 | wxWindow * _arg0; | |
1d99702e | 1940 | PyObject * _argo0 = 0; |
efc5f224 | 1941 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1942 | char _ptemp[128]; |
1943 | ||
1944 | self = self; | |
efc5f224 | 1945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 1946 | return NULL; |
1d99702e RD |
1947 | if (_argo0) { |
1948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
1951 | return NULL; | |
1952 | } | |
1953 | } | |
cf694132 | 1954 | { |
4268f798 | 1955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1956 | _result = new wxFont (wxWindow_GetFont(_arg0)); |
cf694132 | 1957 | |
4268f798 | 1958 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1959 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1960 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1961 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
1962 | return _resultobj; |
1963 | } | |
1964 | ||
1965 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 1966 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1967 | PyObject * _resultobj; |
1968 | wxColour * _result; | |
1969 | wxWindow * _arg0; | |
1d99702e | 1970 | PyObject * _argo0 = 0; |
efc5f224 | 1971 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1972 | char _ptemp[128]; |
1973 | ||
1974 | self = self; | |
efc5f224 | 1975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1976 | return NULL; |
1d99702e RD |
1977 | if (_argo0) { |
1978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
1981 | return NULL; | |
1982 | } | |
1983 | } | |
cf694132 | 1984 | { |
4268f798 | 1985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1986 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); |
cf694132 | 1987 | |
4268f798 | 1988 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1989 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1990 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1991 | _resultobj = Py_BuildValue("s",_ptemp); |
1992 | return _resultobj; | |
1993 | } | |
1994 | ||
1995 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 1996 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1997 | PyObject * _resultobj; |
1998 | wxWindow * _result; | |
1999 | wxWindow * _arg0; | |
1d99702e | 2000 | PyObject * _argo0 = 0; |
efc5f224 | 2001 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2002 | |
2003 | self = self; | |
efc5f224 | 2004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 2005 | return NULL; |
1d99702e RD |
2006 | if (_argo0) { |
2007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
2010 | return NULL; | |
2011 | } | |
2012 | } | |
cf694132 | 2013 | { |
4268f798 | 2014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2015 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); |
cf694132 | 2016 | |
4268f798 | 2017 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2018 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2019 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2020 | return _resultobj; |
2021 | } | |
2022 | ||
2abc0a0f | 2023 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 2024 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
2025 | } |
2026 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2027 | PyObject * _resultobj; | |
2028 | long _result; | |
2029 | wxWindow * _arg0; | |
2030 | PyObject * _argo0 = 0; | |
2031 | char *_kwnames[] = { "self", NULL }; | |
2032 | ||
2033 | self = self; | |
2034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
2035 | return NULL; | |
2036 | if (_argo0) { | |
2037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
2040 | return NULL; | |
2041 | } | |
2042 | } | |
2043 | { | |
4268f798 | 2044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2045 | _result = (long )wxWindow_GetHandle(_arg0); |
2abc0a0f | 2046 | |
4268f798 | 2047 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2048 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
2049 | } _resultobj = Py_BuildValue("l",_result); |
2050 | return _resultobj; | |
2051 | } | |
2052 | ||
8ab979d7 | 2053 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 2054 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2055 | PyObject * _resultobj; |
2056 | int _result; | |
2057 | wxWindow * _arg0; | |
1d99702e | 2058 | PyObject * _argo0 = 0; |
efc5f224 | 2059 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2060 | |
2061 | self = self; | |
efc5f224 | 2062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 2063 | return NULL; |
1d99702e RD |
2064 | if (_argo0) { |
2065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
2068 | return NULL; | |
2069 | } | |
2070 | } | |
cf694132 | 2071 | { |
4268f798 | 2072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2073 | _result = (int )wxWindow_GetId(_arg0); |
cf694132 | 2074 | |
4268f798 | 2075 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2076 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2077 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2078 | return _resultobj; |
2079 | } | |
2080 | ||
8ab979d7 | 2081 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 2082 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2083 | PyObject * _resultobj; |
2084 | wxString * _result; | |
2085 | wxWindow * _arg0; | |
1d99702e | 2086 | PyObject * _argo0 = 0; |
efc5f224 | 2087 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2088 | |
2089 | self = self; | |
efc5f224 | 2090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 2091 | return NULL; |
1d99702e RD |
2092 | if (_argo0) { |
2093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
2096 | return NULL; | |
2097 | } | |
2098 | } | |
8ab979d7 | 2099 | { |
4268f798 | 2100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2101 | _result = new wxString (wxWindow_GetLabel(_arg0)); |
cf694132 | 2102 | |
4268f798 | 2103 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2104 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2105 | }{ |
c8bc7bb8 RD |
2106 | #if wxUSE_UNICODE |
2107 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2108 | #else | |
eec92d76 | 2109 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2110 | #endif |
8ab979d7 RD |
2111 | } |
2112 | { | |
2113 | delete _result; | |
2114 | } | |
2115 | return _resultobj; | |
2116 | } | |
2117 | ||
bb0054cd | 2118 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 2119 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2120 | PyObject * _resultobj; |
2121 | wxWindow * _arg0; | |
2122 | wxString * _arg1; | |
1d99702e | 2123 | PyObject * _argo0 = 0; |
bb0054cd | 2124 | PyObject * _obj1 = 0; |
efc5f224 | 2125 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
2126 | |
2127 | self = self; | |
efc5f224 | 2128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 2129 | return NULL; |
1d99702e RD |
2130 | if (_argo0) { |
2131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
2134 | return NULL; | |
2135 | } | |
2136 | } | |
2137 | { | |
c8bc7bb8 RD |
2138 | _arg1 = wxString_in_helper(_obj1); |
2139 | if (_arg1 == NULL) | |
bb0054cd | 2140 | return NULL; |
bb0054cd RD |
2141 | } |
2142 | { | |
4268f798 | 2143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2144 | wxWindow_SetLabel(_arg0,*_arg1); |
bb0054cd | 2145 | |
4268f798 | 2146 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2147 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2148 | } Py_INCREF(Py_None); |
2149 | _resultobj = Py_None; | |
2150 | { | |
2151 | if (_obj1) | |
2152 | delete _arg1; | |
2153 | } | |
2154 | return _resultobj; | |
2155 | } | |
2156 | ||
8ab979d7 | 2157 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2158 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2159 | PyObject * _resultobj; |
2160 | wxString * _result; | |
2161 | wxWindow * _arg0; | |
1d99702e | 2162 | PyObject * _argo0 = 0; |
efc5f224 | 2163 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2164 | |
2165 | self = self; | |
efc5f224 | 2166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2167 | return NULL; |
1d99702e RD |
2168 | if (_argo0) { |
2169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2172 | return NULL; | |
2173 | } | |
2174 | } | |
8ab979d7 | 2175 | { |
4268f798 | 2176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2177 | _result = new wxString (wxWindow_GetName(_arg0)); |
cf694132 | 2178 | |
4268f798 | 2179 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2180 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2181 | }{ |
c8bc7bb8 RD |
2182 | #if wxUSE_UNICODE |
2183 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2184 | #else | |
eec92d76 | 2185 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2186 | #endif |
8ab979d7 RD |
2187 | } |
2188 | { | |
2189 | delete _result; | |
2190 | } | |
2191 | return _resultobj; | |
2192 | } | |
2193 | ||
2194 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2195 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2196 | PyObject * _resultobj; |
2197 | wxWindow * _result; | |
2198 | wxWindow * _arg0; | |
1d99702e | 2199 | PyObject * _argo0 = 0; |
efc5f224 | 2200 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2201 | |
2202 | self = self; | |
efc5f224 | 2203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2204 | return NULL; |
1d99702e RD |
2205 | if (_argo0) { |
2206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2209 | return NULL; | |
2210 | } | |
2211 | } | |
cf694132 | 2212 | { |
4268f798 | 2213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2214 | _result = (wxWindow *)wxWindow_GetParent(_arg0); |
cf694132 | 2215 | |
4268f798 | 2216 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2217 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2218 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2219 | return _resultobj; |
2220 | } | |
2221 | ||
b8b8dda7 | 2222 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2223 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2224 | PyObject * _resultobj; |
2225 | wxWindow * _arg0; | |
2226 | int * _arg1; | |
2227 | int temp; | |
2228 | int * _arg2; | |
2229 | int temp0; | |
1d99702e | 2230 | PyObject * _argo0 = 0; |
efc5f224 | 2231 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2232 | |
2233 | self = self; | |
2234 | { | |
2235 | _arg1 = &temp; | |
2236 | } | |
2237 | { | |
2238 | _arg2 = &temp0; | |
2239 | } | |
efc5f224 | 2240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2241 | return NULL; |
1d99702e RD |
2242 | if (_argo0) { |
2243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2246 | return NULL; | |
2247 | } | |
2248 | } | |
cf694132 | 2249 | { |
4268f798 | 2250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2251 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); |
cf694132 | 2252 | |
4268f798 | 2253 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2254 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2255 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
2256 | _resultobj = Py_None; |
2257 | { | |
2258 | PyObject *o; | |
2259 | o = PyInt_FromLong((long) (*_arg1)); | |
2260 | _resultobj = t_output_helper(_resultobj, o); | |
2261 | } | |
2262 | { | |
2263 | PyObject *o; | |
2264 | o = PyInt_FromLong((long) (*_arg2)); | |
2265 | _resultobj = t_output_helper(_resultobj, o); | |
2266 | } | |
2267 | return _resultobj; | |
2268 | } | |
2269 | ||
2270 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2271 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2272 | PyObject * _resultobj; |
2273 | wxPoint * _result; | |
2274 | wxWindow * _arg0; | |
1d99702e | 2275 | PyObject * _argo0 = 0; |
efc5f224 | 2276 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2277 | char _ptemp[128]; |
2278 | ||
2279 | self = self; | |
efc5f224 | 2280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2281 | return NULL; |
1d99702e RD |
2282 | if (_argo0) { |
2283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2286 | return NULL; | |
2287 | } | |
2288 | } | |
cf694132 | 2289 | { |
4268f798 | 2290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2291 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); |
cf694132 | 2292 | |
4268f798 | 2293 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2294 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2295 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
2296 | _resultobj = Py_BuildValue("s",_ptemp); |
2297 | return _resultobj; | |
2298 | } | |
2299 | ||
2300 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2301 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2302 | PyObject * _resultobj; |
2303 | wxRect * _result; | |
2304 | wxWindow * _arg0; | |
1d99702e | 2305 | PyObject * _argo0 = 0; |
efc5f224 | 2306 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2307 | char _ptemp[128]; |
2308 | ||
2309 | self = self; | |
efc5f224 | 2310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2311 | return NULL; |
1d99702e RD |
2312 | if (_argo0) { |
2313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2316 | return NULL; | |
2317 | } | |
2318 | } | |
cf694132 | 2319 | { |
4268f798 | 2320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2321 | _result = new wxRect (wxWindow_GetRect(_arg0)); |
cf694132 | 2322 | |
4268f798 | 2323 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2324 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2325 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
b8b8dda7 RD |
2326 | _resultobj = Py_BuildValue("s",_ptemp); |
2327 | return _resultobj; | |
2328 | } | |
2329 | ||
8ab979d7 | 2330 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2331 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2332 | PyObject * _resultobj; |
2333 | int _result; | |
2334 | wxWindow * _arg0; | |
2335 | int _arg1; | |
1d99702e | 2336 | PyObject * _argo0 = 0; |
efc5f224 | 2337 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2338 | |
2339 | self = self; | |
efc5f224 | 2340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2341 | return NULL; |
1d99702e RD |
2342 | if (_argo0) { |
2343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2346 | return NULL; | |
2347 | } | |
2348 | } | |
cf694132 | 2349 | { |
4268f798 | 2350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2351 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); |
cf694132 | 2352 | |
4268f798 | 2353 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2354 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2355 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2356 | return _resultobj; |
2357 | } | |
2358 | ||
2359 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2360 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2361 | PyObject * _resultobj; |
2362 | int _result; | |
2363 | wxWindow * _arg0; | |
2364 | int _arg1; | |
1d99702e | 2365 | PyObject * _argo0 = 0; |
efc5f224 | 2366 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2367 | |
2368 | self = self; | |
efc5f224 | 2369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2370 | return NULL; |
1d99702e RD |
2371 | if (_argo0) { |
2372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2375 | return NULL; | |
2376 | } | |
2377 | } | |
cf694132 | 2378 | { |
4268f798 | 2379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2380 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); |
cf694132 | 2381 | |
4268f798 | 2382 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2383 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2384 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2385 | return _resultobj; |
2386 | } | |
2387 | ||
2388 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2389 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2390 | PyObject * _resultobj; |
2391 | int _result; | |
2392 | wxWindow * _arg0; | |
2393 | int _arg1; | |
1d99702e | 2394 | PyObject * _argo0 = 0; |
efc5f224 | 2395 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2396 | |
2397 | self = self; | |
efc5f224 | 2398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2399 | return NULL; |
1d99702e RD |
2400 | if (_argo0) { |
2401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2404 | return NULL; | |
2405 | } | |
2406 | } | |
cf694132 | 2407 | { |
4268f798 | 2408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2409 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); |
cf694132 | 2410 | |
4268f798 | 2411 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2412 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2413 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2414 | return _resultobj; |
2415 | } | |
2416 | ||
b8b8dda7 | 2417 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2418 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2419 | PyObject * _resultobj; |
2420 | wxWindow * _arg0; | |
2421 | int * _arg1; | |
2422 | int temp; | |
2423 | int * _arg2; | |
2424 | int temp0; | |
1d99702e | 2425 | PyObject * _argo0 = 0; |
efc5f224 | 2426 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2427 | |
2428 | self = self; | |
2429 | { | |
2430 | _arg1 = &temp; | |
2431 | } | |
2432 | { | |
2433 | _arg2 = &temp0; | |
2434 | } | |
efc5f224 | 2435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2436 | return NULL; |
1d99702e RD |
2437 | if (_argo0) { |
2438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2441 | return NULL; |
2442 | } | |
2443 | } | |
cf694132 | 2444 | { |
4268f798 | 2445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2446 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 2447 | |
4268f798 | 2448 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2449 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2450 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2451 | _resultobj = Py_None; |
2452 | { | |
2453 | PyObject *o; | |
2454 | o = PyInt_FromLong((long) (*_arg1)); | |
2455 | _resultobj = t_output_helper(_resultobj, o); | |
2456 | } | |
2457 | { | |
2458 | PyObject *o; | |
2459 | o = PyInt_FromLong((long) (*_arg2)); | |
2460 | _resultobj = t_output_helper(_resultobj, o); | |
2461 | } | |
2462 | return _resultobj; | |
2463 | } | |
2464 | ||
b8b8dda7 | 2465 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2466 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2467 | PyObject * _resultobj; |
2468 | wxSize * _result; | |
2469 | wxWindow * _arg0; | |
1d99702e | 2470 | PyObject * _argo0 = 0; |
efc5f224 | 2471 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2472 | char _ptemp[128]; |
2473 | ||
2474 | self = self; | |
efc5f224 | 2475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2476 | return NULL; |
1d99702e RD |
2477 | if (_argo0) { |
2478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2481 | return NULL; | |
2482 | } | |
2483 | } | |
cf694132 | 2484 | { |
4268f798 | 2485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2486 | _result = new wxSize (wxWindow_GetSize(_arg0)); |
cf694132 | 2487 | |
4268f798 | 2488 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2489 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2490 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
2491 | _resultobj = Py_BuildValue("s",_ptemp); |
2492 | return _resultobj; | |
2493 | } | |
2494 | ||
8ab979d7 | 2495 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2496 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2497 | PyObject * _resultobj; |
2498 | wxWindow * _arg0; | |
2499 | wxString * _arg1; | |
2500 | int * _arg2; | |
2501 | int temp; | |
2502 | int * _arg3; | |
2503 | int temp0; | |
1d99702e | 2504 | PyObject * _argo0 = 0; |
8ab979d7 | 2505 | PyObject * _obj1 = 0; |
efc5f224 | 2506 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2507 | |
2508 | self = self; | |
2509 | { | |
2510 | _arg2 = &temp; | |
2511 | } | |
2512 | { | |
2513 | _arg3 = &temp0; | |
2514 | } | |
efc5f224 | 2515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2516 | return NULL; |
1d99702e RD |
2517 | if (_argo0) { |
2518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2521 | return NULL; | |
2522 | } | |
2523 | } | |
2524 | { | |
c8bc7bb8 RD |
2525 | _arg1 = wxString_in_helper(_obj1); |
2526 | if (_arg1 == NULL) | |
8ab979d7 | 2527 | return NULL; |
8ab979d7 | 2528 | } |
cf694132 | 2529 | { |
4268f798 | 2530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2531 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 2532 | |
4268f798 | 2533 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2534 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2535 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2536 | _resultobj = Py_None; |
2537 | { | |
2538 | PyObject *o; | |
2539 | o = PyInt_FromLong((long) (*_arg2)); | |
2540 | _resultobj = t_output_helper(_resultobj, o); | |
2541 | } | |
2542 | { | |
2543 | PyObject *o; | |
2544 | o = PyInt_FromLong((long) (*_arg3)); | |
2545 | _resultobj = t_output_helper(_resultobj, o); | |
2546 | } | |
2547 | { | |
2548 | if (_obj1) | |
2549 | delete _arg1; | |
2550 | } | |
2551 | return _resultobj; | |
2552 | } | |
2553 | ||
af309447 | 2554 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2555 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2556 | PyObject * _resultobj; |
2557 | wxWindow * _arg0; | |
2558 | wxString * _arg1; | |
2559 | int * _arg2; | |
2560 | int temp; | |
2561 | int * _arg3; | |
2562 | int temp0; | |
2563 | int * _arg4; | |
2564 | int temp1; | |
2565 | int * _arg5; | |
2566 | int temp2; | |
1d99702e RD |
2567 | wxFont * _arg6 = (wxFont *) NULL; |
2568 | PyObject * _argo0 = 0; | |
af309447 | 2569 | PyObject * _obj1 = 0; |
1d99702e | 2570 | PyObject * _argo6 = 0; |
efc5f224 | 2571 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2572 | |
2573 | self = self; | |
2574 | { | |
2575 | _arg2 = &temp; | |
2576 | } | |
2577 | { | |
2578 | _arg3 = &temp0; | |
2579 | } | |
2580 | { | |
2581 | _arg4 = &temp1; | |
2582 | } | |
2583 | { | |
2584 | _arg5 = &temp2; | |
2585 | } | |
efc5f224 | 2586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2587 | return NULL; |
1d99702e RD |
2588 | if (_argo0) { |
2589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2592 | return NULL; | |
2593 | } | |
2594 | } | |
2595 | { | |
c8bc7bb8 RD |
2596 | _arg1 = wxString_in_helper(_obj1); |
2597 | if (_arg1 == NULL) | |
af309447 | 2598 | return NULL; |
af309447 | 2599 | } |
1d99702e RD |
2600 | if (_argo6) { |
2601 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2602 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2604 | return NULL; | |
2605 | } | |
2606 | } | |
cf694132 | 2607 | { |
4268f798 | 2608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2609 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 2610 | |
4268f798 | 2611 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2612 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2613 | } Py_INCREF(Py_None); |
af309447 RD |
2614 | _resultobj = Py_None; |
2615 | { | |
2616 | PyObject *o; | |
2617 | o = PyInt_FromLong((long) (*_arg2)); | |
2618 | _resultobj = t_output_helper(_resultobj, o); | |
2619 | } | |
2620 | { | |
2621 | PyObject *o; | |
2622 | o = PyInt_FromLong((long) (*_arg3)); | |
2623 | _resultobj = t_output_helper(_resultobj, o); | |
2624 | } | |
2625 | { | |
2626 | PyObject *o; | |
2627 | o = PyInt_FromLong((long) (*_arg4)); | |
2628 | _resultobj = t_output_helper(_resultobj, o); | |
2629 | } | |
2630 | { | |
2631 | PyObject *o; | |
2632 | o = PyInt_FromLong((long) (*_arg5)); | |
2633 | _resultobj = t_output_helper(_resultobj, o); | |
2634 | } | |
2635 | { | |
2636 | if (_obj1) | |
2637 | delete _arg1; | |
2638 | } | |
2639 | return _resultobj; | |
2640 | } | |
2641 | ||
8ab979d7 | 2642 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2643 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2644 | PyObject * _resultobj; |
2645 | wxString * _result; | |
2646 | wxWindow * _arg0; | |
1d99702e | 2647 | PyObject * _argo0 = 0; |
efc5f224 | 2648 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2649 | |
2650 | self = self; | |
efc5f224 | 2651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2652 | return NULL; |
1d99702e RD |
2653 | if (_argo0) { |
2654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2657 | return NULL; | |
2658 | } | |
2659 | } | |
8ab979d7 | 2660 | { |
4268f798 | 2661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2662 | _result = new wxString (wxWindow_GetTitle(_arg0)); |
cf694132 | 2663 | |
4268f798 | 2664 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2665 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2666 | }{ |
c8bc7bb8 RD |
2667 | #if wxUSE_UNICODE |
2668 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2669 | #else | |
eec92d76 | 2670 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2671 | #endif |
8ab979d7 RD |
2672 | } |
2673 | { | |
2674 | delete _result; | |
2675 | } | |
2676 | return _resultobj; | |
2677 | } | |
2678 | ||
8bf5d46e | 2679 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2680 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2681 | PyObject * _resultobj; |
2682 | wxRegion * _result; | |
2683 | wxWindow * _arg0; | |
1d99702e | 2684 | PyObject * _argo0 = 0; |
efc5f224 | 2685 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2686 | char _ptemp[128]; |
2687 | ||
2688 | self = self; | |
efc5f224 | 2689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2690 | return NULL; |
1d99702e RD |
2691 | if (_argo0) { |
2692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2695 | return NULL; | |
2696 | } | |
2697 | } | |
2698 | { | |
4268f798 | 2699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2700 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); |
8bf5d46e | 2701 | |
4268f798 | 2702 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2703 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
2704 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); |
2705 | _resultobj = Py_BuildValue("s",_ptemp); | |
2706 | return _resultobj; | |
2707 | } | |
2708 | ||
8ab979d7 | 2709 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2710 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2711 | PyObject * _resultobj; |
2712 | long _result; | |
2713 | wxWindow * _arg0; | |
1d99702e | 2714 | PyObject * _argo0 = 0; |
efc5f224 | 2715 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2716 | |
2717 | self = self; | |
efc5f224 | 2718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2719 | return NULL; |
1d99702e RD |
2720 | if (_argo0) { |
2721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2724 | return NULL; | |
2725 | } | |
2726 | } | |
cf694132 | 2727 | { |
4268f798 | 2728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2729 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); |
cf694132 | 2730 | |
4268f798 | 2731 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2732 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2733 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2734 | return _resultobj; |
2735 | } | |
2736 | ||
f6bcfd97 BP |
2737 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2738 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2739 | PyObject * _resultobj; | |
2740 | wxWindow * _arg0; | |
2741 | long _arg1; | |
2742 | PyObject * _argo0 = 0; | |
2743 | char *_kwnames[] = { "self","style", NULL }; | |
2744 | ||
2745 | self = self; | |
2746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2747 | return NULL; | |
2748 | if (_argo0) { | |
2749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2752 | return NULL; | |
2753 | } | |
2754 | } | |
2755 | { | |
4268f798 | 2756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2757 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); |
f6bcfd97 | 2758 | |
4268f798 | 2759 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2760 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2761 | } Py_INCREF(Py_None); |
2762 | _resultobj = Py_None; | |
2763 | return _resultobj; | |
2764 | } | |
2765 | ||
2766 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2767 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2768 | PyObject * _resultobj; | |
2769 | wxWindow * _arg0; | |
2770 | long _arg1; | |
2771 | PyObject * _argo0 = 0; | |
2772 | char *_kwnames[] = { "self","style", NULL }; | |
2773 | ||
2774 | self = self; | |
2775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2776 | return NULL; | |
2777 | if (_argo0) { | |
2778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2781 | return NULL; | |
2782 | } | |
2783 | } | |
2784 | { | |
4268f798 | 2785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2786 | wxWindow_SetWindowStyle(_arg0,_arg1); |
f6bcfd97 | 2787 | |
4268f798 | 2788 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2789 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2790 | } Py_INCREF(Py_None); |
2791 | _resultobj = Py_None; | |
2792 | return _resultobj; | |
2793 | } | |
2794 | ||
23bed520 RD |
2795 | #define wxWindow_HasScrollbar(_swigobj,_swigarg0) (_swigobj->HasScrollbar(_swigarg0)) |
2796 | static PyObject *_wrap_wxWindow_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2797 | PyObject * _resultobj; | |
2798 | bool _result; | |
2799 | wxWindow * _arg0; | |
2800 | int _arg1; | |
2801 | PyObject * _argo0 = 0; | |
2802 | char *_kwnames[] = { "self","orient", NULL }; | |
2803 | ||
2804 | self = self; | |
2805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_HasScrollbar",_kwnames,&_argo0,&_arg1)) | |
2806 | return NULL; | |
2807 | if (_argo0) { | |
2808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasScrollbar. Expected _wxWindow_p."); | |
2811 | return NULL; | |
2812 | } | |
2813 | } | |
2814 | { | |
2815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2816 | _result = (bool )wxWindow_HasScrollbar(_arg0,_arg1); |
23bed520 RD |
2817 | |
2818 | wxPyEndAllowThreads(__tstate); | |
2819 | if (PyErr_Occurred()) return NULL; | |
2820 | } _resultobj = Py_BuildValue("i",_result); | |
2821 | return _resultobj; | |
2822 | } | |
2823 | ||
bb0054cd | 2824 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2825 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2826 | PyObject * _resultobj; |
2827 | bool _result; | |
2828 | wxWindow * _arg0; | |
1d99702e | 2829 | PyObject * _argo0 = 0; |
efc5f224 | 2830 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2831 | |
2832 | self = self; | |
efc5f224 | 2833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2834 | return NULL; |
1d99702e RD |
2835 | if (_argo0) { |
2836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2839 | return NULL; | |
2840 | } | |
2841 | } | |
2842 | { | |
4268f798 | 2843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2844 | _result = (bool )wxWindow_Hide(_arg0); |
bb0054cd | 2845 | |
4268f798 | 2846 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2847 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2848 | } _resultobj = Py_BuildValue("i",_result); |
2849 | return _resultobj; | |
2850 | } | |
2851 | ||
23bed520 RD |
2852 | #define wxWindow_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0)) |
2853 | static PyObject *_wrap_wxWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2854 | PyObject * _resultobj; | |
2855 | wxHitTest _result; | |
2856 | wxWindow * _arg0; | |
2857 | wxPoint * _arg1; | |
2858 | PyObject * _argo0 = 0; | |
2859 | wxPoint temp; | |
2860 | PyObject * _obj1 = 0; | |
2861 | char *_kwnames[] = { "self","pt", NULL }; | |
2862 | ||
2863 | self = self; | |
2864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_HitTest",_kwnames,&_argo0,&_obj1)) | |
2865 | return NULL; | |
2866 | if (_argo0) { | |
2867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HitTest. Expected _wxWindow_p."); | |
2870 | return NULL; | |
2871 | } | |
2872 | } | |
2873 | { | |
2874 | _arg1 = &temp; | |
2875 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2876 | return NULL; | |
2877 | } | |
2878 | { | |
2879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2880 | _result = (wxHitTest )wxWindow_HitTest(_arg0,*_arg1); |
23bed520 RD |
2881 | |
2882 | wxPyEndAllowThreads(__tstate); | |
2883 | if (PyErr_Occurred()) return NULL; | |
2884 | } _resultobj = Py_BuildValue("i",_result); | |
2885 | return _resultobj; | |
2886 | } | |
2887 | ||
8ab979d7 | 2888 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2889 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2890 | PyObject * _resultobj; |
2891 | wxWindow * _arg0; | |
1d99702e | 2892 | PyObject * _argo0 = 0; |
efc5f224 | 2893 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2894 | |
2895 | self = self; | |
efc5f224 | 2896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2897 | return NULL; |
1d99702e RD |
2898 | if (_argo0) { |
2899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2902 | return NULL; | |
2903 | } | |
2904 | } | |
cf694132 | 2905 | { |
4268f798 | 2906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2907 | wxWindow_InitDialog(_arg0); |
cf694132 | 2908 | |
4268f798 | 2909 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2910 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2911 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2912 | _resultobj = Py_None; |
2913 | return _resultobj; | |
2914 | } | |
2915 | ||
2916 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 2917 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2918 | PyObject * _resultobj; |
2919 | bool _result; | |
2920 | wxWindow * _arg0; | |
1d99702e | 2921 | PyObject * _argo0 = 0; |
efc5f224 | 2922 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2923 | |
2924 | self = self; | |
efc5f224 | 2925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 2926 | return NULL; |
1d99702e RD |
2927 | if (_argo0) { |
2928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2931 | return NULL; | |
2932 | } | |
2933 | } | |
cf694132 | 2934 | { |
4268f798 | 2935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2936 | _result = (bool )wxWindow_IsEnabled(_arg0); |
cf694132 | 2937 | |
4268f798 | 2938 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2939 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2940 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2941 | return _resultobj; |
2942 | } | |
2943 | ||
1b55cabf RD |
2944 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2945 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2946 | PyObject * _resultobj; | |
2947 | bool _result; | |
2948 | wxWindow * _arg0; | |
2949 | int _arg1; | |
2950 | int _arg2; | |
2951 | int _arg3 = (int ) 0; | |
2952 | int _arg4 = (int ) 0; | |
2953 | PyObject * _argo0 = 0; | |
2954 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2955 | ||
2956 | self = self; | |
2957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2958 | return NULL; | |
2959 | if (_argo0) { | |
2960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2963 | return NULL; | |
2964 | } | |
2965 | } | |
2966 | { | |
4268f798 | 2967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2968 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); |
1b55cabf | 2969 | |
4268f798 | 2970 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2971 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2972 | } _resultobj = Py_BuildValue("i",_result); |
2973 | return _resultobj; | |
2974 | } | |
2975 | ||
2976 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2977 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2978 | PyObject * _resultobj; | |
2979 | bool _result; | |
2980 | wxWindow * _arg0; | |
2981 | wxPoint * _arg1; | |
2982 | PyObject * _argo0 = 0; | |
2983 | wxPoint temp; | |
2984 | PyObject * _obj1 = 0; | |
2985 | char *_kwnames[] = { "self","pt", NULL }; | |
2986 | ||
2987 | self = self; | |
2988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2989 | return NULL; | |
2990 | if (_argo0) { | |
2991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2994 | return NULL; | |
2995 | } | |
2996 | } | |
2997 | { | |
2998 | _arg1 = &temp; | |
2999 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3000 | return NULL; | |
3001 | } | |
3002 | { | |
4268f798 | 3003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3004 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); |
1b55cabf | 3005 | |
4268f798 | 3006 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3007 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3008 | } _resultobj = Py_BuildValue("i",_result); |
3009 | return _resultobj; | |
3010 | } | |
3011 | ||
3012 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
3013 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3014 | PyObject * _resultobj; | |
3015 | bool _result; | |
3016 | wxWindow * _arg0; | |
3017 | wxRect * _arg1; | |
3018 | PyObject * _argo0 = 0; | |
3019 | wxRect temp; | |
3020 | PyObject * _obj1 = 0; | |
3021 | char *_kwnames[] = { "self","rect", NULL }; | |
3022 | ||
3023 | self = self; | |
3024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
3025 | return NULL; | |
3026 | if (_argo0) { | |
3027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
3030 | return NULL; | |
3031 | } | |
3032 | } | |
3033 | { | |
3034 | _arg1 = &temp; | |
3035 | if (! wxRect_helper(_obj1, &_arg1)) | |
3036 | return NULL; | |
3037 | } | |
3038 | { | |
4268f798 | 3039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3040 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); |
1b55cabf | 3041 | |
4268f798 | 3042 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3043 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3044 | } _resultobj = Py_BuildValue("i",_result); |
3045 | return _resultobj; | |
3046 | } | |
3047 | ||
8ab979d7 | 3048 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 3049 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3050 | PyObject * _resultobj; |
3051 | bool _result; | |
3052 | wxWindow * _arg0; | |
1d99702e | 3053 | PyObject * _argo0 = 0; |
efc5f224 | 3054 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3055 | |
3056 | self = self; | |
efc5f224 | 3057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 3058 | return NULL; |
1d99702e RD |
3059 | if (_argo0) { |
3060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
3063 | return NULL; | |
3064 | } | |
3065 | } | |
cf694132 | 3066 | { |
4268f798 | 3067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3068 | _result = (bool )wxWindow_IsRetained(_arg0); |
cf694132 | 3069 | |
4268f798 | 3070 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3071 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3072 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3073 | return _resultobj; |
3074 | } | |
3075 | ||
3076 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 3077 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3078 | PyObject * _resultobj; |
3079 | bool _result; | |
3080 | wxWindow * _arg0; | |
1d99702e | 3081 | PyObject * _argo0 = 0; |
efc5f224 | 3082 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3083 | |
3084 | self = self; | |
efc5f224 | 3085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 3086 | return NULL; |
1d99702e RD |
3087 | if (_argo0) { |
3088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
3091 | return NULL; | |
3092 | } | |
3093 | } | |
cf694132 | 3094 | { |
4268f798 | 3095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3096 | _result = (bool )wxWindow_IsShown(_arg0); |
cf694132 | 3097 | |
4268f798 | 3098 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3099 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3100 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3101 | return _resultobj; |
3102 | } | |
3103 | ||
bb0054cd | 3104 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 3105 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3106 | PyObject * _resultobj; |
3107 | bool _result; | |
3108 | wxWindow * _arg0; | |
1d99702e | 3109 | PyObject * _argo0 = 0; |
efc5f224 | 3110 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
3111 | |
3112 | self = self; | |
efc5f224 | 3113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 3114 | return NULL; |
1d99702e RD |
3115 | if (_argo0) { |
3116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
3119 | return NULL; | |
3120 | } | |
3121 | } | |
3122 | { | |
4268f798 | 3123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3124 | _result = (bool )wxWindow_IsTopLevel(_arg0); |
bb0054cd | 3125 | |
4268f798 | 3126 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3127 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3128 | } _resultobj = Py_BuildValue("i",_result); |
3129 | return _resultobj; | |
3130 | } | |
3131 | ||
8ab979d7 | 3132 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 3133 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3134 | PyObject * _resultobj; |
3135 | wxWindow * _arg0; | |
1d99702e | 3136 | PyObject * _argo0 = 0; |
efc5f224 | 3137 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3138 | |
3139 | self = self; | |
efc5f224 | 3140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 3141 | return NULL; |
1d99702e RD |
3142 | if (_argo0) { |
3143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
3146 | return NULL; | |
3147 | } | |
3148 | } | |
cf694132 | 3149 | { |
4268f798 | 3150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3151 | wxWindow_Layout(_arg0); |
cf694132 | 3152 | |
4268f798 | 3153 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3154 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3155 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3156 | _resultobj = Py_None; |
3157 | return _resultobj; | |
3158 | } | |
3159 | ||
3160 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3161 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3162 | PyObject * _resultobj; |
3163 | bool _result; | |
3164 | wxWindow * _arg0; | |
3165 | wxWindow * _arg1; | |
3166 | wxString * _arg2; | |
1d99702e RD |
3167 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
3168 | PyObject * _argo0 = 0; | |
3169 | PyObject * _argo1 = 0; | |
8ab979d7 | 3170 | PyObject * _obj2 = 0; |
1d99702e | 3171 | PyObject * _argo3 = 0; |
efc5f224 | 3172 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
8ab979d7 RD |
3173 | |
3174 | self = self; | |
efc5f224 | 3175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
8ab979d7 | 3176 | return NULL; |
1d99702e RD |
3177 | if (_argo0) { |
3178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3181 | return NULL; | |
3182 | } | |
3183 | } | |
1d99702e RD |
3184 | if (_argo1) { |
3185 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3186 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
3187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3188 | return NULL; | |
3189 | } | |
3190 | } | |
3191 | { | |
c8bc7bb8 RD |
3192 | _arg2 = wxString_in_helper(_obj2); |
3193 | if (_arg2 == NULL) | |
8ab979d7 | 3194 | return NULL; |
8ab979d7 | 3195 | } |
1d99702e RD |
3196 | if (_argo3) { |
3197 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3198 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
8ab979d7 RD |
3199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
3200 | return NULL; | |
3201 | } | |
3202 | } | |
cf694132 | 3203 | { |
4268f798 | 3204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3205 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 3206 | |
4268f798 | 3207 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3208 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3209 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3210 | { |
3211 | if (_obj2) | |
3212 | delete _arg2; | |
3213 | } | |
3214 | return _resultobj; | |
3215 | } | |
3216 | ||
3217 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
efc5f224 | 3218 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3219 | PyObject * _resultobj; |
3220 | wxWindow * _arg0; | |
1d99702e | 3221 | PyObject * _argo0 = 0; |
efc5f224 | 3222 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3223 | |
3224 | self = self; | |
efc5f224 | 3225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3226 | return NULL; |
1d99702e RD |
3227 | if (_argo0) { |
3228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3231 | return NULL; | |
3232 | } | |
3233 | } | |
cf694132 | 3234 | { |
4268f798 | 3235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3236 | wxWindow_Lower(_arg0); |
cf694132 | 3237 | |
4268f798 | 3238 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3239 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3240 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3241 | _resultobj = Py_None; |
3242 | return _resultobj; | |
3243 | } | |
3244 | ||
3245 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3246 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3247 | PyObject * _resultobj; |
3248 | wxWindow * _arg0; | |
900d9886 | 3249 | bool _arg1 = (bool ) TRUE; |
1d99702e | 3250 | PyObject * _argo0 = 0; |
900d9886 | 3251 | int tempbool1 = (int) TRUE; |
efc5f224 | 3252 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3253 | |
3254 | self = self; | |
900d9886 | 3255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3256 | return NULL; |
1d99702e RD |
3257 | if (_argo0) { |
3258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3261 | return NULL; | |
3262 | } | |
3263 | } | |
3264 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3265 | { |
4268f798 | 3266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3267 | wxWindow_MakeModal(_arg0,_arg1); |
cf694132 | 3268 | |
4268f798 | 3269 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3270 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3271 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3272 | _resultobj = Py_None; |
3273 | return _resultobj; | |
3274 | } | |
3275 | ||
23bed520 | 3276 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Move(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3277 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3278 | PyObject * _resultobj; |
3279 | wxWindow * _arg0; | |
3280 | int _arg1; | |
3281 | int _arg2; | |
23bed520 | 3282 | int _arg3 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 3283 | PyObject * _argo0 = 0; |
23bed520 | 3284 | char *_kwnames[] = { "self","x","y","flags", NULL }; |
8ab979d7 RD |
3285 | |
3286 | self = self; | |
23bed520 | 3287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
af309447 | 3288 | return NULL; |
1d99702e RD |
3289 | if (_argo0) { |
3290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3293 | return NULL; | |
3294 | } | |
3295 | } | |
cf694132 | 3296 | { |
4268f798 | 3297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3298 | wxWindow_MoveXY(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3299 | |
4268f798 | 3300 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3301 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3302 | } Py_INCREF(Py_None); |
af309447 RD |
3303 | _resultobj = Py_None; |
3304 | return _resultobj; | |
3305 | } | |
3306 | ||
23bed520 | 3307 | #define wxWindow_Move(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3308 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3309 | PyObject * _resultobj; |
3310 | wxWindow * _arg0; | |
3311 | wxPoint * _arg1; | |
23bed520 | 3312 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 3313 | PyObject * _argo0 = 0; |
2f90df85 RD |
3314 | wxPoint temp; |
3315 | PyObject * _obj1 = 0; | |
23bed520 | 3316 | char *_kwnames[] = { "self","point","flags", NULL }; |
af309447 RD |
3317 | |
3318 | self = self; | |
23bed520 | 3319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_Move",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 3320 | return NULL; |
1d99702e RD |
3321 | if (_argo0) { |
3322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3325 | return NULL; | |
3326 | } | |
3327 | } | |
2f90df85 RD |
3328 | { |
3329 | _arg1 = &temp; | |
3330 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3331 | return NULL; |
2f90df85 | 3332 | } |
cf694132 | 3333 | { |
4268f798 | 3334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3335 | wxWindow_Move(_arg0,*_arg1,_arg2); |
cf694132 | 3336 | |
4268f798 | 3337 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3338 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3339 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3340 | _resultobj = Py_None; |
3341 | return _resultobj; | |
3342 | } | |
3343 | ||
1afc06c2 RD |
3344 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3345 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3346 | PyObject * _resultobj; | |
3347 | wxEvtHandler * _result; | |
3348 | wxWindow * _arg0; | |
3349 | bool _arg1 = (bool ) FALSE; | |
3350 | PyObject * _argo0 = 0; | |
3351 | int tempbool1 = (int) FALSE; | |
3352 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
1afc06c2 RD |
3353 | |
3354 | self = self; | |
3355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3356 | return NULL; | |
3357 | if (_argo0) { | |
3358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3361 | return NULL; | |
3362 | } | |
3363 | } | |
3364 | _arg1 = (bool ) tempbool1; | |
3365 | { | |
4268f798 | 3366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3367 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); |
1afc06c2 | 3368 | |
4268f798 | 3369 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3370 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 3371 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
3372 | return _resultobj; |
3373 | } | |
3374 | ||
3375 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3376 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3377 | PyObject * _resultobj; | |
3378 | wxWindow * _arg0; | |
3379 | wxEvtHandler * _arg1; | |
3380 | PyObject * _argo0 = 0; | |
3381 | PyObject * _argo1 = 0; | |
3382 | char *_kwnames[] = { "self","handler", NULL }; | |
3383 | ||
3384 | self = self; | |
3385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3386 | return NULL; | |
3387 | if (_argo0) { | |
3388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3391 | return NULL; | |
3392 | } | |
3393 | } | |
3394 | if (_argo1) { | |
3395 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3396 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3398 | return NULL; | |
3399 | } | |
3400 | } | |
3401 | { | |
4268f798 | 3402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3403 | wxWindow_PushEventHandler(_arg0,_arg1); |
1afc06c2 | 3404 | |
4268f798 | 3405 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3406 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
3407 | } Py_INCREF(Py_None); |
3408 | _resultobj = Py_None; | |
3409 | return _resultobj; | |
3410 | } | |
3411 | ||
c6c593e8 RD |
3412 | #define wxWindow_RemoveEventHandler(_swigobj,_swigarg0) (_swigobj->RemoveEventHandler(_swigarg0)) |
3413 | static PyObject *_wrap_wxWindow_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3414 | PyObject * _resultobj; | |
3415 | bool _result; | |
3416 | wxWindow * _arg0; | |
3417 | wxEvtHandler * _arg1; | |
3418 | PyObject * _argo0 = 0; | |
3419 | PyObject * _argo1 = 0; | |
3420 | char *_kwnames[] = { "self","handler", NULL }; | |
3421 | ||
3422 | self = self; | |
3423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveEventHandler",_kwnames,&_argo0,&_argo1)) | |
3424 | return NULL; | |
3425 | if (_argo0) { | |
3426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveEventHandler. Expected _wxWindow_p."); | |
3429 | return NULL; | |
3430 | } | |
3431 | } | |
3432 | if (_argo1) { | |
3433 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3434 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveEventHandler. Expected _wxEvtHandler_p."); | |
3436 | return NULL; | |
3437 | } | |
3438 | } | |
3439 | { | |
3440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3441 | _result = (bool )wxWindow_RemoveEventHandler(_arg0,_arg1); |
c6c593e8 RD |
3442 | |
3443 | wxPyEndAllowThreads(__tstate); | |
3444 | if (PyErr_Occurred()) return NULL; | |
3445 | } _resultobj = Py_BuildValue("i",_result); | |
3446 | return _resultobj; | |
3447 | } | |
3448 | ||
8bf5d46e | 3449 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3450 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3451 | PyObject * _resultobj; |
3452 | bool _result; | |
3453 | wxWindow * _arg0; | |
3454 | wxMenu * _arg1; | |
3455 | int _arg2; | |
3456 | int _arg3; | |
1d99702e RD |
3457 | PyObject * _argo0 = 0; |
3458 | PyObject * _argo1 = 0; | |
efc5f224 | 3459 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3460 | |
3461 | self = self; | |
efc5f224 | 3462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3463 | return NULL; |
1d99702e RD |
3464 | if (_argo0) { |
3465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3468 | return NULL; | |
3469 | } | |
3470 | } | |
1d99702e RD |
3471 | if (_argo1) { |
3472 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3473 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3475 | return NULL; | |
3476 | } | |
3477 | } | |
3478 | { | |
4268f798 | 3479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3480 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); |
8bf5d46e | 3481 | |
4268f798 | 3482 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3483 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
3484 | } _resultobj = Py_BuildValue("i",_result); |
3485 | return _resultobj; | |
3486 | } | |
3487 | ||
3488 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3489 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3490 | PyObject * _resultobj; |
3491 | bool _result; | |
3492 | wxWindow * _arg0; | |
3493 | wxMenu * _arg1; | |
3494 | wxPoint * _arg2; | |
1d99702e RD |
3495 | PyObject * _argo0 = 0; |
3496 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3497 | wxPoint temp; |
3498 | PyObject * _obj2 = 0; | |
efc5f224 | 3499 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3500 | |
3501 | self = self; | |
2f90df85 | 3502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3503 | return NULL; |
1d99702e RD |
3504 | if (_argo0) { |
3505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3508 | return NULL; | |
3509 | } | |
3510 | } | |
1d99702e RD |
3511 | if (_argo1) { |
3512 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3513 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3515 | return NULL; | |
3516 | } | |
3517 | } | |
2f90df85 RD |
3518 | { |
3519 | _arg2 = &temp; | |
3520 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3521 | return NULL; |
2f90df85 | 3522 | } |
cf694132 | 3523 | { |
4268f798 | 3524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3525 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 | 3526 | |
4268f798 | 3527 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3528 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3529 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3530 | return _resultobj; |
3531 | } | |
3532 | ||
3533 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3534 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3535 | PyObject * _resultobj; |
3536 | wxWindow * _arg0; | |
1d99702e | 3537 | PyObject * _argo0 = 0; |
efc5f224 | 3538 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3539 | |
3540 | self = self; | |
efc5f224 | 3541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3542 | return NULL; |
1d99702e RD |
3543 | if (_argo0) { |
3544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3547 | return NULL; | |
3548 | } | |
3549 | } | |
cf694132 | 3550 | { |
4268f798 | 3551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3552 | wxWindow_Raise(_arg0); |
cf694132 | 3553 | |
4268f798 | 3554 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3555 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3556 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3557 | _resultobj = Py_None; |
3558 | return _resultobj; | |
3559 | } | |
3560 | ||
3561 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3562 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3563 | PyObject * _resultobj; |
3564 | wxWindow * _arg0; | |
1d99702e RD |
3565 | bool _arg1 = (bool ) TRUE; |
3566 | wxRect * _arg2 = (wxRect *) NULL; | |
3567 | PyObject * _argo0 = 0; | |
3568 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3569 | wxRect temp; |
3570 | PyObject * _obj2 = 0; | |
efc5f224 | 3571 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3572 | |
3573 | self = self; | |
2f90df85 | 3574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3575 | return NULL; |
1d99702e RD |
3576 | if (_argo0) { |
3577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3580 | return NULL; | |
3581 | } | |
3582 | } | |
3583 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3584 | if (_obj2) |
3585 | { | |
3586 | _arg2 = &temp; | |
3587 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3588 | return NULL; |
2f90df85 | 3589 | } |
cf694132 | 3590 | { |
4268f798 | 3591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3592 | wxWindow_Refresh(_arg0,_arg1,_arg2); |
cf694132 | 3593 | |
4268f798 | 3594 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3595 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3596 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3597 | _resultobj = Py_None; |
3598 | return _resultobj; | |
3599 | } | |
3600 | ||
09f3d4e6 RD |
3601 | #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0)) |
3602 | static PyObject *_wrap_wxWindow_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3603 | PyObject * _resultobj; | |
3604 | wxWindow * _arg0; | |
3605 | wxRect * _arg1; | |
3606 | PyObject * _argo0 = 0; | |
3607 | wxRect temp; | |
3608 | PyObject * _obj1 = 0; | |
3609 | char *_kwnames[] = { "self","rect", NULL }; | |
3610 | ||
3611 | self = self; | |
3612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RefreshRect",_kwnames,&_argo0,&_obj1)) | |
3613 | return NULL; | |
3614 | if (_argo0) { | |
3615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p."); | |
3618 | return NULL; | |
3619 | } | |
3620 | } | |
3621 | { | |
3622 | _arg1 = &temp; | |
3623 | if (! wxRect_helper(_obj1, &_arg1)) | |
3624 | return NULL; | |
3625 | } | |
3626 | { | |
4268f798 | 3627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3628 | wxWindow_RefreshRect(_arg0,*_arg1); |
09f3d4e6 | 3629 | |
4268f798 | 3630 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
3631 | if (PyErr_Occurred()) return NULL; |
3632 | } Py_INCREF(Py_None); | |
3633 | _resultobj = Py_None; | |
3634 | return _resultobj; | |
3635 | } | |
3636 | ||
b7e72427 RD |
3637 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3638 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3639 | PyObject * _resultobj; | |
3640 | wxWindow * _arg0; | |
3641 | wxWindow * _arg1; | |
3642 | PyObject * _argo0 = 0; | |
3643 | PyObject * _argo1 = 0; | |
3644 | char *_kwnames[] = { "self","child", NULL }; | |
3645 | ||
3646 | self = self; | |
3647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3648 | return NULL; | |
3649 | if (_argo0) { | |
3650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3653 | return NULL; | |
3654 | } | |
3655 | } | |
3656 | if (_argo1) { | |
3657 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3658 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3660 | return NULL; | |
3661 | } | |
3662 | } | |
3663 | { | |
4268f798 | 3664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3665 | wxWindow_RemoveChild(_arg0,_arg1); |
b7e72427 | 3666 | |
4268f798 | 3667 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3668 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
3669 | } Py_INCREF(Py_None); |
3670 | _resultobj = Py_None; | |
3671 | return _resultobj; | |
3672 | } | |
3673 | ||
bb0054cd | 3674 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3675 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3676 | PyObject * _resultobj; |
3677 | bool _result; | |
3678 | wxWindow * _arg0; | |
3679 | wxWindow * _arg1; | |
1d99702e RD |
3680 | PyObject * _argo0 = 0; |
3681 | PyObject * _argo1 = 0; | |
efc5f224 | 3682 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3683 | |
3684 | self = self; | |
efc5f224 | 3685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3686 | return NULL; |
1d99702e RD |
3687 | if (_argo0) { |
3688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3691 | return NULL; | |
3692 | } | |
3693 | } | |
1d99702e RD |
3694 | if (_argo1) { |
3695 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3696 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3698 | return NULL; | |
3699 | } | |
3700 | } | |
3701 | { | |
4268f798 | 3702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3703 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); |
bb0054cd | 3704 | |
4268f798 | 3705 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3706 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3707 | } _resultobj = Py_BuildValue("i",_result); |
3708 | return _resultobj; | |
3709 | } | |
3710 | ||
af309447 | 3711 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3712 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3713 | PyObject * _resultobj; |
3714 | wxWindow * _arg0; | |
3715 | int * _arg1; | |
3716 | int * _arg2; | |
1d99702e | 3717 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3718 | int temp; |
3719 | PyObject * _obj1 = 0; | |
3720 | int temp0; | |
3721 | PyObject * _obj2 = 0; | |
efc5f224 | 3722 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3723 | |
3724 | self = self; | |
efc5f224 | 3725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3726 | return NULL; |
1d99702e RD |
3727 | if (_argo0) { |
3728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3731 | return NULL; |
3732 | } | |
3733 | } | |
3734 | { | |
3735 | temp = (int) PyInt_AsLong(_obj1); | |
3736 | _arg1 = &temp; | |
3737 | } | |
3738 | { | |
3739 | temp0 = (int) PyInt_AsLong(_obj2); | |
3740 | _arg2 = &temp0; | |
3741 | } | |
cf694132 | 3742 | { |
4268f798 | 3743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3744 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); |
cf694132 | 3745 | |
4268f798 | 3746 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3747 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3748 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3749 | _resultobj = Py_None; |
3750 | { | |
3751 | PyObject *o; | |
3752 | o = PyInt_FromLong((long) (*_arg1)); | |
3753 | _resultobj = t_output_helper(_resultobj, o); | |
3754 | } | |
3755 | { | |
3756 | PyObject *o; | |
3757 | o = PyInt_FromLong((long) (*_arg2)); | |
3758 | _resultobj = t_output_helper(_resultobj, o); | |
3759 | } | |
3760 | return _resultobj; | |
3761 | } | |
3762 | ||
af309447 | 3763 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3764 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3765 | PyObject * _resultobj; |
3766 | wxPoint * _result; | |
3767 | wxWindow * _arg0; | |
3768 | wxPoint * _arg1; | |
1d99702e | 3769 | PyObject * _argo0 = 0; |
2f90df85 RD |
3770 | wxPoint temp; |
3771 | PyObject * _obj1 = 0; | |
efc5f224 | 3772 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3773 | char _ptemp[128]; |
3774 | ||
3775 | self = self; | |
2f90df85 | 3776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3777 | return NULL; |
1d99702e RD |
3778 | if (_argo0) { |
3779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3782 | return NULL; | |
3783 | } | |
3784 | } | |
2f90df85 RD |
3785 | { |
3786 | _arg1 = &temp; | |
3787 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3788 | return NULL; |
2f90df85 | 3789 | } |
cf694132 | 3790 | { |
4268f798 | 3791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3792 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); |
cf694132 | 3793 | |
4268f798 | 3794 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3795 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3796 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
3797 | _resultobj = Py_BuildValue("s",_ptemp); |
3798 | return _resultobj; | |
3799 | } | |
3800 | ||
8ab979d7 | 3801 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3802 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3803 | PyObject * _resultobj; |
3804 | wxWindow * _arg0; | |
3805 | int _arg1; | |
3806 | int _arg2; | |
1d99702e RD |
3807 | wxRect * _arg3 = (wxRect *) NULL; |
3808 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3809 | wxRect temp; |
3810 | PyObject * _obj3 = 0; | |
efc5f224 | 3811 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3812 | |
3813 | self = self; | |
2f90df85 | 3814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3815 | return NULL; |
1d99702e RD |
3816 | if (_argo0) { |
3817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3820 | return NULL; | |
3821 | } | |
3822 | } | |
2f90df85 RD |
3823 | if (_obj3) |
3824 | { | |
3825 | _arg3 = &temp; | |
3826 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3827 | return NULL; |
2f90df85 | 3828 | } |
cf694132 | 3829 | { |
4268f798 | 3830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3831 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3832 | |
4268f798 | 3833 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3834 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3835 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3836 | _resultobj = Py_None; |
3837 | return _resultobj; | |
3838 | } | |
3839 | ||
3840 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) | |
efc5f224 | 3841 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3842 | PyObject * _resultobj; |
3843 | wxWindow * _arg0; | |
3844 | bool _arg1; | |
1d99702e | 3845 | PyObject * _argo0 = 0; |
8ab979d7 | 3846 | int tempbool1; |
efc5f224 | 3847 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3848 | |
3849 | self = self; | |
efc5f224 | 3850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3851 | return NULL; |
1d99702e RD |
3852 | if (_argo0) { |
3853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3856 | return NULL; | |
3857 | } | |
3858 | } | |
3859 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3860 | { |
4268f798 | 3861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3862 | wxWindow_SetAutoLayout(_arg0,_arg1); |
cf694132 | 3863 | |
4268f798 | 3864 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3865 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3866 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3867 | _resultobj = Py_None; |
3868 | return _resultobj; | |
3869 | } | |
3870 | ||
9d8bd15f RD |
3871 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3872 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3873 | PyObject * _resultobj; | |
3874 | bool _result; | |
3875 | wxWindow * _arg0; | |
3876 | PyObject * _argo0 = 0; | |
3877 | char *_kwnames[] = { "self", NULL }; | |
3878 | ||
3879 | self = self; | |
3880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3881 | return NULL; | |
3882 | if (_argo0) { | |
3883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3886 | return NULL; | |
3887 | } | |
3888 | } | |
3889 | { | |
4268f798 | 3890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3891 | _result = (bool )wxWindow_GetAutoLayout(_arg0); |
9d8bd15f | 3892 | |
4268f798 | 3893 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3894 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
3895 | } _resultobj = Py_BuildValue("i",_result); |
3896 | return _resultobj; | |
3897 | } | |
3898 | ||
8ab979d7 | 3899 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3900 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3901 | PyObject * _resultobj; |
3902 | wxWindow * _arg0; | |
3903 | wxColour * _arg1; | |
1d99702e | 3904 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3905 | wxColour temp; |
3906 | PyObject * _obj1 = 0; | |
efc5f224 | 3907 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3908 | |
3909 | self = self; | |
f6bcfd97 | 3910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3911 | return NULL; |
1d99702e RD |
3912 | if (_argo0) { |
3913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3916 | return NULL; | |
3917 | } | |
3918 | } | |
f6bcfd97 BP |
3919 | { |
3920 | _arg1 = &temp; | |
3921 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3922 | return NULL; |
f6bcfd97 | 3923 | } |
cf694132 | 3924 | { |
4268f798 | 3925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3926 | wxWindow_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 3927 | |
4268f798 | 3928 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3929 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3930 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3931 | _resultobj = Py_None; |
3932 | return _resultobj; | |
3933 | } | |
3934 | ||
3935 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 3936 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3937 | PyObject * _resultobj; |
3938 | wxWindow * _arg0; | |
3939 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
3940 | PyObject * _argo0 = 0; |
3941 | PyObject * _argo1 = 0; | |
efc5f224 | 3942 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
3943 | |
3944 | self = self; | |
efc5f224 | 3945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3946 | return NULL; |
1d99702e RD |
3947 | if (_argo0) { |
3948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3951 | return NULL; | |
3952 | } | |
3953 | } | |
1d99702e RD |
3954 | if (_argo1) { |
3955 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3956 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
3957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3958 | return NULL; | |
3959 | } | |
3960 | } | |
cf694132 | 3961 | { |
4268f798 | 3962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3963 | wxWindow_SetConstraints(_arg0,_arg1); |
cf694132 | 3964 | |
4268f798 | 3965 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3966 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3967 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3968 | _resultobj = Py_None; |
3969 | return _resultobj; | |
3970 | } | |
3971 | ||
2f90df85 RD |
3972 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
3973 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3974 | PyObject * _resultobj; | |
3975 | wxWindow * _arg0; | |
3976 | wxLayoutConstraints * _arg1; | |
3977 | PyObject * _argo0 = 0; | |
3978 | PyObject * _argo1 = 0; | |
3979 | char *_kwnames[] = { "self","constraints", NULL }; | |
3980 | ||
3981 | self = self; | |
3982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3983 | return NULL; | |
3984 | if (_argo0) { | |
3985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3988 | return NULL; | |
3989 | } | |
3990 | } | |
3991 | if (_argo1) { | |
3992 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3993 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3995 | return NULL; | |
3996 | } | |
3997 | } | |
3998 | { | |
4268f798 | 3999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4000 | wxWindow_UnsetConstraints(_arg0,_arg1); |
2f90df85 | 4001 | |
4268f798 | 4002 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4003 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4004 | } Py_INCREF(Py_None); |
4005 | _resultobj = Py_None; | |
4006 | return _resultobj; | |
4007 | } | |
4008 | ||
8ab979d7 | 4009 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 4010 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4011 | PyObject * _resultobj; |
4012 | wxWindow * _arg0; | |
1d99702e | 4013 | PyObject * _argo0 = 0; |
efc5f224 | 4014 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4015 | |
4016 | self = self; | |
efc5f224 | 4017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 4018 | return NULL; |
1d99702e RD |
4019 | if (_argo0) { |
4020 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4021 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
4023 | return NULL; | |
4024 | } | |
4025 | } | |
cf694132 | 4026 | { |
4268f798 | 4027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4028 | wxWindow_SetFocus(_arg0); |
cf694132 | 4029 | |
4268f798 | 4030 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4031 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4032 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4033 | _resultobj = Py_None; |
4034 | return _resultobj; | |
4035 | } | |
4036 | ||
2a74d141 RD |
4037 | #define wxWindow_SetFocusFromKbd(_swigobj) (_swigobj->SetFocusFromKbd()) |
4038 | static PyObject *_wrap_wxWindow_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4039 | PyObject * _resultobj; | |
4040 | wxWindow * _arg0; | |
4041 | PyObject * _argo0 = 0; | |
4042 | char *_kwnames[] = { "self", NULL }; | |
4043 | ||
4044 | self = self; | |
4045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocusFromKbd",_kwnames,&_argo0)) | |
4046 | return NULL; | |
4047 | if (_argo0) { | |
4048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocusFromKbd. Expected _wxWindow_p."); | |
4051 | return NULL; | |
4052 | } | |
4053 | } | |
4054 | { | |
4055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4056 | wxWindow_SetFocusFromKbd(_arg0); | |
4057 | ||
4058 | wxPyEndAllowThreads(__tstate); | |
4059 | if (PyErr_Occurred()) return NULL; | |
4060 | } Py_INCREF(Py_None); | |
4061 | _resultobj = Py_None; | |
4062 | return _resultobj; | |
4063 | } | |
4064 | ||
2f90df85 RD |
4065 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
4066 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4067 | PyObject * _resultobj; | |
4068 | bool _result; | |
4069 | wxWindow * _arg0; | |
4070 | PyObject * _argo0 = 0; | |
4071 | char *_kwnames[] = { "self", NULL }; | |
4072 | ||
4073 | self = self; | |
4074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
4075 | return NULL; | |
4076 | if (_argo0) { | |
4077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
4080 | return NULL; | |
4081 | } | |
4082 | } | |
4083 | { | |
4268f798 | 4084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4085 | _result = (bool )wxWindow_AcceptsFocus(_arg0); |
2f90df85 | 4086 | |
4268f798 | 4087 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4088 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4089 | } _resultobj = Py_BuildValue("i",_result); |
4090 | return _resultobj; | |
4091 | } | |
4092 | ||
8ab979d7 | 4093 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 4094 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4095 | PyObject * _resultobj; |
4096 | wxWindow * _arg0; | |
4097 | wxFont * _arg1; | |
1d99702e RD |
4098 | PyObject * _argo0 = 0; |
4099 | PyObject * _argo1 = 0; | |
efc5f224 | 4100 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
4101 | |
4102 | self = self; | |
efc5f224 | 4103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4104 | return NULL; |
1d99702e RD |
4105 | if (_argo0) { |
4106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
4109 | return NULL; | |
4110 | } | |
4111 | } | |
1d99702e RD |
4112 | if (_argo1) { |
4113 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4114 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
4115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
4116 | return NULL; | |
4117 | } | |
4118 | } | |
cf694132 | 4119 | { |
4268f798 | 4120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4121 | wxWindow_SetFont(_arg0,*_arg1); |
cf694132 | 4122 | |
4268f798 | 4123 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4124 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4125 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4126 | _resultobj = Py_None; |
4127 | return _resultobj; | |
4128 | } | |
4129 | ||
4130 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 4131 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4132 | PyObject * _resultobj; |
4133 | wxWindow * _arg0; | |
4134 | wxColour * _arg1; | |
1d99702e | 4135 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4136 | wxColour temp; |
4137 | PyObject * _obj1 = 0; | |
efc5f224 | 4138 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
4139 | |
4140 | self = self; | |
f6bcfd97 | 4141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4142 | return NULL; |
1d99702e RD |
4143 | if (_argo0) { |
4144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
4147 | return NULL; | |
4148 | } | |
4149 | } | |
f6bcfd97 BP |
4150 | { |
4151 | _arg1 = &temp; | |
4152 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4153 | return NULL; |
f6bcfd97 | 4154 | } |
cf694132 | 4155 | { |
4268f798 | 4156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4157 | wxWindow_SetForegroundColour(_arg0,*_arg1); |
cf694132 | 4158 | |
4268f798 | 4159 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4160 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4161 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4162 | _resultobj = Py_None; |
4163 | return _resultobj; | |
4164 | } | |
4165 | ||
4166 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 4167 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4168 | PyObject * _resultobj; |
4169 | wxWindow * _arg0; | |
4170 | int _arg1; | |
1d99702e | 4171 | PyObject * _argo0 = 0; |
efc5f224 | 4172 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
4173 | |
4174 | self = self; | |
efc5f224 | 4175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4176 | return NULL; |
1d99702e RD |
4177 | if (_argo0) { |
4178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
4181 | return NULL; | |
4182 | } | |
4183 | } | |
cf694132 | 4184 | { |
4268f798 | 4185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4186 | wxWindow_SetId(_arg0,_arg1); |
cf694132 | 4187 | |
4268f798 | 4188 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4189 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4190 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4191 | _resultobj = Py_None; |
4192 | return _resultobj; | |
4193 | } | |
4194 | ||
4195 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 4196 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4197 | PyObject * _resultobj; |
4198 | wxWindow * _arg0; | |
4199 | wxString * _arg1; | |
1d99702e | 4200 | PyObject * _argo0 = 0; |
8ab979d7 | 4201 | PyObject * _obj1 = 0; |
efc5f224 | 4202 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
4203 | |
4204 | self = self; | |
efc5f224 | 4205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4206 | return NULL; |
1d99702e RD |
4207 | if (_argo0) { |
4208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
4211 | return NULL; | |
4212 | } | |
4213 | } | |
4214 | { | |
c8bc7bb8 RD |
4215 | _arg1 = wxString_in_helper(_obj1); |
4216 | if (_arg1 == NULL) | |
185d7c3e | 4217 | return NULL; |
8ab979d7 | 4218 | } |
cf694132 | 4219 | { |
4268f798 | 4220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4221 | wxWindow_SetName(_arg0,*_arg1); |
cf694132 | 4222 | |
4268f798 | 4223 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4224 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4225 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4226 | _resultobj = Py_None; |
4227 | { | |
4228 | if (_obj1) | |
4229 | delete _arg1; | |
4230 | } | |
4231 | return _resultobj; | |
4232 | } | |
4233 | ||
8ab979d7 | 4234 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4235 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4236 | PyObject * _resultobj; |
4237 | wxWindow * _arg0; | |
4238 | int _arg1; | |
4239 | int _arg2; | |
4240 | int _arg3; | |
4241 | int _arg4; | |
eb715945 | 4242 | int _arg5 = (int ) TRUE; |
1d99702e | 4243 | PyObject * _argo0 = 0; |
efc5f224 | 4244 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4245 | |
4246 | self = self; | |
eb715945 | 4247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4248 | return NULL; |
1d99702e RD |
4249 | if (_argo0) { |
4250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4253 | return NULL; | |
4254 | } | |
4255 | } | |
cf694132 | 4256 | { |
4268f798 | 4257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4258 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 4259 | |
4268f798 | 4260 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4261 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4262 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4263 | _resultobj = Py_None; |
4264 | return _resultobj; | |
4265 | } | |
4266 | ||
4267 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4268 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4269 | PyObject * _resultobj; |
4270 | wxWindow * _arg0; | |
4271 | int _arg1; | |
4272 | int _arg2; | |
1d99702e RD |
4273 | bool _arg3 = (bool ) TRUE; |
4274 | PyObject * _argo0 = 0; | |
4275 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4276 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4277 | |
4278 | self = self; | |
efc5f224 | 4279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4280 | return NULL; |
1d99702e RD |
4281 | if (_argo0) { |
4282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4285 | return NULL; | |
4286 | } | |
4287 | } | |
4288 | _arg3 = (bool ) tempbool3; | |
cf694132 | 4289 | { |
4268f798 | 4290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4291 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 4292 | |
4268f798 | 4293 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4294 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4295 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4296 | _resultobj = Py_None; |
4297 | return _resultobj; | |
4298 | } | |
4299 | ||
4300 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4301 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4302 | PyObject * _resultobj; |
4303 | wxWindow * _arg0; | |
4304 | int _arg1; | |
4305 | int _arg2; | |
4306 | int _arg3; | |
4307 | int _arg4; | |
1d99702e RD |
4308 | int _arg5 = (int ) wxSIZE_AUTO; |
4309 | PyObject * _argo0 = 0; | |
efc5f224 | 4310 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4311 | |
4312 | self = self; | |
efc5f224 | 4313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4314 | return NULL; |
1d99702e RD |
4315 | if (_argo0) { |
4316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4319 | return NULL; | |
4320 | } | |
4321 | } | |
cf694132 | 4322 | { |
4268f798 | 4323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4324 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 4325 | |
4268f798 | 4326 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4327 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4328 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4329 | _resultobj = Py_None; |
4330 | return _resultobj; | |
4331 | } | |
4332 | ||
4333 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4334 | self->SetSize(size); |
8ab979d7 | 4335 | } |
efc5f224 | 4336 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4337 | PyObject * _resultobj; |
4338 | wxWindow * _arg0; | |
4339 | wxSize * _arg1; | |
1d99702e | 4340 | PyObject * _argo0 = 0; |
2f90df85 RD |
4341 | wxSize temp; |
4342 | PyObject * _obj1 = 0; | |
efc5f224 | 4343 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4344 | |
4345 | self = self; | |
2f90df85 | 4346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4347 | return NULL; |
1d99702e RD |
4348 | if (_argo0) { |
4349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4352 | return NULL; | |
4353 | } | |
4354 | } | |
2f90df85 RD |
4355 | { |
4356 | _arg1 = &temp; | |
4357 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4358 | return NULL; |
2f90df85 | 4359 | } |
cf694132 | 4360 | { |
4268f798 | 4361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4362 | wxWindow_SetSize(_arg0,*_arg1); |
cf694132 | 4363 | |
4268f798 | 4364 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4365 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4366 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4367 | _resultobj = Py_None; |
4368 | return _resultobj; | |
4369 | } | |
4370 | ||
23bed520 RD |
4371 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos,int flags) { |
4372 | self->Move(pos, flags); | |
8ab979d7 | 4373 | } |
efc5f224 | 4374 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4375 | PyObject * _resultobj; |
4376 | wxWindow * _arg0; | |
4377 | wxPoint * _arg1; | |
23bed520 | 4378 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 4379 | PyObject * _argo0 = 0; |
2f90df85 RD |
4380 | wxPoint temp; |
4381 | PyObject * _obj1 = 0; | |
23bed520 | 4382 | char *_kwnames[] = { "self","pos","flags", NULL }; |
8ab979d7 RD |
4383 | |
4384 | self = self; | |
23bed520 | 4385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 4386 | return NULL; |
1d99702e RD |
4387 | if (_argo0) { |
4388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4391 | return NULL; | |
4392 | } | |
4393 | } | |
2f90df85 RD |
4394 | { |
4395 | _arg1 = &temp; | |
4396 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4397 | return NULL; |
2f90df85 | 4398 | } |
cf694132 | 4399 | { |
4268f798 | 4400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4401 | wxWindow_SetPosition(_arg0,*_arg1,_arg2); |
cf694132 | 4402 | |
4268f798 | 4403 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4404 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4405 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4406 | _resultobj = Py_None; |
4407 | return _resultobj; | |
4408 | } | |
4409 | ||
dbbb98cd RD |
4410 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4411 | self->SetSize(rect, sizeFlags); | |
4412 | } | |
4413 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4414 | PyObject * _resultobj; | |
4415 | wxWindow * _arg0; | |
4416 | wxRect * _arg1; | |
4417 | int _arg2 = (int ) wxSIZE_AUTO; | |
4418 | PyObject * _argo0 = 0; | |
4419 | wxRect temp; | |
4420 | PyObject * _obj1 = 0; | |
4421 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4422 | ||
4423 | self = self; | |
4424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4425 | return NULL; | |
4426 | if (_argo0) { | |
4427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4430 | return NULL; | |
4431 | } | |
4432 | } | |
4433 | { | |
4434 | _arg1 = &temp; | |
4435 | if (! wxRect_helper(_obj1, &_arg1)) | |
4436 | return NULL; | |
4437 | } | |
4438 | { | |
4268f798 | 4439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4440 | wxWindow_SetRect(_arg0,*_arg1,_arg2); |
dbbb98cd | 4441 | |
4268f798 | 4442 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4443 | if (PyErr_Occurred()) return NULL; |
dbbb98cd RD |
4444 | } Py_INCREF(Py_None); |
4445 | _resultobj = Py_None; | |
4446 | return _resultobj; | |
4447 | } | |
4448 | ||
8ab979d7 | 4449 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4450 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4451 | PyObject * _resultobj; |
4452 | wxWindow * _arg0; | |
2a74d141 RD |
4453 | int _arg1; |
4454 | int _arg2; | |
1d99702e RD |
4455 | int _arg3 = (int ) -1; |
4456 | int _arg4 = (int ) -1; | |
4457 | int _arg5 = (int ) -1; | |
4458 | int _arg6 = (int ) -1; | |
4459 | PyObject * _argo0 = 0; | |
efc5f224 | 4460 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4461 | |
4462 | self = self; | |
2a74d141 | 4463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|iiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4464 | return NULL; |
1d99702e RD |
4465 | if (_argo0) { |
4466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4469 | return NULL; | |
4470 | } | |
4471 | } | |
cf694132 | 4472 | { |
4268f798 | 4473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4474 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 4475 | |
4268f798 | 4476 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4477 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4478 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4479 | _resultobj = Py_None; |
4480 | return _resultobj; | |
4481 | } | |
4482 | ||
2a74d141 RD |
4483 | #define wxWindow_SetVirtualSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetVirtualSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4484 | static PyObject *_wrap_wxWindow_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4485 | PyObject * _resultobj; | |
4486 | wxWindow * _arg0; | |
4487 | int _arg1; | |
4488 | int _arg2; | |
4489 | int _arg3 = (int ) -1; | |
4490 | int _arg4 = (int ) -1; | |
4491 | PyObject * _argo0 = 0; | |
4492 | char *_kwnames[] = { "self","minW","minH","maxW","maxH", NULL }; | |
4493 | ||
4494 | self = self; | |
4495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_SetVirtualSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
4496 | return NULL; | |
4497 | if (_argo0) { | |
4498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSizeHints. Expected _wxWindow_p."); | |
4501 | return NULL; | |
4502 | } | |
4503 | } | |
4504 | { | |
4505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4506 | wxWindow_SetVirtualSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4); | |
4507 | ||
4508 | wxPyEndAllowThreads(__tstate); | |
4509 | if (PyErr_Occurred()) return NULL; | |
4510 | } Py_INCREF(Py_None); | |
4511 | _resultobj = Py_None; | |
4512 | return _resultobj; | |
4513 | } | |
4514 | ||
4515 | #define wxWindow_SetVirtualSize(_swigobj,_swigarg0) (_swigobj->SetVirtualSize(_swigarg0)) | |
4516 | static PyObject *_wrap_wxWindow_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4517 | PyObject * _resultobj; | |
4518 | wxWindow * _arg0; | |
4519 | wxSize * _arg1; | |
4520 | PyObject * _argo0 = 0; | |
4521 | wxSize temp; | |
4522 | PyObject * _obj1 = 0; | |
4523 | char *_kwnames[] = { "self","size", NULL }; | |
4524 | ||
4525 | self = self; | |
4526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetVirtualSize",_kwnames,&_argo0,&_obj1)) | |
4527 | return NULL; | |
4528 | if (_argo0) { | |
4529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSize. Expected _wxWindow_p."); | |
4532 | return NULL; | |
4533 | } | |
4534 | } | |
4535 | { | |
4536 | _arg1 = &temp; | |
4537 | if (! wxSize_helper(_obj1, &_arg1)) | |
4538 | return NULL; | |
4539 | } | |
4540 | { | |
4541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4542 | wxWindow_SetVirtualSize(_arg0,*_arg1); | |
4543 | ||
4544 | wxPyEndAllowThreads(__tstate); | |
4545 | if (PyErr_Occurred()) return NULL; | |
4546 | } Py_INCREF(Py_None); | |
4547 | _resultobj = Py_None; | |
4548 | return _resultobj; | |
4549 | } | |
4550 | ||
4551 | #define wxWindow_SetVirtualSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetVirtualSize(_swigarg0,_swigarg1)) | |
4552 | static PyObject *_wrap_wxWindow_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4553 | PyObject * _resultobj; | |
4554 | wxWindow * _arg0; | |
4555 | int _arg1; | |
4556 | int _arg2; | |
4557 | PyObject * _argo0 = 0; | |
4558 | char *_kwnames[] = { "self","x","y", NULL }; | |
4559 | ||
4560 | self = self; | |
4561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetVirtualSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4562 | return NULL; | |
4563 | if (_argo0) { | |
4564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSizeWH. Expected _wxWindow_p."); | |
4567 | return NULL; | |
4568 | } | |
4569 | } | |
4570 | { | |
4571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4572 | wxWindow_SetVirtualSizeWH(_arg0,_arg1,_arg2); | |
4573 | ||
4574 | wxPyEndAllowThreads(__tstate); | |
4575 | if (PyErr_Occurred()) return NULL; | |
4576 | } Py_INCREF(Py_None); | |
4577 | _resultobj = Py_None; | |
4578 | return _resultobj; | |
4579 | } | |
4580 | ||
4581 | #define wxWindow_GetVirtualSize(_swigobj) (_swigobj->GetVirtualSize()) | |
4582 | static PyObject *_wrap_wxWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4583 | PyObject * _resultobj; | |
4584 | wxSize * _result; | |
4585 | wxWindow * _arg0; | |
4586 | PyObject * _argo0 = 0; | |
4587 | char *_kwnames[] = { "self", NULL }; | |
4588 | char _ptemp[128]; | |
4589 | ||
4590 | self = self; | |
4591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetVirtualSize",_kwnames,&_argo0)) | |
4592 | return NULL; | |
4593 | if (_argo0) { | |
4594 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4595 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetVirtualSize. Expected _wxWindow_p."); | |
4597 | return NULL; | |
4598 | } | |
4599 | } | |
4600 | { | |
4601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4602 | _result = new wxSize (wxWindow_GetVirtualSize(_arg0)); | |
4603 | ||
4604 | wxPyEndAllowThreads(__tstate); | |
4605 | if (PyErr_Occurred()) return NULL; | |
4606 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4607 | _resultobj = Py_BuildValue("s",_ptemp); | |
4608 | return _resultobj; | |
4609 | } | |
4610 | ||
4611 | #define wxWindow_GetVirtualSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) | |
4612 | static PyObject *_wrap_wxWindow_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4613 | PyObject * _resultobj; | |
4614 | wxWindow * _arg0; | |
4615 | int * _arg1; | |
4616 | int temp; | |
4617 | int * _arg2; | |
4618 | int temp0; | |
4619 | PyObject * _argo0 = 0; | |
4620 | char *_kwnames[] = { "self", NULL }; | |
4621 | ||
4622 | self = self; | |
4623 | { | |
4624 | _arg1 = &temp; | |
4625 | } | |
4626 | { | |
4627 | _arg2 = &temp0; | |
4628 | } | |
4629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetVirtualSizeTuple",_kwnames,&_argo0)) | |
4630 | return NULL; | |
4631 | if (_argo0) { | |
4632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetVirtualSizeTuple. Expected _wxWindow_p."); | |
4635 | return NULL; | |
4636 | } | |
4637 | } | |
4638 | { | |
4639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4640 | wxWindow_GetVirtualSizeTuple(_arg0,_arg1,_arg2); | |
4641 | ||
4642 | wxPyEndAllowThreads(__tstate); | |
4643 | if (PyErr_Occurred()) return NULL; | |
4644 | } Py_INCREF(Py_None); | |
4645 | _resultobj = Py_None; | |
4646 | { | |
4647 | PyObject *o; | |
4648 | o = PyInt_FromLong((long) (*_arg1)); | |
4649 | _resultobj = t_output_helper(_resultobj, o); | |
4650 | } | |
4651 | { | |
4652 | PyObject *o; | |
4653 | o = PyInt_FromLong((long) (*_arg2)); | |
4654 | _resultobj = t_output_helper(_resultobj, o); | |
4655 | } | |
4656 | return _resultobj; | |
4657 | } | |
4658 | ||
af309447 | 4659 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4660 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4661 | PyObject * _resultobj; |
4662 | wxWindow * _arg0; | |
4663 | int _arg1; | |
4664 | int _arg2; | |
1d99702e | 4665 | PyObject * _argo0 = 0; |
efc5f224 | 4666 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4667 | |
4668 | self = self; | |
efc5f224 | 4669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4670 | return NULL; |
1d99702e RD |
4671 | if (_argo0) { |
4672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4675 | return NULL; | |
4676 | } | |
4677 | } | |
cf694132 | 4678 | { |
4268f798 | 4679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4680 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); |
cf694132 | 4681 | |
4268f798 | 4682 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4683 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4684 | } Py_INCREF(Py_None); |
af309447 RD |
4685 | _resultobj = Py_None; |
4686 | return _resultobj; | |
4687 | } | |
4688 | ||
4689 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4690 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4691 | PyObject * _resultobj; |
4692 | wxWindow * _arg0; | |
4693 | wxSize * _arg1; | |
1d99702e | 4694 | PyObject * _argo0 = 0; |
2f90df85 RD |
4695 | wxSize temp; |
4696 | PyObject * _obj1 = 0; | |
efc5f224 | 4697 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4698 | |
4699 | self = self; | |
2f90df85 | 4700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4701 | return NULL; |
1d99702e RD |
4702 | if (_argo0) { |
4703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4706 | return NULL; | |
4707 | } | |
4708 | } | |
2f90df85 RD |
4709 | { |
4710 | _arg1 = &temp; | |
4711 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4712 | return NULL; |
2f90df85 | 4713 | } |
cf694132 | 4714 | { |
4268f798 | 4715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4716 | wxWindow_SetClientSize(_arg0,*_arg1); |
cf694132 | 4717 | |
4268f798 | 4718 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4719 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4720 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4721 | _resultobj = Py_None; |
4722 | return _resultobj; | |
4723 | } | |
4724 | ||
4725 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4726 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4727 | PyObject * _resultobj; |
4728 | wxWindow * _arg0; | |
4729 | wxCursor * _arg1; | |
1d99702e RD |
4730 | PyObject * _argo0 = 0; |
4731 | PyObject * _argo1 = 0; | |
efc5f224 | 4732 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4733 | |
4734 | self = self; | |
efc5f224 | 4735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4736 | return NULL; |
1d99702e RD |
4737 | if (_argo0) { |
4738 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4739 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4741 | return NULL; | |
4742 | } | |
4743 | } | |
1d99702e RD |
4744 | if (_argo1) { |
4745 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4746 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4748 | return NULL; | |
4749 | } | |
4750 | } | |
cf694132 | 4751 | { |
4268f798 | 4752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4753 | wxWindow_SetCursor(_arg0,*_arg1); |
cf694132 | 4754 | |
4268f798 | 4755 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4756 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4757 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4758 | _resultobj = Py_None; |
4759 | return _resultobj; | |
4760 | } | |
4761 | ||
1afc06c2 RD |
4762 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4763 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4764 | PyObject * _resultobj; | |
4765 | wxWindow * _arg0; | |
4766 | wxEvtHandler * _arg1; | |
4767 | PyObject * _argo0 = 0; | |
4768 | PyObject * _argo1 = 0; | |
4769 | char *_kwnames[] = { "self","handler", NULL }; | |
4770 | ||
4771 | self = self; | |
4772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4773 | return NULL; | |
4774 | if (_argo0) { | |
4775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4778 | return NULL; | |
4779 | } | |
4780 | } | |
4781 | if (_argo1) { | |
4782 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4783 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4785 | return NULL; | |
4786 | } | |
4787 | } | |
4788 | { | |
4268f798 | 4789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4790 | wxWindow_SetEventHandler(_arg0,_arg1); |
1afc06c2 | 4791 | |
4268f798 | 4792 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4793 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
4794 | } Py_INCREF(Py_None); |
4795 | _resultobj = Py_None; | |
4796 | return _resultobj; | |
4797 | } | |
4798 | ||
83b18bab RD |
4799 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
4800 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4801 | PyObject * _resultobj; | |
4802 | wxWindow * _arg0; | |
4803 | long _arg1; | |
4804 | PyObject * _argo0 = 0; | |
4805 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4806 | ||
4807 | self = self; | |
4808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4809 | return NULL; | |
4810 | if (_argo0) { | |
4811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4814 | return NULL; | |
4815 | } | |
4816 | } | |
4817 | { | |
4268f798 | 4818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4819 | wxWindow_SetExtraStyle(_arg0,_arg1); |
83b18bab | 4820 | |
4268f798 | 4821 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4822 | if (PyErr_Occurred()) return NULL; |
83b18bab RD |
4823 | } Py_INCREF(Py_None); |
4824 | _resultobj = Py_None; | |
4825 | return _resultobj; | |
4826 | } | |
4827 | ||
8ab979d7 | 4828 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4829 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4830 | PyObject * _resultobj; |
4831 | wxWindow * _arg0; | |
4832 | wxString * _arg1; | |
1d99702e | 4833 | PyObject * _argo0 = 0; |
8ab979d7 | 4834 | PyObject * _obj1 = 0; |
efc5f224 | 4835 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4836 | |
4837 | self = self; | |
efc5f224 | 4838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4839 | return NULL; |
1d99702e RD |
4840 | if (_argo0) { |
4841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4844 | return NULL; | |
4845 | } | |
4846 | } | |
4847 | { | |
c8bc7bb8 RD |
4848 | _arg1 = wxString_in_helper(_obj1); |
4849 | if (_arg1 == NULL) | |
185d7c3e | 4850 | return NULL; |
8ab979d7 | 4851 | } |
cf694132 | 4852 | { |
4268f798 | 4853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4854 | wxWindow_SetTitle(_arg0,*_arg1); |
cf694132 | 4855 | |
4268f798 | 4856 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4857 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4858 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4859 | _resultobj = Py_None; |
4860 | { | |
4861 | if (_obj1) | |
4862 | delete _arg1; | |
4863 | } | |
4864 | return _resultobj; | |
4865 | } | |
4866 | ||
4867 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4868 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4869 | PyObject * _resultobj; |
4870 | bool _result; | |
4871 | wxWindow * _arg0; | |
7b7ac0ab | 4872 | bool _arg1 = (bool ) TRUE; |
1d99702e | 4873 | PyObject * _argo0 = 0; |
7b7ac0ab | 4874 | int tempbool1 = (int) TRUE; |
efc5f224 | 4875 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4876 | |
4877 | self = self; | |
7b7ac0ab | 4878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4879 | return NULL; |
1d99702e RD |
4880 | if (_argo0) { |
4881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
4884 | return NULL; | |
4885 | } | |
4886 | } | |
4887 | _arg1 = (bool ) tempbool1; | |
cf694132 | 4888 | { |
4268f798 | 4889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4890 | _result = (bool )wxWindow_Show(_arg0,_arg1); |
cf694132 | 4891 | |
4268f798 | 4892 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4893 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4894 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4895 | return _resultobj; |
4896 | } | |
4897 | ||
4898 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4899 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4900 | PyObject * _resultobj; |
4901 | bool _result; | |
4902 | wxWindow * _arg0; | |
1d99702e | 4903 | PyObject * _argo0 = 0; |
efc5f224 | 4904 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4905 | |
4906 | self = self; | |
efc5f224 | 4907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4908 | return NULL; |
1d99702e RD |
4909 | if (_argo0) { |
4910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4913 | return NULL; | |
4914 | } | |
4915 | } | |
cf694132 | 4916 | { |
4268f798 | 4917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4918 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); |
cf694132 | 4919 | |
4268f798 | 4920 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4921 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4922 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4923 | return _resultobj; |
4924 | } | |
4925 | ||
4926 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4927 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4928 | PyObject * _resultobj; |
4929 | bool _result; | |
4930 | wxWindow * _arg0; | |
1d99702e | 4931 | PyObject * _argo0 = 0; |
efc5f224 | 4932 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4933 | |
4934 | self = self; | |
efc5f224 | 4935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4936 | return NULL; |
1d99702e RD |
4937 | if (_argo0) { |
4938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4941 | return NULL; | |
4942 | } | |
4943 | } | |
cf694132 | 4944 | { |
4268f798 | 4945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4946 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); |
cf694132 | 4947 | |
4268f798 | 4948 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4949 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4950 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4951 | return _resultobj; |
4952 | } | |
4953 | ||
23bed520 RD |
4954 | #define wxWindow_UpdateWindowUI(_swigobj) (_swigobj->UpdateWindowUI()) |
4955 | static PyObject *_wrap_wxWindow_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4956 | PyObject * _resultobj; | |
4957 | wxWindow * _arg0; | |
4958 | PyObject * _argo0 = 0; | |
4959 | char *_kwnames[] = { "self", NULL }; | |
4960 | ||
4961 | self = self; | |
4962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_UpdateWindowUI",_kwnames,&_argo0)) | |
4963 | return NULL; | |
4964 | if (_argo0) { | |
4965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UpdateWindowUI. Expected _wxWindow_p."); | |
4968 | return NULL; | |
4969 | } | |
4970 | } | |
4971 | { | |
4972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4973 | wxWindow_UpdateWindowUI(_arg0); |
23bed520 RD |
4974 | |
4975 | wxPyEndAllowThreads(__tstate); | |
4976 | if (PyErr_Occurred()) return NULL; | |
4977 | } Py_INCREF(Py_None); | |
4978 | _resultobj = Py_None; | |
4979 | return _resultobj; | |
4980 | } | |
4981 | ||
8ab979d7 | 4982 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) |
efc5f224 | 4983 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4984 | PyObject * _resultobj; |
4985 | bool _result; | |
4986 | wxWindow * _arg0; | |
1d99702e | 4987 | PyObject * _argo0 = 0; |
efc5f224 | 4988 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4989 | |
4990 | self = self; | |
efc5f224 | 4991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 4992 | return NULL; |
1d99702e RD |
4993 | if (_argo0) { |
4994 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4995 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
4997 | return NULL; | |
4998 | } | |
4999 | } | |
cf694132 | 5000 | { |
4268f798 | 5001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5002 | _result = (bool )wxWindow_Validate(_arg0); |
cf694132 | 5003 | |
4268f798 | 5004 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5005 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5006 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5007 | return _resultobj; |
5008 | } | |
5009 | ||
b8b8dda7 | 5010 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 5011 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5012 | PyObject * _resultobj; |
5013 | wxPoint * _result; | |
5014 | wxWindow * _arg0; | |
5015 | wxPoint * _arg1; | |
1d99702e | 5016 | PyObject * _argo0 = 0; |
2f90df85 RD |
5017 | wxPoint temp; |
5018 | PyObject * _obj1 = 0; | |
efc5f224 | 5019 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
5020 | char _ptemp[128]; |
5021 | ||
5022 | self = self; | |
2f90df85 | 5023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5024 | return NULL; |
1d99702e RD |
5025 | if (_argo0) { |
5026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
5029 | return NULL; | |
5030 | } | |
5031 | } | |
2f90df85 RD |
5032 | { |
5033 | _arg1 = &temp; | |
5034 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5035 | return NULL; |
2f90df85 | 5036 | } |
cf694132 | 5037 | { |
4268f798 | 5038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5039 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); |
cf694132 | 5040 | |
4268f798 | 5041 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5042 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5043 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
5044 | _resultobj = Py_BuildValue("s",_ptemp); |
5045 | return _resultobj; | |
5046 | } | |
5047 | ||
5048 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 5049 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5050 | PyObject * _resultobj; |
5051 | wxSize * _result; | |
5052 | wxWindow * _arg0; | |
5053 | wxSize * _arg1; | |
1d99702e | 5054 | PyObject * _argo0 = 0; |
2f90df85 RD |
5055 | wxSize temp; |
5056 | PyObject * _obj1 = 0; | |
efc5f224 | 5057 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
5058 | char _ptemp[128]; |
5059 | ||
5060 | self = self; | |
2f90df85 | 5061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5062 | return NULL; |
1d99702e RD |
5063 | if (_argo0) { |
5064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
5067 | return NULL; | |
5068 | } | |
5069 | } | |
2f90df85 RD |
5070 | { |
5071 | _arg1 = &temp; | |
5072 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5073 | return NULL; |
2f90df85 | 5074 | } |
cf694132 | 5075 | { |
4268f798 | 5076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5077 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); |
cf694132 | 5078 | |
4268f798 | 5079 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5080 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5081 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
5082 | _resultobj = Py_BuildValue("s",_ptemp); |
5083 | return _resultobj; | |
5084 | } | |
5085 | ||
5086 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 5087 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5088 | PyObject * _resultobj; |
5089 | wxPoint * _result; | |
5090 | wxWindow * _arg0; | |
5091 | wxPoint * _arg1; | |
1d99702e | 5092 | PyObject * _argo0 = 0; |
2f90df85 RD |
5093 | wxPoint temp; |
5094 | PyObject * _obj1 = 0; | |
efc5f224 | 5095 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
5096 | char _ptemp[128]; |
5097 | ||
5098 | self = self; | |
2f90df85 | 5099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5100 | return NULL; |
1d99702e RD |
5101 | if (_argo0) { |
5102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
5105 | return NULL; | |
5106 | } | |
5107 | } | |
2f90df85 RD |
5108 | { |
5109 | _arg1 = &temp; | |
5110 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5111 | return NULL; |
2f90df85 | 5112 | } |
cf694132 | 5113 | { |
4268f798 | 5114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5115 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); |
cf694132 | 5116 | |
4268f798 | 5117 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5118 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5119 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
5120 | _resultobj = Py_BuildValue("s",_ptemp); |
5121 | return _resultobj; | |
5122 | } | |
5123 | ||
5124 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 5125 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5126 | PyObject * _resultobj; |
5127 | wxSize * _result; | |
5128 | wxWindow * _arg0; | |
5129 | wxSize * _arg1; | |
1d99702e | 5130 | PyObject * _argo0 = 0; |
2f90df85 RD |
5131 | wxSize temp; |
5132 | PyObject * _obj1 = 0; | |
efc5f224 | 5133 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
5134 | char _ptemp[128]; |
5135 | ||
5136 | self = self; | |
2f90df85 | 5137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5138 | return NULL; |
1d99702e RD |
5139 | if (_argo0) { |
5140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
5143 | return NULL; | |
5144 | } | |
5145 | } | |
2f90df85 RD |
5146 | { |
5147 | _arg1 = &temp; | |
5148 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5149 | return NULL; |
2f90df85 | 5150 | } |
cf694132 | 5151 | { |
4268f798 | 5152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5153 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); |
cf694132 | 5154 | |
4268f798 | 5155 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5156 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5157 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
5158 | _resultobj = Py_BuildValue("s",_ptemp); |
5159 | return _resultobj; | |
5160 | } | |
5161 | ||
af309447 | 5162 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 5163 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5164 | PyObject * _resultobj; |
5165 | wxWindow * _arg0; | |
5166 | wxString * _arg1; | |
1d99702e | 5167 | PyObject * _argo0 = 0; |
af309447 | 5168 | PyObject * _obj1 = 0; |
efc5f224 | 5169 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
5170 | |
5171 | self = self; | |
efc5f224 | 5172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 5173 | return NULL; |
1d99702e RD |
5174 | if (_argo0) { |
5175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
5178 | return NULL; | |
5179 | } | |
5180 | } | |
5181 | { | |
c8bc7bb8 RD |
5182 | _arg1 = wxString_in_helper(_obj1); |
5183 | if (_arg1 == NULL) | |
185d7c3e | 5184 | return NULL; |
af309447 | 5185 | } |
cf694132 | 5186 | { |
4268f798 | 5187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5188 | wxWindow_SetToolTipString(_arg0,*_arg1); |
cf694132 | 5189 | |
4268f798 | 5190 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5191 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5192 | } Py_INCREF(Py_None); |
af309447 RD |
5193 | _resultobj = Py_None; |
5194 | { | |
5195 | if (_obj1) | |
5196 | delete _arg1; | |
5197 | } | |
5198 | return _resultobj; | |
5199 | } | |
5200 | ||
5201 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 5202 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5203 | PyObject * _resultobj; |
5204 | wxWindow * _arg0; | |
5205 | wxToolTip * _arg1; | |
1d99702e RD |
5206 | PyObject * _argo0 = 0; |
5207 | PyObject * _argo1 = 0; | |
efc5f224 | 5208 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
5209 | |
5210 | self = self; | |
efc5f224 | 5211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 5212 | return NULL; |
1d99702e RD |
5213 | if (_argo0) { |
5214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
5217 | return NULL; | |
5218 | } | |
5219 | } | |
1d99702e RD |
5220 | if (_argo1) { |
5221 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5222 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
5223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
5224 | return NULL; | |
5225 | } | |
5226 | } | |
cf694132 | 5227 | { |
4268f798 | 5228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5229 | wxWindow_SetToolTip(_arg0,_arg1); |
cf694132 | 5230 | |
4268f798 | 5231 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5232 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5233 | } Py_INCREF(Py_None); |
af309447 RD |
5234 | _resultobj = Py_None; |
5235 | return _resultobj; | |
5236 | } | |
5237 | ||
5238 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 5239 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5240 | PyObject * _resultobj; |
5241 | wxToolTip * _result; | |
5242 | wxWindow * _arg0; | |
1d99702e | 5243 | PyObject * _argo0 = 0; |
efc5f224 | 5244 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
5245 | |
5246 | self = self; | |
efc5f224 | 5247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 5248 | return NULL; |
1d99702e RD |
5249 | if (_argo0) { |
5250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
5253 | return NULL; | |
5254 | } | |
5255 | } | |
cf694132 | 5256 | { |
4268f798 | 5257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5258 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); |
cf694132 | 5259 | |
4268f798 | 5260 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5261 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5262 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
5263 | return _resultobj; |
5264 | } | |
5265 | ||
a541c325 | 5266 | #define wxWindow_SetSizer(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizer(_swigarg0,_swigarg1)) |
2f90df85 RD |
5267 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { |
5268 | PyObject * _resultobj; | |
5269 | wxWindow * _arg0; | |
5270 | wxSizer * _arg1; | |
a541c325 | 5271 | bool _arg2 = (bool ) TRUE; |
2f90df85 RD |
5272 | PyObject * _argo0 = 0; |
5273 | PyObject * _argo1 = 0; | |
a541c325 RD |
5274 | int tempbool2 = (int) TRUE; |
5275 | char *_kwnames[] = { "self","sizer","deleteOld", NULL }; | |
2f90df85 RD |
5276 | |
5277 | self = self; | |
a541c325 | 5278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1,&tempbool2)) |
2f90df85 RD |
5279 | return NULL; |
5280 | if (_argo0) { | |
5281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
5284 | return NULL; | |
5285 | } | |
5286 | } | |
5287 | if (_argo1) { | |
5288 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5289 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
5291 | return NULL; | |
5292 | } | |
5293 | } | |
a541c325 | 5294 | _arg2 = (bool ) tempbool2; |
2f90df85 | 5295 | { |
4268f798 | 5296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a541c325 | 5297 | wxWindow_SetSizer(_arg0,_arg1,_arg2); |
2f90df85 | 5298 | |
4268f798 | 5299 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5300 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5301 | } Py_INCREF(Py_None); |
5302 | _resultobj = Py_None; | |
5303 | return _resultobj; | |
5304 | } | |
5305 | ||
2a74d141 RD |
5306 | #define wxWindow_SetSizerAndFit(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizerAndFit(_swigarg0,_swigarg1)) |
5307 | static PyObject *_wrap_wxWindow_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5308 | PyObject * _resultobj; | |
5309 | wxWindow * _arg0; | |
5310 | wxSizer * _arg1; | |
5311 | bool _arg2 = (bool ) TRUE; | |
5312 | PyObject * _argo0 = 0; | |
5313 | PyObject * _argo1 = 0; | |
5314 | int tempbool2 = (int) TRUE; | |
5315 | char *_kwnames[] = { "self","sizer","deleteOld", NULL }; | |
5316 | ||
5317 | self = self; | |
5318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizerAndFit",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
5319 | return NULL; | |
5320 | if (_argo0) { | |
5321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizerAndFit. Expected _wxWindow_p."); | |
5324 | return NULL; | |
5325 | } | |
5326 | } | |
5327 | if (_argo1) { | |
5328 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5329 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizerAndFit. Expected _wxSizer_p."); | |
5331 | return NULL; | |
5332 | } | |
5333 | } | |
5334 | _arg2 = (bool ) tempbool2; | |
5335 | { | |
5336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5337 | wxWindow_SetSizerAndFit(_arg0,_arg1,_arg2); | |
5338 | ||
5339 | wxPyEndAllowThreads(__tstate); | |
5340 | if (PyErr_Occurred()) return NULL; | |
5341 | } Py_INCREF(Py_None); | |
5342 | _resultobj = Py_None; | |
5343 | return _resultobj; | |
5344 | } | |
5345 | ||
f6bcfd97 BP |
5346 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
5347 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5348 | PyObject * _resultobj; | |
5349 | wxSizer * _result; | |
5350 | wxWindow * _arg0; | |
5351 | PyObject * _argo0 = 0; | |
5352 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
5353 | |
5354 | self = self; | |
5355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
5356 | return NULL; | |
5357 | if (_argo0) { | |
5358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
5361 | return NULL; | |
5362 | } | |
5363 | } | |
5364 | { | |
4268f798 | 5365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5366 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); |
f6bcfd97 | 5367 | |
4268f798 | 5368 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5369 | if (PyErr_Occurred()) return NULL; |
2f4e9287 | 5370 | }{ _resultobj = wxPyMake_wxSizer(_result); } |
f6bcfd97 BP |
5371 | return _resultobj; |
5372 | } | |
5373 | ||
be90c029 RD |
5374 | #define wxWindow_SetContainingSizer(_swigobj,_swigarg0) (_swigobj->SetContainingSizer(_swigarg0)) |
5375 | static PyObject *_wrap_wxWindow_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5376 | PyObject * _resultobj; | |
5377 | wxWindow * _arg0; | |
5378 | wxSizer * _arg1; | |
5379 | PyObject * _argo0 = 0; | |
5380 | PyObject * _argo1 = 0; | |
5381 | char *_kwnames[] = { "self","sizer", NULL }; | |
5382 | ||
5383 | self = self; | |
5384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetContainingSizer",_kwnames,&_argo0,&_argo1)) | |
5385 | return NULL; | |
5386 | if (_argo0) { | |
5387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetContainingSizer. Expected _wxWindow_p."); | |
5390 | return NULL; | |
5391 | } | |
5392 | } | |
5393 | if (_argo1) { | |
5394 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5395 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetContainingSizer. Expected _wxSizer_p."); | |
5397 | return NULL; | |
5398 | } | |
5399 | } | |
5400 | { | |
5401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5402 | wxWindow_SetContainingSizer(_arg0,_arg1); |
be90c029 RD |
5403 | |
5404 | wxPyEndAllowThreads(__tstate); | |
5405 | if (PyErr_Occurred()) return NULL; | |
5406 | } Py_INCREF(Py_None); | |
5407 | _resultobj = Py_None; | |
5408 | return _resultobj; | |
5409 | } | |
5410 | ||
5411 | #define wxWindow_GetContainingSizer(_swigobj) (_swigobj->GetContainingSizer()) | |
5412 | static PyObject *_wrap_wxWindow_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5413 | PyObject * _resultobj; | |
5414 | wxSizer * _result; | |
5415 | wxWindow * _arg0; | |
5416 | PyObject * _argo0 = 0; | |
5417 | char *_kwnames[] = { "self", NULL }; | |
5418 | ||
5419 | self = self; | |
5420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetContainingSizer",_kwnames,&_argo0)) | |
5421 | return NULL; | |
5422 | if (_argo0) { | |
5423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetContainingSizer. Expected _wxWindow_p."); | |
5426 | return NULL; | |
5427 | } | |
5428 | } | |
5429 | { | |
5430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5431 | _result = (wxSizer *)wxWindow_GetContainingSizer(_arg0); |
be90c029 RD |
5432 | |
5433 | wxPyEndAllowThreads(__tstate); | |
5434 | if (PyErr_Occurred()) return NULL; | |
5435 | }{ _resultobj = wxPyMake_wxSizer(_result); } | |
5436 | return _resultobj; | |
5437 | } | |
5438 | ||
2f90df85 RD |
5439 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
5440 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5441 | PyObject * _resultobj; | |
5442 | wxValidator * _result; | |
5443 | wxWindow * _arg0; | |
5444 | PyObject * _argo0 = 0; | |
5445 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
5446 | |
5447 | self = self; | |
5448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
5449 | return NULL; | |
5450 | if (_argo0) { | |
5451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
5454 | return NULL; | |
5455 | } | |
5456 | } | |
5457 | { | |
4268f798 | 5458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5459 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); |
2f90df85 | 5460 | |
4268f798 | 5461 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5462 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5463 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
5464 | return _resultobj; |
5465 | } | |
5466 | ||
5467 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5468 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5469 | PyObject * _resultobj; | |
5470 | wxWindow * _arg0; | |
5471 | wxValidator * _arg1; | |
5472 | PyObject * _argo0 = 0; | |
5473 | PyObject * _argo1 = 0; | |
5474 | char *_kwnames[] = { "self","validator", NULL }; | |
5475 | ||
5476 | self = self; | |
5477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
5478 | return NULL; | |
5479 | if (_argo0) { | |
5480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5483 | return NULL; | |
5484 | } | |
5485 | } | |
5486 | if (_argo1) { | |
5487 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5488 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
5489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5490 | return NULL; | |
5491 | } | |
5492 | } | |
5493 | { | |
4268f798 | 5494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5495 | wxWindow_SetValidator(_arg0,*_arg1); |
2f90df85 | 5496 | |
4268f798 | 5497 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5498 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5499 | } Py_INCREF(Py_None); |
5500 | _resultobj = Py_None; | |
5501 | return _resultobj; | |
5502 | } | |
5503 | ||
b1462dfa RD |
5504 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5505 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5506 | PyObject * _resultobj; | |
5507 | wxWindow * _arg0; | |
5508 | wxDropTarget * _arg1; | |
5509 | PyObject * _argo0 = 0; | |
5510 | PyObject * _argo1 = 0; | |
5511 | char *_kwnames[] = { "self","target", NULL }; | |
5512 | ||
5513 | self = self; | |
5514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5515 | return NULL; | |
5516 | if (_argo0) { | |
5517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5520 | return NULL; | |
5521 | } | |
5522 | } | |
5523 | if (_argo1) { | |
5524 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5525 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5527 | return NULL; | |
5528 | } | |
5529 | } | |
5530 | { | |
4268f798 | 5531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5532 | wxWindow_SetDropTarget(_arg0,_arg1); |
b1462dfa | 5533 | |
4268f798 | 5534 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5535 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5536 | } Py_INCREF(Py_None); |
5537 | _resultobj = Py_None; | |
5538 | return _resultobj; | |
5539 | } | |
5540 | ||
5541 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5542 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5543 | PyObject * _resultobj; | |
5544 | wxDropTarget * _result; | |
5545 | wxWindow * _arg0; | |
5546 | PyObject * _argo0 = 0; | |
5547 | char *_kwnames[] = { "self", NULL }; | |
5548 | char _ptemp[128]; | |
5549 | ||
5550 | self = self; | |
5551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5552 | return NULL; | |
5553 | if (_argo0) { | |
5554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5557 | return NULL; | |
5558 | } | |
5559 | } | |
5560 | { | |
4268f798 | 5561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5562 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); |
b1462dfa | 5563 | |
4268f798 | 5564 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5565 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5566 | } if (_result) { |
5567 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5568 | _resultobj = Py_BuildValue("s",_ptemp); | |
5569 | } else { | |
5570 | Py_INCREF(Py_None); | |
5571 | _resultobj = Py_None; | |
5572 | } | |
5573 | return _resultobj; | |
5574 | } | |
5575 | ||
694759cf RD |
5576 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5577 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5578 | PyObject * _resultobj; | |
5579 | wxSize * _result; | |
5580 | wxWindow * _arg0; | |
5581 | PyObject * _argo0 = 0; | |
5582 | char *_kwnames[] = { "self", NULL }; | |
5583 | char _ptemp[128]; | |
5584 | ||
5585 | self = self; | |
5586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5587 | return NULL; | |
5588 | if (_argo0) { | |
5589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5592 | return NULL; | |
5593 | } | |
5594 | } | |
5595 | { | |
4268f798 | 5596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5597 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); |
694759cf | 5598 | |
4268f798 | 5599 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5600 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5601 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5602 | _resultobj = Py_BuildValue("s",_ptemp); | |
5603 | return _resultobj; | |
5604 | } | |
5605 | ||
a541c325 RD |
5606 | #define wxWindow_GetMaxSize(_swigobj) (_swigobj->GetMaxSize()) |
5607 | static PyObject *_wrap_wxWindow_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5608 | PyObject * _resultobj; | |
5609 | wxSize * _result; | |
5610 | wxWindow * _arg0; | |
5611 | PyObject * _argo0 = 0; | |
5612 | char *_kwnames[] = { "self", NULL }; | |
5613 | char _ptemp[128]; | |
5614 | ||
5615 | self = self; | |
5616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetMaxSize",_kwnames,&_argo0)) | |
5617 | return NULL; | |
5618 | if (_argo0) { | |
5619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetMaxSize. Expected _wxWindow_p."); | |
5622 | return NULL; | |
5623 | } | |
5624 | } | |
5625 | { | |
5626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5627 | _result = new wxSize (wxWindow_GetMaxSize(_arg0)); | |
5628 | ||
5629 | wxPyEndAllowThreads(__tstate); | |
5630 | if (PyErr_Occurred()) return NULL; | |
5631 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5632 | _resultobj = Py_BuildValue("s",_ptemp); | |
5633 | return _resultobj; | |
5634 | } | |
5635 | ||
a1df7a95 RD |
5636 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5637 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5638 | PyObject * _resultobj; | |
5639 | wxWindow * _arg0; | |
5640 | wxCaret * _arg1; | |
5641 | PyObject * _argo0 = 0; | |
5642 | PyObject * _argo1 = 0; | |
5643 | char *_kwnames[] = { "self","caret", NULL }; | |
5644 | ||
5645 | self = self; | |
5646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5647 | return NULL; | |
5648 | if (_argo0) { | |
5649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5652 | return NULL; | |
5653 | } | |
5654 | } | |
5655 | if (_argo1) { | |
5656 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5657 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5659 | return NULL; | |
5660 | } | |
5661 | } | |
5662 | { | |
4268f798 | 5663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5664 | wxWindow_SetCaret(_arg0,_arg1); |
a1df7a95 | 5665 | |
4268f798 | 5666 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5667 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5668 | } Py_INCREF(Py_None); |
5669 | _resultobj = Py_None; | |
5670 | return _resultobj; | |
5671 | } | |
5672 | ||
5673 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5674 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5675 | PyObject * _resultobj; | |
5676 | wxCaret * _result; | |
5677 | wxWindow * _arg0; | |
5678 | PyObject * _argo0 = 0; | |
5679 | char *_kwnames[] = { "self", NULL }; | |
5680 | char _ptemp[128]; | |
5681 | ||
5682 | self = self; | |
5683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5684 | return NULL; | |
5685 | if (_argo0) { | |
5686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5689 | return NULL; | |
5690 | } | |
5691 | } | |
5692 | { | |
4268f798 | 5693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5694 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); |
a1df7a95 | 5695 | |
4268f798 | 5696 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5697 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5698 | } if (_result) { |
5699 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5700 | _resultobj = Py_BuildValue("s",_ptemp); | |
5701 | } else { | |
5702 | Py_INCREF(Py_None); | |
5703 | _resultobj = Py_None; | |
5704 | } | |
5705 | return _resultobj; | |
5706 | } | |
5707 | ||
3a0958b1 RD |
5708 | #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze()) |
5709 | static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5710 | PyObject * _resultobj; | |
5711 | wxWindow * _arg0; | |
5712 | PyObject * _argo0 = 0; | |
5713 | char *_kwnames[] = { "self", NULL }; | |
5714 | ||
5715 | self = self; | |
5716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0)) | |
5717 | return NULL; | |
5718 | if (_argo0) { | |
5719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p."); | |
5722 | return NULL; | |
5723 | } | |
5724 | } | |
5725 | { | |
4268f798 | 5726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5727 | wxWindow_Freeze(_arg0); |
3a0958b1 | 5728 | |
4268f798 | 5729 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
5730 | if (PyErr_Occurred()) return NULL; |
5731 | } Py_INCREF(Py_None); | |
5732 | _resultobj = Py_None; | |
5733 | return _resultobj; | |
5734 | } | |
5735 | ||
5736 | #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw()) | |
5737 | static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5738 | PyObject * _resultobj; | |
5739 | wxWindow * _arg0; | |
5740 | PyObject * _argo0 = 0; | |
5741 | char *_kwnames[] = { "self", NULL }; | |
5742 | ||
5743 | self = self; | |
5744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0)) | |
5745 | return NULL; | |
5746 | if (_argo0) { | |
5747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p."); | |
5750 | return NULL; | |
5751 | } | |
5752 | } | |
5753 | { | |
4268f798 | 5754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5755 | wxWindow_Thaw(_arg0); |
3a0958b1 | 5756 | |
4268f798 | 5757 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
5758 | if (PyErr_Occurred()) return NULL; |
5759 | } Py_INCREF(Py_None); | |
5760 | _resultobj = Py_None; | |
5761 | return _resultobj; | |
5762 | } | |
5763 | ||
09f3d4e6 RD |
5764 | #define wxWindow_Update(_swigobj) (_swigobj->Update()) |
5765 | static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5766 | PyObject * _resultobj; | |
5767 | wxWindow * _arg0; | |
5768 | PyObject * _argo0 = 0; | |
5769 | char *_kwnames[] = { "self", NULL }; | |
5770 | ||
5771 | self = self; | |
5772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0)) | |
5773 | return NULL; | |
5774 | if (_argo0) { | |
5775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p."); | |
5778 | return NULL; | |
5779 | } | |
5780 | } | |
5781 | { | |
4268f798 | 5782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5783 | wxWindow_Update(_arg0); |
09f3d4e6 | 5784 | |
4268f798 | 5785 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5786 | if (PyErr_Occurred()) return NULL; |
5787 | } Py_INCREF(Py_None); | |
5788 | _resultobj = Py_None; | |
5789 | return _resultobj; | |
5790 | } | |
5791 | ||
4f3449b4 RD |
5792 | #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText()) |
5793 | static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5794 | PyObject * _resultobj; | |
5795 | wxString * _result; | |
5796 | wxWindow * _arg0; | |
5797 | PyObject * _argo0 = 0; | |
5798 | char *_kwnames[] = { "self", NULL }; | |
5799 | ||
5800 | self = self; | |
5801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0)) | |
5802 | return NULL; | |
5803 | if (_argo0) { | |
5804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p."); | |
5807 | return NULL; | |
5808 | } | |
5809 | } | |
5810 | { | |
4268f798 | 5811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5812 | _result = new wxString (wxWindow_GetHelpText(_arg0)); |
4f3449b4 | 5813 | |
4268f798 | 5814 | wxPyEndAllowThreads(__tstate); |
4f3449b4 RD |
5815 | if (PyErr_Occurred()) return NULL; |
5816 | }{ | |
c8bc7bb8 RD |
5817 | #if wxUSE_UNICODE |
5818 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5819 | #else | |
4f3449b4 | 5820 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5821 | #endif |
4f3449b4 RD |
5822 | } |
5823 | { | |
5824 | delete _result; | |
5825 | } | |
5826 | return _resultobj; | |
5827 | } | |
5828 | ||
5829 | #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0)) | |
5830 | static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5831 | PyObject * _resultobj; | |
5832 | wxWindow * _arg0; | |
5833 | wxString * _arg1; | |
5834 | PyObject * _argo0 = 0; | |
5835 | PyObject * _obj1 = 0; | |
5836 | char *_kwnames[] = { "self","helpText", NULL }; | |
5837 | ||
5838 | self = self; | |
5839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1)) | |
5840 | return NULL; | |
5841 | if (_argo0) { | |
5842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p."); | |
5845 | return NULL; | |
5846 | } | |
5847 | } | |
5848 | { | |
c8bc7bb8 RD |
5849 | _arg1 = wxString_in_helper(_obj1); |
5850 | if (_arg1 == NULL) | |
4f3449b4 | 5851 | return NULL; |
4f3449b4 RD |
5852 | } |
5853 | { | |
4268f798 | 5854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5855 | wxWindow_SetHelpText(_arg0,*_arg1); |
4f3449b4 | 5856 | |
4268f798 | 5857 | wxPyEndAllowThreads(__tstate); |
4f3449b4 RD |
5858 | if (PyErr_Occurred()) return NULL; |
5859 | } Py_INCREF(Py_None); | |
5860 | _resultobj = Py_None; | |
5861 | { | |
5862 | if (_obj1) | |
5863 | delete _arg1; | |
5864 | } | |
5865 | return _resultobj; | |
5866 | } | |
5867 | ||
23bed520 RD |
5868 | #define wxWindow_SetHelpTextForId(_swigobj,_swigarg0) (_swigobj->SetHelpTextForId(_swigarg0)) |
5869 | static PyObject *_wrap_wxWindow_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5870 | PyObject * _resultobj; | |
5871 | wxWindow * _arg0; | |
5872 | wxString * _arg1; | |
5873 | PyObject * _argo0 = 0; | |
5874 | PyObject * _obj1 = 0; | |
5875 | char *_kwnames[] = { "self","text", NULL }; | |
5876 | ||
5877 | self = self; | |
5878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpTextForId",_kwnames,&_argo0,&_obj1)) | |
5879 | return NULL; | |
5880 | if (_argo0) { | |
5881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpTextForId. Expected _wxWindow_p."); | |
5884 | return NULL; | |
5885 | } | |
5886 | } | |
5887 | { | |
c8bc7bb8 RD |
5888 | _arg1 = wxString_in_helper(_obj1); |
5889 | if (_arg1 == NULL) | |
23bed520 | 5890 | return NULL; |
23bed520 RD |
5891 | } |
5892 | { | |
5893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5894 | wxWindow_SetHelpTextForId(_arg0,*_arg1); |
23bed520 RD |
5895 | |
5896 | wxPyEndAllowThreads(__tstate); | |
5897 | if (PyErr_Occurred()) return NULL; | |
5898 | } Py_INCREF(Py_None); | |
5899 | _resultobj = Py_None; | |
5900 | { | |
5901 | if (_obj1) | |
5902 | delete _arg1; | |
5903 | } | |
5904 | return _resultobj; | |
5905 | } | |
5906 | ||
c7e7022c RD |
5907 | #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0)) |
5908 | static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5909 | PyObject * _resultobj; | |
5910 | bool _result; | |
5911 | wxWindow * _arg0; | |
5912 | int _arg1; | |
5913 | PyObject * _argo0 = 0; | |
5914 | char *_kwnames[] = { "self","lines", NULL }; | |
5915 | ||
5916 | self = self; | |
5917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1)) | |
5918 | return NULL; | |
5919 | if (_argo0) { | |
5920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p."); | |
5923 | return NULL; | |
5924 | } | |
5925 | } | |
5926 | { | |
4268f798 | 5927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5928 | _result = (bool )wxWindow_ScrollLines(_arg0,_arg1); |
c7e7022c | 5929 | |
4268f798 | 5930 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5931 | if (PyErr_Occurred()) return NULL; |
5932 | } _resultobj = Py_BuildValue("i",_result); | |
5933 | return _resultobj; | |
5934 | } | |
5935 | ||
5936 | #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0)) | |
5937 | static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5938 | PyObject * _resultobj; | |
5939 | bool _result; | |
5940 | wxWindow * _arg0; | |
5941 | int _arg1; | |
5942 | PyObject * _argo0 = 0; | |
5943 | char *_kwnames[] = { "self","pages", NULL }; | |
5944 | ||
5945 | self = self; | |
5946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1)) | |
5947 | return NULL; | |
5948 | if (_argo0) { | |
5949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p."); | |
5952 | return NULL; | |
5953 | } | |
5954 | } | |
5955 | { | |
4268f798 | 5956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5957 | _result = (bool )wxWindow_ScrollPages(_arg0,_arg1); |
c7e7022c | 5958 | |
4268f798 | 5959 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5960 | if (PyErr_Occurred()) return NULL; |
5961 | } _resultobj = Py_BuildValue("i",_result); | |
5962 | return _resultobj; | |
5963 | } | |
5964 | ||
5965 | #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp()) | |
5966 | static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5967 | PyObject * _resultobj; | |
5968 | bool _result; | |
5969 | wxWindow * _arg0; | |
5970 | PyObject * _argo0 = 0; | |
5971 | char *_kwnames[] = { "self", NULL }; | |
5972 | ||
5973 | self = self; | |
5974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0)) | |
5975 | return NULL; | |
5976 | if (_argo0) { | |
5977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p."); | |
5980 | return NULL; | |
5981 | } | |
5982 | } | |
5983 | { | |
4268f798 | 5984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5985 | _result = (bool )wxWindow_LineUp(_arg0); |
c7e7022c | 5986 | |
4268f798 | 5987 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5988 | if (PyErr_Occurred()) return NULL; |
5989 | } _resultobj = Py_BuildValue("i",_result); | |
5990 | return _resultobj; | |
5991 | } | |
5992 | ||
5993 | #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown()) | |
5994 | static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5995 | PyObject * _resultobj; | |
5996 | bool _result; | |
5997 | wxWindow * _arg0; | |
5998 | PyObject * _argo0 = 0; | |
5999 | char *_kwnames[] = { "self", NULL }; | |
6000 | ||
6001 | self = self; | |
6002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0)) | |
6003 | return NULL; | |
6004 | if (_argo0) { | |
6005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p."); | |
6008 | return NULL; | |
6009 | } | |
6010 | } | |
6011 | { | |
4268f798 | 6012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6013 | _result = (bool )wxWindow_LineDown(_arg0); |
c7e7022c | 6014 | |
4268f798 | 6015 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
6016 | if (PyErr_Occurred()) return NULL; |
6017 | } _resultobj = Py_BuildValue("i",_result); | |
6018 | return _resultobj; | |
6019 | } | |
6020 | ||
6021 | #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp()) | |
6022 | static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6023 | PyObject * _resultobj; | |
6024 | bool _result; | |
6025 | wxWindow * _arg0; | |
6026 | PyObject * _argo0 = 0; | |
6027 | char *_kwnames[] = { "self", NULL }; | |
6028 | ||
6029 | self = self; | |
6030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0)) | |
6031 | return NULL; | |
6032 | if (_argo0) { | |
6033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p."); | |
6036 | return NULL; | |
6037 | } | |
6038 | } | |
6039 | { | |
4268f798 | 6040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6041 | _result = (bool )wxWindow_PageUp(_arg0); |
c7e7022c | 6042 | |
4268f798 | 6043 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
6044 | if (PyErr_Occurred()) return NULL; |
6045 | } _resultobj = Py_BuildValue("i",_result); | |
6046 | return _resultobj; | |
6047 | } | |
6048 | ||
6049 | #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown()) | |
6050 | static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6051 | PyObject * _resultobj; | |
6052 | bool _result; | |
6053 | wxWindow * _arg0; | |
6054 | PyObject * _argo0 = 0; | |
6055 | char *_kwnames[] = { "self", NULL }; | |
6056 | ||
6057 | self = self; | |
6058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0)) | |
6059 | return NULL; | |
6060 | if (_argo0) { | |
6061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p."); | |
6064 | return NULL; | |
6065 | } | |
6066 | } | |
6067 | { | |
4268f798 | 6068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6069 | _result = (bool )wxWindow_PageDown(_arg0); |
c7e7022c | 6070 | |
4268f798 | 6071 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
6072 | if (PyErr_Occurred()) return NULL; |
6073 | } _resultobj = Py_BuildValue("i",_result); | |
6074 | return _resultobj; | |
6075 | } | |
6076 | ||
09f3d4e6 RD |
6077 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
6078 | PyObject * _resultobj; | |
6079 | wxWindow * _result; | |
6080 | char *_kwnames[] = { NULL }; | |
6081 | ||
6082 | self = self; | |
6083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
6084 | return NULL; | |
6085 | { | |
4268f798 | 6086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6087 | _result = (wxWindow *)wxWindow::FindFocus(); |
09f3d4e6 | 6088 | |
4268f798 | 6089 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6090 | if (PyErr_Occurred()) return NULL; |
6091 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6092 | return _resultobj; | |
6093 | } | |
6094 | ||
6095 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6096 | PyObject * _resultobj; | |
6097 | int _result; | |
6098 | char *_kwnames[] = { NULL }; | |
6099 | ||
6100 | self = self; | |
6101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
6102 | return NULL; | |
6103 | { | |
4268f798 | 6104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6105 | _result = (int )wxWindow::NewControlId(); |
09f3d4e6 | 6106 | |
4268f798 | 6107 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6108 | if (PyErr_Occurred()) return NULL; |
6109 | } _resultobj = Py_BuildValue("i",_result); | |
6110 | return _resultobj; | |
6111 | } | |
6112 | ||
6113 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6114 | PyObject * _resultobj; | |
6115 | int _result; | |
6116 | int _arg0; | |
6117 | char *_kwnames[] = { "id", NULL }; | |
6118 | ||
6119 | self = self; | |
6120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
6121 | return NULL; | |
6122 | { | |
4268f798 | 6123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6124 | _result = (int )wxWindow::NextControlId(_arg0); |
09f3d4e6 | 6125 | |
4268f798 | 6126 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6127 | if (PyErr_Occurred()) return NULL; |
6128 | } _resultobj = Py_BuildValue("i",_result); | |
6129 | return _resultobj; | |
6130 | } | |
6131 | ||
6132 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6133 | PyObject * _resultobj; | |
6134 | int _result; | |
6135 | int _arg0; | |
6136 | char *_kwnames[] = { "id", NULL }; | |
6137 | ||
6138 | self = self; | |
6139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
6140 | return NULL; | |
6141 | { | |
4268f798 | 6142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6143 | _result = (int )wxWindow::PrevControlId(_arg0); |
09f3d4e6 | 6144 | |
4268f798 | 6145 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6146 | if (PyErr_Occurred()) return NULL; |
6147 | } _resultobj = Py_BuildValue("i",_result); | |
6148 | return _resultobj; | |
6149 | } | |
6150 | ||
76bfdc78 RD |
6151 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
6152 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6153 | PyObject * _resultobj; | |
6154 | wxWindow * _arg0; | |
6155 | wxAcceleratorTable * _arg1; | |
6156 | PyObject * _argo0 = 0; | |
6157 | PyObject * _argo1 = 0; | |
6158 | char *_kwnames[] = { "self","accel", NULL }; | |
6159 | ||
6160 | self = self; | |
6161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) | |
6162 | return NULL; | |
6163 | if (_argo0) { | |
6164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); | |
6167 | return NULL; | |
6168 | } | |
6169 | } | |
6170 | if (_argo1) { | |
6171 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6172 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
6173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); | |
6174 | return NULL; | |
6175 | } | |
6176 | } | |
6177 | { | |
4268f798 | 6178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6179 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); |
76bfdc78 | 6180 | |
4268f798 | 6181 | wxPyEndAllowThreads(__tstate); |
76bfdc78 RD |
6182 | if (PyErr_Occurred()) return NULL; |
6183 | } Py_INCREF(Py_None); | |
6184 | _resultobj = Py_None; | |
6185 | return _resultobj; | |
6186 | } | |
6187 | ||
900d9886 RD |
6188 | #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable()) |
6189 | static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6190 | PyObject * _resultobj; | |
6191 | wxAcceleratorTable * _result; | |
6192 | wxWindow * _arg0; | |
6193 | PyObject * _argo0 = 0; | |
6194 | char *_kwnames[] = { "self", NULL }; | |
6195 | char _ptemp[128]; | |
6196 | ||
6197 | self = self; | |
6198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0)) | |
6199 | return NULL; | |
6200 | if (_argo0) { | |
6201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p."); | |
6204 | return NULL; | |
6205 | } | |
6206 | } | |
6207 | { | |
4268f798 | 6208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6209 | _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0); |
900d9886 | 6210 | |
4268f798 | 6211 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
6212 | if (PyErr_Occurred()) return NULL; |
6213 | } if (_result) { | |
6214 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p"); | |
6215 | _resultobj = Py_BuildValue("s",_ptemp); | |
6216 | } else { | |
6217 | Py_INCREF(Py_None); | |
6218 | _resultobj = Py_None; | |
6219 | } | |
6220 | return _resultobj; | |
6221 | } | |
6222 | ||
07c99b26 RD |
6223 | #define wxWindow_OnPaint(_swigobj,_swigarg0) (_swigobj->OnPaint(_swigarg0)) |
6224 | static PyObject *_wrap_wxWindow_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
78e8819c RD |
6225 | PyObject * _resultobj; |
6226 | wxWindow * _arg0; | |
6227 | wxPaintEvent * _arg1; | |
6228 | PyObject * _argo0 = 0; | |
6229 | PyObject * _argo1 = 0; | |
6230 | char *_kwnames[] = { "self","event", NULL }; | |
6231 | ||
6232 | self = self; | |
07c99b26 | 6233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_OnPaint",_kwnames,&_argo0,&_argo1)) |
78e8819c RD |
6234 | return NULL; |
6235 | if (_argo0) { | |
6236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
07c99b26 | 6238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_OnPaint. Expected _wxWindow_p."); |
78e8819c RD |
6239 | return NULL; |
6240 | } | |
6241 | } | |
6242 | if (_argo1) { | |
6243 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6244 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPaintEvent_p")) { | |
07c99b26 | 6245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_OnPaint. Expected _wxPaintEvent_p."); |
78e8819c RD |
6246 | return NULL; |
6247 | } | |
6248 | } | |
6249 | { | |
4268f798 | 6250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6251 | wxWindow_OnPaint(_arg0,*_arg1); |
78e8819c | 6252 | |
4268f798 | 6253 | wxPyEndAllowThreads(__tstate); |
78e8819c RD |
6254 | if (PyErr_Occurred()) return NULL; |
6255 | } Py_INCREF(Py_None); | |
6256 | _resultobj = Py_None; | |
6257 | return _resultobj; | |
6258 | } | |
6259 | ||
5a2930ab RD |
6260 | #define wxWindow_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
6261 | static PyObject *_wrap_wxWindow_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6262 | PyObject * _resultobj; | |
26e335b8 | 6263 | wxWindow * _result; |
5a2930ab RD |
6264 | wxWindow * _arg0; |
6265 | PyObject * _argo0 = 0; | |
6266 | char *_kwnames[] = { "self", NULL }; | |
6267 | ||
6268 | self = self; | |
6269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDefaultItem",_kwnames,&_argo0)) | |
6270 | return NULL; | |
6271 | if (_argo0) { | |
6272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDefaultItem. Expected _wxWindow_p."); | |
6275 | return NULL; | |
6276 | } | |
6277 | } | |
6278 | { | |
6279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26e335b8 | 6280 | _result = (wxWindow *)wxWindow_GetDefaultItem(_arg0); |
5a2930ab RD |
6281 | |
6282 | wxPyEndAllowThreads(__tstate); | |
6283 | if (PyErr_Occurred()) return NULL; | |
6284 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6285 | return _resultobj; | |
6286 | } | |
6287 | ||
6288 | #define wxWindow_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
6289 | static PyObject *_wrap_wxWindow_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6290 | PyObject * _resultobj; | |
26e335b8 | 6291 | wxWindow * _result; |
5a2930ab | 6292 | wxWindow * _arg0; |
26e335b8 | 6293 | wxWindow * _arg1; |
5a2930ab RD |
6294 | PyObject * _argo0 = 0; |
6295 | PyObject * _argo1 = 0; | |
6296 | char *_kwnames[] = { "self","btn", NULL }; | |
6297 | ||
6298 | self = self; | |
6299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDefaultItem",_kwnames,&_argo0,&_argo1)) | |
6300 | return NULL; | |
6301 | if (_argo0) { | |
6302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
6305 | return NULL; | |
6306 | } | |
6307 | } | |
6308 | if (_argo1) { | |
6309 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
26e335b8 RD |
6310 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
6311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
5a2930ab RD |
6312 | return NULL; |
6313 | } | |
6314 | } | |
6315 | { | |
6316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26e335b8 | 6317 | _result = (wxWindow *)wxWindow_SetDefaultItem(_arg0,_arg1); |
5a2930ab RD |
6318 | |
6319 | wxPyEndAllowThreads(__tstate); | |
6320 | if (PyErr_Occurred()) return NULL; | |
26e335b8 | 6321 | }{ _resultobj = wxPyMake_wxObject(_result); } |
5a2930ab RD |
6322 | return _resultobj; |
6323 | } | |
6324 | ||
6d26dc89 RD |
6325 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) |
6326 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6327 | PyObject * _resultobj; | |
6328 | wxWindow * _arg0; | |
6329 | int _arg1; | |
6330 | int _arg2; | |
6331 | PyObject * _argo0 = 0; | |
6332 | char *_kwnames[] = { "self","x","y", NULL }; | |
6333 | ||
6334 | self = self; | |
6335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6336 | return NULL; | |
6337 | if (_argo0) { | |
6338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); | |
6341 | return NULL; | |
6342 | } | |
6343 | } | |
6344 | { | |
6345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6346 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
6347 | ||
6348 | wxPyEndAllowThreads(__tstate); | |
6349 | if (PyErr_Occurred()) return NULL; | |
6350 | } Py_INCREF(Py_None); | |
6351 | _resultobj = Py_None; | |
6352 | return _resultobj; | |
6353 | } | |
6354 | ||
6355 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
6356 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6357 | PyObject * _resultobj; | |
6358 | wxWindow * _arg0; | |
6359 | PyObject * _argo0 = 0; | |
6360 | char *_kwnames[] = { "self", NULL }; | |
6361 | ||
6362 | self = self; | |
6363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) | |
6364 | return NULL; | |
6365 | if (_argo0) { | |
6366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); | |
6369 | return NULL; | |
6370 | } | |
6371 | } | |
6372 | { | |
6373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6374 | wxWindow_CaptureMouse(_arg0); | |
6375 | ||
6376 | wxPyEndAllowThreads(__tstate); | |
6377 | if (PyErr_Occurred()) return NULL; | |
6378 | } Py_INCREF(Py_None); | |
6379 | _resultobj = Py_None; | |
6380 | return _resultobj; | |
6381 | } | |
6382 | ||
6383 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
6384 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6385 | PyObject * _resultobj; | |
6386 | wxWindow * _arg0; | |
6387 | PyObject * _argo0 = 0; | |
6388 | char *_kwnames[] = { "self", NULL }; | |
6389 | ||
6390 | self = self; | |
6391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) | |
6392 | return NULL; | |
6393 | if (_argo0) { | |
6394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); | |
6397 | return NULL; | |
6398 | } | |
6399 | } | |
6400 | { | |
6401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6402 | wxWindow_ReleaseMouse(_arg0); | |
6403 | ||
6404 | wxPyEndAllowThreads(__tstate); | |
6405 | if (PyErr_Occurred()) return NULL; | |
6406 | } Py_INCREF(Py_None); | |
6407 | _resultobj = Py_None; | |
6408 | return _resultobj; | |
6409 | } | |
6410 | ||
6411 | static PyObject *_wrap_wxWindow_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6412 | PyObject * _resultobj; | |
6413 | wxWindow * _result; | |
6414 | char *_kwnames[] = { NULL }; | |
6415 | ||
6416 | self = self; | |
6417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_GetCapture",_kwnames)) | |
6418 | return NULL; | |
6419 | { | |
6420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6421 | _result = (wxWindow *)wxWindow::GetCapture(); | |
6422 | ||
6423 | wxPyEndAllowThreads(__tstate); | |
6424 | if (PyErr_Occurred()) return NULL; | |
6425 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6426 | return _resultobj; | |
6427 | } | |
6428 | ||
6429 | #define wxWindow_HasCapture(_swigobj) (_swigobj->HasCapture()) | |
6430 | static PyObject *_wrap_wxWindow_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6431 | PyObject * _resultobj; | |
6432 | bool _result; | |
6433 | wxWindow * _arg0; | |
6434 | PyObject * _argo0 = 0; | |
6435 | char *_kwnames[] = { "self", NULL }; | |
6436 | ||
6437 | self = self; | |
6438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_HasCapture",_kwnames,&_argo0)) | |
6439 | return NULL; | |
6440 | if (_argo0) { | |
6441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasCapture. Expected _wxWindow_p."); | |
6444 | return NULL; | |
6445 | } | |
6446 | } | |
6447 | { | |
6448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6449 | _result = (bool )wxWindow_HasCapture(_arg0); | |
6450 | ||
6451 | wxPyEndAllowThreads(__tstate); | |
6452 | if (PyErr_Occurred()) return NULL; | |
6453 | } _resultobj = Py_BuildValue("i",_result); | |
6454 | return _resultobj; | |
6455 | } | |
6456 | ||
8ab979d7 RD |
6457 | static void *SwigwxPanelTowxWindow(void *ptr) { |
6458 | wxPanel *src; | |
6459 | wxWindow *dest; | |
6460 | src = (wxPanel *) ptr; | |
6461 | dest = (wxWindow *) src; | |
6462 | return (void *) dest; | |
6463 | } | |
6464 | ||
6465 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
6466 | wxPanel *src; | |
6467 | wxEvtHandler *dest; | |
6468 | src = (wxPanel *) ptr; | |
6469 | dest = (wxEvtHandler *) src; | |
6470 | return (void *) dest; | |
6471 | } | |
6472 | ||
9416aa89 RD |
6473 | static void *SwigwxPanelTowxObject(void *ptr) { |
6474 | wxPanel *src; | |
6475 | wxObject *dest; | |
6476 | src = (wxPanel *) ptr; | |
6477 | dest = (wxObject *) src; | |
6478 | return (void *) dest; | |
6479 | } | |
6480 | ||
8ab979d7 | 6481 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6482 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6483 | PyObject * _resultobj; |
6484 | wxPanel * _result; | |
6485 | wxWindow * _arg0; | |
6486 | wxWindowID _arg1; | |
e508a2b6 RD |
6487 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6488 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 6489 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
137b5242 | 6490 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 6491 | PyObject * _argo0 = 0; |
2f90df85 RD |
6492 | wxPoint temp; |
6493 | PyObject * _obj2 = 0; | |
6494 | wxSize temp0; | |
6495 | PyObject * _obj3 = 0; | |
137b5242 | 6496 | PyObject * _obj5 = 0; |
efc5f224 | 6497 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6498 | char _ptemp[128]; |
6499 | ||
6500 | self = self; | |
137b5242 | 6501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 6502 | return NULL; |
1d99702e RD |
6503 | if (_argo0) { |
6504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
6507 | return NULL; | |
6508 | } | |
6509 | } | |
2f90df85 RD |
6510 | if (_obj2) |
6511 | { | |
6512 | _arg2 = &temp; | |
6513 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6514 | return NULL; |
2f90df85 RD |
6515 | } |
6516 | if (_obj3) | |
6517 | { | |
6518 | _arg3 = &temp0; | |
6519 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6520 | return NULL; |
137b5242 RD |
6521 | } |
6522 | if (_obj5) | |
6523 | { | |
6524 | _arg5 = wxString_in_helper(_obj5); | |
6525 | if (_arg5 == NULL) | |
6526 | return NULL; | |
2f90df85 | 6527 | } |
cf694132 | 6528 | { |
4268f798 | 6529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6530 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 6531 | |
4268f798 | 6532 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6533 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6534 | } if (_result) { |
6535 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6536 | _resultobj = Py_BuildValue("s",_ptemp); | |
6537 | } else { | |
6538 | Py_INCREF(Py_None); | |
6539 | _resultobj = Py_None; | |
6540 | } | |
137b5242 RD |
6541 | { |
6542 | if (_obj5) | |
6543 | delete _arg5; | |
6544 | } | |
8ab979d7 RD |
6545 | return _resultobj; |
6546 | } | |
6547 | ||
09f3d4e6 RD |
6548 | #define new_wxPrePanel() (new wxPanel()) |
6549 | static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6550 | PyObject * _resultobj; | |
6551 | wxPanel * _result; | |
6552 | char *_kwnames[] = { NULL }; | |
6553 | char _ptemp[128]; | |
6554 | ||
6555 | self = self; | |
6556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames)) | |
6557 | return NULL; | |
6558 | { | |
4268f798 | 6559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6560 | _result = (wxPanel *)new_wxPrePanel(); |
09f3d4e6 | 6561 | |
4268f798 | 6562 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6563 | if (PyErr_Occurred()) return NULL; |
6564 | } if (_result) { | |
6565 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6566 | _resultobj = Py_BuildValue("s",_ptemp); | |
6567 | } else { | |
6568 | Py_INCREF(Py_None); | |
6569 | _resultobj = Py_None; | |
6570 | } | |
6571 | return _resultobj; | |
6572 | } | |
6573 | ||
6574 | #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6575 | static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6576 | PyObject * _resultobj; | |
6577 | bool _result; | |
6578 | wxPanel * _arg0; | |
6579 | wxWindow * _arg1; | |
6580 | wxWindowID _arg2; | |
6581 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6582 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6583 | long _arg5 = (long ) wxTAB_TRAVERSAL; | |
137b5242 | 6584 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
09f3d4e6 RD |
6585 | PyObject * _argo0 = 0; |
6586 | PyObject * _argo1 = 0; | |
6587 | wxPoint temp; | |
6588 | PyObject * _obj3 = 0; | |
6589 | wxSize temp0; | |
6590 | PyObject * _obj4 = 0; | |
137b5242 | 6591 | PyObject * _obj6 = 0; |
09f3d4e6 RD |
6592 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
6593 | ||
6594 | self = self; | |
137b5242 | 6595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
09f3d4e6 RD |
6596 | return NULL; |
6597 | if (_argo0) { | |
6598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
6600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p."); | |
6601 | return NULL; | |
6602 | } | |
6603 | } | |
6604 | if (_argo1) { | |
6605 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6606 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p."); | |
6608 | return NULL; | |
6609 | } | |
6610 | } | |
6611 | if (_obj3) | |
6612 | { | |
6613 | _arg3 = &temp; | |
6614 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6615 | return NULL; | |
6616 | } | |
6617 | if (_obj4) | |
6618 | { | |
6619 | _arg4 = &temp0; | |
6620 | if (! wxSize_helper(_obj4, &_arg4)) | |
6621 | return NULL; | |
137b5242 RD |
6622 | } |
6623 | if (_obj6) | |
6624 | { | |
6625 | _arg6 = wxString_in_helper(_obj6); | |
6626 | if (_arg6 == NULL) | |
6627 | return NULL; | |
09f3d4e6 RD |
6628 | } |
6629 | { | |
4268f798 | 6630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6631 | _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
09f3d4e6 | 6632 | |
4268f798 | 6633 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6634 | if (PyErr_Occurred()) return NULL; |
6635 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
6636 | { |
6637 | if (_obj6) | |
6638 | delete _arg6; | |
6639 | } | |
09f3d4e6 RD |
6640 | return _resultobj; |
6641 | } | |
6642 | ||
8ab979d7 | 6643 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 6644 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6645 | PyObject * _resultobj; |
6646 | wxPanel * _arg0; | |
1d99702e | 6647 | PyObject * _argo0 = 0; |
efc5f224 | 6648 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6649 | |
6650 | self = self; | |
efc5f224 | 6651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 6652 | return NULL; |
1d99702e RD |
6653 | if (_argo0) { |
6654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
6656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
6657 | return NULL; | |
6658 | } | |
6659 | } | |
cf694132 | 6660 | { |
4268f798 | 6661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6662 | wxPanel_InitDialog(_arg0); |
cf694132 | 6663 | |
4268f798 | 6664 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6665 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6666 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6667 | _resultobj = Py_None; |
6668 | return _resultobj; | |
6669 | } | |
6670 | ||
bb0054cd RD |
6671 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
6672 | wxScrolledWindow *src; | |
6673 | wxPanel *dest; | |
6674 | src = (wxScrolledWindow *) ptr; | |
6675 | dest = (wxPanel *) src; | |
6676 | return (void *) dest; | |
6677 | } | |
6678 | ||
8ab979d7 RD |
6679 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
6680 | wxScrolledWindow *src; | |
6681 | wxWindow *dest; | |
6682 | src = (wxScrolledWindow *) ptr; | |
6683 | dest = (wxWindow *) src; | |
6684 | return (void *) dest; | |
6685 | } | |
6686 | ||
6687 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
6688 | wxScrolledWindow *src; | |
6689 | wxEvtHandler *dest; | |
6690 | src = (wxScrolledWindow *) ptr; | |
6691 | dest = (wxEvtHandler *) src; | |
6692 | return (void *) dest; | |
6693 | } | |
6694 | ||
9416aa89 RD |
6695 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
6696 | wxScrolledWindow *src; | |
6697 | wxObject *dest; | |
6698 | src = (wxScrolledWindow *) ptr; | |
6699 | dest = (wxObject *) src; | |
6700 | return (void *) dest; | |
6701 | } | |
6702 | ||
8ab979d7 | 6703 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6704 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6705 | PyObject * _resultobj; |
6706 | wxScrolledWindow * _result; | |
6707 | wxWindow * _arg0; | |
1d99702e | 6708 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
6709 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6710 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 6711 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
137b5242 | 6712 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 6713 | PyObject * _argo0 = 0; |
2f90df85 RD |
6714 | wxPoint temp; |
6715 | PyObject * _obj2 = 0; | |
6716 | wxSize temp0; | |
6717 | PyObject * _obj3 = 0; | |
137b5242 | 6718 | PyObject * _obj5 = 0; |
efc5f224 | 6719 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6720 | char _ptemp[128]; |
6721 | ||
6722 | self = self; | |
137b5242 | 6723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 6724 | return NULL; |
1d99702e RD |
6725 | if (_argo0) { |
6726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
6729 | return NULL; | |
6730 | } | |
6731 | } | |
2f90df85 RD |
6732 | if (_obj2) |
6733 | { | |
6734 | _arg2 = &temp; | |
6735 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6736 | return NULL; |
2f90df85 RD |
6737 | } |
6738 | if (_obj3) | |
6739 | { | |
6740 | _arg3 = &temp0; | |
6741 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6742 | return NULL; |
137b5242 RD |
6743 | } |
6744 | if (_obj5) | |
6745 | { | |
6746 | _arg5 = wxString_in_helper(_obj5); | |
6747 | if (_arg5 == NULL) | |
6748 | return NULL; | |
2f90df85 | 6749 | } |
cf694132 | 6750 | { |
4268f798 | 6751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6752 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 6753 | |
4268f798 | 6754 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6755 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6756 | } if (_result) { |
6757 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6758 | _resultobj = Py_BuildValue("s",_ptemp); | |
6759 | } else { | |
6760 | Py_INCREF(Py_None); | |
6761 | _resultobj = Py_None; | |
6762 | } | |
137b5242 RD |
6763 | { |
6764 | if (_obj5) | |
6765 | delete _arg5; | |
6766 | } | |
8ab979d7 RD |
6767 | return _resultobj; |
6768 | } | |
6769 | ||
09f3d4e6 RD |
6770 | #define new_wxPreScrolledWindow() (new wxScrolledWindow()) |
6771 | static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6772 | PyObject * _resultobj; | |
6773 | wxScrolledWindow * _result; | |
6774 | char *_kwnames[] = { NULL }; | |
6775 | char _ptemp[128]; | |
6776 | ||
6777 | self = self; | |
6778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames)) | |
6779 | return NULL; | |
6780 | { | |
4268f798 | 6781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6782 | _result = (wxScrolledWindow *)new_wxPreScrolledWindow(); |
09f3d4e6 | 6783 | |
4268f798 | 6784 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6785 | if (PyErr_Occurred()) return NULL; |
6786 | } if (_result) { | |
6787 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6788 | _resultobj = Py_BuildValue("s",_ptemp); | |
6789 | } else { | |
6790 | Py_INCREF(Py_None); | |
6791 | _resultobj = Py_None; | |
6792 | } | |
6793 | return _resultobj; | |
6794 | } | |
6795 | ||
6796 | #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6797 | static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6798 | PyObject * _resultobj; | |
6799 | bool _result; | |
6800 | wxScrolledWindow * _arg0; | |
6801 | wxWindow * _arg1; | |
6802 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6803 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6804 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6805 | long _arg5 = (long ) wxHSCROLL|wxVSCROLL; | |
137b5242 | 6806 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
09f3d4e6 RD |
6807 | PyObject * _argo0 = 0; |
6808 | PyObject * _argo1 = 0; | |
6809 | wxPoint temp; | |
6810 | PyObject * _obj3 = 0; | |
6811 | wxSize temp0; | |
6812 | PyObject * _obj4 = 0; | |
137b5242 | 6813 | PyObject * _obj6 = 0; |
09f3d4e6 RD |
6814 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
6815 | ||
6816 | self = self; | |
137b5242 | 6817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
09f3d4e6 RD |
6818 | return NULL; |
6819 | if (_argo0) { | |
6820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p."); | |
6823 | return NULL; | |
6824 | } | |
6825 | } | |
6826 | if (_argo1) { | |
6827 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6828 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p."); | |
6830 | return NULL; | |
6831 | } | |
6832 | } | |
6833 | if (_obj3) | |
6834 | { | |
6835 | _arg3 = &temp; | |
6836 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6837 | return NULL; | |
6838 | } | |
6839 | if (_obj4) | |
6840 | { | |
6841 | _arg4 = &temp0; | |
6842 | if (! wxSize_helper(_obj4, &_arg4)) | |
6843 | return NULL; | |
137b5242 RD |
6844 | } |
6845 | if (_obj6) | |
6846 | { | |
6847 | _arg6 = wxString_in_helper(_obj6); | |
6848 | if (_arg6 == NULL) | |
6849 | return NULL; | |
09f3d4e6 RD |
6850 | } |
6851 | { | |
4268f798 | 6852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6853 | _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
09f3d4e6 | 6854 | |
4268f798 | 6855 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6856 | if (PyErr_Occurred()) return NULL; |
6857 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
6858 | { |
6859 | if (_obj6) | |
6860 | delete _arg6; | |
6861 | } | |
09f3d4e6 RD |
6862 | return _resultobj; |
6863 | } | |
6864 | ||
8ab979d7 | 6865 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) |
efc5f224 | 6866 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6867 | PyObject * _resultobj; |
6868 | wxScrolledWindow * _arg0; | |
6869 | bool _arg1; | |
6870 | bool _arg2; | |
1d99702e | 6871 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6872 | int tempbool1; |
6873 | int tempbool2; | |
efc5f224 | 6874 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
6875 | |
6876 | self = self; | |
efc5f224 | 6877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 6878 | return NULL; |
1d99702e RD |
6879 | if (_argo0) { |
6880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
6883 | return NULL; | |
6884 | } | |
6885 | } | |
6886 | _arg1 = (bool ) tempbool1; | |
6887 | _arg2 = (bool ) tempbool2; | |
cf694132 | 6888 | { |
4268f798 | 6889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6890 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); |
cf694132 | 6891 | |
4268f798 | 6892 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6893 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6894 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6895 | _resultobj = Py_None; |
6896 | return _resultobj; | |
6897 | } | |
6898 | ||
b7e72427 RD |
6899 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
6900 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6901 | PyObject * _resultobj; | |
6902 | int _result; | |
6903 | wxScrolledWindow * _arg0; | |
6904 | int _arg1; | |
6905 | PyObject * _argo0 = 0; | |
6906 | char *_kwnames[] = { "self","orient", NULL }; | |
6907 | ||
6908 | self = self; | |
6909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6910 | return NULL; | |
6911 | if (_argo0) { | |
6912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6915 | return NULL; | |
6916 | } | |
6917 | } | |
6918 | { | |
4268f798 | 6919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6920 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); |
b7e72427 | 6921 | |
4268f798 | 6922 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6923 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6924 | } _resultobj = Py_BuildValue("i",_result); |
6925 | return _resultobj; | |
6926 | } | |
6927 | ||
8ab979d7 | 6928 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 6929 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6930 | PyObject * _resultobj; |
6931 | wxScrolledWindow * _arg0; | |
6932 | int * _arg1; | |
6933 | int temp; | |
6934 | int * _arg2; | |
6935 | int temp0; | |
1d99702e | 6936 | PyObject * _argo0 = 0; |
efc5f224 | 6937 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6938 | |
6939 | self = self; | |
6940 | { | |
6941 | _arg1 = &temp; | |
6942 | } | |
6943 | { | |
6944 | _arg2 = &temp0; | |
6945 | } | |
efc5f224 | 6946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 6947 | return NULL; |
1d99702e RD |
6948 | if (_argo0) { |
6949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
6952 | return NULL; | |
6953 | } | |
6954 | } | |
cf694132 | 6955 | { |
4268f798 | 6956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6957 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); |
cf694132 | 6958 | |
4268f798 | 6959 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6960 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6961 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6962 | _resultobj = Py_None; |
6963 | { | |
6964 | PyObject *o; | |
6965 | o = PyInt_FromLong((long) (*_arg1)); | |
6966 | _resultobj = t_output_helper(_resultobj, o); | |
6967 | } | |
6968 | { | |
6969 | PyObject *o; | |
6970 | o = PyInt_FromLong((long) (*_arg2)); | |
6971 | _resultobj = t_output_helper(_resultobj, o); | |
6972 | } | |
6973 | return _resultobj; | |
6974 | } | |
6975 | ||
b7e72427 RD |
6976 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
6977 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6978 | PyObject * _resultobj; | |
6979 | wxWindow * _result; | |
6980 | wxScrolledWindow * _arg0; | |
6981 | PyObject * _argo0 = 0; | |
6982 | char *_kwnames[] = { "self", NULL }; | |
b7e72427 RD |
6983 | |
6984 | self = self; | |
6985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6986 | return NULL; | |
6987 | if (_argo0) { | |
6988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6991 | return NULL; | |
6992 | } | |
6993 | } | |
6994 | { | |
4268f798 | 6995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6996 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); |
b7e72427 | 6997 | |
4268f798 | 6998 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6999 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7000 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b7e72427 RD |
7001 | return _resultobj; |
7002 | } | |
7003 | ||
8ab979d7 | 7004 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 7005 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7006 | PyObject * _resultobj; |
7007 | bool _result; | |
7008 | wxScrolledWindow * _arg0; | |
1d99702e | 7009 | PyObject * _argo0 = 0; |
efc5f224 | 7010 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7011 | |
7012 | self = self; | |
efc5f224 | 7013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 7014 | return NULL; |
1d99702e RD |
7015 | if (_argo0) { |
7016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
7019 | return NULL; | |
7020 | } | |
7021 | } | |
cf694132 | 7022 | { |
4268f798 | 7023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7024 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); |
cf694132 | 7025 | |
4268f798 | 7026 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7027 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7028 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7029 | return _resultobj; |
7030 | } | |
7031 | ||
7032 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 7033 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7034 | PyObject * _resultobj; |
7035 | wxScrolledWindow * _arg0; | |
7036 | wxDC * _arg1; | |
1d99702e RD |
7037 | PyObject * _argo0 = 0; |
7038 | PyObject * _argo1 = 0; | |
efc5f224 | 7039 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
7040 | |
7041 | self = self; | |
efc5f224 | 7042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7043 | return NULL; |
1d99702e RD |
7044 | if (_argo0) { |
7045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
7048 | return NULL; | |
7049 | } | |
7050 | } | |
1d99702e RD |
7051 | if (_argo1) { |
7052 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7053 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
7054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
7055 | return NULL; | |
7056 | } | |
7057 | } | |
cf694132 | 7058 | { |
4268f798 | 7059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7060 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); |
cf694132 | 7061 | |
4268f798 | 7062 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7063 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7064 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7065 | _resultobj = Py_None; |
7066 | return _resultobj; | |
7067 | } | |
7068 | ||
7069 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 7070 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7071 | PyObject * _resultobj; |
7072 | wxScrolledWindow * _arg0; | |
7073 | int _arg1; | |
7074 | int _arg2; | |
1d99702e | 7075 | PyObject * _argo0 = 0; |
efc5f224 | 7076 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7077 | |
7078 | self = self; | |
efc5f224 | 7079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7080 | return NULL; |
1d99702e RD |
7081 | if (_argo0) { |
7082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
7085 | return NULL; | |
7086 | } | |
7087 | } | |
cf694132 | 7088 | { |
4268f798 | 7089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7090 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); |
cf694132 | 7091 | |
4268f798 | 7092 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7093 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7094 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7095 | _resultobj = Py_None; |
7096 | return _resultobj; | |
7097 | } | |
7098 | ||
f6bcfd97 | 7099 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 7100 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7101 | PyObject * _resultobj; |
7102 | wxScrolledWindow * _arg0; | |
7103 | int _arg1; | |
7104 | int _arg2; | |
7105 | int _arg3; | |
7106 | int _arg4; | |
1d99702e RD |
7107 | int _arg5 = (int ) 0; |
7108 | int _arg6 = (int ) 0; | |
f6bcfd97 | 7109 | int _arg7 = (int ) FALSE; |
1d99702e | 7110 | PyObject * _argo0 = 0; |
f6bcfd97 | 7111 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
7112 | |
7113 | self = self; | |
f6bcfd97 | 7114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 7115 | return NULL; |
1d99702e RD |
7116 | if (_argo0) { |
7117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
7120 | return NULL; | |
7121 | } | |
7122 | } | |
cf694132 | 7123 | { |
4268f798 | 7124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7125 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 | 7126 | |
4268f798 | 7127 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7128 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7129 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7130 | _resultobj = Py_None; |
7131 | return _resultobj; | |
7132 | } | |
7133 | ||
b7e72427 RD |
7134 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
7135 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7136 | PyObject * _resultobj; | |
7137 | wxScrolledWindow * _arg0; | |
7138 | int _arg1; | |
7139 | int _arg2; | |
7140 | PyObject * _argo0 = 0; | |
7141 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
7142 | ||
7143 | self = self; | |
7144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7145 | return NULL; | |
7146 | if (_argo0) { | |
7147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
7150 | return NULL; | |
7151 | } | |
7152 | } | |
7153 | { | |
4268f798 | 7154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7155 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); |
b7e72427 | 7156 | |
4268f798 | 7157 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7158 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
7159 | } Py_INCREF(Py_None); |
7160 | _resultobj = Py_None; | |
7161 | return _resultobj; | |
7162 | } | |
7163 | ||
eb715945 RD |
7164 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
7165 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7166 | PyObject * _resultobj; | |
7167 | wxScrolledWindow * _arg0; | |
7168 | wxWindow * _arg1; | |
7169 | PyObject * _argo0 = 0; | |
7170 | PyObject * _argo1 = 0; | |
7171 | char *_kwnames[] = { "self","window", NULL }; | |
7172 | ||
7173 | self = self; | |
7174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
7175 | return NULL; | |
7176 | if (_argo0) { | |
7177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
7180 | return NULL; | |
7181 | } | |
7182 | } | |
7183 | if (_argo1) { | |
7184 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7185 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
7187 | return NULL; | |
7188 | } | |
7189 | } | |
7190 | { | |
4268f798 | 7191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7192 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); |
eb715945 | 7193 | |
4268f798 | 7194 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7195 | if (PyErr_Occurred()) return NULL; |
eb715945 RD |
7196 | } Py_INCREF(Py_None); |
7197 | _resultobj = Py_None; | |
7198 | return _resultobj; | |
7199 | } | |
7200 | ||
4c9993c3 RD |
7201 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
7202 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7203 | PyObject * _resultobj; | |
7204 | wxScrolledWindow * _arg0; | |
7205 | int * _arg1; | |
7206 | int temp; | |
7207 | int * _arg2; | |
7208 | int temp0; | |
7209 | PyObject * _argo0 = 0; | |
7210 | char *_kwnames[] = { "self", NULL }; | |
7211 | ||
7212 | self = self; | |
7213 | { | |
7214 | _arg1 = &temp; | |
7215 | } | |
7216 | { | |
7217 | _arg2 = &temp0; | |
7218 | } | |
7219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
7220 | return NULL; | |
7221 | if (_argo0) { | |
7222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
7225 | return NULL; | |
7226 | } | |
7227 | } | |
7228 | { | |
4268f798 | 7229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7230 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); |
4c9993c3 | 7231 | |
4268f798 | 7232 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7233 | if (PyErr_Occurred()) return NULL; |
4c9993c3 RD |
7234 | } Py_INCREF(Py_None); |
7235 | _resultobj = Py_None; | |
7236 | { | |
7237 | PyObject *o; | |
7238 | o = PyInt_FromLong((long) (*_arg1)); | |
7239 | _resultobj = t_output_helper(_resultobj, o); | |
7240 | } | |
7241 | { | |
7242 | PyObject *o; | |
7243 | o = PyInt_FromLong((long) (*_arg2)); | |
7244 | _resultobj = t_output_helper(_resultobj, o); | |
7245 | } | |
7246 | return _resultobj; | |
7247 | } | |
7248 | ||
e9159fe8 RD |
7249 | #define wxScrolledWindow_CalcScrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcScrolledPosition(_swigarg0)) |
7250 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7251 | PyObject * _resultobj; | |
7252 | wxPoint * _result; | |
7253 | wxScrolledWindow * _arg0; | |
7254 | wxPoint * _arg1; | |
7255 | PyObject * _argo0 = 0; | |
7256 | wxPoint temp; | |
7257 | PyObject * _obj1 = 0; | |
7258 | char *_kwnames[] = { "self","pt", NULL }; | |
7259 | char _ptemp[128]; | |
7260 | ||
7261 | self = self; | |
7262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcScrolledPosition1",_kwnames,&_argo0,&_obj1)) | |
7263 | return NULL; | |
7264 | if (_argo0) { | |
7265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition1. Expected _wxScrolledWindow_p."); | |
7268 | return NULL; | |
7269 | } | |
7270 | } | |
7271 | { | |
7272 | _arg1 = &temp; | |
7273 | if (! wxPoint_helper(_obj1, &_arg1)) | |
7274 | return NULL; | |
7275 | } | |
7276 | { | |
7277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7278 | _result = new wxPoint (wxScrolledWindow_CalcScrolledPosition1(_arg0,*_arg1)); | |
7279 | ||
7280 | wxPyEndAllowThreads(__tstate); | |
7281 | if (PyErr_Occurred()) return NULL; | |
7282 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
7283 | _resultobj = Py_BuildValue("s",_ptemp); | |
7284 | return _resultobj; | |
7285 | } | |
7286 | ||
7287 | #define wxScrolledWindow_CalcScrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7288 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d8bd15f RD |
7289 | PyObject * _resultobj; |
7290 | wxScrolledWindow * _arg0; | |
7291 | int _arg1; | |
7292 | int _arg2; | |
7293 | int * _arg3; | |
7294 | int temp; | |
7295 | int * _arg4; | |
7296 | int temp0; | |
7297 | PyObject * _argo0 = 0; | |
7298 | char *_kwnames[] = { "self","x","y", NULL }; | |
7299 | ||
7300 | self = self; | |
7301 | { | |
7302 | _arg3 = &temp; | |
7303 | } | |
7304 | { | |
7305 | _arg4 = &temp0; | |
7306 | } | |
e9159fe8 | 7307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) |
9d8bd15f RD |
7308 | return NULL; |
7309 | if (_argo0) { | |
7310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
e9159fe8 | 7312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition2. Expected _wxScrolledWindow_p."); |
9d8bd15f RD |
7313 | return NULL; |
7314 | } | |
7315 | } | |
7316 | { | |
4268f798 | 7317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 7318 | wxScrolledWindow_CalcScrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d8bd15f | 7319 | |
4268f798 | 7320 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7321 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
7322 | } Py_INCREF(Py_None); |
7323 | _resultobj = Py_None; | |
7324 | { | |
7325 | PyObject *o; | |
7326 | o = PyInt_FromLong((long) (*_arg3)); | |
7327 | _resultobj = t_output_helper(_resultobj, o); | |
7328 | } | |
7329 | { | |
7330 | PyObject *o; | |
7331 | o = PyInt_FromLong((long) (*_arg4)); | |
7332 | _resultobj = t_output_helper(_resultobj, o); | |
7333 | } | |
7334 | return _resultobj; | |
7335 | } | |
7336 | ||
e9159fe8 RD |
7337 | #define wxScrolledWindow_CalcUnscrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcUnscrolledPosition(_swigarg0)) |
7338 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7339 | PyObject * _resultobj; | |
7340 | wxPoint * _result; | |
7341 | wxScrolledWindow * _arg0; | |
7342 | wxPoint * _arg1; | |
7343 | PyObject * _argo0 = 0; | |
7344 | wxPoint temp; | |
7345 | PyObject * _obj1 = 0; | |
7346 | char *_kwnames[] = { "self","pt", NULL }; | |
7347 | char _ptemp[128]; | |
7348 | ||
7349 | self = self; | |
7350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcUnscrolledPosition1",_kwnames,&_argo0,&_obj1)) | |
7351 | return NULL; | |
7352 | if (_argo0) { | |
7353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition1. Expected _wxScrolledWindow_p."); | |
7356 | return NULL; | |
7357 | } | |
7358 | } | |
7359 | { | |
7360 | _arg1 = &temp; | |
7361 | if (! wxPoint_helper(_obj1, &_arg1)) | |
7362 | return NULL; | |
7363 | } | |
7364 | { | |
7365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7366 | _result = new wxPoint (wxScrolledWindow_CalcUnscrolledPosition1(_arg0,*_arg1)); | |
7367 | ||
7368 | wxPyEndAllowThreads(__tstate); | |
7369 | if (PyErr_Occurred()) return NULL; | |
7370 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
7371 | _resultobj = Py_BuildValue("s",_ptemp); | |
7372 | return _resultobj; | |
7373 | } | |
7374 | ||
7375 | #define wxScrolledWindow_CalcUnscrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7376 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d8bd15f RD |
7377 | PyObject * _resultobj; |
7378 | wxScrolledWindow * _arg0; | |
7379 | int _arg1; | |
7380 | int _arg2; | |
7381 | int * _arg3; | |
7382 | int temp; | |
7383 | int * _arg4; | |
7384 | int temp0; | |
7385 | PyObject * _argo0 = 0; | |
7386 | char *_kwnames[] = { "self","x","y", NULL }; | |
7387 | ||
7388 | self = self; | |
7389 | { | |
7390 | _arg3 = &temp; | |
7391 | } | |
7392 | { | |
7393 | _arg4 = &temp0; | |
7394 | } | |
e9159fe8 | 7395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) |
9d8bd15f RD |
7396 | return NULL; |
7397 | if (_argo0) { | |
7398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
e9159fe8 | 7400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition2. Expected _wxScrolledWindow_p."); |
9d8bd15f RD |
7401 | return NULL; |
7402 | } | |
7403 | } | |
7404 | { | |
4268f798 | 7405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 7406 | wxScrolledWindow_CalcUnscrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d8bd15f | 7407 | |
4268f798 | 7408 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7409 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
7410 | } Py_INCREF(Py_None); |
7411 | _resultobj = Py_None; | |
7412 | { | |
7413 | PyObject *o; | |
7414 | o = PyInt_FromLong((long) (*_arg3)); | |
7415 | _resultobj = t_output_helper(_resultobj, o); | |
7416 | } | |
7417 | { | |
7418 | PyObject *o; | |
7419 | o = PyInt_FromLong((long) (*_arg4)); | |
7420 | _resultobj = t_output_helper(_resultobj, o); | |
7421 | } | |
7422 | return _resultobj; | |
7423 | } | |
7424 | ||
d1679124 RD |
7425 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
7426 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7427 | PyObject * _resultobj; | |
7428 | wxScrolledWindow * _arg0; | |
7429 | double _arg1; | |
7430 | double _arg2; | |
7431 | PyObject * _argo0 = 0; | |
7432 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
7433 | ||
7434 | self = self; | |
7435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7436 | return NULL; | |
7437 | if (_argo0) { | |
7438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
7441 | return NULL; | |
7442 | } | |
7443 | } | |
7444 | { | |
4268f798 | 7445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7446 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); |
d1679124 | 7447 | |
4268f798 | 7448 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7449 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
7450 | } Py_INCREF(Py_None); |
7451 | _resultobj = Py_None; | |
7452 | return _resultobj; | |
7453 | } | |
7454 | ||
7455 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
7456 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7457 | PyObject * _resultobj; | |
7458 | double _result; | |
7459 | wxScrolledWindow * _arg0; | |
7460 | PyObject * _argo0 = 0; | |
7461 | char *_kwnames[] = { "self", NULL }; | |
7462 | ||
7463 | self = self; | |
7464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
7465 | return NULL; | |
7466 | if (_argo0) { | |
7467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
7470 | return NULL; | |
7471 | } | |
7472 | } | |
7473 | { | |
4268f798 | 7474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 RD |
7475 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); |
7476 | ||
7477 | wxPyEndAllowThreads(__tstate); | |
7478 | if (PyErr_Occurred()) return NULL; | |
7479 | } _resultobj = Py_BuildValue("d",_result); | |
7480 | return _resultobj; | |
7481 | } | |
7482 | ||
7483 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
7484 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7485 | PyObject * _resultobj; | |
7486 | double _result; | |
7487 | wxScrolledWindow * _arg0; | |
7488 | PyObject * _argo0 = 0; | |
7489 | char *_kwnames[] = { "self", NULL }; | |
7490 | ||
7491 | self = self; | |
7492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
7493 | return NULL; | |
7494 | if (_argo0) { | |
7495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
7498 | return NULL; | |
7499 | } | |
7500 | } | |
7501 | { | |
7502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7503 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); | |
7504 | ||
7505 | wxPyEndAllowThreads(__tstate); | |
7506 | if (PyErr_Occurred()) return NULL; | |
7507 | } _resultobj = Py_BuildValue("d",_result); | |
7508 | return _resultobj; | |
7509 | } | |
7510 | ||
7511 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
7512 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7513 | PyObject * _resultobj; | |
7514 | wxScrolledWindow * _arg0; | |
7515 | PyObject * _argo0 = 0; | |
7516 | char *_kwnames[] = { "self", NULL }; | |
7517 | ||
7518 | self = self; | |
7519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
7520 | return NULL; | |
7521 | if (_argo0) { | |
7522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
7525 | return NULL; | |
7526 | } | |
7527 | } | |
7528 | { | |
7529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7530 | wxScrolledWindow_AdjustScrollbars(_arg0); | |
7531 | ||
7532 | wxPyEndAllowThreads(__tstate); | |
7533 | if (PyErr_Occurred()) return NULL; | |
7534 | } Py_INCREF(Py_None); | |
7535 | _resultobj = Py_None; | |
7536 | return _resultobj; | |
7537 | } | |
7538 | ||
7539 | #define wxScrolledWindow_Layout(_swigobj) (_swigobj->Layout()) | |
7540 | static PyObject *_wrap_wxScrolledWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7541 | PyObject * _resultobj; | |
7542 | bool _result; | |
7543 | wxScrolledWindow * _arg0; | |
7544 | PyObject * _argo0 = 0; | |
7545 | char *_kwnames[] = { "self", NULL }; | |
7546 | ||
7547 | self = self; | |
7548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_Layout",_kwnames,&_argo0)) | |
7549 | return NULL; | |
7550 | if (_argo0) { | |
7551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Layout. Expected _wxScrolledWindow_p."); | |
7554 | return NULL; | |
7555 | } | |
7556 | } | |
7557 | { | |
7558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7559 | _result = (bool )wxScrolledWindow_Layout(_arg0); | |
7560 | ||
7561 | wxPyEndAllowThreads(__tstate); | |
7562 | if (PyErr_Occurred()) return NULL; | |
7563 | } _resultobj = Py_BuildValue("i",_result); | |
7564 | return _resultobj; | |
7565 | } | |
7566 | ||
2a74d141 RD |
7567 | #define wxScrolledWindow_SetScrollRate(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollRate(_swigarg0,_swigarg1)) |
7568 | static PyObject *_wrap_wxScrolledWindow_SetScrollRate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7569 | PyObject * _resultobj; | |
7570 | wxScrolledWindow * _arg0; | |
7571 | int _arg1; | |
7572 | int _arg2; | |
7573 | PyObject * _argo0 = 0; | |
7574 | char *_kwnames[] = { "self","xstep","ystep", NULL }; | |
7575 | ||
7576 | self = self; | |
7577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollRate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7578 | return NULL; | |
7579 | if (_argo0) { | |
7580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollRate. Expected _wxScrolledWindow_p."); | |
7583 | return NULL; | |
7584 | } | |
7585 | } | |
7586 | { | |
7587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7588 | wxScrolledWindow_SetScrollRate(_arg0,_arg1,_arg2); | |
7589 | ||
7590 | wxPyEndAllowThreads(__tstate); | |
7591 | if (PyErr_Occurred()) return NULL; | |
7592 | } Py_INCREF(Py_None); | |
7593 | _resultobj = Py_None; | |
7594 | return _resultobj; | |
7595 | } | |
7596 | ||
e9159fe8 RD |
7597 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
7598 | wxMenu *src; | |
7599 | wxEvtHandler *dest; | |
7600 | src = (wxMenu *) ptr; | |
7601 | dest = (wxEvtHandler *) src; | |
7602 | return (void *) dest; | |
7603 | } | |
7604 | ||
7605 | static void *SwigwxMenuTowxObject(void *ptr) { | |
7606 | wxMenu *src; | |
7607 | wxObject *dest; | |
7608 | src = (wxMenu *) ptr; | |
7609 | dest = (wxObject *) src; | |
7610 | return (void *) dest; | |
7611 | } | |
7612 | ||
7613 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) | |
7614 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7615 | PyObject * _resultobj; | |
7616 | wxMenu * _result; | |
137b5242 | 7617 | wxString * _arg0 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
7618 | long _arg1 = (long ) 0; |
7619 | PyObject * _obj0 = 0; | |
7620 | char *_kwnames[] = { "title","style", NULL }; | |
7621 | char _ptemp[128]; | |
7622 | ||
7623 | self = self; | |
7624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) | |
7625 | return NULL; | |
7626 | if (_obj0) | |
7627 | { | |
7628 | _arg0 = wxString_in_helper(_obj0); | |
7629 | if (_arg0 == NULL) | |
7630 | return NULL; | |
7631 | } | |
7632 | { | |
7633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7634 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); | |
7635 | ||
7636 | wxPyEndAllowThreads(__tstate); | |
7637 | if (PyErr_Occurred()) return NULL; | |
7638 | } if (_result) { | |
7639 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7640 | _resultobj = Py_BuildValue("s",_ptemp); | |
7641 | } else { | |
7642 | Py_INCREF(Py_None); | |
7643 | _resultobj = Py_None; | |
7644 | } | |
7645 | { | |
7646 | if (_obj0) | |
7647 | delete _arg0; | |
7648 | } | |
7649 | return _resultobj; | |
7650 | } | |
7651 | ||
7652 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7653 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7654 | PyObject * _resultobj; | |
7655 | wxMenu * _arg0; | |
7656 | int _arg1; | |
7657 | wxString * _arg2; | |
137b5242 | 7658 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
546bfbea | 7659 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
e9159fe8 RD |
7660 | PyObject * _argo0 = 0; |
7661 | PyObject * _obj2 = 0; | |
7662 | PyObject * _obj3 = 0; | |
7663 | char *_kwnames[] = { "self","id","item","helpString","kind", NULL }; | |
7664 | ||
7665 | self = self; | |
7666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
7667 | return NULL; | |
7668 | if (_argo0) { | |
7669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); | |
7672 | return NULL; | |
7673 | } | |
7674 | } | |
7675 | { | |
7676 | _arg2 = wxString_in_helper(_obj2); | |
7677 | if (_arg2 == NULL) | |
7678 | return NULL; | |
7679 | } | |
7680 | if (_obj3) | |
7681 | { | |
7682 | _arg3 = wxString_in_helper(_obj3); | |
7683 | if (_arg3 == NULL) | |
7684 | return NULL; | |
7685 | } | |
7686 | { | |
7687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7688 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
7689 | ||
7690 | wxPyEndAllowThreads(__tstate); | |
7691 | if (PyErr_Occurred()) return NULL; | |
7692 | } Py_INCREF(Py_None); | |
7693 | _resultobj = Py_None; | |
7694 | { | |
7695 | if (_obj2) | |
7696 | delete _arg2; | |
7697 | } | |
7698 | { | |
7699 | if (_obj3) | |
7700 | delete _arg3; | |
7701 | } | |
7702 | return _resultobj; | |
7703 | } | |
7704 | ||
7705 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7706 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7707 | PyObject * _resultobj; | |
7708 | wxMenu * _arg0; | |
7709 | int _arg1; | |
7710 | wxString * _arg2; | |
7711 | wxMenu * _arg3; | |
137b5242 | 7712 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
7713 | PyObject * _argo0 = 0; |
7714 | PyObject * _obj2 = 0; | |
7715 | PyObject * _argo3 = 0; | |
7716 | PyObject * _obj4 = 0; | |
7717 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; | |
7718 | ||
7719 | self = self; | |
7720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) | |
7721 | return NULL; | |
7722 | if (_argo0) { | |
7723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
7726 | return NULL; | |
7727 | } | |
7728 | } | |
7729 | { | |
7730 | _arg2 = wxString_in_helper(_obj2); | |
7731 | if (_arg2 == NULL) | |
7732 | return NULL; | |
7733 | } | |
7734 | if (_argo3) { | |
7735 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7736 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
7737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
7738 | return NULL; | |
7739 | } | |
7740 | } | |
7741 | if (_obj4) | |
7742 | { | |
7743 | _arg4 = wxString_in_helper(_obj4); | |
7744 | if (_arg4 == NULL) | |
7745 | return NULL; | |
7746 | } | |
7747 | { | |
7748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7749 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
7750 | ||
7751 | wxPyEndAllowThreads(__tstate); | |
7752 | if (PyErr_Occurred()) return NULL; | |
7753 | } Py_INCREF(Py_None); | |
7754 | _resultobj = Py_None; | |
7755 | { | |
7756 | if (_obj2) | |
7757 | delete _arg2; | |
7758 | } | |
7759 | { | |
7760 | if (_obj4) | |
7761 | delete _arg4; | |
7762 | } | |
7763 | return _resultobj; | |
7764 | } | |
7765 | ||
7766 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
7767 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7768 | PyObject * _resultobj; | |
7769 | wxMenu * _arg0; | |
7770 | wxMenuItem * _arg1; | |
7771 | PyObject * _argo0 = 0; | |
7772 | PyObject * _argo1 = 0; | |
7773 | char *_kwnames[] = { "self","item", NULL }; | |
7774 | ||
7775 | self = self; | |
7776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) | |
7777 | return NULL; | |
7778 | if (_argo0) { | |
7779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); | |
7782 | return NULL; | |
7783 | } | |
7784 | } | |
7785 | if (_argo1) { | |
7786 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7787 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); | |
7789 | return NULL; | |
7790 | } | |
7791 | } | |
7792 | { | |
7793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7794 | wxMenu_AppendItem(_arg0,_arg1); | |
7795 | ||
7796 | wxPyEndAllowThreads(__tstate); | |
7797 | if (PyErr_Occurred()) return NULL; | |
7798 | } Py_INCREF(Py_None); | |
7799 | _resultobj = Py_None; | |
7800 | return _resultobj; | |
7801 | } | |
7802 | ||
7803 | #define wxMenu_AppendCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendCheckItem(_swigarg0,_swigarg1,_swigarg2)) | |
7804 | static PyObject *_wrap_wxMenu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7805 | PyObject * _resultobj; | |
7806 | wxMenu * _arg0; | |
7807 | int _arg1; | |
7808 | wxString * _arg2; | |
137b5242 | 7809 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
7810 | PyObject * _argo0 = 0; |
7811 | PyObject * _obj2 = 0; | |
7812 | PyObject * _obj3 = 0; | |
7813 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
7814 | ||
7815 | self = self; | |
7816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) | |
7817 | return NULL; | |
7818 | if (_argo0) { | |
7819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendCheckItem. Expected _wxMenu_p."); | |
7822 | return NULL; | |
7823 | } | |
7824 | } | |
7825 | { | |
7826 | _arg2 = wxString_in_helper(_obj2); | |
7827 | if (_arg2 == NULL) | |
7828 | return NULL; | |
7829 | } | |
7830 | if (_obj3) | |
7831 | { | |
7832 | _arg3 = wxString_in_helper(_obj3); | |
7833 | if (_arg3 == NULL) | |
7834 | return NULL; | |
7835 | } | |
7836 | { | |
7837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7838 | wxMenu_AppendCheckItem(_arg0,_arg1,*_arg2,*_arg3); | |
7839 | ||
7840 | wxPyEndAllowThreads(__tstate); | |
7841 | if (PyErr_Occurred()) return NULL; | |
7842 | } Py_INCREF(Py_None); | |
7843 | _resultobj = Py_None; | |
7844 | { | |
7845 | if (_obj2) | |
7846 | delete _arg2; | |
7847 | } | |
7848 | { | |
7849 | if (_obj3) | |
7850 | delete _arg3; | |
7851 | } | |
7852 | return _resultobj; | |
7853 | } | |
7854 | ||
7855 | #define wxMenu_AppendRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendRadioItem(_swigarg0,_swigarg1,_swigarg2)) | |
7856 | static PyObject *_wrap_wxMenu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7857 | PyObject * _resultobj; | |
7858 | wxMenu * _arg0; | |
7859 | int _arg1; | |
7860 | wxString * _arg2; | |
137b5242 | 7861 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
7862 | PyObject * _argo0 = 0; |
7863 | PyObject * _obj2 = 0; | |
7864 | PyObject * _obj3 = 0; | |
7865 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
7866 | ||
7867 | self = self; | |
7868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) | |
7869 | return NULL; | |
7870 | if (_argo0) { | |
7871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendRadioItem. Expected _wxMenu_p."); | |
7874 | return NULL; | |
7875 | } | |
7876 | } | |
7877 | { | |
7878 | _arg2 = wxString_in_helper(_obj2); | |
7879 | if (_arg2 == NULL) | |
7880 | return NULL; | |
7881 | } | |
7882 | if (_obj3) | |
7883 | { | |
7884 | _arg3 = wxString_in_helper(_obj3); | |
7885 | if (_arg3 == NULL) | |
7886 | return NULL; | |
7887 | } | |
7888 | { | |
7889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7890 | wxMenu_AppendRadioItem(_arg0,_arg1,*_arg2,*_arg3); | |
7891 | ||
7892 | wxPyEndAllowThreads(__tstate); | |
7893 | if (PyErr_Occurred()) return NULL; | |
7894 | } Py_INCREF(Py_None); | |
7895 | _resultobj = Py_None; | |
7896 | { | |
7897 | if (_obj2) | |
7898 | delete _arg2; | |
7899 | } | |
7900 | { | |
7901 | if (_obj3) | |
7902 | delete _arg3; | |
7903 | } | |
7904 | return _resultobj; | |
7905 | } | |
7906 | ||
7907 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) | |
7908 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7909 | PyObject * _resultobj; | |
7910 | wxMenu * _arg0; | |
7911 | PyObject * _argo0 = 0; | |
7912 | char *_kwnames[] = { "self", NULL }; | |
7913 | ||
7914 | self = self; | |
7915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) | |
7916 | return NULL; | |
7917 | if (_argo0) { | |
7918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); | |
7921 | return NULL; | |
7922 | } | |
7923 | } | |
7924 | { | |
7925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7926 | wxMenu_AppendSeparator(_arg0); | |
7927 | ||
7928 | wxPyEndAllowThreads(__tstate); | |
7929 | if (PyErr_Occurred()) return NULL; | |
7930 | } Py_INCREF(Py_None); | |
7931 | _resultobj = Py_None; | |
7932 | return _resultobj; | |
7933 | } | |
7934 | ||
7935 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
7936 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7937 | PyObject * _resultobj; | |
7938 | wxMenu * _arg0; | |
7939 | size_t _arg1; | |
7940 | int _arg2; | |
7941 | wxString * _arg3; | |
137b5242 | 7942 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
546bfbea | 7943 | wxItemKind _arg5 = (wxItemKind ) wxITEM_NORMAL; |
e9159fe8 RD |
7944 | PyObject * _argo0 = 0; |
7945 | PyObject * _obj3 = 0; | |
7946 | PyObject * _obj4 = 0; | |
7947 | char *_kwnames[] = { "self","pos","id","text","help","kind", NULL }; | |
7948 | ||
7949 | self = self; | |
7950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|Oi:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
7951 | return NULL; | |
7952 | if (_argo0) { | |
7953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); | |
7956 | return NULL; | |
7957 | } | |
7958 | } | |
7959 | { | |
7960 | _arg3 = wxString_in_helper(_obj3); | |
7961 | if (_arg3 == NULL) | |
7962 | return NULL; | |
7963 | } | |
7964 | if (_obj4) | |
7965 | { | |
7966 | _arg4 = wxString_in_helper(_obj4); | |
7967 | if (_arg4 == NULL) | |
7968 | return NULL; | |
7969 | } | |
7970 | { | |
7971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7972 | wxMenu_Insert(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); | |
7973 | ||
7974 | wxPyEndAllowThreads(__tstate); | |
7975 | if (PyErr_Occurred()) return NULL; | |
7976 | } Py_INCREF(Py_None); | |
7977 | _resultobj = Py_None; | |
7978 | { | |
7979 | if (_obj3) | |
7980 | delete _arg3; | |
7981 | } | |
7982 | { | |
7983 | if (_obj4) | |
7984 | delete _arg4; | |
7985 | } | |
7986 | return _resultobj; | |
7987 | } | |
7988 | ||
7989 | #define wxMenu_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0)) | |
7990 | static PyObject *_wrap_wxMenu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7991 | PyObject * _resultobj; | |
7992 | wxMenu * _arg0; | |
7993 | size_t _arg1; | |
7994 | PyObject * _argo0 = 0; | |
7995 | char *_kwnames[] = { "self","pos", NULL }; | |
7996 | ||
7997 | self = self; | |
7998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_InsertSeparator",_kwnames,&_argo0,&_arg1)) | |
7999 | return NULL; | |
8000 | if (_argo0) { | |
8001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertSeparator. Expected _wxMenu_p."); | |
8004 | return NULL; | |
8005 | } | |
8006 | } | |
8007 | { | |
8008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8009 | wxMenu_InsertSeparator(_arg0,_arg1); | |
8010 | ||
8011 | wxPyEndAllowThreads(__tstate); | |
8012 | if (PyErr_Occurred()) return NULL; | |
8013 | } Py_INCREF(Py_None); | |
8014 | _resultobj = Py_None; | |
8015 | return _resultobj; | |
8016 | } | |
8017 | ||
8018 | #define wxMenu_InsertCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertCheckItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8019 | static PyObject *_wrap_wxMenu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8020 | PyObject * _resultobj; | |
8021 | wxMenu * _arg0; | |
8022 | size_t _arg1; | |
8023 | int _arg2; | |
8024 | wxString * _arg3; | |
137b5242 | 8025 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
8026 | PyObject * _argo0 = 0; |
8027 | PyObject * _obj3 = 0; | |
8028 | PyObject * _obj4 = 0; | |
8029 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; | |
8030 | ||
8031 | self = self; | |
8032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertCheckItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) | |
8033 | return NULL; | |
8034 | if (_argo0) { | |
8035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertCheckItem. Expected _wxMenu_p."); | |
8038 | return NULL; | |
8039 | } | |
8040 | } | |
8041 | { | |
8042 | _arg3 = wxString_in_helper(_obj3); | |
8043 | if (_arg3 == NULL) | |
8044 | return NULL; | |
8045 | } | |
8046 | if (_obj4) | |
8047 | { | |
8048 | _arg4 = wxString_in_helper(_obj4); | |
8049 | if (_arg4 == NULL) | |
8050 | return NULL; | |
8051 | } | |
8052 | { | |
8053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8054 | wxMenu_InsertCheckItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
8055 | ||
8056 | wxPyEndAllowThreads(__tstate); | |
8057 | if (PyErr_Occurred()) return NULL; | |
8058 | } Py_INCREF(Py_None); | |
8059 | _resultobj = Py_None; | |
8060 | { | |
8061 | if (_obj3) | |
8062 | delete _arg3; | |
8063 | } | |
8064 | { | |
8065 | if (_obj4) | |
8066 | delete _arg4; | |
8067 | } | |
8068 | return _resultobj; | |
8069 | } | |
8070 | ||
8071 | #define wxMenu_InsertRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertRadioItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8072 | static PyObject *_wrap_wxMenu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8073 | PyObject * _resultobj; | |
8074 | wxMenu * _arg0; | |
8075 | size_t _arg1; | |
8076 | int _arg2; | |
8077 | wxString * _arg3; | |
137b5242 | 8078 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
8079 | PyObject * _argo0 = 0; |
8080 | PyObject * _obj3 = 0; | |
8081 | PyObject * _obj4 = 0; | |
8082 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; | |
8083 | ||
8084 | self = self; | |
8085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertRadioItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) | |
8086 | return NULL; | |
8087 | if (_argo0) { | |
8088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertRadioItem. Expected _wxMenu_p."); | |
8091 | return NULL; | |
8092 | } | |
8093 | } | |
8094 | { | |
8095 | _arg3 = wxString_in_helper(_obj3); | |
8096 | if (_arg3 == NULL) | |
8097 | return NULL; | |
8098 | } | |
8099 | if (_obj4) | |
8100 | { | |
8101 | _arg4 = wxString_in_helper(_obj4); | |
8102 | if (_arg4 == NULL) | |
8103 | return NULL; | |
8104 | } | |
8105 | { | |
8106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8107 | wxMenu_InsertRadioItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
8108 | ||
8109 | wxPyEndAllowThreads(__tstate); | |
8110 | if (PyErr_Occurred()) return NULL; | |
8111 | } Py_INCREF(Py_None); | |
8112 | _resultobj = Py_None; | |
8113 | { | |
8114 | if (_obj3) | |
8115 | delete _arg3; | |
8116 | } | |
8117 | { | |
8118 | if (_obj4) | |
8119 | delete _arg4; | |
8120 | } | |
8121 | return _resultobj; | |
8122 | } | |
8123 | ||
8124 | #define wxMenu_InsertMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
8125 | static PyObject *_wrap_wxMenu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8126 | PyObject * _resultobj; | |
8127 | wxMenu * _arg0; | |
8128 | size_t _arg1; | |
8129 | int _arg2; | |
8130 | wxString * _arg3; | |
8131 | wxMenu * _arg4; | |
137b5242 | 8132 | wxString * _arg5 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
8133 | PyObject * _argo0 = 0; |
8134 | PyObject * _obj3 = 0; | |
8135 | PyObject * _argo4 = 0; | |
8136 | PyObject * _obj5 = 0; | |
8137 | char *_kwnames[] = { "self","pos","id","text","submenu","help", NULL }; | |
8138 | ||
8139 | self = self; | |
8140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOO|O:wxMenu_InsertMenu",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_argo4,&_obj5)) | |
8141 | return NULL; | |
8142 | if (_argo0) { | |
8143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertMenu. Expected _wxMenu_p."); | |
8146 | return NULL; | |
8147 | } | |
8148 | } | |
8149 | { | |
8150 | _arg3 = wxString_in_helper(_obj3); | |
8151 | if (_arg3 == NULL) | |
8152 | return NULL; | |
8153 | } | |
8154 | if (_argo4) { | |
8155 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8156 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxMenu_p")) { | |
8157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxMenu_InsertMenu. Expected _wxMenu_p."); | |
8158 | return NULL; | |
8159 | } | |
8160 | } | |
8161 | if (_obj5) | |
8162 | { | |
8163 | _arg5 = wxString_in_helper(_obj5); | |
8164 | if (_arg5 == NULL) | |
8165 | return NULL; | |
8166 | } | |
8167 | { | |
8168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8169 | wxMenu_InsertMenu(_arg0,_arg1,_arg2,*_arg3,_arg4,*_arg5); | |
d1679124 | 8170 | |
4268f798 | 8171 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8172 | if (PyErr_Occurred()) return NULL; |
e9159fe8 RD |
8173 | } Py_INCREF(Py_None); |
8174 | _resultobj = Py_None; | |
8175 | { | |
8176 | if (_obj3) | |
8177 | delete _arg3; | |
8178 | } | |
8179 | { | |
8180 | if (_obj5) | |
8181 | delete _arg5; | |
8182 | } | |
d1679124 RD |
8183 | return _resultobj; |
8184 | } | |
8185 | ||
e9159fe8 RD |
8186 | #define wxMenu_InsertItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
8187 | static PyObject *_wrap_wxMenu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d1679124 | 8188 | PyObject * _resultobj; |
e9159fe8 RD |
8189 | bool _result; |
8190 | wxMenu * _arg0; | |
8191 | size_t _arg1; | |
8192 | wxMenuItem * _arg2; | |
d1679124 | 8193 | PyObject * _argo0 = 0; |
e9159fe8 RD |
8194 | PyObject * _argo2 = 0; |
8195 | char *_kwnames[] = { "self","pos","item", NULL }; | |
d1679124 RD |
8196 | |
8197 | self = self; | |
e9159fe8 | 8198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_InsertItem",_kwnames,&_argo0,&_arg1,&_argo2)) |
d1679124 RD |
8199 | return NULL; |
8200 | if (_argo0) { | |
8201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
e9159fe8 RD |
8202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertItem. Expected _wxMenu_p."); | |
8204 | return NULL; | |
8205 | } | |
8206 | } | |
8207 | if (_argo2) { | |
8208 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8209 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
8210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_InsertItem. Expected _wxMenuItem_p."); | |
d1679124 RD |
8211 | return NULL; |
8212 | } | |
8213 | } | |
8214 | { | |
4268f798 | 8215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8216 | _result = (bool )wxMenu_InsertItem(_arg0,_arg1,_arg2); |
d1679124 | 8217 | |
4268f798 | 8218 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8219 | if (PyErr_Occurred()) return NULL; |
e9159fe8 | 8220 | } _resultobj = Py_BuildValue("i",_result); |
d1679124 RD |
8221 | return _resultobj; |
8222 | } | |
8223 | ||
e9159fe8 RD |
8224 | #define wxMenu_Prepend(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8225 | static PyObject *_wrap_wxMenu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d1679124 | 8226 | PyObject * _resultobj; |
e9159fe8 RD |
8227 | wxMenu * _arg0; |
8228 | int _arg1; | |
8229 | wxString * _arg2; | |
137b5242 | 8230 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
546bfbea | 8231 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
d1679124 | 8232 | PyObject * _argo0 = 0; |
e9159fe8 RD |
8233 | PyObject * _obj2 = 0; |
8234 | PyObject * _obj3 = 0; | |
8235 | char *_kwnames[] = { "self","id","text","help","kind", NULL }; | |
d1679124 RD |
8236 | |
8237 | self = self; | |
e9159fe8 | 8238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Prepend",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
d1679124 RD |
8239 | return NULL; |
8240 | if (_argo0) { | |
8241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
e9159fe8 RD |
8242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Prepend. Expected _wxMenu_p."); | |
d1679124 RD |
8244 | return NULL; |
8245 | } | |
8246 | } | |
e9159fe8 RD |
8247 | { |
8248 | _arg2 = wxString_in_helper(_obj2); | |
8249 | if (_arg2 == NULL) | |
8250 | return NULL; | |
8251 | } | |
8252 | if (_obj3) | |
8253 | { | |
8254 | _arg3 = wxString_in_helper(_obj3); | |
8255 | if (_arg3 == NULL) | |
8256 | return NULL; | |
8257 | } | |
d1679124 | 8258 | { |
4268f798 | 8259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8260 | wxMenu_Prepend(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
d1679124 | 8261 | |
4268f798 | 8262 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8263 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
8264 | } Py_INCREF(Py_None); |
8265 | _resultobj = Py_None; | |
e9159fe8 RD |
8266 | { |
8267 | if (_obj2) | |
8268 | delete _arg2; | |
8269 | } | |
8270 | { | |
8271 | if (_obj3) | |
8272 | delete _arg3; | |
8273 | } | |
d1679124 RD |
8274 | return _resultobj; |
8275 | } | |
8276 | ||
e9159fe8 RD |
8277 | #define wxMenu_PrependSeparator(_swigobj) (_swigobj->PrependSeparator()) |
8278 | static PyObject *_wrap_wxMenu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26e335b8 | 8279 | PyObject * _resultobj; |
e9159fe8 | 8280 | wxMenu * _arg0; |
26e335b8 RD |
8281 | PyObject * _argo0 = 0; |
8282 | char *_kwnames[] = { "self", NULL }; | |
8283 | ||
8284 | self = self; | |
e9159fe8 | 8285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_PrependSeparator",_kwnames,&_argo0)) |
26e335b8 RD |
8286 | return NULL; |
8287 | if (_argo0) { | |
8288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
e9159fe8 RD |
8289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependSeparator. Expected _wxMenu_p."); | |
26e335b8 RD |
8291 | return NULL; |
8292 | } | |
8293 | } | |
8294 | { | |
8295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e9159fe8 | 8296 | wxMenu_PrependSeparator(_arg0); |
26e335b8 RD |
8297 | |
8298 | wxPyEndAllowThreads(__tstate); | |
8299 | if (PyErr_Occurred()) return NULL; | |
e9159fe8 RD |
8300 | } Py_INCREF(Py_None); |
8301 | _resultobj = Py_None; | |
26e335b8 RD |
8302 | return _resultobj; |
8303 | } | |
8304 | ||
e9159fe8 RD |
8305 | #define wxMenu_PrependCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependCheckItem(_swigarg0,_swigarg1,_swigarg2)) |
8306 | static PyObject *_wrap_wxMenu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8307 | PyObject * _resultobj; |
e9159fe8 RD |
8308 | wxMenu * _arg0; |
8309 | int _arg1; | |
8310 | wxString * _arg2; | |
137b5242 | 8311 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
8312 | PyObject * _argo0 = 0; |
8313 | PyObject * _obj2 = 0; | |
8314 | PyObject * _obj3 = 0; | |
8315 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
8ab979d7 RD |
8316 | |
8317 | self = self; | |
e9159fe8 | 8318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
8ab979d7 | 8319 | return NULL; |
e9159fe8 RD |
8320 | if (_argo0) { |
8321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependCheckItem. Expected _wxMenu_p."); | |
8324 | return NULL; | |
8325 | } | |
8326 | } | |
8ab979d7 | 8327 | { |
e9159fe8 RD |
8328 | _arg2 = wxString_in_helper(_obj2); |
8329 | if (_arg2 == NULL) | |
8330 | return NULL; | |
8331 | } | |
8332 | if (_obj3) | |
8333 | { | |
8334 | _arg3 = wxString_in_helper(_obj3); | |
8335 | if (_arg3 == NULL) | |
185d7c3e | 8336 | return NULL; |
8ab979d7 | 8337 | } |
cf694132 | 8338 | { |
4268f798 | 8339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8340 | wxMenu_PrependCheckItem(_arg0,_arg1,*_arg2,*_arg3); |
cf694132 | 8341 | |
4268f798 | 8342 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8343 | if (PyErr_Occurred()) return NULL; |
e9159fe8 RD |
8344 | } Py_INCREF(Py_None); |
8345 | _resultobj = Py_None; | |
8ab979d7 | 8346 | { |
e9159fe8 RD |
8347 | if (_obj2) |
8348 | delete _arg2; | |
8349 | } | |
8350 | { | |
8351 | if (_obj3) | |
8352 | delete _arg3; | |
8ab979d7 RD |
8353 | } |
8354 | return _resultobj; | |
8355 | } | |
8356 | ||
e9159fe8 RD |
8357 | #define wxMenu_PrependRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependRadioItem(_swigarg0,_swigarg1,_swigarg2)) |
8358 | static PyObject *_wrap_wxMenu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8359 | PyObject * _resultobj; |
8360 | wxMenu * _arg0; | |
8361 | int _arg1; | |
8362 | wxString * _arg2; | |
137b5242 | 8363 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
1d99702e | 8364 | PyObject * _argo0 = 0; |
8ab979d7 RD |
8365 | PyObject * _obj2 = 0; |
8366 | PyObject * _obj3 = 0; | |
e9159fe8 | 8367 | char *_kwnames[] = { "self","id","text","help", NULL }; |
8ab979d7 RD |
8368 | |
8369 | self = self; | |
e9159fe8 | 8370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
8ab979d7 | 8371 | return NULL; |
1d99702e RD |
8372 | if (_argo0) { |
8373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
e9159fe8 | 8375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependRadioItem. Expected _wxMenu_p."); |
8ab979d7 RD |
8376 | return NULL; |
8377 | } | |
8378 | } | |
8379 | { | |
c8bc7bb8 RD |
8380 | _arg2 = wxString_in_helper(_obj2); |
8381 | if (_arg2 == NULL) | |
8ab979d7 | 8382 | return NULL; |
8ab979d7 RD |
8383 | } |
8384 | if (_obj3) | |
8385 | { | |
c8bc7bb8 RD |
8386 | _arg3 = wxString_in_helper(_obj3); |
8387 | if (_arg3 == NULL) | |
8ab979d7 | 8388 | return NULL; |
8ab979d7 | 8389 | } |
cf694132 | 8390 | { |
4268f798 | 8391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8392 | wxMenu_PrependRadioItem(_arg0,_arg1,*_arg2,*_arg3); |
cf694132 | 8393 | |
4268f798 | 8394 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8395 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8396 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8397 | _resultobj = Py_None; |
8398 | { | |
8399 | if (_obj2) | |
8400 | delete _arg2; | |
8401 | } | |
8402 | { | |
8403 | if (_obj3) | |
8404 | delete _arg3; | |
8405 | } | |
8406 | return _resultobj; | |
8407 | } | |
8408 | ||
e9159fe8 RD |
8409 | #define wxMenu_PrependMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8410 | static PyObject *_wrap_wxMenu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8411 | PyObject * _resultobj; |
8412 | wxMenu * _arg0; | |
8413 | int _arg1; | |
8414 | wxString * _arg2; | |
8415 | wxMenu * _arg3; | |
137b5242 | 8416 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
1d99702e | 8417 | PyObject * _argo0 = 0; |
8ab979d7 | 8418 | PyObject * _obj2 = 0; |
1d99702e | 8419 | PyObject * _argo3 = 0; |
8ab979d7 | 8420 | PyObject * _obj4 = 0; |
e9159fe8 | 8421 | char *_kwnames[] = { "self","id","text","submenu","help", NULL }; |
8ab979d7 RD |
8422 | |
8423 | self = self; | |
e9159fe8 | 8424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_PrependMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 8425 | return NULL; |
1d99702e RD |
8426 | if (_argo0) { |
8427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
e9159fe8 | 8429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependMenu. Expected _wxMenu_p."); |
8ab979d7 RD |
8430 | return NULL; |
8431 | } | |
8432 | } | |
8433 | { | |
c8bc7bb8 RD |
8434 | _arg2 = wxString_in_helper(_obj2); |
8435 | if (_arg2 == NULL) | |
185d7c3e | 8436 | return NULL; |
8ab979d7 | 8437 | } |
1d99702e RD |
8438 | if (_argo3) { |
8439 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8440 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
e9159fe8 | 8441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_PrependMenu. Expected _wxMenu_p."); |
8ab979d7 RD |
8442 | return NULL; |
8443 | } | |
8444 | } | |
8445 | if (_obj4) | |
8446 | { | |
c8bc7bb8 RD |
8447 | _arg4 = wxString_in_helper(_obj4); |
8448 | if (_arg4 == NULL) | |
185d7c3e | 8449 | return NULL; |
8ab979d7 | 8450 | } |
cf694132 | 8451 | { |
4268f798 | 8452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8453 | wxMenu_PrependMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); |
cf694132 | 8454 | |
4268f798 | 8455 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8456 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8457 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8458 | _resultobj = Py_None; |
8459 | { | |
8460 | if (_obj2) | |
8461 | delete _arg2; | |
8462 | } | |
8463 | { | |
8464 | if (_obj4) | |
8465 | delete _arg4; | |
8466 | } | |
8467 | return _resultobj; | |
8468 | } | |
8469 | ||
e9159fe8 RD |
8470 | #define wxMenu_PrependItem(_swigobj,_swigarg0) (_swigobj->Prepend(_swigarg0)) |
8471 | static PyObject *_wrap_wxMenu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
8472 | PyObject * _resultobj; |
8473 | wxMenu * _arg0; | |
8474 | wxMenuItem * _arg1; | |
1d99702e RD |
8475 | PyObject * _argo0 = 0; |
8476 | PyObject * _argo1 = 0; | |
efc5f224 | 8477 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
8478 | |
8479 | self = self; | |
e9159fe8 | 8480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_PrependItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 8481 | return NULL; |
1d99702e RD |
8482 | if (_argo0) { |
8483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
e9159fe8 | 8485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependItem. Expected _wxMenu_p."); |
af309447 RD |
8486 | return NULL; |
8487 | } | |
8488 | } | |
1d99702e RD |
8489 | if (_argo1) { |
8490 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8491 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
e9159fe8 | 8492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_PrependItem. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8493 | return NULL; |
8494 | } | |
8495 | } | |
cf694132 | 8496 | { |
4268f798 | 8497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8498 | wxMenu_PrependItem(_arg0,_arg1); |
cf694132 | 8499 | |
4268f798 | 8500 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8501 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8502 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8503 | _resultobj = Py_None; |
8504 | return _resultobj; | |
8505 | } | |
8506 | ||
8507 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 8508 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8509 | PyObject * _resultobj; |
8510 | wxMenu * _arg0; | |
1d99702e | 8511 | PyObject * _argo0 = 0; |
efc5f224 | 8512 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8513 | |
8514 | self = self; | |
efc5f224 | 8515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 8516 | return NULL; |
1d99702e RD |
8517 | if (_argo0) { |
8518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
8521 | return NULL; | |
8522 | } | |
8523 | } | |
cf694132 | 8524 | { |
4268f798 | 8525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8526 | wxMenu_Break(_arg0); |
cf694132 | 8527 | |
4268f798 | 8528 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8529 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8530 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8531 | _resultobj = Py_None; |
8532 | return _resultobj; | |
8533 | } | |
8534 | ||
8535 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 8536 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8537 | PyObject * _resultobj; |
8538 | wxMenu * _arg0; | |
8539 | int _arg1; | |
8540 | bool _arg2; | |
1d99702e | 8541 | PyObject * _argo0 = 0; |
8ab979d7 | 8542 | int tempbool2; |
efc5f224 | 8543 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
8544 | |
8545 | self = self; | |
efc5f224 | 8546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
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_Check. Expected _wxMenu_p."); |
8552 | return NULL; | |
8553 | } | |
8554 | } | |
8555 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8556 | { |
4268f798 | 8557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8558 | wxMenu_Check(_arg0,_arg1,_arg2); |
cf694132 | 8559 | |
4268f798 | 8560 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8561 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8562 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8563 | _resultobj = Py_None; |
8564 | return _resultobj; | |
8565 | } | |
8566 | ||
b1462dfa RD |
8567 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8568 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8569 | PyObject * _resultobj; | |
8570 | bool _result; | |
8571 | wxMenu * _arg0; | |
8572 | int _arg1; | |
8573 | PyObject * _argo0 = 0; | |
8574 | char *_kwnames[] = { "self","id", NULL }; | |
8575 | ||
8576 | self = self; | |
8577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
8578 | return NULL; | |
8579 | if (_argo0) { | |
8580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
8583 | return NULL; | |
8584 | } | |
8585 | } | |
8586 | { | |
4268f798 | 8587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8588 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); |
b1462dfa | 8589 | |
4268f798 | 8590 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8591 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8592 | } _resultobj = Py_BuildValue("i",_result); |
8593 | return _resultobj; | |
8594 | } | |
8595 | ||
8ab979d7 | 8596 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 8597 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8598 | PyObject * _resultobj; |
8599 | wxMenu * _arg0; | |
8600 | int _arg1; | |
8601 | bool _arg2; | |
1d99702e | 8602 | PyObject * _argo0 = 0; |
8ab979d7 | 8603 | int tempbool2; |
efc5f224 | 8604 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
8605 | |
8606 | self = self; | |
efc5f224 | 8607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 8608 | return NULL; |
1d99702e RD |
8609 | if (_argo0) { |
8610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
8613 | return NULL; | |
8614 | } | |
8615 | } | |
8616 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8617 | { |
4268f798 | 8618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8619 | wxMenu_Enable(_arg0,_arg1,_arg2); |
cf694132 | 8620 | |
4268f798 | 8621 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8622 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8623 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8624 | _resultobj = Py_None; |
8625 | return _resultobj; | |
8626 | } | |
8627 | ||
b1462dfa RD |
8628 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8629 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8630 | PyObject * _resultobj; | |
8631 | bool _result; | |
8632 | wxMenu * _arg0; | |
8633 | int _arg1; | |
8634 | PyObject * _argo0 = 0; | |
8635 | char *_kwnames[] = { "self","id", NULL }; | |
8636 | ||
8637 | self = self; | |
8638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
8639 | return NULL; | |
8640 | if (_argo0) { | |
8641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
8644 | return NULL; | |
8645 | } | |
8646 | } | |
8647 | { | |
4268f798 | 8648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8649 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); |
b1462dfa | 8650 | |
4268f798 | 8651 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8652 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8653 | } _resultobj = Py_BuildValue("i",_result); |
8654 | return _resultobj; | |
8655 | } | |
8656 | ||
8ab979d7 | 8657 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 8658 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8659 | PyObject * _resultobj; |
8660 | int _result; | |
8661 | wxMenu * _arg0; | |
8662 | wxString * _arg1; | |
1d99702e | 8663 | PyObject * _argo0 = 0; |
8ab979d7 | 8664 | PyObject * _obj1 = 0; |
efc5f224 | 8665 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
8666 | |
8667 | self = self; | |
efc5f224 | 8668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8669 | return NULL; |
1d99702e RD |
8670 | if (_argo0) { |
8671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
8674 | return NULL; | |
8675 | } | |
8676 | } | |
8677 | { | |
c8bc7bb8 RD |
8678 | _arg1 = wxString_in_helper(_obj1); |
8679 | if (_arg1 == NULL) | |
185d7c3e | 8680 | return NULL; |
8ab979d7 | 8681 | } |
cf694132 | 8682 | { |
4268f798 | 8683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8684 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); |
cf694132 | 8685 | |
4268f798 | 8686 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8687 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8688 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8689 | { |
8690 | if (_obj1) | |
8691 | delete _arg1; | |
8692 | } | |
8693 | return _resultobj; | |
8694 | } | |
8695 | ||
b1462dfa RD |
8696 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
8697 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8698 | PyObject * _resultobj; | |
8699 | wxMenuItem * _result; | |
8700 | wxMenu * _arg0; | |
8701 | int _arg1; | |
8702 | PyObject * _argo0 = 0; | |
8703 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
8704 | |
8705 | self = self; | |
8706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8707 | return NULL; | |
8708 | if (_argo0) { | |
8709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
8712 | return NULL; | |
8713 | } | |
8714 | } | |
8715 | { | |
4268f798 | 8716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8717 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); |
b1462dfa | 8718 | |
4268f798 | 8719 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8720 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8721 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
8722 | return _resultobj; |
8723 | } | |
8724 | ||
8ab979d7 | 8725 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 8726 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8727 | PyObject * _resultobj; |
8728 | wxString * _result; | |
8729 | wxMenu * _arg0; | |
1d99702e | 8730 | PyObject * _argo0 = 0; |
efc5f224 | 8731 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8732 | |
8733 | self = self; | |
efc5f224 | 8734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 8735 | return NULL; |
1d99702e RD |
8736 | if (_argo0) { |
8737 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8738 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
8740 | return NULL; | |
8741 | } | |
8742 | } | |
8ab979d7 | 8743 | { |
4268f798 | 8744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8745 | _result = new wxString (wxMenu_GetTitle(_arg0)); |
cf694132 | 8746 | |
4268f798 | 8747 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8748 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8749 | }{ |
c8bc7bb8 RD |
8750 | #if wxUSE_UNICODE |
8751 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8752 | #else | |
eec92d76 | 8753 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8754 | #endif |
8ab979d7 RD |
8755 | } |
8756 | { | |
8757 | delete _result; | |
8758 | } | |
8759 | return _resultobj; | |
8760 | } | |
8761 | ||
8762 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 8763 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8764 | PyObject * _resultobj; |
8765 | wxMenu * _arg0; | |
8766 | wxString * _arg1; | |
1d99702e | 8767 | PyObject * _argo0 = 0; |
8ab979d7 | 8768 | PyObject * _obj1 = 0; |
efc5f224 | 8769 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
8770 | |
8771 | self = self; | |
efc5f224 | 8772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8773 | return NULL; |
1d99702e RD |
8774 | if (_argo0) { |
8775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
8778 | return NULL; | |
8779 | } | |
8780 | } | |
8781 | { | |
c8bc7bb8 RD |
8782 | _arg1 = wxString_in_helper(_obj1); |
8783 | if (_arg1 == NULL) | |
185d7c3e | 8784 | return NULL; |
8ab979d7 | 8785 | } |
cf694132 | 8786 | { |
4268f798 | 8787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8788 | wxMenu_SetTitle(_arg0,*_arg1); |
cf694132 | 8789 | |
4268f798 | 8790 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8791 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8792 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8793 | _resultobj = Py_None; |
8794 | { | |
8795 | if (_obj1) | |
8796 | delete _arg1; | |
8797 | } | |
8798 | return _resultobj; | |
8799 | } | |
8800 | ||
b1462dfa RD |
8801 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
8802 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8803 | PyObject * _resultobj; |
b1462dfa | 8804 | wxString * _result; |
8ab979d7 RD |
8805 | wxMenu * _arg0; |
8806 | int _arg1; | |
1d99702e | 8807 | PyObject * _argo0 = 0; |
efc5f224 | 8808 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8809 | |
8810 | self = self; | |
b1462dfa | 8811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8812 | return NULL; |
1d99702e RD |
8813 | if (_argo0) { |
8814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
8817 | return NULL; |
8818 | } | |
8819 | } | |
cf694132 | 8820 | { |
4268f798 | 8821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8822 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 | 8823 | |
4268f798 | 8824 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8825 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8826 | }{ |
c8bc7bb8 RD |
8827 | #if wxUSE_UNICODE |
8828 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8829 | #else | |
eec92d76 | 8830 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8831 | #endif |
b1462dfa RD |
8832 | } |
8833 | { | |
8834 | delete _result; | |
8835 | } | |
8ab979d7 RD |
8836 | return _resultobj; |
8837 | } | |
8838 | ||
b1462dfa RD |
8839 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
8840 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8841 | PyObject * _resultobj; |
8ab979d7 RD |
8842 | wxMenu * _arg0; |
8843 | int _arg1; | |
b1462dfa | 8844 | wxString * _arg2; |
1d99702e | 8845 | PyObject * _argo0 = 0; |
b1462dfa RD |
8846 | PyObject * _obj2 = 0; |
8847 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
8848 | |
8849 | self = self; | |
b1462dfa | 8850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8851 | return NULL; |
1d99702e RD |
8852 | if (_argo0) { |
8853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
8856 | return NULL; |
8857 | } | |
8858 | } | |
b1462dfa | 8859 | { |
c8bc7bb8 RD |
8860 | _arg2 = wxString_in_helper(_obj2); |
8861 | if (_arg2 == NULL) | |
185d7c3e | 8862 | return NULL; |
b1462dfa | 8863 | } |
8ab979d7 | 8864 | { |
4268f798 | 8865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8866 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 8867 | |
4268f798 | 8868 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8869 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8870 | } Py_INCREF(Py_None); |
8871 | _resultobj = Py_None; | |
8ab979d7 | 8872 | { |
b1462dfa RD |
8873 | if (_obj2) |
8874 | delete _arg2; | |
8ab979d7 RD |
8875 | } |
8876 | return _resultobj; | |
8877 | } | |
8878 | ||
b1462dfa RD |
8879 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
8880 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8881 | PyObject * _resultobj; |
8882 | wxString * _result; | |
8883 | wxMenu * _arg0; | |
8884 | int _arg1; | |
1d99702e | 8885 | PyObject * _argo0 = 0; |
efc5f224 | 8886 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8887 | |
8888 | self = self; | |
b1462dfa | 8889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8890 | return NULL; |
1d99702e RD |
8891 | if (_argo0) { |
8892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
8895 | return NULL; |
8896 | } | |
8897 | } | |
8ab979d7 | 8898 | { |
4268f798 | 8899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8900 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 | 8901 | |
4268f798 | 8902 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8903 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8904 | }{ |
c8bc7bb8 RD |
8905 | #if wxUSE_UNICODE |
8906 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8907 | #else | |
eec92d76 | 8908 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8909 | #endif |
8ab979d7 RD |
8910 | } |
8911 | { | |
8912 | delete _result; | |
8913 | } | |
8914 | return _resultobj; | |
8915 | } | |
8916 | ||
8917 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 8918 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8919 | PyObject * _resultobj; |
8920 | wxMenu * _arg0; | |
8921 | int _arg1; | |
8922 | wxString * _arg2; | |
1d99702e | 8923 | PyObject * _argo0 = 0; |
8ab979d7 | 8924 | PyObject * _obj2 = 0; |
efc5f224 | 8925 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
8926 | |
8927 | self = self; | |
efc5f224 | 8928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8929 | return NULL; |
1d99702e RD |
8930 | if (_argo0) { |
8931 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8932 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
8934 | return NULL; | |
8935 | } | |
8936 | } | |
8937 | { | |
c8bc7bb8 RD |
8938 | _arg2 = wxString_in_helper(_obj2); |
8939 | if (_arg2 == NULL) | |
185d7c3e | 8940 | return NULL; |
8ab979d7 | 8941 | } |
cf694132 | 8942 | { |
4268f798 | 8943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8944 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); |
cf694132 | 8945 | |
4268f798 | 8946 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8947 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8948 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8949 | _resultobj = Py_None; |
8950 | { | |
8951 | if (_obj2) | |
8952 | delete _arg2; | |
8953 | } | |
8954 | return _resultobj; | |
8955 | } | |
8956 | ||
b1462dfa RD |
8957 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
8958 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8959 | PyObject * _resultobj; |
8ab979d7 | 8960 | wxMenu * _arg0; |
b1462dfa | 8961 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 8962 | PyObject * _argo0 = 0; |
b1462dfa RD |
8963 | PyObject * _argo1 = 0; |
8964 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
8965 | |
8966 | self = self; | |
b1462dfa | 8967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8968 | return NULL; |
1d99702e RD |
8969 | if (_argo0) { |
8970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
8972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
8973 | return NULL; | |
8974 | } | |
8975 | } | |
8976 | if (_argo1) { | |
8977 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8978 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
8979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
8980 | return NULL; |
8981 | } | |
8982 | } | |
cf694132 | 8983 | { |
4268f798 | 8984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8985 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 | 8986 | |
4268f798 | 8987 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8988 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8989 | } Py_INCREF(Py_None); |
8990 | _resultobj = Py_None; | |
8ab979d7 RD |
8991 | return _resultobj; |
8992 | } | |
8993 | ||
b1462dfa RD |
8994 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
8995 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8996 | PyObject * _resultobj; |
8997 | bool _result; | |
8998 | wxMenu * _arg0; | |
8999 | int _arg1; | |
1d99702e | 9000 | PyObject * _argo0 = 0; |
efc5f224 | 9001 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9002 | |
9003 | self = self; | |
b1462dfa | 9004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9005 | return NULL; |
1d99702e RD |
9006 | if (_argo0) { |
9007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
9010 | return NULL; |
9011 | } | |
9012 | } | |
cf694132 | 9013 | { |
4268f798 | 9014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9015 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 | 9016 | |
4268f798 | 9017 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9018 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9019 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9020 | return _resultobj; |
9021 | } | |
9022 | ||
b1462dfa RD |
9023 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
9024 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9025 | PyObject * _resultobj; |
b1462dfa | 9026 | bool _result; |
8ab979d7 | 9027 | wxMenu * _arg0; |
b1462dfa | 9028 | wxMenuItem * _arg1; |
1d99702e | 9029 | PyObject * _argo0 = 0; |
b1462dfa RD |
9030 | PyObject * _argo1 = 0; |
9031 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
9032 | |
9033 | self = self; | |
b1462dfa | 9034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9035 | return NULL; |
1d99702e RD |
9036 | if (_argo0) { |
9037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
9040 | return NULL; |
9041 | } | |
9042 | } | |
b1462dfa RD |
9043 | if (_argo1) { |
9044 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9045 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
9046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 9047 | return NULL; |
b1462dfa | 9048 | } |
8ab979d7 | 9049 | } |
cf694132 | 9050 | { |
4268f798 | 9051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9052 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 | 9053 | |
4268f798 | 9054 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9055 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9056 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9057 | return _resultobj; |
9058 | } | |
9059 | ||
b1462dfa RD |
9060 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
9061 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 9062 | PyObject * _resultobj; |
b1462dfa | 9063 | wxMenuItem * _result; |
efc5f224 | 9064 | wxMenu * _arg0; |
b1462dfa | 9065 | int _arg1; |
efc5f224 | 9066 | PyObject * _argo0 = 0; |
b1462dfa | 9067 | char *_kwnames[] = { "self","id", NULL }; |
efc5f224 RD |
9068 | |
9069 | self = self; | |
b1462dfa | 9070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
9071 | return NULL; |
9072 | if (_argo0) { | |
9073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
9076 | return NULL; |
9077 | } | |
9078 | } | |
9079 | { | |
4268f798 | 9080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9081 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 | 9082 | |
4268f798 | 9083 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9084 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9085 | }{ _resultobj = wxPyMake_wxObject(_result); } |
efc5f224 RD |
9086 | return _resultobj; |
9087 | } | |
9088 | ||
b1462dfa RD |
9089 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
9090 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9091 | PyObject * _resultobj; |
b1462dfa RD |
9092 | wxMenuItem * _result; |
9093 | wxMenu * _arg0; | |
9094 | wxMenuItem * _arg1; | |
9095 | PyObject * _argo0 = 0; | |
9096 | PyObject * _argo1 = 0; | |
9097 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
9098 | |
9099 | self = self; | |
b1462dfa RD |
9100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
9101 | return NULL; | |
9102 | if (_argo0) { | |
9103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
9106 | return NULL; | |
9107 | } | |
9108 | } | |
9109 | if (_argo1) { | |
9110 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9111 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
9112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 9113 | return NULL; |
b1462dfa RD |
9114 | } |
9115 | } | |
cf694132 | 9116 | { |
4268f798 | 9117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9118 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 | 9119 | |
4268f798 | 9120 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9121 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9122 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9123 | return _resultobj; |
9124 | } | |
9125 | ||
eb715945 | 9126 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 9127 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 9128 | PyObject * _resultobj; |
b1462dfa | 9129 | wxMenu * _arg0; |
1d99702e | 9130 | PyObject * _argo0 = 0; |
b1462dfa | 9131 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9132 | |
9133 | self = self; | |
b1462dfa | 9134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 9135 | return NULL; |
1d99702e RD |
9136 | if (_argo0) { |
9137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
9140 | return NULL; |
9141 | } | |
9142 | } | |
cf694132 | 9143 | { |
4268f798 | 9144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9145 | wxMenu_Destroy(_arg0); |
cf694132 | 9146 | |
4268f798 | 9147 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9148 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9149 | } Py_INCREF(Py_None); |
8ab979d7 | 9150 | _resultobj = Py_None; |
8ab979d7 RD |
9151 | return _resultobj; |
9152 | } | |
9153 | ||
b1462dfa RD |
9154 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
9155 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9156 | PyObject * _resultobj; |
b1462dfa RD |
9157 | bool _result; |
9158 | wxMenu * _arg0; | |
8ab979d7 | 9159 | int _arg1; |
1d99702e | 9160 | PyObject * _argo0 = 0; |
b1462dfa | 9161 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9162 | |
9163 | self = self; | |
b1462dfa | 9164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9165 | return NULL; |
1d99702e RD |
9166 | if (_argo0) { |
9167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
9170 | return NULL; |
9171 | } | |
9172 | } | |
cf694132 | 9173 | { |
4268f798 | 9174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9175 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 | 9176 | |
4268f798 | 9177 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9178 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9179 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9180 | return _resultobj; |
9181 | } | |
9182 | ||
b1462dfa RD |
9183 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
9184 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9185 | PyObject * _resultobj; |
b1462dfa RD |
9186 | bool _result; |
9187 | wxMenu * _arg0; | |
9188 | wxMenuItem * _arg1; | |
1d99702e | 9189 | PyObject * _argo0 = 0; |
b1462dfa RD |
9190 | PyObject * _argo1 = 0; |
9191 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
9192 | |
9193 | self = self; | |
b1462dfa | 9194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
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_DestroyItem. Expected _wxMenu_p."); | |
9200 | return NULL; | |
9201 | } | |
9202 | } | |
9203 | if (_argo1) { | |
9204 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9205 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
9206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
9207 | return NULL; |
9208 | } | |
9209 | } | |
cf694132 | 9210 | { |
4268f798 | 9211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9212 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 | 9213 | |
4268f798 | 9214 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9215 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9216 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9217 | return _resultobj; |
9218 | } | |
9219 | ||
b1462dfa RD |
9220 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
9221 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9222 | PyObject * _resultobj; |
b1462dfa RD |
9223 | size_t _result; |
9224 | wxMenu * _arg0; | |
1d99702e | 9225 | PyObject * _argo0 = 0; |
b1462dfa | 9226 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9227 | |
9228 | self = self; | |
b1462dfa | 9229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 9230 | return NULL; |
1d99702e RD |
9231 | if (_argo0) { |
9232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
9235 | return NULL; |
9236 | } | |
9237 | } | |
cf694132 | 9238 | { |
4268f798 | 9239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9240 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 | 9241 | |
4268f798 | 9242 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9243 | if (PyErr_Occurred()) return NULL; |
2abc0a0f | 9244 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9245 | return _resultobj; |
9246 | } | |
9247 | ||
b1462dfa RD |
9248 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
9249 | wxMenuItemList& list = self->GetMenuItems(); | |
9250 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
9251 | } | |
9252 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9253 | PyObject * _resultobj; |
b1462dfa RD |
9254 | PyObject * _result; |
9255 | wxMenu * _arg0; | |
1d99702e | 9256 | PyObject * _argo0 = 0; |
b1462dfa | 9257 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9258 | |
9259 | self = self; | |
b1462dfa | 9260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 9261 | return NULL; |
1d99702e RD |
9262 | if (_argo0) { |
9263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
9266 | return NULL; |
9267 | } | |
9268 | } | |
cf694132 | 9269 | { |
4268f798 | 9270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9271 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 | 9272 | |
4268f798 | 9273 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9274 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9275 | }{ |
9276 | _resultobj = _result; | |
9277 | } | |
8ab979d7 RD |
9278 | return _resultobj; |
9279 | } | |
9280 | ||
b1462dfa RD |
9281 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
9282 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9283 | PyObject * _resultobj; |
b1462dfa RD |
9284 | wxMenu * _arg0; |
9285 | wxEvtHandler * _arg1; | |
1d99702e | 9286 | PyObject * _argo0 = 0; |
b1462dfa RD |
9287 | PyObject * _argo1 = 0; |
9288 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
9289 | |
9290 | self = self; | |
b1462dfa | 9291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9292 | return NULL; |
1d99702e RD |
9293 | if (_argo0) { |
9294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
9297 | return NULL; |
9298 | } | |
9299 | } | |
b1462dfa RD |
9300 | if (_argo1) { |
9301 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9302 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
9303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 9304 | return NULL; |
b1462dfa | 9305 | } |
8ab979d7 | 9306 | } |
cf694132 | 9307 | { |
4268f798 | 9308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9309 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 | 9310 | |
4268f798 | 9311 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9312 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9313 | } Py_INCREF(Py_None); |
9314 | _resultobj = Py_None; | |
8ab979d7 RD |
9315 | return _resultobj; |
9316 | } | |
9317 | ||
b1462dfa RD |
9318 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
9319 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9320 | PyObject * _resultobj; |
b1462dfa RD |
9321 | wxEvtHandler * _result; |
9322 | wxMenu * _arg0; | |
1d99702e | 9323 | PyObject * _argo0 = 0; |
b1462dfa | 9324 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9325 | |
9326 | self = self; | |
b1462dfa | 9327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 9328 | return NULL; |
1d99702e RD |
9329 | if (_argo0) { |
9330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
9333 | return NULL; |
9334 | } | |
9335 | } | |
cf694132 | 9336 | { |
4268f798 | 9337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9338 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 | 9339 | |
4268f798 | 9340 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9341 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9342 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9343 | return _resultobj; |
9344 | } | |
9345 | ||
b1462dfa RD |
9346 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
9347 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 9348 | PyObject * _resultobj; |
b1462dfa RD |
9349 | wxMenu * _arg0; |
9350 | wxWindow * _arg1; | |
2f90df85 | 9351 | PyObject * _argo0 = 0; |
b1462dfa RD |
9352 | PyObject * _argo1 = 0; |
9353 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
9354 | |
9355 | self = self; | |
b1462dfa | 9356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
9357 | return NULL; |
9358 | if (_argo0) { | |
9359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
9362 | return NULL; |
9363 | } | |
9364 | } | |
b1462dfa RD |
9365 | if (_argo1) { |
9366 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9367 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 9369 | return NULL; |
b1462dfa | 9370 | } |
2f90df85 | 9371 | } |
2f90df85 | 9372 | { |
4268f798 | 9373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9374 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 | 9375 | |
4268f798 | 9376 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9377 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
9378 | } Py_INCREF(Py_None); |
9379 | _resultobj = Py_None; | |
2f90df85 RD |
9380 | return _resultobj; |
9381 | } | |
9382 | ||
b1462dfa RD |
9383 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
9384 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9385 | PyObject * _resultobj; |
b1462dfa RD |
9386 | wxWindow * _result; |
9387 | wxMenu * _arg0; | |
1d99702e | 9388 | PyObject * _argo0 = 0; |
b1462dfa | 9389 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9390 | |
9391 | self = self; | |
b1462dfa | 9392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 9393 | return NULL; |
1d99702e RD |
9394 | if (_argo0) { |
9395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
9398 | return NULL; |
9399 | } | |
9400 | } | |
cf694132 | 9401 | { |
4268f798 | 9402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9403 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 | 9404 | |
4268f798 | 9405 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9406 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9407 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9408 | return _resultobj; |
9409 | } | |
9410 | ||
b1462dfa RD |
9411 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
9412 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9413 | PyObject * _resultobj; |
b1462dfa RD |
9414 | long _result; |
9415 | wxMenu * _arg0; | |
1d99702e | 9416 | PyObject * _argo0 = 0; |
b1462dfa | 9417 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9418 | |
9419 | self = self; | |
b1462dfa | 9420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 9421 | return NULL; |
1d99702e RD |
9422 | if (_argo0) { |
9423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
9426 | return NULL; |
9427 | } | |
9428 | } | |
8ab979d7 | 9429 | { |
4268f798 | 9430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9431 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 | 9432 | |
4268f798 | 9433 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9434 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9435 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9436 | return _resultobj; |
9437 | } | |
9438 | ||
b1462dfa RD |
9439 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
9440 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9441 | PyObject * _resultobj; |
b1462dfa RD |
9442 | bool _result; |
9443 | wxMenu * _arg0; | |
1d99702e | 9444 | PyObject * _argo0 = 0; |
b1462dfa | 9445 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9446 | |
9447 | self = self; | |
b1462dfa | 9448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 9449 | return NULL; |
1d99702e RD |
9450 | if (_argo0) { |
9451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
9454 | return NULL; |
9455 | } | |
9456 | } | |
8ab979d7 | 9457 | { |
4268f798 | 9458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9459 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 | 9460 | |
4268f798 | 9461 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9462 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9463 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9464 | return _resultobj; |
9465 | } | |
9466 | ||
b1462dfa RD |
9467 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
9468 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9469 | PyObject * _resultobj; |
b1462dfa RD |
9470 | wxMenu * _arg0; |
9471 | wxMenu * _arg1; | |
1d99702e | 9472 | PyObject * _argo0 = 0; |
b1462dfa RD |
9473 | PyObject * _argo1 = 0; |
9474 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
9475 | |
9476 | self = self; | |
b1462dfa | 9477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9478 | return NULL; |
1d99702e RD |
9479 | if (_argo0) { |
9480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
9483 | return NULL; |
9484 | } | |
9485 | } | |
b1462dfa RD |
9486 | if (_argo1) { |
9487 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9488 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 9490 | return NULL; |
b1462dfa | 9491 | } |
8ab979d7 | 9492 | } |
cf694132 | 9493 | { |
4268f798 | 9494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9495 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 | 9496 | |
4268f798 | 9497 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9498 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9499 | } Py_INCREF(Py_None); |
8ab979d7 | 9500 | _resultobj = Py_None; |
8ab979d7 RD |
9501 | return _resultobj; |
9502 | } | |
9503 | ||
b1462dfa RD |
9504 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
9505 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9506 | PyObject * _resultobj; |
b1462dfa RD |
9507 | wxMenu * _result; |
9508 | wxMenu * _arg0; | |
1d99702e | 9509 | PyObject * _argo0 = 0; |
b1462dfa | 9510 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9511 | |
9512 | self = self; | |
b1462dfa | 9513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 9514 | return NULL; |
1d99702e RD |
9515 | if (_argo0) { |
9516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
9519 | return NULL; |
9520 | } | |
9521 | } | |
8ab979d7 | 9522 | { |
4268f798 | 9523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9524 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 | 9525 | |
4268f798 | 9526 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9527 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9528 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 9529 | return _resultobj; |
8ab979d7 | 9530 | } |
b1462dfa RD |
9531 | |
9532 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
9533 | wxMenuBar *src; | |
9534 | wxWindow *dest; | |
9535 | src = (wxMenuBar *) ptr; | |
9536 | dest = (wxWindow *) src; | |
9537 | return (void *) dest; | |
9538 | } | |
9539 | ||
9540 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
9541 | wxMenuBar *src; | |
9542 | wxEvtHandler *dest; | |
9543 | src = (wxMenuBar *) ptr; | |
9544 | dest = (wxEvtHandler *) src; | |
9545 | return (void *) dest; | |
8ab979d7 | 9546 | } |
b1462dfa | 9547 | |
9416aa89 RD |
9548 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
9549 | wxMenuBar *src; | |
9550 | wxObject *dest; | |
9551 | src = (wxMenuBar *) ptr; | |
9552 | dest = (wxObject *) src; | |
9553 | return (void *) dest; | |
9554 | } | |
9555 | ||
c368d904 | 9556 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
9557 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9558 | PyObject * _resultobj; | |
9559 | wxMenuBar * _result; | |
c368d904 RD |
9560 | long _arg0 = (long ) 0; |
9561 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
9562 | char _ptemp[128]; |
9563 | ||
9564 | self = self; | |
c368d904 | 9565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
9566 | return NULL; |
9567 | { | |
4268f798 | 9568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9569 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa | 9570 | |
4268f798 | 9571 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9572 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9573 | } if (_result) { |
9574 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
9575 | _resultobj = Py_BuildValue("s",_ptemp); | |
9576 | } else { | |
9577 | Py_INCREF(Py_None); | |
9578 | _resultobj = Py_None; | |
9579 | } | |
8ab979d7 RD |
9580 | return _resultobj; |
9581 | } | |
9582 | ||
b1462dfa RD |
9583 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
9584 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9585 | PyObject * _resultobj; |
b1462dfa | 9586 | bool _result; |
8ab979d7 | 9587 | wxMenuBar * _arg0; |
b1462dfa | 9588 | wxMenu * _arg1; |
8ab979d7 | 9589 | wxString * _arg2; |
1d99702e | 9590 | PyObject * _argo0 = 0; |
b1462dfa | 9591 | PyObject * _argo1 = 0; |
8ab979d7 | 9592 | PyObject * _obj2 = 0; |
b1462dfa | 9593 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
9594 | |
9595 | self = self; | |
b1462dfa | 9596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 9597 | return NULL; |
1d99702e RD |
9598 | if (_argo0) { |
9599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
9601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
9602 | return NULL; | |
9603 | } | |
9604 | } | |
9605 | if (_argo1) { | |
9606 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9607 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
9609 | return NULL; |
9610 | } | |
9611 | } | |
9612 | { | |
c8bc7bb8 RD |
9613 | _arg2 = wxString_in_helper(_obj2); |
9614 | if (_arg2 == NULL) | |
185d7c3e | 9615 | return NULL; |
8ab979d7 | 9616 | } |
cf694132 | 9617 | { |
4268f798 | 9618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9619 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 | 9620 | |
4268f798 | 9621 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9622 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9623 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9624 | { |
9625 | if (_obj2) | |
9626 | delete _arg2; | |
9627 | } | |
9628 | return _resultobj; | |
9629 | } | |
9630 | ||
b1462dfa RD |
9631 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
9632 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9633 | PyObject * _resultobj; |
b1462dfa | 9634 | bool _result; |
8ab979d7 | 9635 | wxMenuBar * _arg0; |
b1462dfa RD |
9636 | size_t _arg1; |
9637 | wxMenu * _arg2; | |
9638 | wxString * _arg3; | |
1d99702e | 9639 | PyObject * _argo0 = 0; |
b1462dfa RD |
9640 | PyObject * _argo2 = 0; |
9641 | PyObject * _obj3 = 0; | |
9642 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
9643 | |
9644 | self = self; | |
b1462dfa | 9645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 9646 | return NULL; |
1d99702e RD |
9647 | if (_argo0) { |
9648 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9649 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
9650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
9651 | return NULL; | |
9652 | } | |
9653 | } | |
9654 | if (_argo2) { | |
9655 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9656 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
9657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
9658 | return NULL; |
9659 | } | |
9660 | } | |
b1462dfa | 9661 | { |
c8bc7bb8 RD |
9662 | _arg3 = wxString_in_helper(_obj3); |
9663 | if (_arg3 == NULL) | |
185d7c3e | 9664 | return NULL; |
b1462dfa | 9665 | } |
cf694132 | 9666 | { |
4268f798 | 9667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9668 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 9669 | |
4268f798 | 9670 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9671 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9672 | } _resultobj = Py_BuildValue("i",_result); |
b1462dfa RD |
9673 | { |
9674 | if (_obj3) | |
9675 | delete _arg3; | |
9676 | } | |
8ab979d7 RD |
9677 | return _resultobj; |
9678 | } | |
9679 | ||
b1462dfa RD |
9680 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
9681 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9682 | PyObject * _resultobj; |
b1462dfa | 9683 | size_t _result; |
8ab979d7 | 9684 | wxMenuBar * _arg0; |
1d99702e | 9685 | PyObject * _argo0 = 0; |
b1462dfa | 9686 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9687 | |
9688 | self = self; | |
b1462dfa | 9689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 9690 | return NULL; |
1d99702e RD |
9691 | if (_argo0) { |
9692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 9694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
9695 | return NULL; |
9696 | } | |
9697 | } | |
cf694132 | 9698 | { |
4268f798 | 9699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9700 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 | 9701 | |
4268f798 | 9702 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9703 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9704 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9705 | return _resultobj; |
9706 | } | |
9707 | ||
b1462dfa RD |
9708 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
9709 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 9710 | PyObject * _resultobj; |
b1462dfa | 9711 | wxMenu * _result; |
06c0fba4 | 9712 | wxMenuBar * _arg0; |
b1462dfa | 9713 | size_t _arg1; |
06c0fba4 | 9714 | PyObject * _argo0 = 0; |
b1462dfa | 9715 | char *_kwnames[] = { "self","pos", NULL }; |
06c0fba4 RD |
9716 | |
9717 | self = self; | |
b1462dfa | 9718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
9719 | return NULL; |
9720 | if (_argo0) { | |
9721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 9723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
9724 | return NULL; |
9725 | } | |
9726 | } | |
9727 | { | |
4268f798 | 9728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9729 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 | 9730 | |
4268f798 | 9731 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9732 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9733 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
9734 | return _resultobj; |
9735 | } | |
9736 | ||
2abc0a0f RD |
9737 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
9738 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9739 | PyObject * _resultobj; | |
9740 | wxMenu * _result; | |
9741 | wxMenuBar * _arg0; | |
9742 | size_t _arg1; | |
9743 | wxMenu * _arg2; | |
9744 | wxString * _arg3; | |
9745 | PyObject * _argo0 = 0; | |
9746 | PyObject * _argo2 = 0; | |
9747 | PyObject * _obj3 = 0; | |
9748 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
2abc0a0f RD |
9749 | |
9750 | self = self; | |
9751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
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_Replace. Expected _wxMenuBar_p."); | |
9757 | return NULL; | |
9758 | } | |
9759 | } | |
9760 | if (_argo2) { | |
9761 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9762 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
9763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
9764 | return NULL; | |
9765 | } | |
9766 | } | |
9767 | { | |
c8bc7bb8 RD |
9768 | _arg3 = wxString_in_helper(_obj3); |
9769 | if (_arg3 == NULL) | |
185d7c3e | 9770 | return NULL; |
2abc0a0f RD |
9771 | } |
9772 | { | |
4268f798 | 9773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9774 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); |
2abc0a0f | 9775 | |
4268f798 | 9776 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9777 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9778 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
9779 | { |
9780 | if (_obj3) | |
9781 | delete _arg3; | |
9782 | } | |
9783 | return _resultobj; | |
9784 | } | |
9785 | ||
9786 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
9787 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9788 | PyObject * _resultobj; | |
9789 | wxMenu * _result; | |
9790 | wxMenuBar * _arg0; | |
9791 | size_t _arg1; | |
9792 | PyObject * _argo0 = 0; | |
9793 | char *_kwnames[] = { "self","pos", NULL }; | |
2abc0a0f RD |
9794 | |
9795 | self = self; | |
9796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
9797 | return NULL; | |
9798 | if (_argo0) { | |
9799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
9802 | return NULL; | |
9803 | } | |
9804 | } | |
9805 | { | |
4268f798 | 9806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9807 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); |
2abc0a0f | 9808 | |
4268f798 | 9809 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9810 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9811 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
9812 | return _resultobj; |
9813 | } | |
9814 | ||
b1462dfa RD |
9815 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
9816 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9817 | PyObject * _resultobj; |
b1462dfa RD |
9818 | wxMenuBar * _arg0; |
9819 | size_t _arg1; | |
9820 | bool _arg2; | |
9821 | PyObject * _argo0 = 0; | |
9822 | int tempbool2; | |
9823 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
9824 | ||
9825 | self = self; | |
9826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9827 | return NULL; | |
9828 | if (_argo0) { | |
9829 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9830 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
9832 | return NULL; | |
9833 | } | |
9834 | } | |
9835 | _arg2 = (bool ) tempbool2; | |
9836 | { | |
4268f798 | 9837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9838 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); |
b1462dfa | 9839 | |
4268f798 | 9840 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9841 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9842 | } Py_INCREF(Py_None); |
9843 | _resultobj = Py_None; | |
9844 | return _resultobj; | |
9845 | } | |
9846 | ||
9847 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
9848 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9849 | PyObject * _resultobj; | |
9850 | wxMenuBar * _arg0; | |
9851 | size_t _arg1; | |
9852 | wxString * _arg2; | |
1d99702e | 9853 | PyObject * _argo0 = 0; |
cf694132 | 9854 | PyObject * _obj2 = 0; |
b1462dfa | 9855 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
9856 | |
9857 | self = self; | |
b1462dfa | 9858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 9859 | return NULL; |
1d99702e RD |
9860 | if (_argo0) { |
9861 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9862 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
9864 | return NULL; |
9865 | } | |
9866 | } | |
cf694132 | 9867 | { |
c8bc7bb8 RD |
9868 | _arg2 = wxString_in_helper(_obj2); |
9869 | if (_arg2 == NULL) | |
185d7c3e | 9870 | return NULL; |
cf694132 | 9871 | } |
cf694132 | 9872 | { |
4268f798 | 9873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9874 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); |
b1462dfa | 9875 | |
4268f798 | 9876 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9877 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9878 | } Py_INCREF(Py_None); |
9879 | _resultobj = Py_None; | |
9880 | { | |
9881 | if (_obj2) | |
9882 | delete _arg2; | |
9883 | } | |
9884 | return _resultobj; | |
9885 | } | |
9886 | ||
9887 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
9888 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9889 | PyObject * _resultobj; | |
9890 | wxString * _result; | |
9891 | wxMenuBar * _arg0; | |
9892 | size_t _arg1; | |
9893 | PyObject * _argo0 = 0; | |
9894 | char *_kwnames[] = { "self","pos", NULL }; | |
9895 | ||
9896 | self = self; | |
9897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
9898 | return NULL; | |
9899 | if (_argo0) { | |
9900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
9903 | return NULL; | |
9904 | } | |
9905 | } | |
9906 | { | |
4268f798 | 9907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9908 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); |
b1462dfa | 9909 | |
4268f798 | 9910 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9911 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9912 | }{ |
c8bc7bb8 RD |
9913 | #if wxUSE_UNICODE |
9914 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9915 | #else | |
eec92d76 | 9916 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9917 | #endif |
b1462dfa RD |
9918 | } |
9919 | { | |
9920 | delete _result; | |
9921 | } | |
9922 | return _resultobj; | |
9923 | } | |
9924 | ||
3a0958b1 RD |
9925 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) |
9926 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9927 | PyObject * _resultobj; | |
9928 | int _result; | |
9929 | wxMenuBar * _arg0; | |
9930 | wxString * _arg1; | |
9931 | PyObject * _argo0 = 0; | |
9932 | PyObject * _obj1 = 0; | |
9933 | char *_kwnames[] = { "self","title", NULL }; | |
9934 | ||
9935 | self = self; | |
9936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) | |
9937 | return NULL; | |
9938 | if (_argo0) { | |
9939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); | |
9942 | return NULL; | |
9943 | } | |
9944 | } | |
9945 | { | |
c8bc7bb8 RD |
9946 | _arg1 = wxString_in_helper(_obj1); |
9947 | if (_arg1 == NULL) | |
3a0958b1 | 9948 | return NULL; |
3a0958b1 RD |
9949 | } |
9950 | { | |
4268f798 | 9951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9952 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); |
3a0958b1 | 9953 | |
4268f798 | 9954 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
9955 | if (PyErr_Occurred()) return NULL; |
9956 | } _resultobj = Py_BuildValue("i",_result); | |
9957 | { | |
9958 | if (_obj1) | |
9959 | delete _arg1; | |
9960 | } | |
9961 | return _resultobj; | |
9962 | } | |
9963 | ||
b1462dfa RD |
9964 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) |
9965 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9966 | PyObject * _resultobj; | |
9967 | int _result; | |
9968 | wxMenuBar * _arg0; | |
9969 | wxString * _arg1; | |
9970 | wxString * _arg2; | |
9971 | PyObject * _argo0 = 0; | |
9972 | PyObject * _obj1 = 0; | |
9973 | PyObject * _obj2 = 0; | |
9974 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
9975 | ||
9976 | self = self; | |
9977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9978 | return NULL; | |
9979 | if (_argo0) { | |
9980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
9983 | return NULL; | |
9984 | } | |
9985 | } | |
9986 | { | |
c8bc7bb8 RD |
9987 | _arg1 = wxString_in_helper(_obj1); |
9988 | if (_arg1 == NULL) | |
185d7c3e | 9989 | return NULL; |
cf694132 | 9990 | } |
b1462dfa | 9991 | { |
c8bc7bb8 RD |
9992 | _arg2 = wxString_in_helper(_obj2); |
9993 | if (_arg2 == NULL) | |
b1462dfa | 9994 | return NULL; |
b1462dfa RD |
9995 | } |
9996 | { | |
4268f798 | 9997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9998 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); |
b1462dfa | 9999 | |
4268f798 | 10000 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10001 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10002 | } _resultobj = Py_BuildValue("i",_result); |
10003 | { | |
10004 | if (_obj1) | |
10005 | delete _arg1; | |
10006 | } | |
10007 | { | |
10008 | if (_obj2) | |
10009 | delete _arg2; | |
10010 | } | |
10011 | return _resultobj; | |
10012 | } | |
10013 | ||
10014 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
10015 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10016 | PyObject * _resultobj; | |
10017 | wxMenuItem * _result; | |
10018 | wxMenuBar * _arg0; | |
10019 | int _arg1; | |
10020 | PyObject * _argo0 = 0; | |
10021 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
10022 | |
10023 | self = self; | |
10024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
10025 | return NULL; | |
10026 | if (_argo0) { | |
10027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
10030 | return NULL; |
10031 | } | |
10032 | } | |
10033 | { | |
4268f798 | 10034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10035 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 | 10036 | |
4268f798 | 10037 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10038 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 10039 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 10040 | return _resultobj; |
cf694132 | 10041 | } |
b1462dfa RD |
10042 | |
10043 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
10044 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10045 | PyObject * _resultobj; | |
10046 | wxMenuBar * _arg0; | |
10047 | int _arg1; | |
10048 | bool _arg2; | |
10049 | PyObject * _argo0 = 0; | |
10050 | int tempbool2; | |
10051 | char *_kwnames[] = { "self","id","enable", NULL }; | |
10052 | ||
10053 | self = self; | |
10054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
10055 | return NULL; | |
10056 | if (_argo0) { | |
10057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
10060 | return NULL; | |
10061 | } | |
10062 | } | |
10063 | _arg2 = (bool ) tempbool2; | |
cf694132 | 10064 | { |
4268f798 | 10065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10066 | wxMenuBar_Enable(_arg0,_arg1,_arg2); |
b1462dfa | 10067 | |
4268f798 | 10068 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10069 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10070 | } Py_INCREF(Py_None); |
10071 | _resultobj = Py_None; | |
10072 | return _resultobj; | |
cf694132 | 10073 | } |
b1462dfa RD |
10074 | |
10075 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
10076 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10077 | PyObject * _resultobj; | |
10078 | wxMenuBar * _arg0; | |
10079 | int _arg1; | |
10080 | bool _arg2; | |
10081 | PyObject * _argo0 = 0; | |
10082 | int tempbool2; | |
10083 | char *_kwnames[] = { "self","id","check", NULL }; | |
10084 | ||
10085 | self = self; | |
10086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
10087 | return NULL; | |
10088 | if (_argo0) { | |
10089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
10092 | return NULL; | |
10093 | } | |
10094 | } | |
10095 | _arg2 = (bool ) tempbool2; | |
10096 | { | |
4268f798 | 10097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10098 | wxMenuBar_Check(_arg0,_arg1,_arg2); |
b1462dfa | 10099 | |
4268f798 | 10100 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10101 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10102 | } Py_INCREF(Py_None); |
10103 | _resultobj = Py_None; | |
cf694132 RD |
10104 | return _resultobj; |
10105 | } | |
10106 | ||
b1462dfa RD |
10107 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
10108 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10109 | PyObject * _resultobj; |
10110 | bool _result; | |
b1462dfa RD |
10111 | wxMenuBar * _arg0; |
10112 | int _arg1; | |
1d99702e | 10113 | PyObject * _argo0 = 0; |
b1462dfa | 10114 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10115 | |
10116 | self = self; | |
b1462dfa | 10117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10118 | return NULL; |
1d99702e RD |
10119 | if (_argo0) { |
10120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10123 | return NULL; |
10124 | } | |
10125 | } | |
cf694132 | 10126 | { |
4268f798 | 10127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10128 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 | 10129 | |
4268f798 | 10130 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10131 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10132 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10133 | return _resultobj; |
10134 | } | |
10135 | ||
b1462dfa RD |
10136 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
10137 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10138 | PyObject * _resultobj; |
10139 | bool _result; | |
b1462dfa RD |
10140 | wxMenuBar * _arg0; |
10141 | int _arg1; | |
1d99702e | 10142 | PyObject * _argo0 = 0; |
b1462dfa | 10143 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10144 | |
10145 | self = self; | |
b1462dfa | 10146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10147 | return NULL; |
1d99702e RD |
10148 | if (_argo0) { |
10149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10152 | return NULL; |
10153 | } | |
10154 | } | |
cf694132 | 10155 | { |
4268f798 | 10156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10157 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 | 10158 | |
4268f798 | 10159 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10160 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10161 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10162 | return _resultobj; |
10163 | } | |
10164 | ||
b1462dfa RD |
10165 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
10166 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10167 | PyObject * _resultobj; |
b1462dfa RD |
10168 | wxMenuBar * _arg0; |
10169 | int _arg1; | |
10170 | wxString * _arg2; | |
1d99702e | 10171 | PyObject * _argo0 = 0; |
b1462dfa RD |
10172 | PyObject * _obj2 = 0; |
10173 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
10174 | |
10175 | self = self; | |
b1462dfa | 10176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 10177 | return NULL; |
1d99702e RD |
10178 | if (_argo0) { |
10179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10182 | return NULL; |
10183 | } | |
10184 | } | |
b1462dfa | 10185 | { |
c8bc7bb8 RD |
10186 | _arg2 = wxString_in_helper(_obj2); |
10187 | if (_arg2 == NULL) | |
b1462dfa | 10188 | return NULL; |
b1462dfa | 10189 | } |
cf694132 | 10190 | { |
4268f798 | 10191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10192 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 10193 | |
4268f798 | 10194 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10195 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10196 | } Py_INCREF(Py_None); |
10197 | _resultobj = Py_None; | |
10198 | { | |
10199 | if (_obj2) | |
10200 | delete _arg2; | |
10201 | } | |
8ab979d7 RD |
10202 | return _resultobj; |
10203 | } | |
10204 | ||
b1462dfa RD |
10205 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
10206 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10207 | PyObject * _resultobj; |
b1462dfa RD |
10208 | wxString * _result; |
10209 | wxMenuBar * _arg0; | |
10210 | int _arg1; | |
1d99702e | 10211 | PyObject * _argo0 = 0; |
b1462dfa | 10212 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10213 | |
10214 | self = self; | |
b1462dfa | 10215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10216 | return NULL; |
1d99702e RD |
10217 | if (_argo0) { |
10218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
10221 | return NULL; | |
10222 | } | |
10223 | } | |
10224 | { | |
4268f798 | 10225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10226 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); |
b1462dfa | 10227 | |
4268f798 | 10228 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10229 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10230 | }{ |
c8bc7bb8 RD |
10231 | #if wxUSE_UNICODE |
10232 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10233 | #else | |
eec92d76 | 10234 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10235 | #endif |
b1462dfa RD |
10236 | } |
10237 | { | |
10238 | delete _result; | |
10239 | } | |
10240 | return _resultobj; | |
10241 | } | |
10242 | ||
10243 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
10244 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10245 | PyObject * _resultobj; | |
10246 | wxMenuBar * _arg0; | |
10247 | int _arg1; | |
10248 | wxString * _arg2; | |
10249 | PyObject * _argo0 = 0; | |
10250 | PyObject * _obj2 = 0; | |
10251 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
10252 | ||
10253 | self = self; | |
10254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
10255 | return NULL; | |
10256 | if (_argo0) { | |
10257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
10260 | return NULL; | |
10261 | } | |
10262 | } | |
10263 | { | |
c8bc7bb8 RD |
10264 | _arg2 = wxString_in_helper(_obj2); |
10265 | if (_arg2 == NULL) | |
b1462dfa | 10266 | return NULL; |
b1462dfa RD |
10267 | } |
10268 | { | |
4268f798 | 10269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10270 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); |
b1462dfa | 10271 | |
4268f798 | 10272 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10273 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10274 | } Py_INCREF(Py_None); |
10275 | _resultobj = Py_None; | |
10276 | { | |
10277 | if (_obj2) | |
10278 | delete _arg2; | |
10279 | } | |
10280 | return _resultobj; | |
10281 | } | |
10282 | ||
10283 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
10284 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10285 | PyObject * _resultobj; | |
10286 | wxString * _result; | |
10287 | wxMenuBar * _arg0; | |
10288 | int _arg1; | |
10289 | PyObject * _argo0 = 0; | |
10290 | char *_kwnames[] = { "self","id", NULL }; | |
10291 | ||
10292 | self = self; | |
10293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
10294 | return NULL; | |
10295 | if (_argo0) { | |
10296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10299 | return NULL; |
10300 | } | |
10301 | } | |
cf694132 | 10302 | { |
4268f798 | 10303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10304 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 | 10305 | |
4268f798 | 10306 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10307 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10308 | }{ |
c8bc7bb8 RD |
10309 | #if wxUSE_UNICODE |
10310 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10311 | #else | |
eec92d76 | 10312 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10313 | #endif |
b1462dfa RD |
10314 | } |
10315 | { | |
10316 | delete _result; | |
10317 | } | |
8ab979d7 RD |
10318 | return _resultobj; |
10319 | } | |
10320 | ||
9416aa89 RD |
10321 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
10322 | wxMenuItem *src; | |
10323 | wxObject *dest; | |
10324 | src = (wxMenuItem *) ptr; | |
10325 | dest = (wxObject *) src; | |
10326 | return (void *) dest; | |
10327 | } | |
10328 | ||
b1462dfa RD |
10329 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
10330 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10331 | PyObject * _resultobj; |
b1462dfa RD |
10332 | wxMenuItem * _result; |
10333 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 10334 | int _arg1 = (int ) wxID_SEPARATOR; |
137b5242 RD |
10335 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
10336 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
546bfbea | 10337 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
b1462dfa | 10338 | wxMenu * _arg5 = (wxMenu *) NULL; |
1d99702e | 10339 | PyObject * _argo0 = 0; |
b1462dfa RD |
10340 | PyObject * _obj2 = 0; |
10341 | PyObject * _obj3 = 0; | |
b1462dfa | 10342 | PyObject * _argo5 = 0; |
e9159fe8 | 10343 | char *_kwnames[] = { "parentMenu","id","text","help","kind","subMenu", NULL }; |
b1462dfa | 10344 | char _ptemp[128]; |
8ab979d7 RD |
10345 | |
10346 | self = self; | |
e9159fe8 | 10347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5)) |
8ab979d7 | 10348 | return NULL; |
1d99702e RD |
10349 | if (_argo0) { |
10350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
10352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
10353 | return NULL; | |
10354 | } | |
10355 | } | |
10356 | if (_obj2) | |
10357 | { | |
c8bc7bb8 RD |
10358 | _arg2 = wxString_in_helper(_obj2); |
10359 | if (_arg2 == NULL) | |
b1462dfa | 10360 | return NULL; |
b1462dfa RD |
10361 | } |
10362 | if (_obj3) | |
10363 | { | |
c8bc7bb8 RD |
10364 | _arg3 = wxString_in_helper(_obj3); |
10365 | if (_arg3 == NULL) | |
b1462dfa | 10366 | return NULL; |
b1462dfa | 10367 | } |
b1462dfa RD |
10368 | if (_argo5) { |
10369 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
10370 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
10371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
10372 | return NULL; |
10373 | } | |
10374 | } | |
cf694132 | 10375 | { |
4268f798 | 10376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10377 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 | 10378 | |
4268f798 | 10379 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10380 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10381 | } if (_result) { |
10382 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
10383 | _resultobj = Py_BuildValue("s",_ptemp); | |
10384 | } else { | |
10385 | Py_INCREF(Py_None); | |
10386 | _resultobj = Py_None; | |
10387 | } | |
10388 | { | |
10389 | if (_obj2) | |
10390 | delete _arg2; | |
10391 | } | |
10392 | { | |
10393 | if (_obj3) | |
10394 | delete _arg3; | |
10395 | } | |
8ab979d7 RD |
10396 | return _resultobj; |
10397 | } | |
10398 | ||
b1462dfa RD |
10399 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
10400 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10401 | PyObject * _resultobj; |
b1462dfa | 10402 | wxMenu * _result; |
8ab979d7 | 10403 | wxMenuItem * _arg0; |
1d99702e | 10404 | PyObject * _argo0 = 0; |
efc5f224 | 10405 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10406 | |
10407 | self = self; | |
b1462dfa | 10408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 10409 | return NULL; |
1d99702e RD |
10410 | if (_argo0) { |
10411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10414 | return NULL; |
10415 | } | |
10416 | } | |
cf694132 | 10417 | { |
4268f798 | 10418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10419 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 | 10420 | |
4268f798 | 10421 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10422 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 10423 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
10424 | return _resultobj; |
10425 | } | |
10426 | ||
2abc0a0f RD |
10427 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
10428 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10429 | PyObject * _resultobj; |
10430 | wxMenuItem * _arg0; | |
2abc0a0f | 10431 | int _arg1; |
1d99702e | 10432 | PyObject * _argo0 = 0; |
2abc0a0f | 10433 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10434 | |
10435 | self = self; | |
2abc0a0f | 10436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10437 | return NULL; |
1d99702e RD |
10438 | if (_argo0) { |
10439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 10441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10442 | return NULL; |
10443 | } | |
10444 | } | |
cf694132 | 10445 | { |
4268f798 | 10446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10447 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 | 10448 | |
4268f798 | 10449 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10450 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10451 | } Py_INCREF(Py_None); |
8ab979d7 | 10452 | _resultobj = Py_None; |
8ab979d7 RD |
10453 | return _resultobj; |
10454 | } | |
10455 | ||
b1462dfa RD |
10456 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
10457 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10458 | PyObject * _resultobj; |
b1462dfa | 10459 | int _result; |
8ab979d7 | 10460 | wxMenuItem * _arg0; |
1d99702e | 10461 | PyObject * _argo0 = 0; |
efc5f224 | 10462 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10463 | |
10464 | self = self; | |
b1462dfa | 10465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 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_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10471 | return NULL; |
10472 | } | |
10473 | } | |
8ab979d7 | 10474 | { |
4268f798 | 10475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10476 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 | 10477 | |
4268f798 | 10478 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10479 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10480 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10481 | return _resultobj; |
10482 | } | |
10483 | ||
b1462dfa RD |
10484 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
10485 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10486 | PyObject * _resultobj; |
b1462dfa | 10487 | bool _result; |
8ab979d7 | 10488 | wxMenuItem * _arg0; |
1d99702e | 10489 | PyObject * _argo0 = 0; |
efc5f224 | 10490 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10491 | |
10492 | self = self; | |
b1462dfa | 10493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 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_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10499 | return NULL; |
10500 | } | |
10501 | } | |
8ab979d7 | 10502 | { |
4268f798 | 10503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10504 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 | 10505 | |
4268f798 | 10506 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10507 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10508 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10509 | return _resultobj; |
10510 | } | |
10511 | ||
b1462dfa RD |
10512 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
10513 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10514 | PyObject * _resultobj; |
10515 | wxMenuItem * _arg0; | |
10516 | wxString * _arg1; | |
1d99702e | 10517 | PyObject * _argo0 = 0; |
8ab979d7 | 10518 | PyObject * _obj1 = 0; |
b1462dfa | 10519 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
10520 | |
10521 | self = self; | |
b1462dfa | 10522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 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_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10528 | return NULL; |
10529 | } | |
10530 | } | |
10531 | { | |
c8bc7bb8 RD |
10532 | _arg1 = wxString_in_helper(_obj1); |
10533 | if (_arg1 == NULL) | |
185d7c3e | 10534 | return NULL; |
8ab979d7 | 10535 | } |
cf694132 | 10536 | { |
4268f798 | 10537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10538 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 | 10539 | |
4268f798 | 10540 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10541 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10542 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10543 | _resultobj = Py_None; |
10544 | { | |
10545 | if (_obj1) | |
10546 | delete _arg1; | |
10547 | } | |
10548 | return _resultobj; | |
10549 | } | |
10550 | ||
b1462dfa RD |
10551 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
10552 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10553 | PyObject * _resultobj; |
b1462dfa | 10554 | wxString * _result; |
8ab979d7 | 10555 | wxMenuItem * _arg0; |
1d99702e | 10556 | PyObject * _argo0 = 0; |
b1462dfa | 10557 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10558 | |
10559 | self = self; | |
b1462dfa | 10560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 10561 | return NULL; |
1d99702e RD |
10562 | if (_argo0) { |
10563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10566 | return NULL; |
10567 | } | |
10568 | } | |
cf694132 | 10569 | { |
4268f798 | 10570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10571 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 | 10572 | |
4268f798 | 10573 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10574 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10575 | }{ |
c8bc7bb8 RD |
10576 | #if wxUSE_UNICODE |
10577 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10578 | #else | |
eec92d76 | 10579 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10580 | #endif |
8ab979d7 | 10581 | } |
cf694132 | 10582 | { |
b1462dfa RD |
10583 | delete _result; |
10584 | } | |
cf694132 RD |
10585 | return _resultobj; |
10586 | } | |
10587 | ||
b1462dfa RD |
10588 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
10589 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10590 | PyObject * _resultobj; |
b1462dfa | 10591 | wxString * _result; |
cf694132 | 10592 | wxMenuItem * _arg0; |
1d99702e | 10593 | PyObject * _argo0 = 0; |
efc5f224 | 10594 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10595 | |
10596 | self = self; | |
b1462dfa | 10597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 10598 | return NULL; |
1d99702e RD |
10599 | if (_argo0) { |
10600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
10603 | return NULL; |
10604 | } | |
10605 | } | |
10606 | { | |
4268f798 | 10607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10608 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
b1462dfa | 10609 | _result = (wxString *) &_result_ref; |
cf694132 | 10610 | |
4268f798 | 10611 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10612 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10613 | }{ |
c8bc7bb8 RD |
10614 | #if wxUSE_UNICODE |
10615 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10616 | #else | |
eec92d76 | 10617 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10618 | #endif |
cf694132 | 10619 | } |
cf694132 RD |
10620 | return _resultobj; |
10621 | } | |
10622 | ||
e9159fe8 RD |
10623 | #define wxMenuItem_GetKind(_swigobj) (_swigobj->GetKind()) |
10624 | static PyObject *_wrap_wxMenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10625 | PyObject * _resultobj; | |
10626 | wxItemKind _result; | |
10627 | wxMenuItem * _arg0; | |
10628 | PyObject * _argo0 = 0; | |
10629 | char *_kwnames[] = { "self", NULL }; | |
10630 | ||
10631 | self = self; | |
10632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetKind",_kwnames,&_argo0)) | |
10633 | return NULL; | |
10634 | if (_argo0) { | |
10635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetKind. Expected _wxMenuItem_p."); | |
10638 | return NULL; | |
10639 | } | |
10640 | } | |
10641 | { | |
10642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10643 | _result = (wxItemKind )wxMenuItem_GetKind(_arg0); | |
10644 | ||
10645 | wxPyEndAllowThreads(__tstate); | |
10646 | if (PyErr_Occurred()) return NULL; | |
10647 | } _resultobj = Py_BuildValue("i",_result); | |
10648 | return _resultobj; | |
10649 | } | |
10650 | ||
b1462dfa RD |
10651 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
10652 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10653 | PyObject * _resultobj; |
cf694132 | 10654 | wxMenuItem * _arg0; |
b1462dfa | 10655 | bool _arg1; |
1d99702e | 10656 | PyObject * _argo0 = 0; |
b1462dfa RD |
10657 | int tempbool1; |
10658 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
10659 | |
10660 | self = self; | |
b1462dfa | 10661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 10662 | return NULL; |
1d99702e RD |
10663 | if (_argo0) { |
10664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
10667 | return NULL; |
10668 | } | |
10669 | } | |
b1462dfa | 10670 | _arg1 = (bool ) tempbool1; |
cf694132 | 10671 | { |
4268f798 | 10672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10673 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 | 10674 | |
4268f798 | 10675 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10676 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10677 | } Py_INCREF(Py_None); |
10678 | _resultobj = Py_None; | |
cf694132 RD |
10679 | return _resultobj; |
10680 | } | |
10681 | ||
b1462dfa RD |
10682 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
10683 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10684 | PyObject * _resultobj; |
b1462dfa | 10685 | bool _result; |
cf694132 | 10686 | wxMenuItem * _arg0; |
1d99702e | 10687 | PyObject * _argo0 = 0; |
efc5f224 | 10688 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10689 | |
10690 | self = self; | |
b1462dfa | 10691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 10692 | return NULL; |
1d99702e RD |
10693 | if (_argo0) { |
10694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
10697 | return NULL; |
10698 | } | |
10699 | } | |
10700 | { | |
4268f798 | 10701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10702 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 | 10703 | |
4268f798 | 10704 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10705 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10706 | } _resultobj = Py_BuildValue("i",_result); |
10707 | return _resultobj; | |
10708 | } | |
10709 | ||
b1462dfa RD |
10710 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
10711 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10712 | PyObject * _resultobj; |
b1462dfa | 10713 | bool _result; |
cf694132 | 10714 | wxMenuItem * _arg0; |
1d99702e | 10715 | PyObject * _argo0 = 0; |
efc5f224 | 10716 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10717 | |
10718 | self = self; | |
b1462dfa | 10719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 10720 | return NULL; |
1d99702e RD |
10721 | if (_argo0) { |
10722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
10725 | return NULL; |
10726 | } | |
10727 | } | |
10728 | { | |
4268f798 | 10729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10730 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 | 10731 | |
4268f798 | 10732 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10733 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10734 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
10735 | return _resultobj; |
10736 | } | |
10737 | ||
b1462dfa RD |
10738 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
10739 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
10740 | PyObject * _resultobj; |
10741 | wxMenuItem * _arg0; | |
b1462dfa | 10742 | wxMenu * _arg1; |
1d99702e RD |
10743 | PyObject * _argo0 = 0; |
10744 | PyObject * _argo1 = 0; | |
b1462dfa | 10745 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
10746 | |
10747 | self = self; | |
b1462dfa | 10748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 10749 | return NULL; |
1d99702e RD |
10750 | if (_argo0) { |
10751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
10754 | return NULL; |
10755 | } | |
10756 | } | |
1d99702e RD |
10757 | if (_argo1) { |
10758 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
10759 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
10760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
10761 | return NULL; |
10762 | } | |
10763 | } | |
10764 | { | |
4268f798 | 10765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10766 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 | 10767 | |
4268f798 | 10768 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10769 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10770 | } Py_INCREF(Py_None); |
10771 | _resultobj = Py_None; | |
10772 | return _resultobj; | |
10773 | } | |
10774 | ||
b1462dfa RD |
10775 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
10776 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10777 | PyObject * _resultobj; |
b1462dfa | 10778 | wxMenu * _result; |
cf694132 | 10779 | wxMenuItem * _arg0; |
1d99702e | 10780 | PyObject * _argo0 = 0; |
b1462dfa | 10781 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10782 | |
10783 | self = self; | |
b1462dfa | 10784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 10785 | return NULL; |
1d99702e RD |
10786 | if (_argo0) { |
10787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
10790 | return NULL; |
10791 | } | |
10792 | } | |
b1462dfa | 10793 | { |
4268f798 | 10794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10795 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); |
b1462dfa | 10796 | |
4268f798 | 10797 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10798 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 10799 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
10800 | return _resultobj; |
10801 | } | |
10802 | ||
10803 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
10804 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10805 | PyObject * _resultobj; | |
10806 | wxMenuItem * _arg0; | |
10807 | bool _arg1 = (bool ) TRUE; | |
10808 | PyObject * _argo0 = 0; | |
10809 | int tempbool1 = (int) TRUE; | |
10810 | char *_kwnames[] = { "self","enable", NULL }; | |
10811 | ||
10812 | self = self; | |
10813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
10814 | return NULL; | |
10815 | if (_argo0) { | |
10816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
10819 | return NULL; |
10820 | } | |
10821 | } | |
b1462dfa | 10822 | _arg1 = (bool ) tempbool1; |
cf694132 | 10823 | { |
4268f798 | 10824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10825 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 | 10826 | |
4268f798 | 10827 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10828 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10829 | } Py_INCREF(Py_None); |
10830 | _resultobj = Py_None; | |
10831 | return _resultobj; | |
10832 | } | |
10833 | ||
b1462dfa RD |
10834 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
10835 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10836 | PyObject * _resultobj; |
b1462dfa | 10837 | bool _result; |
cf694132 | 10838 | wxMenuItem * _arg0; |
1d99702e | 10839 | PyObject * _argo0 = 0; |
b1462dfa | 10840 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10841 | |
10842 | self = self; | |
b1462dfa | 10843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 10844 | return NULL; |
1d99702e RD |
10845 | if (_argo0) { |
10846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
10849 | return NULL; |
10850 | } | |
10851 | } | |
10852 | { | |
4268f798 | 10853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10854 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 | 10855 | |
4268f798 | 10856 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10857 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10858 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
10859 | return _resultobj; |
10860 | } | |
10861 | ||
b1462dfa RD |
10862 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
10863 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
10864 | PyObject * _resultobj; |
10865 | wxMenuItem * _arg0; | |
b1462dfa | 10866 | bool _arg1 = (bool ) TRUE; |
1d99702e | 10867 | PyObject * _argo0 = 0; |
b1462dfa RD |
10868 | int tempbool1 = (int) TRUE; |
10869 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
10870 | |
10871 | self = self; | |
b1462dfa | 10872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 10873 | return NULL; |
1d99702e RD |
10874 | if (_argo0) { |
10875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
10878 | return NULL; |
10879 | } | |
10880 | } | |
b1462dfa | 10881 | _arg1 = (bool ) tempbool1; |
cf694132 | 10882 | { |
4268f798 | 10883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10884 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 | 10885 | |
4268f798 | 10886 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10887 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10888 | } Py_INCREF(Py_None); |
10889 | _resultobj = Py_None; | |
10890 | return _resultobj; | |
10891 | } | |
10892 | ||
b1462dfa RD |
10893 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
10894 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 10895 | PyObject * _resultobj; |
b1462dfa | 10896 | bool _result; |
2abc0a0f | 10897 | wxMenuItem * _arg0; |
2abc0a0f | 10898 | PyObject * _argo0 = 0; |
b1462dfa | 10899 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
10900 | |
10901 | self = self; | |
b1462dfa | 10902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
10903 | return NULL; |
10904 | if (_argo0) { | |
10905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10908 | return NULL; |
10909 | } | |
10910 | } | |
2abc0a0f | 10911 | { |
4268f798 | 10912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10913 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f | 10914 | |
4268f798 | 10915 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10916 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10917 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
10918 | return _resultobj; |
10919 | } | |
10920 | ||
b1462dfa RD |
10921 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
10922 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 10923 | PyObject * _resultobj; |
2abc0a0f RD |
10924 | wxMenuItem * _arg0; |
10925 | PyObject * _argo0 = 0; | |
10926 | char *_kwnames[] = { "self", NULL }; | |
10927 | ||
10928 | self = self; | |
b1462dfa | 10929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
10930 | return NULL; |
10931 | if (_argo0) { | |
10932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10935 | return NULL; |
10936 | } | |
10937 | } | |
10938 | { | |
4268f798 | 10939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10940 | wxMenuItem_Toggle(_arg0); |
2abc0a0f | 10941 | |
4268f798 | 10942 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10943 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10944 | } Py_INCREF(Py_None); |
10945 | _resultobj = Py_None; | |
2abc0a0f RD |
10946 | return _resultobj; |
10947 | } | |
10948 | ||
b1462dfa RD |
10949 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
10950 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
10951 | PyObject * _resultobj; |
10952 | wxMenuItem * _arg0; | |
b1462dfa | 10953 | wxString * _arg1; |
1d99702e | 10954 | PyObject * _argo0 = 0; |
b1462dfa RD |
10955 | PyObject * _obj1 = 0; |
10956 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
10957 | |
10958 | self = self; | |
b1462dfa | 10959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 10960 | return NULL; |
1d99702e RD |
10961 | if (_argo0) { |
10962 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10963 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
10965 | return NULL; |
10966 | } | |
10967 | } | |
b1462dfa | 10968 | { |
c8bc7bb8 RD |
10969 | _arg1 = wxString_in_helper(_obj1); |
10970 | if (_arg1 == NULL) | |
185d7c3e | 10971 | return NULL; |
b1462dfa | 10972 | } |
cf694132 | 10973 | { |
4268f798 | 10974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10975 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 | 10976 | |
4268f798 | 10977 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10978 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10979 | } Py_INCREF(Py_None); |
8ab979d7 | 10980 | _resultobj = Py_None; |
b1462dfa RD |
10981 | { |
10982 | if (_obj1) | |
10983 | delete _arg1; | |
10984 | } | |
8ab979d7 RD |
10985 | return _resultobj; |
10986 | } | |
10987 | ||
b1462dfa RD |
10988 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
10989 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 10990 | PyObject * _resultobj; |
b1462dfa | 10991 | wxString * _result; |
be4d9c1f | 10992 | wxMenuItem * _arg0; |
1d99702e | 10993 | PyObject * _argo0 = 0; |
efc5f224 | 10994 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
10995 | |
10996 | self = self; | |
b1462dfa | 10997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 10998 | return NULL; |
1d99702e RD |
10999 | if (_argo0) { |
11000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
11003 | return NULL; |
11004 | } | |
11005 | } | |
cf694132 | 11006 | { |
4268f798 | 11007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11008 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
b1462dfa | 11009 | _result = (wxString *) &_result_ref; |
cf694132 | 11010 | |
4268f798 | 11011 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11012 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 11013 | }{ |
c8bc7bb8 RD |
11014 | #if wxUSE_UNICODE |
11015 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
11016 | #else | |
eec92d76 | 11017 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11018 | #endif |
b1462dfa | 11019 | } |
be4d9c1f RD |
11020 | return _resultobj; |
11021 | } | |
11022 | ||
b1462dfa RD |
11023 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
11024 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 11025 | PyObject * _resultobj; |
b1462dfa | 11026 | wxAcceleratorEntry * _result; |
2abc0a0f | 11027 | wxMenuItem * _arg0; |
2abc0a0f | 11028 | PyObject * _argo0 = 0; |
b1462dfa RD |
11029 | char *_kwnames[] = { "self", NULL }; |
11030 | char _ptemp[128]; | |
2abc0a0f RD |
11031 | |
11032 | self = self; | |
b1462dfa | 11033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
11034 | return NULL; |
11035 | if (_argo0) { | |
11036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
11039 | return NULL; |
11040 | } | |
11041 | } | |
2abc0a0f | 11042 | { |
4268f798 | 11043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11044 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f | 11045 | |
4268f798 | 11046 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11047 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
11048 | } if (_result) { |
11049 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
11050 | _resultobj = Py_BuildValue("s",_ptemp); | |
11051 | } else { | |
11052 | Py_INCREF(Py_None); | |
11053 | _resultobj = Py_None; | |
11054 | } | |
2abc0a0f RD |
11055 | return _resultobj; |
11056 | } | |
11057 | ||
b1462dfa RD |
11058 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
11059 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
11060 | PyObject * _resultobj; |
11061 | wxMenuItem * _arg0; | |
b1462dfa | 11062 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
11063 | PyObject * _argo0 = 0; |
11064 | PyObject * _argo1 = 0; | |
b1462dfa | 11065 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
11066 | |
11067 | self = self; | |
b1462dfa | 11068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
11069 | return NULL; |
11070 | if (_argo0) { | |
11071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
11074 | return NULL; |
11075 | } | |
11076 | } | |
11077 | if (_argo1) { | |
11078 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
11079 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
11080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
11081 | return NULL; |
11082 | } | |
11083 | } | |
11084 | { | |
4268f798 | 11085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11086 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f | 11087 | |
4268f798 | 11088 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11089 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
11090 | } Py_INCREF(Py_None); |
11091 | _resultobj = Py_None; | |
11092 | return _resultobj; | |
11093 | } | |
11094 | ||
1b62f00d RD |
11095 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
11096 | PyObject * _resultobj; | |
11097 | wxString * _result; | |
11098 | wxString * _arg0; | |
11099 | PyObject * _obj0 = 0; | |
11100 | char *_kwnames[] = { "text", NULL }; | |
11101 | ||
11102 | self = self; | |
11103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
11104 | return NULL; | |
11105 | { | |
c8bc7bb8 RD |
11106 | _arg0 = wxString_in_helper(_obj0); |
11107 | if (_arg0 == NULL) | |
1b62f00d | 11108 | return NULL; |
1b62f00d RD |
11109 | } |
11110 | { | |
4268f798 | 11111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11112 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); |
1b62f00d | 11113 | |
4268f798 | 11114 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11115 | if (PyErr_Occurred()) return NULL; |
1b62f00d | 11116 | }{ |
c8bc7bb8 RD |
11117 | #if wxUSE_UNICODE |
11118 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
11119 | #else | |
1b62f00d | 11120 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11121 | #endif |
1b62f00d RD |
11122 | } |
11123 | { | |
11124 | if (_obj0) | |
11125 | delete _arg0; | |
11126 | } | |
11127 | { | |
11128 | delete _result; | |
11129 | } | |
11130 | return _resultobj; | |
11131 | } | |
11132 | ||
f3d9dc1d RD |
11133 | #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
11134 | static PyObject *_wrap_wxMenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11135 | PyObject * _resultobj; | |
11136 | wxMenuItem * _arg0; | |
11137 | wxFont * _arg1; | |
11138 | PyObject * _argo0 = 0; | |
11139 | PyObject * _argo1 = 0; | |
11140 | char *_kwnames[] = { "self","font", NULL }; | |
11141 | ||
11142 | self = self; | |
11143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
11144 | return NULL; | |
11145 | if (_argo0) { | |
11146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p."); | |
11149 | return NULL; | |
11150 | } | |
11151 | } | |
11152 | if (_argo1) { | |
11153 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11154 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
11155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p."); | |
11156 | return NULL; | |
11157 | } | |
11158 | } | |
11159 | { | |
4268f798 | 11160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11161 | wxMenuItem_SetFont(_arg0,*_arg1); |
f3d9dc1d | 11162 | |
4268f798 | 11163 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11164 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11165 | } Py_INCREF(Py_None); |
11166 | _resultobj = Py_None; | |
11167 | return _resultobj; | |
11168 | } | |
11169 | ||
11170 | #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
11171 | static PyObject *_wrap_wxMenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11172 | PyObject * _resultobj; | |
11173 | wxFont * _result; | |
11174 | wxMenuItem * _arg0; | |
11175 | PyObject * _argo0 = 0; | |
11176 | char *_kwnames[] = { "self", NULL }; | |
11177 | char _ptemp[128]; | |
11178 | ||
11179 | self = self; | |
11180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetFont",_kwnames,&_argo0)) | |
11181 | return NULL; | |
11182 | if (_argo0) { | |
11183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p."); | |
11186 | return NULL; | |
11187 | } | |
11188 | } | |
11189 | { | |
4268f798 | 11190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11191 | _result = new wxFont (wxMenuItem_GetFont(_arg0)); |
f3d9dc1d | 11192 | |
4268f798 | 11193 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11194 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
11195 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
11196 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
11197 | return _resultobj; |
11198 | } | |
11199 | ||
11200 | #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
11201 | static PyObject *_wrap_wxMenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11202 | PyObject * _resultobj; | |
11203 | wxMenuItem * _arg0; | |
11204 | wxColour * _arg1; | |
11205 | PyObject * _argo0 = 0; | |
11206 | wxColour temp; | |
11207 | PyObject * _obj1 = 0; | |
11208 | char *_kwnames[] = { "self","colText", NULL }; | |
11209 | ||
11210 | self = self; | |
11211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
11212 | return NULL; | |
11213 | if (_argo0) { | |
11214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p."); | |
11217 | return NULL; | |
11218 | } | |
11219 | } | |
11220 | { | |
11221 | _arg1 = &temp; | |
11222 | if (! wxColour_helper(_obj1, &_arg1)) | |
11223 | return NULL; | |
11224 | } | |
11225 | { | |
4268f798 | 11226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11227 | wxMenuItem_SetTextColour(_arg0,*_arg1); |
f3d9dc1d | 11228 | |
4268f798 | 11229 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11230 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11231 | } Py_INCREF(Py_None); |
11232 | _resultobj = Py_None; | |
11233 | return _resultobj; | |
11234 | } | |
11235 | ||
11236 | #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
11237 | static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11238 | PyObject * _resultobj; | |
11239 | wxColour * _result; | |
11240 | wxMenuItem * _arg0; | |
11241 | PyObject * _argo0 = 0; | |
11242 | char *_kwnames[] = { "self", NULL }; | |
11243 | char _ptemp[128]; | |
11244 | ||
11245 | self = self; | |
11246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetTextColour",_kwnames,&_argo0)) | |
11247 | return NULL; | |
11248 | if (_argo0) { | |
11249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p."); | |
11252 | return NULL; | |
11253 | } | |
11254 | } | |
11255 | { | |
4268f798 | 11256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11257 | _result = new wxColour (wxMenuItem_GetTextColour(_arg0)); |
f3d9dc1d | 11258 | |
4268f798 | 11259 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11260 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
11261 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
11262 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
11263 | return _resultobj; |
11264 | } | |
11265 | ||
11266 | #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
11267 | static PyObject *_wrap_wxMenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11268 | PyObject * _resultobj; | |
11269 | wxMenuItem * _arg0; | |
11270 | wxColour * _arg1; | |
11271 | PyObject * _argo0 = 0; | |
11272 | wxColour temp; | |
11273 | PyObject * _obj1 = 0; | |
11274 | char *_kwnames[] = { "self","colBack", NULL }; | |
11275 | ||
11276 | self = self; | |
11277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
11278 | return NULL; | |
11279 | if (_argo0) { | |
11280 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11281 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p."); | |
11283 | return NULL; | |
11284 | } | |
11285 | } | |
11286 | { | |
11287 | _arg1 = &temp; | |
11288 | if (! wxColour_helper(_obj1, &_arg1)) | |
11289 | return NULL; | |
11290 | } | |
11291 | { | |
4268f798 | 11292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11293 | wxMenuItem_SetBackgroundColour(_arg0,*_arg1); |
f3d9dc1d | 11294 | |
4268f798 | 11295 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11296 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11297 | } Py_INCREF(Py_None); |
11298 | _resultobj = Py_None; | |
11299 | return _resultobj; | |
11300 | } | |
11301 | ||
11302 | #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
11303 | static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11304 | PyObject * _resultobj; | |
11305 | wxColour * _result; | |
11306 | wxMenuItem * _arg0; | |
11307 | PyObject * _argo0 = 0; | |
11308 | char *_kwnames[] = { "self", NULL }; | |
11309 | char _ptemp[128]; | |
11310 | ||
11311 | self = self; | |
11312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBackgroundColour",_kwnames,&_argo0)) | |
11313 | return NULL; | |
11314 | if (_argo0) { | |
11315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p."); | |
11318 | return NULL; | |
11319 | } | |
11320 | } | |
11321 | { | |
4268f798 | 11322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11323 | _result = new wxColour (wxMenuItem_GetBackgroundColour(_arg0)); |
f3d9dc1d | 11324 | |
4268f798 | 11325 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11326 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
11327 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
11328 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
11329 | return _resultobj; |
11330 | } | |
11331 | ||
11332 | #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1)) | |
11333 | static PyObject *_wrap_wxMenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11334 | PyObject * _resultobj; | |
11335 | wxMenuItem * _arg0; | |
11336 | wxBitmap * _arg1; | |
11337 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
11338 | PyObject * _argo0 = 0; | |
11339 | PyObject * _argo1 = 0; | |
11340 | PyObject * _argo2 = 0; | |
11341 | char *_kwnames[] = { "self","bmpChecked","bmpUnchecked", NULL }; | |
11342 | ||
11343 | self = self; | |
11344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxMenuItem_SetBitmaps",_kwnames,&_argo0,&_argo1,&_argo2)) | |
11345 | return NULL; | |
11346 | if (_argo0) { | |
11347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p."); | |
11350 | return NULL; | |
11351 | } | |
11352 | } | |
11353 | if (_argo1) { | |
11354 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11355 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
11356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
11357 | return NULL; | |
11358 | } | |
11359 | } | |
11360 | if (_argo2) { | |
11361 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
11362 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
11363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
11364 | return NULL; | |
11365 | } | |
11366 | } | |
11367 | { | |
4268f798 | 11368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11369 | wxMenuItem_SetBitmaps(_arg0,*_arg1,*_arg2); |
f3d9dc1d | 11370 | |
4268f798 | 11371 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11372 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11373 | } Py_INCREF(Py_None); |
11374 | _resultobj = Py_None; | |
11375 | return _resultobj; | |
11376 | } | |
11377 | ||
11378 | #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
11379 | static PyObject *_wrap_wxMenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11380 | PyObject * _resultobj; | |
11381 | wxMenuItem * _arg0; | |
11382 | wxBitmap * _arg1; | |
11383 | PyObject * _argo0 = 0; | |
11384 | PyObject * _argo1 = 0; | |
11385 | char *_kwnames[] = { "self","bmpChecked", NULL }; | |
11386 | ||
11387 | self = self; | |
11388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
11389 | return NULL; | |
11390 | if (_argo0) { | |
11391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p."); | |
11394 | return NULL; | |
11395 | } | |
11396 | } | |
11397 | if (_argo1) { | |
11398 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11399 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
11400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p."); | |
11401 | return NULL; | |
11402 | } | |
11403 | } | |
11404 | { | |
4268f798 | 11405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11406 | wxMenuItem_SetBitmap(_arg0,*_arg1); |
f3d9dc1d | 11407 | |
4268f798 | 11408 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11409 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11410 | } Py_INCREF(Py_None); |
11411 | _resultobj = Py_None; | |
11412 | return _resultobj; | |
11413 | } | |
11414 | ||
11415 | #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0)) | |
11416 | static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11417 | PyObject * _resultobj; | |
11418 | wxBitmap * _result; | |
11419 | wxMenuItem * _arg0; | |
11420 | bool _arg1 = (bool ) TRUE; | |
11421 | PyObject * _argo0 = 0; | |
11422 | int tempbool1 = (int) TRUE; | |
11423 | char *_kwnames[] = { "self","bChecked", NULL }; | |
11424 | char _ptemp[128]; | |
11425 | ||
11426 | self = self; | |
11427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_GetBitmap",_kwnames,&_argo0,&tempbool1)) | |
11428 | return NULL; | |
11429 | if (_argo0) { | |
11430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p."); | |
11433 | return NULL; | |
11434 | } | |
11435 | } | |
11436 | _arg1 = (bool ) tempbool1; | |
11437 | { | |
4268f798 | 11438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11439 | _result = new wxBitmap (wxMenuItem_GetBitmap(_arg0,_arg1)); |
f3d9dc1d | 11440 | |
4268f798 | 11441 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11442 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
11443 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
11444 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
11445 | return _resultobj; |
11446 | } | |
11447 | ||
11448 | #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0)) | |
11449 | static PyObject *_wrap_wxMenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11450 | PyObject * _resultobj; | |
11451 | wxMenuItem * _arg0; | |
11452 | int _arg1; | |
11453 | PyObject * _argo0 = 0; | |
11454 | char *_kwnames[] = { "self","nWidth", NULL }; | |
11455 | ||
11456 | self = self; | |
11457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetMarginWidth",_kwnames,&_argo0,&_arg1)) | |
11458 | return NULL; | |
11459 | if (_argo0) { | |
11460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p."); | |
11463 | return NULL; | |
11464 | } | |
11465 | } | |
11466 | { | |
4268f798 | 11467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11468 | wxMenuItem_SetMarginWidth(_arg0,_arg1); |
f3d9dc1d | 11469 | |
4268f798 | 11470 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11471 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11472 | } Py_INCREF(Py_None); |
11473 | _resultobj = Py_None; | |
11474 | return _resultobj; | |
11475 | } | |
11476 | ||
11477 | #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth()) | |
11478 | static PyObject *_wrap_wxMenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11479 | PyObject * _resultobj; | |
11480 | int _result; | |
11481 | wxMenuItem * _arg0; | |
11482 | PyObject * _argo0 = 0; | |
11483 | char *_kwnames[] = { "self", NULL }; | |
11484 | ||
11485 | self = self; | |
11486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMarginWidth",_kwnames,&_argo0)) | |
11487 | return NULL; | |
11488 | if (_argo0) { | |
11489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p."); | |
11492 | return NULL; | |
11493 | } | |
11494 | } | |
11495 | { | |
4268f798 | 11496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11497 | _result = (int )wxMenuItem_GetMarginWidth(_arg0); |
f3d9dc1d | 11498 | |
4268f798 | 11499 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11500 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11501 | } _resultobj = Py_BuildValue("i",_result); |
11502 | return _resultobj; | |
11503 | } | |
11504 | ||
11505 | static PyObject *_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11506 | PyObject * _resultobj; | |
11507 | int _result; | |
11508 | char *_kwnames[] = { NULL }; | |
11509 | ||
11510 | self = self; | |
11511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMenuItem_GetDefaultMarginWidth",_kwnames)) | |
11512 | return NULL; | |
11513 | { | |
4268f798 | 11514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11515 | _result = (int )wxMenuItem::GetDefaultMarginWidth(); |
f3d9dc1d | 11516 | |
4268f798 | 11517 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11518 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11519 | } _resultobj = Py_BuildValue("i",_result); |
11520 | return _resultobj; | |
11521 | } | |
11522 | ||
11523 | #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn()) | |
11524 | static PyObject *_wrap_wxMenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11525 | PyObject * _resultobj; | |
11526 | bool _result; | |
11527 | wxMenuItem * _arg0; | |
11528 | PyObject * _argo0 = 0; | |
11529 | char *_kwnames[] = { "self", NULL }; | |
11530 | ||
11531 | self = self; | |
11532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsOwnerDrawn",_kwnames,&_argo0)) | |
11533 | return NULL; | |
11534 | if (_argo0) { | |
11535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p."); | |
11538 | return NULL; | |
11539 | } | |
11540 | } | |
11541 | { | |
4268f798 | 11542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11543 | _result = (bool )wxMenuItem_IsOwnerDrawn(_arg0); |
f3d9dc1d | 11544 | |
4268f798 | 11545 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11546 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11547 | } _resultobj = Py_BuildValue("i",_result); |
11548 | return _resultobj; | |
11549 | } | |
11550 | ||
11551 | #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn()) | |
11552 | static PyObject *_wrap_wxMenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11553 | PyObject * _resultobj; | |
11554 | wxMenuItem * _arg0; | |
11555 | PyObject * _argo0 = 0; | |
11556 | char *_kwnames[] = { "self", NULL }; | |
11557 | ||
11558 | self = self; | |
11559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_ResetOwnerDrawn",_kwnames,&_argo0)) | |
11560 | return NULL; | |
11561 | if (_argo0) { | |
11562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p."); | |
11565 | return NULL; | |
11566 | } | |
11567 | } | |
11568 | { | |
4268f798 | 11569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11570 | wxMenuItem_ResetOwnerDrawn(_arg0); |
f3d9dc1d | 11571 | |
4268f798 | 11572 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11573 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11574 | } Py_INCREF(Py_None); |
11575 | _resultobj = Py_None; | |
11576 | return _resultobj; | |
11577 | } | |
11578 | ||
8ab979d7 | 11579 | static PyMethodDef windowscMethods[] = { |
f3d9dc1d RD |
11580 | { "wxMenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, |
11581 | { "wxMenuItem_IsOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
11582 | { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
11583 | { "wxMenuItem_GetMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
11584 | { "wxMenuItem_SetMarginWidth", (PyCFunction) _wrap_wxMenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
11585 | { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11586 | { "wxMenuItem_SetBitmap", (PyCFunction) _wrap_wxMenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11587 | { "wxMenuItem_SetBitmaps", (PyCFunction) _wrap_wxMenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
11588 | { "wxMenuItem_GetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11589 | { "wxMenuItem_SetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11590 | { "wxMenuItem_GetTextColour", (PyCFunction) _wrap_wxMenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11591 | { "wxMenuItem_SetTextColour", (PyCFunction) _wrap_wxMenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11592 | { "wxMenuItem_GetFont", (PyCFunction) _wrap_wxMenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11593 | { "wxMenuItem_SetFont", (PyCFunction) _wrap_wxMenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 11594 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11595 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
11596 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
11597 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
11598 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
11599 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
11600 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11601 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11602 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11603 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11604 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11605 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 11606 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11607 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11608 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
e9159fe8 | 11609 | { "wxMenuItem_GetKind", (PyCFunction) _wrap_wxMenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11610 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, |
11611 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11612 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11613 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11614 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
11615 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11616 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11617 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11618 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11619 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
11620 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 11621 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
11622 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
11623 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11624 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11625 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
11626 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
11627 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
3a0958b1 | 11628 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11629 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, |
11630 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
11631 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
11632 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11633 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11634 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
11635 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
11636 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11637 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
11638 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
11639 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
11640 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
11641 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
11642 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11643 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
11644 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
11645 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11646 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11647 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
11648 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
11649 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
11650 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11651 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11652 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
11653 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
11654 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, |
11655 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11656 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11657 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11658 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11659 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
11660 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11661 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
11662 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 11663 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11664 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11665 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11666 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11667 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11668 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
11669 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
e9159fe8 RD |
11670 | { "wxMenu_PrependItem", (PyCFunction) _wrap_wxMenu_PrependItem, METH_VARARGS | METH_KEYWORDS }, |
11671 | { "wxMenu_PrependMenu", (PyCFunction) _wrap_wxMenu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
11672 | { "wxMenu_PrependRadioItem", (PyCFunction) _wrap_wxMenu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
11673 | { "wxMenu_PrependCheckItem", (PyCFunction) _wrap_wxMenu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
11674 | { "wxMenu_PrependSeparator", (PyCFunction) _wrap_wxMenu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
11675 | { "wxMenu_Prepend", (PyCFunction) _wrap_wxMenu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
11676 | { "wxMenu_InsertItem", (PyCFunction) _wrap_wxMenu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
11677 | { "wxMenu_InsertMenu", (PyCFunction) _wrap_wxMenu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
11678 | { "wxMenu_InsertRadioItem", (PyCFunction) _wrap_wxMenu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
11679 | { "wxMenu_InsertCheckItem", (PyCFunction) _wrap_wxMenu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
11680 | { "wxMenu_InsertSeparator", (PyCFunction) _wrap_wxMenu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
11681 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11682 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, |
e9159fe8 RD |
11683 | { "wxMenu_AppendRadioItem", (PyCFunction) _wrap_wxMenu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, |
11684 | { "wxMenu_AppendCheckItem", (PyCFunction) _wrap_wxMenu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11685 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, |
11686 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
11687 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
11688 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
2a74d141 | 11689 | { "wxScrolledWindow_SetScrollRate", (PyCFunction) _wrap_wxScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS }, |
26e335b8 | 11690 | { "wxScrolledWindow_Layout", (PyCFunction) _wrap_wxScrolledWindow_Layout, METH_VARARGS | METH_KEYWORDS }, |
d1679124 RD |
11691 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
11692 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
11693 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
11694 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
e9159fe8 RD |
11695 | { "wxScrolledWindow_CalcUnscrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition2, METH_VARARGS | METH_KEYWORDS }, |
11696 | { "wxScrolledWindow_CalcUnscrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition1, METH_VARARGS | METH_KEYWORDS }, | |
11697 | { "wxScrolledWindow_CalcScrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition2, METH_VARARGS | METH_KEYWORDS }, | |
11698 | { "wxScrolledWindow_CalcScrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition1, METH_VARARGS | METH_KEYWORDS }, | |
4c9993c3 | 11699 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 11700 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 11701 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11702 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
11703 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
11704 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
11705 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 11706 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11707 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 11708 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11709 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11710 | { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
11711 | { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11712 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11713 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11714 | { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS }, |
11715 | { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11716 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, |
6d26dc89 RD |
11717 | { "wxWindow_HasCapture", (PyCFunction) _wrap_wxWindow_HasCapture, METH_VARARGS | METH_KEYWORDS }, |
11718 | { "wxWindow_GetCapture", (PyCFunction) _wrap_wxWindow_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
11719 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
11720 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
11721 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
5a2930ab RD |
11722 | { "wxWindow_SetDefaultItem", (PyCFunction) _wrap_wxWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
11723 | { "wxWindow_GetDefaultItem", (PyCFunction) _wrap_wxWindow_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
07c99b26 | 11724 | { "wxWindow_OnPaint", (PyCFunction) _wrap_wxWindow_OnPaint, METH_VARARGS | METH_KEYWORDS }, |
900d9886 | 11725 | { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 | 11726 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11727 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
11728 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
11729 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
11730 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c RD |
11731 | { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS }, |
11732 | { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
11733 | { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
11734 | { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
11735 | { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
11736 | { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
23bed520 | 11737 | { "wxWindow_SetHelpTextForId", (PyCFunction) _wrap_wxWindow_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, |
4f3449b4 RD |
11738 | { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS }, |
11739 | { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 | 11740 | { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS }, |
3a0958b1 RD |
11741 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, |
11742 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
11743 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
11744 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
a541c325 | 11745 | { "wxWindow_GetMaxSize", (PyCFunction) _wrap_wxWindow_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, |
694759cf | 11746 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11747 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
11748 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
11749 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
11750 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
be90c029 RD |
11751 | { "wxWindow_GetContainingSizer", (PyCFunction) _wrap_wxWindow_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, |
11752 | { "wxWindow_SetContainingSizer", (PyCFunction) _wrap_wxWindow_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11753 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2a74d141 | 11754 | { "wxWindow_SetSizerAndFit", (PyCFunction) _wrap_wxWindow_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11755 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11756 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
11757 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
11758 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
11759 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
11760 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
11761 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11762 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11763 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11764 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11765 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, |
23bed520 | 11766 | { "wxWindow_UpdateWindowUI", (PyCFunction) _wrap_wxWindow_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11767 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, |
11768 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
11769 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
11770 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
83b18bab | 11771 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11772 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11773 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
11774 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
11775 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
2a74d141 RD |
11776 | { "wxWindow_GetVirtualSizeTuple", (PyCFunction) _wrap_wxWindow_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
11777 | { "wxWindow_GetVirtualSize", (PyCFunction) _wrap_wxWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
11778 | { "wxWindow_SetVirtualSizeWH", (PyCFunction) _wrap_wxWindow_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
11779 | { "wxWindow_SetVirtualSize", (PyCFunction) _wrap_wxWindow_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
11780 | { "wxWindow_SetVirtualSizeHints", (PyCFunction) _wrap_wxWindow_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11781 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, |
dbbb98cd | 11782 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11783 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
11784 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
11785 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
11786 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
11787 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
11788 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
11789 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11790 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11791 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 11792 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
2a74d141 | 11793 | { "wxWindow_SetFocusFromKbd", (PyCFunction) _wrap_wxWindow_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11794 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11795 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11796 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
11797 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 11798 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11799 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11800 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, |
11801 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
11802 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
11803 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 11804 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 | 11805 | { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11806 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, |
11807 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
11808 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
11809 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
c6c593e8 | 11810 | { "wxWindow_RemoveEventHandler", (PyCFunction) _wrap_wxWindow_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11811 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
11812 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11813 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
11814 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
11815 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
11816 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
11817 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
11818 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
11819 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
11820 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
11821 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
11822 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
11823 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
11824 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11825 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
11826 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
23bed520 | 11827 | { "wxWindow_HitTest", (PyCFunction) _wrap_wxWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11828 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, |
23bed520 | 11829 | { "wxWindow_HasScrollbar", (PyCFunction) _wrap_wxWindow_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11830 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
11831 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11832 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
11833 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
11834 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
11835 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11836 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11837 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11838 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11839 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
11840 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
11841 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
11842 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
11843 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
11844 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
11845 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
11846 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
11847 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11848 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11849 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 11850 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11851 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
11852 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11853 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 11854 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11855 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
23bed520 RD |
11856 | { "wxWindow_GetClientRect", (PyCFunction) _wrap_wxWindow_GetClientRect, METH_VARARGS | METH_KEYWORDS }, |
11857 | { "wxWindow_GetClientAreaOrigin", (PyCFunction) _wrap_wxWindow_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11858 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, |
11859 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11860 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
11861 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 11862 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
23bed520 | 11863 | { "wxWindow_GetBorder", (PyCFunction) _wrap_wxWindow_GetBorder, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11864 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
11865 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
11866 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
11867 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
11868 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
11869 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 11870 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11871 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, |
11872 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
11873 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
11874 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
11875 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
d56cebe7 | 11876 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, |
3ca6a5f0 BP |
11877 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
11878 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11879 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
11880 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
11881 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
11882 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11883 | { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
11884 | { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11885 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, |
0122b7e3 | 11886 | { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11887 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
9416aa89 RD |
11888 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
11889 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
11890 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
11891 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
11892 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
11893 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 11894 | { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 11895 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11896 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
11897 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
11898 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
11899 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
11900 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
11901 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
11902 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11903 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11904 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 11905 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11906 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
11907 | { NULL, NULL } |
11908 | }; | |
1d99702e RD |
11909 | #ifdef __cplusplus |
11910 | } | |
11911 | #endif | |
11912 | /* | |
11913 | * This table is used by the pointer type-checker | |
11914 | */ | |
11915 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11916 | { "_signed_long","_long",0}, |
b1462dfa | 11917 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11918 | { "_wxPrintQuality","_int",0}, |
11919 | { "_wxPrintQuality","_signed_int",0}, | |
11920 | { "_wxPrintQuality","_unsigned_int",0}, | |
11921 | { "_wxPrintQuality","_wxWindowID",0}, | |
11922 | { "_wxPrintQuality","_uint",0}, | |
11923 | { "_wxPrintQuality","_EBool",0}, | |
11924 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11925 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11926 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
11927 | { "_long","_unsigned_long",0}, |
11928 | { "_long","_signed_long",0}, | |
b1462dfa | 11929 | { "_size_t","_wxCoord",0}, |
1d99702e | 11930 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11931 | { "_size_t","_time_t",0}, |
1d99702e RD |
11932 | { "_size_t","_unsigned_int",0}, |
11933 | { "_size_t","_int",0}, | |
11934 | { "_size_t","_wxWindowID",0}, | |
11935 | { "_size_t","_uint",0}, | |
1d99702e | 11936 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
b1462dfa | 11937 | { "_uint","_wxCoord",0}, |
1d99702e | 11938 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11939 | { "_uint","_time_t",0}, |
1d99702e RD |
11940 | { "_uint","_size_t",0}, |
11941 | { "_uint","_unsigned_int",0}, | |
11942 | { "_uint","_int",0}, | |
11943 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11944 | { "_wxChar","_char",0}, |
f6bcfd97 | 11945 | { "_char","_wxChar",0}, |
cdf14688 | 11946 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11947 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11948 | { "_EBool","_wxPrintQuality",0}, |
11949 | { "_EBool","_signed_int",0}, | |
11950 | { "_EBool","_int",0}, | |
11951 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11952 | { "_unsigned_long","_long",0}, |
cdf14688 | 11953 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11954 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11955 | { "_signed_int","_wxPrintQuality",0}, |
11956 | { "_signed_int","_EBool",0}, | |
11957 | { "_signed_int","_wxWindowID",0}, | |
11958 | { "_signed_int","_int",0}, | |
1d99702e RD |
11959 | { "_WXTYPE","_short",0}, |
11960 | { "_WXTYPE","_signed_short",0}, | |
11961 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11962 | { "_unsigned_short","_WXTYPE",0}, |
11963 | { "_unsigned_short","_short",0}, | |
9416aa89 | 11964 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, |
9416aa89 | 11965 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, |
9416aa89 | 11966 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, |
9416aa89 | 11967 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, |
9416aa89 | 11968 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, |
9416aa89 | 11969 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, |
9416aa89 | 11970 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, |
9416aa89 | 11971 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, |
9416aa89 | 11972 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, |
1d99702e RD |
11973 | { "_signed_short","_WXTYPE",0}, |
11974 | { "_signed_short","_short",0}, | |
1d99702e | 11975 | { "_unsigned_char","_byte",0}, |
b1462dfa | 11976 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11977 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11978 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11979 | { "_unsigned_int","_size_t",0}, |
11980 | { "_unsigned_int","_uint",0}, | |
11981 | { "_unsigned_int","_wxWindowID",0}, | |
11982 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11983 | { "_short","_WXTYPE",0}, |
11984 | { "_short","_unsigned_short",0}, | |
11985 | { "_short","_signed_short",0}, | |
b1462dfa | 11986 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11987 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11988 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11989 | { "_wxWindowID","_size_t",0}, |
11990 | { "_wxWindowID","_EBool",0}, | |
11991 | { "_wxWindowID","_uint",0}, | |
11992 | { "_wxWindowID","_int",0}, | |
11993 | { "_wxWindowID","_signed_int",0}, | |
11994 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11995 | { "_int","_wxCoord",0}, |
1d99702e | 11996 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11997 | { "_int","_time_t",0}, |
1d99702e RD |
11998 | { "_int","_size_t",0}, |
11999 | { "_int","_EBool",0}, | |
12000 | { "_int","_uint",0}, | |
12001 | { "_int","_wxWindowID",0}, | |
12002 | { "_int","_unsigned_int",0}, | |
12003 | { "_int","_signed_int",0}, | |
c368d904 RD |
12004 | { "_time_t","_wxCoord",0}, |
12005 | { "_time_t","_wxPrintQuality",0}, | |
12006 | { "_time_t","_unsigned_int",0}, | |
12007 | { "_time_t","_int",0}, | |
12008 | { "_time_t","_wxWindowID",0}, | |
12009 | { "_time_t","_uint",0}, | |
12010 | { "_time_t","_size_t",0}, | |
2f90df85 | 12011 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
b1462dfa RD |
12012 | { "_wxCoord","_int",0}, |
12013 | { "_wxCoord","_signed_int",0}, | |
12014 | { "_wxCoord","_unsigned_int",0}, | |
12015 | { "_wxCoord","_wxWindowID",0}, | |
12016 | { "_wxCoord","_uint",0}, | |
12017 | { "_wxCoord","_EBool",0}, | |
12018 | { "_wxCoord","_size_t",0}, | |
c368d904 | 12019 | { "_wxCoord","_time_t",0}, |
b1462dfa | 12020 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 12021 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
1d99702e | 12022 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, |
1d99702e | 12023 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, |
1d99702e | 12024 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, |
1d99702e | 12025 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, |
2f90df85 | 12026 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
2f90df85 | 12027 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, |
b1462dfa | 12028 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, |
1d99702e | 12029 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
1d99702e | 12030 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, |
1d99702e RD |
12031 | {0,0,0}}; |
12032 | ||
8ab979d7 RD |
12033 | static PyObject *SWIG_globals; |
12034 | #ifdef __cplusplus | |
12035 | extern "C" | |
12036 | #endif | |
1d99702e | 12037 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
12038 | PyObject *m, *d; |
12039 | SWIG_globals = SWIG_newvarlink(); | |
12040 | m = Py_InitModule("windowsc", windowscMethods); | |
12041 | d = PyModule_GetDict(m); | |
1d99702e RD |
12042 | { |
12043 | int i; | |
12044 | for (i = 0; _swig_mapping[i].n1; i++) | |
12045 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
12046 | } | |
8ab979d7 | 12047 | } |