]>
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 | |
7e50db3f RD |
22 | #include "Python.h" |
23 | ||
8ab979d7 RD |
24 | #include <string.h> |
25 | #include <stdlib.h> | |
26 | /* Definitions for Windows/Unix exporting */ | |
27 | #if defined(__WIN32__) | |
28 | # if defined(_MSC_VER) | |
1d99702e | 29 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
30 | # else |
31 | # if defined(__BORLANDC__) | |
c368d904 | 32 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 33 | # else |
c368d904 | 34 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
35 | # endif |
36 | # endif | |
37 | #else | |
c368d904 | 38 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
39 | #endif |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
8ab979d7 RD |
44 | extern void SWIG_MakePtr(char *, void *, char *); |
45 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
46 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 47 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
48 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
49 | extern PyObject *SWIG_newvarlink(void); | |
50 | #ifdef __cplusplus | |
51 | } | |
52 | #endif | |
8ab979d7 RD |
53 | #define SWIG_init initwindowsc |
54 | ||
55 | #define SWIG_name "windowsc" | |
56 | ||
57 | #include "helpers.h" | |
8ab979d7 | 58 | #include <wx/menuitem.h> |
9416aa89 | 59 | #include <wx/tooltip.h> |
8ab979d7 | 60 | |
8ab979d7 RD |
61 | |
62 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
63 | PyObject* o2; | |
64 | PyObject* o3; | |
65 | ||
f3d9dc1d | 66 | if (!target) { |
8ab979d7 | 67 | target = o; |
f3d9dc1d | 68 | } else if (target == Py_None) { |
8ab979d7 RD |
69 | Py_DECREF(Py_None); |
70 | target = o; | |
f3d9dc1d | 71 | } else { |
8ab979d7 RD |
72 | if (!PyTuple_Check(target)) { |
73 | o2 = target; | |
74 | target = PyTuple_New(1); | |
75 | PyTuple_SetItem(target, 0, o2); | |
76 | } | |
f3d9dc1d RD |
77 | o3 = PyTuple_New(1); |
78 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
79 | |
80 | o2 = target; | |
f3d9dc1d RD |
81 | target = PySequence_Concat(o2, o3); |
82 | Py_DECREF(o2); | |
8ab979d7 RD |
83 | Py_DECREF(o3); |
84 | } | |
85 | return target; | |
86 | } | |
87 | ||
137b5242 RD |
88 | // Put some wx default wxChar* values into wxStrings. |
89 | DECLARE_DEF_STRING(PanelNameStr); | |
90 | static const wxString wxPyEmptyString(wxT("")); | |
91 | ||
2f90df85 RD |
92 | class wxPyValidator : public wxValidator { |
93 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
94 | public: | |
95 | wxPyValidator() { | |
96 | } | |
2f90df85 RD |
97 | |
98 | ~wxPyValidator() { | |
99 | } | |
100 | ||
19a97bd6 | 101 | wxObject* Clone() const { |
694759cf RD |
102 | wxPyValidator* ptr = NULL; |
103 | wxPyValidator* self = (wxPyValidator*)this; | |
2f90df85 | 104 | |
4268f798 | 105 | wxPyBeginBlockThreads(); |
694759cf RD |
106 | if (self->m_myInst.findCallback("Clone")) { |
107 | PyObject* ro; | |
108 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
f6bcfd97 BP |
109 | if (ro) { |
110 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
111 | Py_DECREF(ro); | |
112 | } | |
694759cf | 113 | } |
4268f798 | 114 | wxPyEndBlockThreads(); |
19a97bd6 | 115 | |
694759cf RD |
116 | // This is very dangerous!!! But is the only way I could find |
117 | // to squash a memory leak. Currently it is okay, but if the | |
118 | // validator architecture in wxWindows ever changes, problems | |
119 | // could arise. | |
120 | delete self; | |
694759cf RD |
121 | return ptr; |
122 | } | |
2f90df85 | 123 | |
9416aa89 | 124 | |
2f90df85 RD |
125 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); |
126 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
127 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
128 | ||
129 | PYPRIVATE; | |
2f90df85 RD |
130 | }; |
131 | ||
132 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
133 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
134 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
135 | ||
136 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
8ab979d7 | 137 | |
8ab979d7 | 138 | |
2f90df85 RD |
139 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { |
140 | wxWindow* win = new wxWindow; | |
141 | win->SetHWND(hWnd); | |
142 | win->SubclassWin(hWnd); | |
143 | return win; | |
144 | } | |
e67409dc RD |
145 | |
146 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
147 | return wxWindow::FindWindowById(id, parent); | |
148 | } | |
149 | ||
150 | wxWindow* wxFindWindowByName( const wxString& name, | |
151 | const wxWindow *parent = NULL ) { | |
152 | return wxWindow::FindWindowByName(name, parent); | |
153 | } | |
154 | ||
155 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
156 | const wxWindow *parent = NULL ) { | |
157 | return wxWindow::FindWindowByLabel(label, parent); | |
158 | } | |
2f90df85 RD |
159 | #ifdef __cplusplus |
160 | extern "C" { | |
161 | #endif | |
2f90df85 RD |
162 | static PyObject *_wrap_wxWindow_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { |
163 | PyObject * _resultobj; | |
164 | wxWindow * _result; | |
165 | unsigned long _arg0; | |
166 | char *_kwnames[] = { "hWnd", NULL }; | |
2f90df85 RD |
167 | |
168 | self = self; | |
169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxWindow_FromHWND",_kwnames,&_arg0)) | |
170 | return NULL; | |
171 | { | |
4268f798 | 172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 173 | _result = (wxWindow *)wxWindow_FromHWND(_arg0); |
2f90df85 | 174 | |
4268f798 | 175 | wxPyEndAllowThreads(__tstate); |
493f1553 | 176 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 177 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
178 | return _resultobj; |
179 | } | |
180 | ||
e67409dc RD |
181 | static PyObject *_wrap_wxFindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
182 | PyObject * _resultobj; | |
183 | wxWindow * _result; | |
184 | long _arg0; | |
185 | wxWindow * _arg1 = (wxWindow *) NULL; | |
186 | PyObject * _argo1 = 0; | |
187 | char *_kwnames[] = { "id","parent", NULL }; | |
188 | ||
189 | self = self; | |
190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l|O:wxFindWindowById",_kwnames,&_arg0,&_argo1)) | |
191 | return NULL; | |
192 | if (_argo1) { | |
193 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
194 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowById. Expected _wxWindow_p."); | |
196 | return NULL; | |
197 | } | |
198 | } | |
199 | { | |
200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
201 | _result = (wxWindow *)wxFindWindowById(_arg0,_arg1); | |
202 | ||
203 | wxPyEndAllowThreads(__tstate); | |
204 | if (PyErr_Occurred()) return NULL; | |
205 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
206 | return _resultobj; | |
207 | } | |
208 | ||
209 | static PyObject *_wrap_wxFindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
210 | PyObject * _resultobj; | |
211 | wxWindow * _result; | |
212 | wxString * _arg0; | |
213 | wxWindow * _arg1 = (wxWindow *) NULL; | |
214 | PyObject * _obj0 = 0; | |
215 | PyObject * _argo1 = 0; | |
216 | char *_kwnames[] = { "name","parent", NULL }; | |
217 | ||
218 | self = self; | |
219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByName",_kwnames,&_obj0,&_argo1)) | |
220 | return NULL; | |
221 | { | |
222 | _arg0 = wxString_in_helper(_obj0); | |
223 | if (_arg0 == NULL) | |
224 | return NULL; | |
225 | } | |
226 | if (_argo1) { | |
227 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
228 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p."); | |
230 | return NULL; | |
231 | } | |
232 | } | |
233 | { | |
234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
235 | _result = (wxWindow *)wxFindWindowByName(*_arg0,_arg1); | |
236 | ||
237 | wxPyEndAllowThreads(__tstate); | |
238 | if (PyErr_Occurred()) return NULL; | |
239 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
240 | { | |
241 | if (_obj0) | |
242 | delete _arg0; | |
243 | } | |
244 | return _resultobj; | |
245 | } | |
246 | ||
247 | static PyObject *_wrap_wxFindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
248 | PyObject * _resultobj; | |
249 | wxWindow * _result; | |
250 | wxString * _arg0; | |
251 | wxWindow * _arg1 = (wxWindow *) NULL; | |
252 | PyObject * _obj0 = 0; | |
253 | PyObject * _argo1 = 0; | |
254 | char *_kwnames[] = { "label","parent", NULL }; | |
255 | ||
256 | self = self; | |
257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByLabel",_kwnames,&_obj0,&_argo1)) | |
258 | return NULL; | |
259 | { | |
260 | _arg0 = wxString_in_helper(_obj0); | |
261 | if (_arg0 == NULL) | |
262 | return NULL; | |
263 | } | |
264 | if (_argo1) { | |
265 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
266 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p."); | |
268 | return NULL; | |
269 | } | |
270 | } | |
271 | { | |
272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
273 | _result = (wxWindow *)wxFindWindowByLabel(*_arg0,_arg1); | |
274 | ||
275 | wxPyEndAllowThreads(__tstate); | |
276 | if (PyErr_Occurred()) return NULL; | |
277 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
278 | { | |
279 | if (_obj0) | |
280 | delete _arg0; | |
281 | } | |
282 | return _resultobj; | |
283 | } | |
284 | ||
9416aa89 RD |
285 | static void *SwigwxEvtHandlerTowxObject(void *ptr) { |
286 | wxEvtHandler *src; | |
287 | wxObject *dest; | |
288 | src = (wxEvtHandler *) ptr; | |
289 | dest = (wxObject *) src; | |
290 | return (void *) dest; | |
291 | } | |
292 | ||
c368d904 RD |
293 | #define new_wxEvtHandler() (new wxEvtHandler()) |
294 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
295 | PyObject * _resultobj; | |
296 | wxEvtHandler * _result; | |
297 | char *_kwnames[] = { NULL }; | |
298 | char _ptemp[128]; | |
299 | ||
300 | self = self; | |
301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
302 | return NULL; | |
303 | { | |
4268f798 | 304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 305 | _result = (wxEvtHandler *)new_wxEvtHandler(); |
c368d904 | 306 | |
4268f798 | 307 | wxPyEndAllowThreads(__tstate); |
493f1553 | 308 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
309 | } if (_result) { |
310 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
311 | _resultobj = Py_BuildValue("s",_ptemp); | |
312 | } else { | |
313 | Py_INCREF(Py_None); | |
314 | _resultobj = Py_None; | |
315 | } | |
316 | return _resultobj; | |
317 | } | |
318 | ||
2f90df85 RD |
319 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
320 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
321 | PyObject * _resultobj; | |
322 | bool _result; | |
323 | wxEvtHandler * _arg0; | |
324 | wxEvent * _arg1; | |
325 | PyObject * _argo0 = 0; | |
326 | PyObject * _argo1 = 0; | |
327 | char *_kwnames[] = { "self","event", NULL }; | |
328 | ||
329 | self = self; | |
330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
331 | return NULL; | |
332 | if (_argo0) { | |
333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
336 | return NULL; | |
337 | } | |
338 | } | |
339 | if (_argo1) { | |
7e50db3f | 340 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { |
2f90df85 RD |
341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); |
342 | return NULL; | |
343 | } | |
344 | } | |
345 | { | |
4268f798 | 346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 347 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); |
2f90df85 | 348 | |
4268f798 | 349 | wxPyEndAllowThreads(__tstate); |
493f1553 | 350 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
351 | } _resultobj = Py_BuildValue("i",_result); |
352 | return _resultobj; | |
353 | } | |
354 | ||
f6bcfd97 BP |
355 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
356 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
357 | PyObject * _resultobj; | |
358 | wxEvtHandler * _arg0; | |
359 | wxEvent * _arg1; | |
360 | PyObject * _argo0 = 0; | |
361 | PyObject * _argo1 = 0; | |
362 | char *_kwnames[] = { "self","event", NULL }; | |
363 | ||
364 | self = self; | |
365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
366 | return NULL; | |
367 | if (_argo0) { | |
368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
371 | return NULL; | |
372 | } | |
373 | } | |
374 | if (_argo1) { | |
7e50db3f | 375 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { |
f6bcfd97 BP |
376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); |
377 | return NULL; | |
378 | } | |
379 | } | |
380 | { | |
4268f798 | 381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 382 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); |
f6bcfd97 | 383 | |
4268f798 | 384 | wxPyEndAllowThreads(__tstate); |
493f1553 | 385 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
386 | } Py_INCREF(Py_None); |
387 | _resultobj = Py_None; | |
388 | return _resultobj; | |
389 | } | |
390 | ||
2f90df85 RD |
391 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
392 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
393 | PyObject * _resultobj; | |
394 | bool _result; | |
395 | wxEvtHandler * _arg0; | |
396 | PyObject * _argo0 = 0; | |
397 | char *_kwnames[] = { "self", NULL }; | |
398 | ||
399 | self = self; | |
400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
401 | return NULL; | |
402 | if (_argo0) { | |
403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
406 | return NULL; | |
407 | } | |
408 | } | |
409 | { | |
4268f798 | 410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 411 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); |
2f90df85 | 412 | |
4268f798 | 413 | wxPyEndAllowThreads(__tstate); |
493f1553 | 414 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
415 | } _resultobj = Py_BuildValue("i",_result); |
416 | return _resultobj; | |
417 | } | |
418 | ||
419 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
420 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
421 | PyObject * _resultobj; | |
422 | wxEvtHandler * _arg0; | |
423 | bool _arg1; | |
424 | PyObject * _argo0 = 0; | |
425 | int tempbool1; | |
426 | char *_kwnames[] = { "self","enabled", NULL }; | |
427 | ||
428 | self = self; | |
429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
430 | return NULL; | |
431 | if (_argo0) { | |
432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
435 | return NULL; | |
436 | } | |
437 | } | |
438 | _arg1 = (bool ) tempbool1; | |
439 | { | |
4268f798 | 440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 441 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); |
2f90df85 | 442 | |
4268f798 | 443 | wxPyEndAllowThreads(__tstate); |
493f1553 | 444 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
445 | } Py_INCREF(Py_None); |
446 | _resultobj = Py_None; | |
447 | return _resultobj; | |
448 | } | |
449 | ||
450 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
451 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
452 | PyObject * _resultobj; | |
453 | wxEvtHandler * _result; | |
454 | wxEvtHandler * _arg0; | |
455 | PyObject * _argo0 = 0; | |
456 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
457 | |
458 | self = self; | |
459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
460 | return NULL; | |
461 | if (_argo0) { | |
462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
465 | return NULL; | |
466 | } | |
467 | } | |
468 | { | |
4268f798 | 469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 470 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); |
2f90df85 | 471 | |
4268f798 | 472 | wxPyEndAllowThreads(__tstate); |
493f1553 | 473 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 474 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
475 | return _resultobj; |
476 | } | |
477 | ||
478 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
479 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
480 | PyObject * _resultobj; | |
481 | wxEvtHandler * _result; | |
482 | wxEvtHandler * _arg0; | |
483 | PyObject * _argo0 = 0; | |
484 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
485 | |
486 | self = self; | |
487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
488 | return NULL; | |
489 | if (_argo0) { | |
490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
493 | return NULL; | |
494 | } | |
495 | } | |
496 | { | |
4268f798 | 497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 498 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); |
2f90df85 | 499 | |
4268f798 | 500 | wxPyEndAllowThreads(__tstate); |
493f1553 | 501 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 502 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
503 | return _resultobj; |
504 | } | |
505 | ||
506 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
507 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
508 | PyObject * _resultobj; | |
509 | wxEvtHandler * _arg0; | |
510 | wxEvtHandler * _arg1; | |
511 | PyObject * _argo0 = 0; | |
512 | PyObject * _argo1 = 0; | |
513 | char *_kwnames[] = { "self","handler", NULL }; | |
514 | ||
515 | self = self; | |
516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
517 | return NULL; | |
518 | if (_argo0) { | |
519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
522 | return NULL; | |
523 | } | |
524 | } | |
525 | if (_argo1) { | |
526 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
527 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
529 | return NULL; | |
530 | } | |
531 | } | |
532 | { | |
4268f798 | 533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 534 | wxEvtHandler_SetNextHandler(_arg0,_arg1); |
2f90df85 | 535 | |
4268f798 | 536 | wxPyEndAllowThreads(__tstate); |
493f1553 | 537 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
538 | } Py_INCREF(Py_None); |
539 | _resultobj = Py_None; | |
540 | return _resultobj; | |
541 | } | |
542 | ||
543 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
544 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
545 | PyObject * _resultobj; | |
546 | wxEvtHandler * _arg0; | |
547 | wxEvtHandler * _arg1; | |
548 | PyObject * _argo0 = 0; | |
549 | PyObject * _argo1 = 0; | |
550 | char *_kwnames[] = { "self","handler", NULL }; | |
551 | ||
552 | self = self; | |
553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
554 | return NULL; | |
555 | if (_argo0) { | |
556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
559 | return NULL; | |
560 | } | |
561 | } | |
562 | if (_argo1) { | |
563 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
564 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
566 | return NULL; | |
567 | } | |
568 | } | |
569 | { | |
4268f798 | 570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 571 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); |
2f90df85 | 572 | |
4268f798 | 573 | wxPyEndAllowThreads(__tstate); |
493f1553 | 574 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
575 | } Py_INCREF(Py_None); |
576 | _resultobj = Py_None; | |
577 | return _resultobj; | |
578 | } | |
579 | ||
580 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
581 | if (PyCallable_Check(func)) { | |
582 | self->Connect(id, lastId, eventType, | |
583 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
584 | new wxPyCallback(func)); | |
585 | } | |
25b00b4e RD |
586 | else if (func == Py_None) { |
587 | self->Disconnect(id, lastId, eventType, | |
588 | (wxObjectEventFunction) | |
589 | &wxPyCallback::EventThunker); | |
590 | } | |
591 | else { | |
592 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
593 | } | |
2f90df85 RD |
594 | } |
595 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
596 | PyObject * _resultobj; | |
597 | wxEvtHandler * _arg0; | |
598 | int _arg1; | |
599 | int _arg2; | |
600 | int _arg3; | |
601 | PyObject * _arg4; | |
602 | PyObject * _argo0 = 0; | |
603 | PyObject * _obj4 = 0; | |
604 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
605 | ||
606 | self = self; | |
607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
608 | return NULL; | |
609 | if (_argo0) { | |
610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
613 | return NULL; | |
614 | } | |
615 | } | |
616 | { | |
617 | _arg4 = _obj4; | |
618 | } | |
619 | { | |
4268f798 | 620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 621 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); |
2f90df85 | 622 | |
4268f798 | 623 | wxPyEndAllowThreads(__tstate); |
493f1553 | 624 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
625 | } Py_INCREF(Py_None); |
626 | _resultobj = Py_None; | |
627 | return _resultobj; | |
628 | } | |
629 | ||
6999b0d8 RD |
630 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
631 | return self->Disconnect(id, lastId, eventType, | |
632 | (wxObjectEventFunction) | |
633 | &wxPyCallback::EventThunker); | |
634 | } | |
635 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
636 | PyObject * _resultobj; | |
637 | bool _result; | |
638 | wxEvtHandler * _arg0; | |
639 | int _arg1; | |
640 | int _arg2 = (int ) -1; | |
641 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
642 | PyObject * _argo0 = 0; | |
643 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
644 | ||
645 | self = self; | |
646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
647 | return NULL; | |
648 | if (_argo0) { | |
649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
652 | return NULL; | |
653 | } | |
654 | } | |
655 | { | |
4268f798 | 656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 657 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); |
6999b0d8 | 658 | |
4268f798 | 659 | wxPyEndAllowThreads(__tstate); |
493f1553 | 660 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
661 | } _resultobj = Py_BuildValue("i",_result); |
662 | return _resultobj; | |
663 | } | |
664 | ||
0122b7e3 | 665 | static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject * _self) { |
4acff284 | 666 | self->SetClientObject(new wxPyOORClientData(_self)); |
0122b7e3 RD |
667 | } |
668 | static PyObject *_wrap_wxEvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
669 | PyObject * _resultobj; | |
670 | wxEvtHandler * _arg0; | |
671 | PyObject * _arg1; | |
672 | PyObject * _argo0 = 0; | |
673 | PyObject * _obj1 = 0; | |
674 | char *_kwnames[] = { "self","_self", NULL }; | |
675 | ||
676 | self = self; | |
677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler__setOORInfo",_kwnames,&_argo0,&_obj1)) | |
678 | return NULL; | |
679 | if (_argo0) { | |
680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p."); | |
683 | return NULL; | |
684 | } | |
685 | } | |
686 | { | |
687 | _arg1 = _obj1; | |
688 | } | |
689 | { | |
4268f798 | 690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 691 | wxEvtHandler__setOORInfo(_arg0,_arg1); |
0122b7e3 | 692 | |
4268f798 | 693 | wxPyEndAllowThreads(__tstate); |
0122b7e3 RD |
694 | if (PyErr_Occurred()) return NULL; |
695 | } Py_INCREF(Py_None); | |
696 | _resultobj = Py_None; | |
697 | return _resultobj; | |
698 | } | |
699 | ||
2f90df85 RD |
700 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
701 | wxValidator *src; | |
702 | wxEvtHandler *dest; | |
703 | src = (wxValidator *) ptr; | |
704 | dest = (wxEvtHandler *) src; | |
705 | return (void *) dest; | |
706 | } | |
707 | ||
9416aa89 RD |
708 | static void *SwigwxValidatorTowxObject(void *ptr) { |
709 | wxValidator *src; | |
710 | wxObject *dest; | |
711 | src = (wxValidator *) ptr; | |
712 | dest = (wxObject *) src; | |
713 | return (void *) dest; | |
714 | } | |
715 | ||
2f90df85 RD |
716 | #define new_wxValidator() (new wxValidator()) |
717 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
718 | PyObject * _resultobj; | |
719 | wxValidator * _result; | |
720 | char *_kwnames[] = { NULL }; | |
721 | char _ptemp[128]; | |
722 | ||
723 | self = self; | |
724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
725 | return NULL; | |
726 | { | |
4268f798 | 727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 728 | _result = (wxValidator *)new_wxValidator(); |
2f90df85 | 729 | |
4268f798 | 730 | wxPyEndAllowThreads(__tstate); |
493f1553 | 731 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
732 | } if (_result) { |
733 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
734 | _resultobj = Py_BuildValue("s",_ptemp); | |
735 | } else { | |
736 | Py_INCREF(Py_None); | |
737 | _resultobj = Py_None; | |
738 | } | |
739 | return _resultobj; | |
af309447 | 740 | } |
2f90df85 RD |
741 | |
742 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
743 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 744 | PyObject * _resultobj; |
2f90df85 RD |
745 | wxValidator * _result; |
746 | wxValidator * _arg0; | |
747 | PyObject * _argo0 = 0; | |
748 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
749 | |
750 | self = self; | |
2f90df85 RD |
751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
752 | return NULL; | |
753 | if (_argo0) { | |
754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 757 | return NULL; |
2f90df85 RD |
758 | } |
759 | } | |
cf694132 | 760 | { |
4268f798 | 761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 762 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 | 763 | |
4268f798 | 764 | wxPyEndAllowThreads(__tstate); |
493f1553 | 765 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 766 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
767 | return _resultobj; |
768 | } | |
769 | ||
2f90df85 RD |
770 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
771 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
772 | PyObject * _resultobj; |
773 | wxWindow * _result; | |
2f90df85 RD |
774 | wxValidator * _arg0; |
775 | PyObject * _argo0 = 0; | |
776 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
777 | |
778 | self = self; | |
2f90df85 RD |
779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
780 | return NULL; | |
781 | if (_argo0) { | |
782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 785 | return NULL; |
2f90df85 RD |
786 | } |
787 | } | |
cf694132 | 788 | { |
4268f798 | 789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 790 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 | 791 | |
4268f798 | 792 | wxPyEndAllowThreads(__tstate); |
493f1553 | 793 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 794 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
795 | return _resultobj; |
796 | } | |
797 | ||
2f90df85 RD |
798 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
799 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 800 | PyObject * _resultobj; |
2f90df85 RD |
801 | wxValidator * _arg0; |
802 | wxWindow * _arg1; | |
1d99702e RD |
803 | PyObject * _argo0 = 0; |
804 | PyObject * _argo1 = 0; | |
2f90df85 | 805 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
806 | |
807 | self = self; | |
2f90df85 | 808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 809 | return NULL; |
1d99702e RD |
810 | if (_argo0) { |
811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
814 | return NULL; |
815 | } | |
816 | } | |
1d99702e RD |
817 | if (_argo1) { |
818 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
819 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
821 | return NULL; |
822 | } | |
823 | } | |
824 | { | |
4268f798 | 825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 826 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 | 827 | |
4268f798 | 828 | wxPyEndAllowThreads(__tstate); |
493f1553 | 829 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
830 | } Py_INCREF(Py_None); |
831 | _resultobj = Py_None; | |
cf694132 RD |
832 | return _resultobj; |
833 | } | |
834 | ||
9416aa89 RD |
835 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { |
836 | PyObject * _resultobj; | |
837 | bool _result; | |
838 | char *_kwnames[] = { NULL }; | |
839 | ||
840 | self = self; | |
841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
842 | return NULL; | |
843 | { | |
4268f798 | 844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 845 | _result = (bool )wxValidator::IsSilent(); |
9416aa89 | 846 | |
4268f798 | 847 | wxPyEndAllowThreads(__tstate); |
493f1553 | 848 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
849 | } _resultobj = Py_BuildValue("i",_result); |
850 | return _resultobj; | |
851 | } | |
852 | ||
853 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
854 | PyObject * _resultobj; | |
855 | int _arg0 = (int ) TRUE; | |
856 | char *_kwnames[] = { "doIt", NULL }; | |
857 | ||
858 | self = self; | |
859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
860 | return NULL; | |
861 | { | |
4268f798 | 862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 863 | wxValidator::SetBellOnError(_arg0); |
9416aa89 | 864 | |
4268f798 | 865 | wxPyEndAllowThreads(__tstate); |
493f1553 | 866 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
867 | } Py_INCREF(Py_None); |
868 | _resultobj = Py_None; | |
869 | return _resultobj; | |
870 | } | |
871 | ||
2f90df85 RD |
872 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
873 | wxPyValidator *src; | |
874 | wxValidator *dest; | |
875 | src = (wxPyValidator *) ptr; | |
876 | dest = (wxValidator *) src; | |
877 | return (void *) dest; | |
878 | } | |
879 | ||
880 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
881 | wxPyValidator *src; | |
882 | wxEvtHandler *dest; | |
883 | src = (wxPyValidator *) ptr; | |
884 | dest = (wxEvtHandler *) src; | |
885 | return (void *) dest; | |
886 | } | |
887 | ||
9416aa89 RD |
888 | static void *SwigwxPyValidatorTowxObject(void *ptr) { |
889 | wxPyValidator *src; | |
890 | wxObject *dest; | |
891 | src = (wxPyValidator *) ptr; | |
892 | dest = (wxObject *) src; | |
893 | return (void *) dest; | |
894 | } | |
895 | ||
2f90df85 RD |
896 | #define new_wxPyValidator() (new wxPyValidator()) |
897 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
898 | PyObject * _resultobj; | |
899 | wxPyValidator * _result; | |
900 | char *_kwnames[] = { NULL }; | |
901 | char _ptemp[128]; | |
902 | ||
903 | self = self; | |
904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
905 | return NULL; | |
906 | { | |
4268f798 | 907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 908 | _result = (wxPyValidator *)new_wxPyValidator(); |
2f90df85 | 909 | |
4268f798 | 910 | wxPyEndAllowThreads(__tstate); |
493f1553 | 911 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
912 | } if (_result) { |
913 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
914 | _resultobj = Py_BuildValue("s",_ptemp); | |
915 | } else { | |
916 | Py_INCREF(Py_None); | |
917 | _resultobj = Py_None; | |
918 | } | |
919 | return _resultobj; | |
920 | } | |
921 | ||
0122b7e3 RD |
922 | #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2)) |
923 | static PyObject *_wrap_wxPyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 924 | PyObject * _resultobj; |
2f90df85 RD |
925 | wxPyValidator * _arg0; |
926 | PyObject * _arg1; | |
f6bcfd97 BP |
927 | PyObject * _arg2; |
928 | int _arg3 = (int ) TRUE; | |
1d99702e | 929 | PyObject * _argo0 = 0; |
2f90df85 | 930 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
931 | PyObject * _obj2 = 0; |
932 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
933 | |
934 | self = self; | |
0122b7e3 | 935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 936 | return NULL; |
1d99702e RD |
937 | if (_argo0) { |
938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 | 939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
0122b7e3 | 940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p."); |
8ab979d7 RD |
941 | return NULL; |
942 | } | |
943 | } | |
944 | { | |
2f90df85 | 945 | _arg1 = _obj1; |
8ab979d7 | 946 | } |
f6bcfd97 BP |
947 | { |
948 | _arg2 = _obj2; | |
949 | } | |
cf694132 | 950 | { |
4268f798 | 951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 952 | wxPyValidator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 953 | |
4268f798 | 954 | wxPyEndAllowThreads(__tstate); |
493f1553 | 955 | if (PyErr_Occurred()) return NULL; |
cf694132 | 956 | } Py_INCREF(Py_None); |
8ab979d7 RD |
957 | _resultobj = Py_None; |
958 | return _resultobj; | |
959 | } | |
960 | ||
961 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
962 | wxWindow *src; | |
963 | wxEvtHandler *dest; | |
964 | src = (wxWindow *) ptr; | |
965 | dest = (wxEvtHandler *) src; | |
966 | return (void *) dest; | |
967 | } | |
968 | ||
9416aa89 RD |
969 | static void *SwigwxWindowTowxObject(void *ptr) { |
970 | wxWindow *src; | |
971 | wxObject *dest; | |
972 | src = (wxWindow *) ptr; | |
973 | dest = (wxObject *) src; | |
974 | return (void *) dest; | |
975 | } | |
976 | ||
8ab979d7 | 977 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 978 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
979 | PyObject * _resultobj; |
980 | wxWindow * _result; | |
981 | wxWindow * _arg0; | |
982 | wxWindowID _arg1; | |
e508a2b6 RD |
983 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
984 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 985 | long _arg4 = (long ) 0; |
137b5242 | 986 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 987 | PyObject * _argo0 = 0; |
2f90df85 RD |
988 | wxPoint temp; |
989 | PyObject * _obj2 = 0; | |
990 | wxSize temp0; | |
991 | PyObject * _obj3 = 0; | |
137b5242 | 992 | PyObject * _obj5 = 0; |
efc5f224 | 993 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
994 | char _ptemp[128]; |
995 | ||
996 | self = self; | |
137b5242 | 997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 998 | return NULL; |
1d99702e RD |
999 | if (_argo0) { |
1000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
1003 | return NULL; | |
1004 | } | |
1005 | } | |
2f90df85 RD |
1006 | if (_obj2) |
1007 | { | |
1008 | _arg2 = &temp; | |
1009 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 1010 | return NULL; |
2f90df85 RD |
1011 | } |
1012 | if (_obj3) | |
1013 | { | |
1014 | _arg3 = &temp0; | |
1015 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 1016 | return NULL; |
137b5242 RD |
1017 | } |
1018 | if (_obj5) | |
1019 | { | |
1020 | _arg5 = wxString_in_helper(_obj5); | |
1021 | if (_arg5 == NULL) | |
1022 | return NULL; | |
2f90df85 | 1023 | } |
cf694132 | 1024 | { |
4268f798 | 1025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 1026 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 1027 | |
4268f798 | 1028 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1029 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1030 | } if (_result) { |
1031 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1032 | _resultobj = Py_BuildValue("s",_ptemp); | |
1033 | } else { | |
1034 | Py_INCREF(Py_None); | |
1035 | _resultobj = Py_None; | |
1036 | } | |
137b5242 RD |
1037 | { |
1038 | if (_obj5) | |
1039 | delete _arg5; | |
1040 | } | |
8ab979d7 RD |
1041 | return _resultobj; |
1042 | } | |
1043 | ||
09f3d4e6 RD |
1044 | #define new_wxPreWindow() (new wxWindow()) |
1045 | static PyObject *_wrap_new_wxPreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1046 | PyObject * _resultobj; | |
1047 | wxWindow * _result; | |
1048 | char *_kwnames[] = { NULL }; | |
1049 | char _ptemp[128]; | |
1050 | ||
1051 | self = self; | |
1052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreWindow",_kwnames)) | |
1053 | return NULL; | |
1054 | { | |
4268f798 | 1055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1056 | _result = (wxWindow *)new_wxPreWindow(); |
09f3d4e6 | 1057 | |
4268f798 | 1058 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1059 | if (PyErr_Occurred()) return NULL; |
1060 | } if (_result) { | |
1061 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1062 | _resultobj = Py_BuildValue("s",_ptemp); | |
1063 | } else { | |
1064 | Py_INCREF(Py_None); | |
1065 | _resultobj = Py_None; | |
1066 | } | |
1067 | return _resultobj; | |
1068 | } | |
1069 | ||
1070 | #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1071 | static PyObject *_wrap_wxWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1072 | PyObject * _resultobj; | |
1073 | bool _result; | |
1074 | wxWindow * _arg0; | |
1075 | wxWindow * _arg1; | |
1076 | wxWindowID _arg2; | |
1077 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1078 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1079 | long _arg5 = (long ) 0; | |
137b5242 | 1080 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
09f3d4e6 RD |
1081 | PyObject * _argo0 = 0; |
1082 | PyObject * _argo1 = 0; | |
1083 | wxPoint temp; | |
1084 | PyObject * _obj3 = 0; | |
1085 | wxSize temp0; | |
1086 | PyObject * _obj4 = 0; | |
137b5242 | 1087 | PyObject * _obj6 = 0; |
09f3d4e6 RD |
1088 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
1089 | ||
1090 | self = self; | |
137b5242 | 1091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
09f3d4e6 RD |
1092 | return NULL; |
1093 | if (_argo0) { | |
1094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p."); | |
1097 | return NULL; | |
1098 | } | |
1099 | } | |
1100 | if (_argo1) { | |
1101 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1102 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p."); | |
1104 | return NULL; | |
1105 | } | |
1106 | } | |
1107 | if (_obj3) | |
1108 | { | |
1109 | _arg3 = &temp; | |
1110 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1111 | return NULL; | |
1112 | } | |
1113 | if (_obj4) | |
1114 | { | |
1115 | _arg4 = &temp0; | |
1116 | if (! wxSize_helper(_obj4, &_arg4)) | |
1117 | return NULL; | |
137b5242 RD |
1118 | } |
1119 | if (_obj6) | |
1120 | { | |
1121 | _arg6 = wxString_in_helper(_obj6); | |
1122 | if (_arg6 == NULL) | |
1123 | return NULL; | |
09f3d4e6 RD |
1124 | } |
1125 | { | |
4268f798 | 1126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 1127 | _result = (bool )wxWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
09f3d4e6 | 1128 | |
4268f798 | 1129 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1130 | if (PyErr_Occurred()) return NULL; |
1131 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
1132 | { |
1133 | if (_obj6) | |
1134 | delete _arg6; | |
1135 | } | |
09f3d4e6 RD |
1136 | return _resultobj; |
1137 | } | |
1138 | ||
8ab979d7 | 1139 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) |
efc5f224 | 1140 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1141 | PyObject * _resultobj; |
1142 | wxWindow * _arg0; | |
1d99702e RD |
1143 | int _arg1 = (int ) wxBOTH; |
1144 | PyObject * _argo0 = 0; | |
efc5f224 | 1145 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1146 | |
1147 | self = self; | |
efc5f224 | 1148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1149 | return NULL; |
1d99702e RD |
1150 | if (_argo0) { |
1151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
1154 | return NULL; | |
1155 | } | |
1156 | } | |
cf694132 | 1157 | { |
4268f798 | 1158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1159 | wxWindow_Center(_arg0,_arg1); |
cf694132 | 1160 | |
4268f798 | 1161 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1162 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1163 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1164 | _resultobj = Py_None; |
1165 | return _resultobj; | |
1166 | } | |
1167 | ||
1168 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 1169 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1170 | PyObject * _resultobj; |
1171 | wxWindow * _arg0; | |
1d99702e RD |
1172 | int _arg1 = (int ) wxBOTH; |
1173 | PyObject * _argo0 = 0; | |
efc5f224 | 1174 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1175 | |
1176 | self = self; | |
efc5f224 | 1177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1178 | return NULL; |
1d99702e RD |
1179 | if (_argo0) { |
1180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
1183 | return NULL; | |
1184 | } | |
1185 | } | |
cf694132 | 1186 | { |
4268f798 | 1187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1188 | wxWindow_Centre(_arg0,_arg1); |
cf694132 | 1189 | |
4268f798 | 1190 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1191 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1192 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1193 | _resultobj = Py_None; |
1194 | return _resultobj; | |
1195 | } | |
1196 | ||
bb0054cd | 1197 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 1198 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1199 | PyObject * _resultobj; |
1200 | wxWindow * _arg0; | |
1d99702e RD |
1201 | int _arg1 = (int ) wxBOTH; |
1202 | PyObject * _argo0 = 0; | |
efc5f224 | 1203 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1204 | |
1205 | self = self; | |
efc5f224 | 1206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1207 | return NULL; |
1d99702e RD |
1208 | if (_argo0) { |
1209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
1212 | return NULL; | |
1213 | } | |
1214 | } | |
1215 | { | |
4268f798 | 1216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1217 | wxWindow_CentreOnParent(_arg0,_arg1); |
bb0054cd | 1218 | |
4268f798 | 1219 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1220 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1221 | } Py_INCREF(Py_None); |
1222 | _resultobj = Py_None; | |
1223 | return _resultobj; | |
1224 | } | |
1225 | ||
1226 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 1227 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1228 | PyObject * _resultobj; |
1229 | wxWindow * _arg0; | |
1d99702e RD |
1230 | int _arg1 = (int ) wxBOTH; |
1231 | PyObject * _argo0 = 0; | |
efc5f224 | 1232 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1233 | |
1234 | self = self; | |
efc5f224 | 1235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1236 | return NULL; |
1d99702e RD |
1237 | if (_argo0) { |
1238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
1241 | return NULL; | |
1242 | } | |
1243 | } | |
1244 | { | |
4268f798 | 1245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1246 | wxWindow_CenterOnParent(_arg0,_arg1); |
bb0054cd | 1247 | |
4268f798 | 1248 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1249 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1250 | } Py_INCREF(Py_None); |
1251 | _resultobj = Py_None; | |
1252 | return _resultobj; | |
1253 | } | |
1254 | ||
3ca6a5f0 BP |
1255 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
1256 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1257 | PyObject * _resultobj; | |
1258 | wxWindow * _arg0; | |
1259 | int _arg1 = (int ) wxBOTH; | |
1260 | PyObject * _argo0 = 0; | |
1261 | char *_kwnames[] = { "self","direction", NULL }; | |
1262 | ||
1263 | self = self; | |
1264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1265 | return NULL; | |
1266 | if (_argo0) { | |
1267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1270 | return NULL; | |
1271 | } | |
1272 | } | |
1273 | { | |
4268f798 | 1274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1275 | wxWindow_CentreOnScreen(_arg0,_arg1); |
3ca6a5f0 | 1276 | |
4268f798 | 1277 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1278 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1279 | } Py_INCREF(Py_None); |
1280 | _resultobj = Py_None; | |
1281 | return _resultobj; | |
1282 | } | |
1283 | ||
1284 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1285 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1286 | PyObject * _resultobj; | |
1287 | wxWindow * _arg0; | |
1288 | int _arg1 = (int ) wxBOTH; | |
1289 | PyObject * _argo0 = 0; | |
1290 | char *_kwnames[] = { "self","direction", NULL }; | |
1291 | ||
1292 | self = self; | |
1293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1294 | return NULL; | |
1295 | if (_argo0) { | |
1296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1299 | return NULL; | |
1300 | } | |
1301 | } | |
1302 | { | |
4268f798 | 1303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1304 | wxWindow_CenterOnScreen(_arg0,_arg1); |
3ca6a5f0 | 1305 | |
4268f798 | 1306 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1307 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1308 | } Py_INCREF(Py_None); |
1309 | _resultobj = Py_None; | |
1310 | return _resultobj; | |
1311 | } | |
1312 | ||
d56cebe7 RD |
1313 | #define wxWindow_Clear(_swigobj) (_swigobj->Clear()) |
1314 | static PyObject *_wrap_wxWindow_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1315 | PyObject * _resultobj; | |
1316 | wxWindow * _arg0; | |
1317 | PyObject * _argo0 = 0; | |
1318 | char *_kwnames[] = { "self", NULL }; | |
1319 | ||
1320 | self = self; | |
1321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Clear",_kwnames,&_argo0)) | |
1322 | return NULL; | |
1323 | if (_argo0) { | |
1324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p."); | |
1327 | return NULL; | |
1328 | } | |
1329 | } | |
1330 | { | |
4268f798 | 1331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1332 | wxWindow_Clear(_arg0); |
d56cebe7 | 1333 | |
4268f798 | 1334 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
1335 | if (PyErr_Occurred()) return NULL; |
1336 | } Py_INCREF(Py_None); | |
1337 | _resultobj = Py_None; | |
1338 | return _resultobj; | |
1339 | } | |
1340 | ||
af309447 | 1341 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1342 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1343 | PyObject * _resultobj; |
1344 | wxWindow * _arg0; | |
1345 | int * _arg1; | |
1346 | int * _arg2; | |
1d99702e | 1347 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1348 | int temp; |
1349 | PyObject * _obj1 = 0; | |
1350 | int temp0; | |
1351 | PyObject * _obj2 = 0; | |
efc5f224 | 1352 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1353 | |
1354 | self = self; | |
efc5f224 | 1355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1356 | return NULL; |
1d99702e RD |
1357 | if (_argo0) { |
1358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1361 | return NULL; |
1362 | } | |
1363 | } | |
1364 | { | |
1365 | temp = (int) PyInt_AsLong(_obj1); | |
1366 | _arg1 = &temp; | |
1367 | } | |
1368 | { | |
1369 | temp0 = (int) PyInt_AsLong(_obj2); | |
1370 | _arg2 = &temp0; | |
1371 | } | |
cf694132 | 1372 | { |
4268f798 | 1373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1374 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); |
cf694132 | 1375 | |
4268f798 | 1376 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1377 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1378 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1379 | _resultobj = Py_None; |
1380 | { | |
1381 | PyObject *o; | |
1382 | o = PyInt_FromLong((long) (*_arg1)); | |
1383 | _resultobj = t_output_helper(_resultobj, o); | |
1384 | } | |
1385 | { | |
1386 | PyObject *o; | |
1387 | o = PyInt_FromLong((long) (*_arg2)); | |
1388 | _resultobj = t_output_helper(_resultobj, o); | |
1389 | } | |
1390 | return _resultobj; | |
1391 | } | |
1392 | ||
af309447 | 1393 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1394 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1395 | PyObject * _resultobj; |
1396 | wxPoint * _result; | |
1397 | wxWindow * _arg0; | |
1398 | wxPoint * _arg1; | |
1d99702e | 1399 | PyObject * _argo0 = 0; |
2f90df85 RD |
1400 | wxPoint temp; |
1401 | PyObject * _obj1 = 0; | |
efc5f224 | 1402 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1403 | char _ptemp[128]; |
1404 | ||
1405 | self = self; | |
2f90df85 | 1406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1407 | return NULL; |
1d99702e RD |
1408 | if (_argo0) { |
1409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1412 | return NULL; | |
1413 | } | |
1414 | } | |
2f90df85 RD |
1415 | { |
1416 | _arg1 = &temp; | |
1417 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1418 | return NULL; |
2f90df85 | 1419 | } |
cf694132 | 1420 | { |
4268f798 | 1421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1422 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); |
cf694132 | 1423 | |
4268f798 | 1424 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1425 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1426 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
1427 | _resultobj = Py_BuildValue("s",_ptemp); |
1428 | return _resultobj; | |
1429 | } | |
1430 | ||
8ab979d7 | 1431 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1432 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1433 | PyObject * _resultobj; |
1434 | bool _result; | |
1435 | wxWindow * _arg0; | |
1d99702e RD |
1436 | int _arg1 = (int ) FALSE; |
1437 | PyObject * _argo0 = 0; | |
efc5f224 | 1438 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1439 | |
1440 | self = self; | |
efc5f224 | 1441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1442 | return NULL; |
1d99702e RD |
1443 | if (_argo0) { |
1444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1447 | return NULL; | |
1448 | } | |
1449 | } | |
cf694132 | 1450 | { |
4268f798 | 1451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1452 | _result = (bool )wxWindow_Close(_arg0,_arg1); |
cf694132 | 1453 | |
4268f798 | 1454 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1455 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1456 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1457 | return _resultobj; |
1458 | } | |
1459 | ||
1460 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1461 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1462 | PyObject * _resultobj; |
1463 | bool _result; | |
1464 | wxWindow * _arg0; | |
1d99702e | 1465 | PyObject * _argo0 = 0; |
efc5f224 | 1466 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1467 | |
1468 | self = self; | |
efc5f224 | 1469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1470 | return NULL; |
1d99702e RD |
1471 | if (_argo0) { |
1472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1475 | return NULL; | |
1476 | } | |
1477 | } | |
cf694132 | 1478 | { |
4268f798 | 1479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1480 | _result = (bool )wxWindow_Destroy(_arg0); |
cf694132 | 1481 | |
4268f798 | 1482 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1483 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1484 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1485 | return _resultobj; |
1486 | } | |
1487 | ||
1488 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1489 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1490 | PyObject * _resultobj; |
1491 | wxWindow * _arg0; | |
1d99702e | 1492 | PyObject * _argo0 = 0; |
efc5f224 | 1493 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1494 | |
1495 | self = self; | |
efc5f224 | 1496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1497 | return NULL; |
1d99702e RD |
1498 | if (_argo0) { |
1499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1502 | return NULL; | |
1503 | } | |
1504 | } | |
cf694132 | 1505 | { |
4268f798 | 1506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1507 | wxWindow_DestroyChildren(_arg0); |
cf694132 | 1508 | |
4268f798 | 1509 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1510 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1511 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1512 | _resultobj = Py_None; |
1513 | return _resultobj; | |
1514 | } | |
1515 | ||
ac346f50 RD |
1516 | #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted()) |
1517 | static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1518 | PyObject * _resultobj; | |
1519 | bool _result; | |
1520 | wxWindow * _arg0; | |
1521 | PyObject * _argo0 = 0; | |
1522 | char *_kwnames[] = { "self", NULL }; | |
1523 | ||
1524 | self = self; | |
1525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0)) | |
1526 | return NULL; | |
1527 | if (_argo0) { | |
1528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p."); | |
1531 | return NULL; | |
1532 | } | |
1533 | } | |
1534 | { | |
4268f798 | 1535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1536 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); |
ac346f50 | 1537 | |
4268f798 | 1538 | wxPyEndAllowThreads(__tstate); |
ac346f50 RD |
1539 | if (PyErr_Occurred()) return NULL; |
1540 | } _resultobj = Py_BuildValue("i",_result); | |
1541 | return _resultobj; | |
1542 | } | |
1543 | ||
8ab979d7 | 1544 | #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0)) |
efc5f224 | 1545 | static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1546 | PyObject * _resultobj; |
1547 | wxWindow * _arg0; | |
1548 | bool _arg1; | |
1d99702e | 1549 | PyObject * _argo0 = 0; |
8ab979d7 | 1550 | int tempbool1; |
efc5f224 | 1551 | char *_kwnames[] = { "self","accept", NULL }; |
8ab979d7 RD |
1552 | |
1553 | self = self; | |
efc5f224 | 1554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1555 | return NULL; |
1d99702e RD |
1556 | if (_argo0) { |
1557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p."); |
1560 | return NULL; | |
1561 | } | |
1562 | } | |
1563 | _arg1 = (bool ) tempbool1; | |
cf694132 | 1564 | { |
4268f798 | 1565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1566 | wxWindow_DragAcceptFiles(_arg0,_arg1); |
cf694132 | 1567 | |
4268f798 | 1568 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1569 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1570 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1571 | _resultobj = Py_None; |
1572 | return _resultobj; | |
1573 | } | |
1574 | ||
1575 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
efc5f224 | 1576 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1577 | PyObject * _resultobj; |
1578 | wxWindow * _arg0; | |
1579 | bool _arg1; | |
1d99702e | 1580 | PyObject * _argo0 = 0; |
8ab979d7 | 1581 | int tempbool1; |
efc5f224 | 1582 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1583 | |
1584 | self = self; | |
efc5f224 | 1585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1586 | return NULL; |
1d99702e RD |
1587 | if (_argo0) { |
1588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1591 | return NULL; | |
1592 | } | |
1593 | } | |
1594 | _arg1 = (bool ) tempbool1; | |
cf694132 | 1595 | { |
4268f798 | 1596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1597 | wxWindow_Enable(_arg0,_arg1); |
cf694132 | 1598 | |
4268f798 | 1599 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1600 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1601 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1602 | _resultobj = Py_None; |
1603 | return _resultobj; | |
1604 | } | |
1605 | ||
7e50db3f RD |
1606 | #define wxWindow_Disable(_swigobj) (_swigobj->Disable()) |
1607 | static PyObject *_wrap_wxWindow_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1608 | PyObject * _resultobj; | |
1609 | wxWindow * _arg0; | |
1610 | PyObject * _argo0 = 0; | |
1611 | char *_kwnames[] = { "self", NULL }; | |
1612 | ||
1613 | self = self; | |
1614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Disable",_kwnames,&_argo0)) | |
1615 | return NULL; | |
1616 | if (_argo0) { | |
1617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Disable. Expected _wxWindow_p."); | |
1620 | return NULL; | |
1621 | } | |
1622 | } | |
1623 | { | |
1624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1625 | wxWindow_Disable(_arg0); | |
1626 | ||
1627 | wxPyEndAllowThreads(__tstate); | |
1628 | if (PyErr_Occurred()) return NULL; | |
1629 | } Py_INCREF(Py_None); | |
1630 | _resultobj = Py_None; | |
1631 | return _resultobj; | |
1632 | } | |
1633 | ||
af309447 | 1634 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1635 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1636 | PyObject * _resultobj; |
1637 | wxWindow * _result; | |
1638 | wxWindow * _arg0; | |
1639 | long _arg1; | |
1d99702e | 1640 | PyObject * _argo0 = 0; |
efc5f224 | 1641 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1642 | |
1643 | self = self; | |
efc5f224 | 1644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1645 | return NULL; |
1d99702e RD |
1646 | if (_argo0) { |
1647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1650 | return NULL; |
1651 | } | |
1652 | } | |
cf694132 | 1653 | { |
4268f798 | 1654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1655 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); |
cf694132 | 1656 | |
4268f798 | 1657 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1658 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1659 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1660 | return _resultobj; |
1661 | } | |
1662 | ||
1663 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1664 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1665 | PyObject * _resultobj; |
1666 | wxWindow * _result; | |
1667 | wxWindow * _arg0; | |
1668 | wxString * _arg1; | |
1d99702e | 1669 | PyObject * _argo0 = 0; |
8ab979d7 | 1670 | PyObject * _obj1 = 0; |
efc5f224 | 1671 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1672 | |
1673 | self = self; | |
efc5f224 | 1674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1675 | return NULL; |
1d99702e RD |
1676 | if (_argo0) { |
1677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1680 | return NULL; | |
1681 | } | |
1682 | } | |
1683 | { | |
c8bc7bb8 RD |
1684 | _arg1 = wxString_in_helper(_obj1); |
1685 | if (_arg1 == NULL) | |
8ab979d7 | 1686 | return NULL; |
8ab979d7 | 1687 | } |
cf694132 | 1688 | { |
4268f798 | 1689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1690 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); |
cf694132 | 1691 | |
4268f798 | 1692 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1693 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1694 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1695 | { |
1696 | if (_obj1) | |
1697 | delete _arg1; | |
1698 | } | |
1699 | return _resultobj; | |
1700 | } | |
1701 | ||
1702 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1703 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1704 | PyObject * _resultobj; |
1705 | wxWindow * _arg0; | |
1d99702e | 1706 | PyObject * _argo0 = 0; |
efc5f224 | 1707 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1708 | |
1709 | self = self; | |
efc5f224 | 1710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1711 | return NULL; |
1d99702e RD |
1712 | if (_argo0) { |
1713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1716 | return NULL; | |
1717 | } | |
1718 | } | |
cf694132 | 1719 | { |
4268f798 | 1720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1721 | wxWindow_Fit(_arg0); |
cf694132 | 1722 | |
4268f798 | 1723 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1724 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1725 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1726 | _resultobj = Py_None; |
1727 | return _resultobj; | |
1728 | } | |
1729 | ||
7e50db3f RD |
1730 | #define wxWindow_FitInside(_swigobj) (_swigobj->FitInside()) |
1731 | static PyObject *_wrap_wxWindow_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1732 | PyObject * _resultobj; | |
1733 | wxWindow * _arg0; | |
1734 | PyObject * _argo0 = 0; | |
1735 | char *_kwnames[] = { "self", NULL }; | |
1736 | ||
1737 | self = self; | |
1738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_FitInside",_kwnames,&_argo0)) | |
1739 | return NULL; | |
1740 | if (_argo0) { | |
1741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FitInside. Expected _wxWindow_p."); | |
1744 | return NULL; | |
1745 | } | |
1746 | } | |
1747 | { | |
1748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1749 | wxWindow_FitInside(_arg0); | |
1750 | ||
1751 | wxPyEndAllowThreads(__tstate); | |
1752 | if (PyErr_Occurred()) return NULL; | |
1753 | } Py_INCREF(Py_None); | |
1754 | _resultobj = Py_None; | |
1755 | return _resultobj; | |
1756 | } | |
1757 | ||
8ab979d7 | 1758 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
efc5f224 | 1759 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1760 | PyObject * _resultobj; |
1761 | wxColour * _result; | |
1762 | wxWindow * _arg0; | |
1d99702e | 1763 | PyObject * _argo0 = 0; |
efc5f224 | 1764 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1765 | char _ptemp[128]; |
1766 | ||
1767 | self = self; | |
efc5f224 | 1768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1769 | return NULL; |
1d99702e RD |
1770 | if (_argo0) { |
1771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1774 | return NULL; | |
1775 | } | |
1776 | } | |
cf694132 | 1777 | { |
4268f798 | 1778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1779 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); |
cf694132 | 1780 | |
4268f798 | 1781 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1782 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1783 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1784 | _resultobj = Py_BuildValue("s",_ptemp); |
1785 | return _resultobj; | |
1786 | } | |
1787 | ||
23bed520 RD |
1788 | #define wxWindow_GetBorder(_swigobj) (_swigobj->GetBorder()) |
1789 | static PyObject *_wrap_wxWindow_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1790 | PyObject * _resultobj; | |
1791 | wxBorder _result; | |
1792 | wxWindow * _arg0; | |
1793 | PyObject * _argo0 = 0; | |
1794 | char *_kwnames[] = { "self", NULL }; | |
1795 | ||
1796 | self = self; | |
1797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBorder",_kwnames,&_argo0)) | |
1798 | return NULL; | |
1799 | if (_argo0) { | |
1800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBorder. Expected _wxWindow_p."); | |
1803 | return NULL; | |
1804 | } | |
1805 | } | |
1806 | { | |
1807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1808 | _result = (wxBorder )wxWindow_GetBorder(_arg0); |
23bed520 RD |
1809 | |
1810 | wxPyEndAllowThreads(__tstate); | |
1811 | if (PyErr_Occurred()) return NULL; | |
1812 | } _resultobj = Py_BuildValue("i",_result); | |
1813 | return _resultobj; | |
1814 | } | |
1815 | ||
d426c97e RD |
1816 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1817 | wxWindowList& list = self->GetChildren(); | |
1818 | return wxPy_ConvertList(&list, "wxWindow"); | |
1819 | } | |
1820 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1821 | PyObject * _resultobj; | |
1822 | PyObject * _result; | |
1823 | wxWindow * _arg0; | |
1824 | PyObject * _argo0 = 0; | |
1825 | char *_kwnames[] = { "self", NULL }; | |
1826 | ||
1827 | self = self; | |
1828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1829 | return NULL; | |
1830 | if (_argo0) { | |
1831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1834 | return NULL; | |
1835 | } | |
1836 | } | |
1837 | { | |
4268f798 | 1838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1839 | _result = (PyObject *)wxWindow_GetChildren(_arg0); |
d426c97e | 1840 | |
4268f798 | 1841 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1842 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
1843 | }{ |
1844 | _resultobj = _result; | |
1845 | } | |
1846 | return _resultobj; | |
1847 | } | |
1848 | ||
8ab979d7 | 1849 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1850 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1851 | PyObject * _resultobj; |
1852 | int _result; | |
1853 | wxWindow * _arg0; | |
1d99702e | 1854 | PyObject * _argo0 = 0; |
efc5f224 | 1855 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1856 | |
1857 | self = self; | |
efc5f224 | 1858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1859 | return NULL; |
1d99702e RD |
1860 | if (_argo0) { |
1861 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1862 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1864 | return NULL; | |
1865 | } | |
1866 | } | |
cf694132 | 1867 | { |
4268f798 | 1868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1869 | _result = (int )wxWindow_GetCharHeight(_arg0); |
cf694132 | 1870 | |
4268f798 | 1871 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1872 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1873 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1874 | return _resultobj; |
1875 | } | |
1876 | ||
1877 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1878 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1879 | PyObject * _resultobj; |
1880 | int _result; | |
1881 | wxWindow * _arg0; | |
1d99702e | 1882 | PyObject * _argo0 = 0; |
efc5f224 | 1883 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1884 | |
1885 | self = self; | |
efc5f224 | 1886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1887 | return NULL; |
1d99702e RD |
1888 | if (_argo0) { |
1889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1892 | return NULL; | |
1893 | } | |
1894 | } | |
cf694132 | 1895 | { |
4268f798 | 1896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1897 | _result = (int )wxWindow_GetCharWidth(_arg0); |
cf694132 | 1898 | |
4268f798 | 1899 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1900 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1901 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1902 | return _resultobj; |
1903 | } | |
1904 | ||
b8b8dda7 | 1905 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1906 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1907 | PyObject * _resultobj; |
1908 | wxWindow * _arg0; | |
1909 | int * _arg1; | |
1910 | int temp; | |
1911 | int * _arg2; | |
1912 | int temp0; | |
1d99702e | 1913 | PyObject * _argo0 = 0; |
efc5f224 | 1914 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1915 | |
1916 | self = self; | |
1917 | { | |
1918 | _arg1 = &temp; | |
1919 | } | |
1920 | { | |
1921 | _arg2 = &temp0; | |
1922 | } | |
efc5f224 | 1923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1924 | return NULL; |
1d99702e RD |
1925 | if (_argo0) { |
1926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1929 | return NULL; |
1930 | } | |
1931 | } | |
cf694132 | 1932 | { |
4268f798 | 1933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1934 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 1935 | |
4268f798 | 1936 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1937 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1938 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1939 | _resultobj = Py_None; |
1940 | { | |
1941 | PyObject *o; | |
1942 | o = PyInt_FromLong((long) (*_arg1)); | |
1943 | _resultobj = t_output_helper(_resultobj, o); | |
1944 | } | |
1945 | { | |
1946 | PyObject *o; | |
1947 | o = PyInt_FromLong((long) (*_arg2)); | |
1948 | _resultobj = t_output_helper(_resultobj, o); | |
1949 | } | |
1950 | return _resultobj; | |
1951 | } | |
1952 | ||
b8b8dda7 | 1953 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1954 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1955 | PyObject * _resultobj; |
1956 | wxSize * _result; | |
1957 | wxWindow * _arg0; | |
1d99702e | 1958 | PyObject * _argo0 = 0; |
efc5f224 | 1959 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1960 | char _ptemp[128]; |
1961 | ||
1962 | self = self; | |
efc5f224 | 1963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1964 | return NULL; |
1d99702e RD |
1965 | if (_argo0) { |
1966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1969 | return NULL; | |
1970 | } | |
1971 | } | |
cf694132 | 1972 | { |
4268f798 | 1973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1974 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); |
cf694132 | 1975 | |
4268f798 | 1976 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1977 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1978 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
1979 | _resultobj = Py_BuildValue("s",_ptemp); |
1980 | return _resultobj; | |
1981 | } | |
1982 | ||
23bed520 RD |
1983 | #define wxWindow_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin()) |
1984 | static PyObject *_wrap_wxWindow_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1985 | PyObject * _resultobj; | |
1986 | wxPoint * _result; | |
1987 | wxWindow * _arg0; | |
1988 | PyObject * _argo0 = 0; | |
1989 | char *_kwnames[] = { "self", NULL }; | |
1990 | char _ptemp[128]; | |
1991 | ||
1992 | self = self; | |
1993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientAreaOrigin",_kwnames,&_argo0)) | |
1994 | return NULL; | |
1995 | if (_argo0) { | |
1996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientAreaOrigin. Expected _wxWindow_p."); | |
1999 | return NULL; | |
2000 | } | |
2001 | } | |
2002 | { | |
2003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2004 | _result = new wxPoint (wxWindow_GetClientAreaOrigin(_arg0)); |
23bed520 RD |
2005 | |
2006 | wxPyEndAllowThreads(__tstate); | |
2007 | if (PyErr_Occurred()) return NULL; | |
2008 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
2009 | _resultobj = Py_BuildValue("s",_ptemp); | |
2010 | return _resultobj; | |
2011 | } | |
2012 | ||
2013 | #define wxWindow_GetClientRect(_swigobj) (_swigobj->GetClientRect()) | |
2014 | static PyObject *_wrap_wxWindow_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2015 | PyObject * _resultobj; | |
2016 | wxRect * _result; | |
2017 | wxWindow * _arg0; | |
2018 | PyObject * _argo0 = 0; | |
2019 | char *_kwnames[] = { "self", NULL }; | |
2020 | char _ptemp[128]; | |
2021 | ||
2022 | self = self; | |
2023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientRect",_kwnames,&_argo0)) | |
2024 | return NULL; | |
2025 | if (_argo0) { | |
2026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientRect. Expected _wxWindow_p."); | |
2029 | return NULL; | |
2030 | } | |
2031 | } | |
2032 | { | |
2033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2034 | _result = new wxRect (wxWindow_GetClientRect(_arg0)); |
23bed520 RD |
2035 | |
2036 | wxPyEndAllowThreads(__tstate); | |
2037 | if (PyErr_Occurred()) return NULL; | |
2038 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
2039 | _resultobj = Py_BuildValue("s",_ptemp); | |
2040 | return _resultobj; | |
2041 | } | |
2042 | ||
8ab979d7 | 2043 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 2044 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2045 | PyObject * _resultobj; |
2046 | wxLayoutConstraints * _result; | |
2047 | wxWindow * _arg0; | |
1d99702e | 2048 | PyObject * _argo0 = 0; |
efc5f224 | 2049 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2050 | char _ptemp[128]; |
2051 | ||
2052 | self = self; | |
efc5f224 | 2053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 2054 | return NULL; |
1d99702e RD |
2055 | if (_argo0) { |
2056 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2057 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
2059 | return NULL; | |
2060 | } | |
2061 | } | |
cf694132 | 2062 | { |
4268f798 | 2063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2064 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); |
cf694132 | 2065 | |
4268f798 | 2066 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2067 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
2068 | } if (_result) { |
2069 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
2070 | _resultobj = Py_BuildValue("s",_ptemp); | |
2071 | } else { | |
2072 | Py_INCREF(Py_None); | |
2073 | _resultobj = Py_None; | |
2074 | } | |
8ab979d7 RD |
2075 | return _resultobj; |
2076 | } | |
2077 | ||
1afc06c2 RD |
2078 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
2079 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2080 | PyObject * _resultobj; | |
2081 | wxEvtHandler * _result; | |
2082 | wxWindow * _arg0; | |
2083 | PyObject * _argo0 = 0; | |
2084 | char *_kwnames[] = { "self", NULL }; | |
1afc06c2 RD |
2085 | |
2086 | self = self; | |
2087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
2088 | return NULL; | |
2089 | if (_argo0) { | |
2090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
2093 | return NULL; | |
2094 | } | |
2095 | } | |
2096 | { | |
4268f798 | 2097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2098 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); |
1afc06c2 | 2099 | |
4268f798 | 2100 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2101 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2102 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
2103 | return _resultobj; |
2104 | } | |
2105 | ||
8ab979d7 | 2106 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 2107 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2108 | PyObject * _resultobj; |
2109 | wxFont * _result; | |
2110 | wxWindow * _arg0; | |
1d99702e | 2111 | PyObject * _argo0 = 0; |
efc5f224 | 2112 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2113 | char _ptemp[128]; |
2114 | ||
2115 | self = self; | |
efc5f224 | 2116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 2117 | return NULL; |
1d99702e RD |
2118 | if (_argo0) { |
2119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
2122 | return NULL; | |
2123 | } | |
2124 | } | |
cf694132 | 2125 | { |
4268f798 | 2126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2127 | _result = new wxFont (wxWindow_GetFont(_arg0)); |
cf694132 | 2128 | |
4268f798 | 2129 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2130 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
2131 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
2132 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2133 | return _resultobj; |
2134 | } | |
2135 | ||
2136 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 2137 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2138 | PyObject * _resultobj; |
2139 | wxColour * _result; | |
2140 | wxWindow * _arg0; | |
1d99702e | 2141 | PyObject * _argo0 = 0; |
efc5f224 | 2142 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2143 | char _ptemp[128]; |
2144 | ||
2145 | self = self; | |
efc5f224 | 2146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 2147 | return NULL; |
1d99702e RD |
2148 | if (_argo0) { |
2149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
2152 | return NULL; | |
2153 | } | |
2154 | } | |
cf694132 | 2155 | { |
4268f798 | 2156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2157 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); |
cf694132 | 2158 | |
4268f798 | 2159 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2160 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2161 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
2162 | _resultobj = Py_BuildValue("s",_ptemp); |
2163 | return _resultobj; | |
2164 | } | |
2165 | ||
2166 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 2167 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2168 | PyObject * _resultobj; |
2169 | wxWindow * _result; | |
2170 | wxWindow * _arg0; | |
1d99702e | 2171 | PyObject * _argo0 = 0; |
efc5f224 | 2172 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2173 | |
2174 | self = self; | |
efc5f224 | 2175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 2176 | return NULL; |
1d99702e RD |
2177 | if (_argo0) { |
2178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
2181 | return NULL; | |
2182 | } | |
2183 | } | |
cf694132 | 2184 | { |
4268f798 | 2185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2186 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); |
cf694132 | 2187 | |
4268f798 | 2188 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2189 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2190 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2191 | return _resultobj; |
2192 | } | |
2193 | ||
2abc0a0f | 2194 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 2195 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
2196 | } |
2197 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2198 | PyObject * _resultobj; | |
2199 | long _result; | |
2200 | wxWindow * _arg0; | |
2201 | PyObject * _argo0 = 0; | |
2202 | char *_kwnames[] = { "self", NULL }; | |
2203 | ||
2204 | self = self; | |
2205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
2206 | return NULL; | |
2207 | if (_argo0) { | |
2208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
2211 | return NULL; | |
2212 | } | |
2213 | } | |
2214 | { | |
4268f798 | 2215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2216 | _result = (long )wxWindow_GetHandle(_arg0); |
2abc0a0f | 2217 | |
4268f798 | 2218 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2219 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
2220 | } _resultobj = Py_BuildValue("l",_result); |
2221 | return _resultobj; | |
2222 | } | |
2223 | ||
8ab979d7 | 2224 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 2225 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2226 | PyObject * _resultobj; |
2227 | int _result; | |
2228 | wxWindow * _arg0; | |
1d99702e | 2229 | PyObject * _argo0 = 0; |
efc5f224 | 2230 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2231 | |
2232 | self = self; | |
efc5f224 | 2233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 2234 | return NULL; |
1d99702e RD |
2235 | if (_argo0) { |
2236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
2239 | return NULL; | |
2240 | } | |
2241 | } | |
cf694132 | 2242 | { |
4268f798 | 2243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2244 | _result = (int )wxWindow_GetId(_arg0); |
cf694132 | 2245 | |
4268f798 | 2246 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2247 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2248 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2249 | return _resultobj; |
2250 | } | |
2251 | ||
8ab979d7 | 2252 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 2253 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2254 | PyObject * _resultobj; |
2255 | wxString * _result; | |
2256 | wxWindow * _arg0; | |
1d99702e | 2257 | PyObject * _argo0 = 0; |
efc5f224 | 2258 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2259 | |
2260 | self = self; | |
efc5f224 | 2261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 2262 | return NULL; |
1d99702e RD |
2263 | if (_argo0) { |
2264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
2267 | return NULL; | |
2268 | } | |
2269 | } | |
8ab979d7 | 2270 | { |
4268f798 | 2271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2272 | _result = new wxString (wxWindow_GetLabel(_arg0)); |
cf694132 | 2273 | |
4268f798 | 2274 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2275 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2276 | }{ |
c8bc7bb8 | 2277 | #if wxUSE_UNICODE |
7e50db3f | 2278 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2279 | #else |
eec92d76 | 2280 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2281 | #endif |
8ab979d7 RD |
2282 | } |
2283 | { | |
2284 | delete _result; | |
2285 | } | |
2286 | return _resultobj; | |
2287 | } | |
2288 | ||
bb0054cd | 2289 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 2290 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2291 | PyObject * _resultobj; |
2292 | wxWindow * _arg0; | |
2293 | wxString * _arg1; | |
1d99702e | 2294 | PyObject * _argo0 = 0; |
bb0054cd | 2295 | PyObject * _obj1 = 0; |
efc5f224 | 2296 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
2297 | |
2298 | self = self; | |
efc5f224 | 2299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 2300 | return NULL; |
1d99702e RD |
2301 | if (_argo0) { |
2302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
2305 | return NULL; | |
2306 | } | |
2307 | } | |
2308 | { | |
c8bc7bb8 RD |
2309 | _arg1 = wxString_in_helper(_obj1); |
2310 | if (_arg1 == NULL) | |
bb0054cd | 2311 | return NULL; |
bb0054cd RD |
2312 | } |
2313 | { | |
4268f798 | 2314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2315 | wxWindow_SetLabel(_arg0,*_arg1); |
bb0054cd | 2316 | |
4268f798 | 2317 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2318 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2319 | } Py_INCREF(Py_None); |
2320 | _resultobj = Py_None; | |
2321 | { | |
2322 | if (_obj1) | |
2323 | delete _arg1; | |
2324 | } | |
2325 | return _resultobj; | |
2326 | } | |
2327 | ||
8ab979d7 | 2328 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2329 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2330 | PyObject * _resultobj; |
2331 | wxString * _result; | |
2332 | wxWindow * _arg0; | |
1d99702e | 2333 | PyObject * _argo0 = 0; |
efc5f224 | 2334 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2335 | |
2336 | self = self; | |
efc5f224 | 2337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2338 | return NULL; |
1d99702e RD |
2339 | if (_argo0) { |
2340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2343 | return NULL; | |
2344 | } | |
2345 | } | |
8ab979d7 | 2346 | { |
4268f798 | 2347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2348 | _result = new wxString (wxWindow_GetName(_arg0)); |
cf694132 | 2349 | |
4268f798 | 2350 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2351 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2352 | }{ |
c8bc7bb8 | 2353 | #if wxUSE_UNICODE |
7e50db3f | 2354 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2355 | #else |
eec92d76 | 2356 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2357 | #endif |
8ab979d7 RD |
2358 | } |
2359 | { | |
2360 | delete _result; | |
2361 | } | |
2362 | return _resultobj; | |
2363 | } | |
2364 | ||
2365 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2366 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2367 | PyObject * _resultobj; |
2368 | wxWindow * _result; | |
2369 | wxWindow * _arg0; | |
1d99702e | 2370 | PyObject * _argo0 = 0; |
efc5f224 | 2371 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2372 | |
2373 | self = self; | |
efc5f224 | 2374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2375 | return NULL; |
1d99702e RD |
2376 | if (_argo0) { |
2377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2380 | return NULL; | |
2381 | } | |
2382 | } | |
cf694132 | 2383 | { |
4268f798 | 2384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2385 | _result = (wxWindow *)wxWindow_GetParent(_arg0); |
cf694132 | 2386 | |
4268f798 | 2387 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2388 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2389 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2390 | return _resultobj; |
2391 | } | |
2392 | ||
b8b8dda7 | 2393 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2394 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2395 | PyObject * _resultobj; |
2396 | wxWindow * _arg0; | |
2397 | int * _arg1; | |
2398 | int temp; | |
2399 | int * _arg2; | |
2400 | int temp0; | |
1d99702e | 2401 | PyObject * _argo0 = 0; |
efc5f224 | 2402 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2403 | |
2404 | self = self; | |
2405 | { | |
2406 | _arg1 = &temp; | |
2407 | } | |
2408 | { | |
2409 | _arg2 = &temp0; | |
2410 | } | |
efc5f224 | 2411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2412 | return NULL; |
1d99702e RD |
2413 | if (_argo0) { |
2414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2417 | return NULL; | |
2418 | } | |
2419 | } | |
cf694132 | 2420 | { |
4268f798 | 2421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2422 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); |
cf694132 | 2423 | |
4268f798 | 2424 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2425 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2426 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
2427 | _resultobj = Py_None; |
2428 | { | |
2429 | PyObject *o; | |
2430 | o = PyInt_FromLong((long) (*_arg1)); | |
2431 | _resultobj = t_output_helper(_resultobj, o); | |
2432 | } | |
2433 | { | |
2434 | PyObject *o; | |
2435 | o = PyInt_FromLong((long) (*_arg2)); | |
2436 | _resultobj = t_output_helper(_resultobj, o); | |
2437 | } | |
2438 | return _resultobj; | |
2439 | } | |
2440 | ||
2441 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2442 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2443 | PyObject * _resultobj; |
2444 | wxPoint * _result; | |
2445 | wxWindow * _arg0; | |
1d99702e | 2446 | PyObject * _argo0 = 0; |
efc5f224 | 2447 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2448 | char _ptemp[128]; |
2449 | ||
2450 | self = self; | |
efc5f224 | 2451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2452 | return NULL; |
1d99702e RD |
2453 | if (_argo0) { |
2454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2457 | return NULL; | |
2458 | } | |
2459 | } | |
cf694132 | 2460 | { |
4268f798 | 2461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2462 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); |
cf694132 | 2463 | |
4268f798 | 2464 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2465 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2466 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
2467 | _resultobj = Py_BuildValue("s",_ptemp); |
2468 | return _resultobj; | |
2469 | } | |
2470 | ||
2471 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2472 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2473 | PyObject * _resultobj; |
2474 | wxRect * _result; | |
2475 | wxWindow * _arg0; | |
1d99702e | 2476 | PyObject * _argo0 = 0; |
efc5f224 | 2477 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2478 | char _ptemp[128]; |
2479 | ||
2480 | self = self; | |
efc5f224 | 2481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2482 | return NULL; |
1d99702e RD |
2483 | if (_argo0) { |
2484 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2487 | return NULL; | |
2488 | } | |
2489 | } | |
cf694132 | 2490 | { |
4268f798 | 2491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2492 | _result = new wxRect (wxWindow_GetRect(_arg0)); |
cf694132 | 2493 | |
4268f798 | 2494 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2495 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2496 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
b8b8dda7 RD |
2497 | _resultobj = Py_BuildValue("s",_ptemp); |
2498 | return _resultobj; | |
2499 | } | |
2500 | ||
8ab979d7 | 2501 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2502 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2503 | PyObject * _resultobj; |
2504 | int _result; | |
2505 | wxWindow * _arg0; | |
2506 | int _arg1; | |
1d99702e | 2507 | PyObject * _argo0 = 0; |
efc5f224 | 2508 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2509 | |
2510 | self = self; | |
efc5f224 | 2511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2512 | return NULL; |
1d99702e RD |
2513 | if (_argo0) { |
2514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2517 | return NULL; | |
2518 | } | |
2519 | } | |
cf694132 | 2520 | { |
4268f798 | 2521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2522 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); |
cf694132 | 2523 | |
4268f798 | 2524 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2525 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2526 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2527 | return _resultobj; |
2528 | } | |
2529 | ||
2530 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2531 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2532 | PyObject * _resultobj; |
2533 | int _result; | |
2534 | wxWindow * _arg0; | |
2535 | int _arg1; | |
1d99702e | 2536 | PyObject * _argo0 = 0; |
efc5f224 | 2537 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2538 | |
2539 | self = self; | |
efc5f224 | 2540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2541 | return NULL; |
1d99702e RD |
2542 | if (_argo0) { |
2543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2546 | return NULL; | |
2547 | } | |
2548 | } | |
cf694132 | 2549 | { |
4268f798 | 2550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2551 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); |
cf694132 | 2552 | |
4268f798 | 2553 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2554 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2555 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2556 | return _resultobj; |
2557 | } | |
2558 | ||
2559 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2560 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2561 | PyObject * _resultobj; |
2562 | int _result; | |
2563 | wxWindow * _arg0; | |
2564 | int _arg1; | |
1d99702e | 2565 | PyObject * _argo0 = 0; |
efc5f224 | 2566 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2567 | |
2568 | self = self; | |
efc5f224 | 2569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2570 | return NULL; |
1d99702e RD |
2571 | if (_argo0) { |
2572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2575 | return NULL; | |
2576 | } | |
2577 | } | |
cf694132 | 2578 | { |
4268f798 | 2579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2580 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); |
cf694132 | 2581 | |
4268f798 | 2582 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2583 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2584 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2585 | return _resultobj; |
2586 | } | |
2587 | ||
b8b8dda7 | 2588 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2589 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2590 | PyObject * _resultobj; |
2591 | wxWindow * _arg0; | |
2592 | int * _arg1; | |
2593 | int temp; | |
2594 | int * _arg2; | |
2595 | int temp0; | |
1d99702e | 2596 | PyObject * _argo0 = 0; |
efc5f224 | 2597 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2598 | |
2599 | self = self; | |
2600 | { | |
2601 | _arg1 = &temp; | |
2602 | } | |
2603 | { | |
2604 | _arg2 = &temp0; | |
2605 | } | |
efc5f224 | 2606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2607 | return NULL; |
1d99702e RD |
2608 | if (_argo0) { |
2609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2612 | return NULL; |
2613 | } | |
2614 | } | |
cf694132 | 2615 | { |
4268f798 | 2616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2617 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 2618 | |
4268f798 | 2619 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2620 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2621 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2622 | _resultobj = Py_None; |
2623 | { | |
2624 | PyObject *o; | |
2625 | o = PyInt_FromLong((long) (*_arg1)); | |
2626 | _resultobj = t_output_helper(_resultobj, o); | |
2627 | } | |
2628 | { | |
2629 | PyObject *o; | |
2630 | o = PyInt_FromLong((long) (*_arg2)); | |
2631 | _resultobj = t_output_helper(_resultobj, o); | |
2632 | } | |
2633 | return _resultobj; | |
2634 | } | |
2635 | ||
b8b8dda7 | 2636 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2637 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2638 | PyObject * _resultobj; |
2639 | wxSize * _result; | |
2640 | wxWindow * _arg0; | |
1d99702e | 2641 | PyObject * _argo0 = 0; |
efc5f224 | 2642 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2643 | char _ptemp[128]; |
2644 | ||
2645 | self = self; | |
efc5f224 | 2646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2647 | return NULL; |
1d99702e RD |
2648 | if (_argo0) { |
2649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2652 | return NULL; | |
2653 | } | |
2654 | } | |
cf694132 | 2655 | { |
4268f798 | 2656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2657 | _result = new wxSize (wxWindow_GetSize(_arg0)); |
cf694132 | 2658 | |
4268f798 | 2659 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2660 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2661 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
2662 | _resultobj = Py_BuildValue("s",_ptemp); |
2663 | return _resultobj; | |
2664 | } | |
2665 | ||
8ab979d7 | 2666 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2667 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2668 | PyObject * _resultobj; |
2669 | wxWindow * _arg0; | |
2670 | wxString * _arg1; | |
2671 | int * _arg2; | |
2672 | int temp; | |
2673 | int * _arg3; | |
2674 | int temp0; | |
1d99702e | 2675 | PyObject * _argo0 = 0; |
8ab979d7 | 2676 | PyObject * _obj1 = 0; |
efc5f224 | 2677 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2678 | |
2679 | self = self; | |
2680 | { | |
2681 | _arg2 = &temp; | |
2682 | } | |
2683 | { | |
2684 | _arg3 = &temp0; | |
2685 | } | |
efc5f224 | 2686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2687 | return NULL; |
1d99702e RD |
2688 | if (_argo0) { |
2689 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2690 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2692 | return NULL; | |
2693 | } | |
2694 | } | |
2695 | { | |
c8bc7bb8 RD |
2696 | _arg1 = wxString_in_helper(_obj1); |
2697 | if (_arg1 == NULL) | |
8ab979d7 | 2698 | return NULL; |
8ab979d7 | 2699 | } |
cf694132 | 2700 | { |
4268f798 | 2701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2702 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 2703 | |
4268f798 | 2704 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2705 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2706 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2707 | _resultobj = Py_None; |
2708 | { | |
2709 | PyObject *o; | |
2710 | o = PyInt_FromLong((long) (*_arg2)); | |
2711 | _resultobj = t_output_helper(_resultobj, o); | |
2712 | } | |
2713 | { | |
2714 | PyObject *o; | |
2715 | o = PyInt_FromLong((long) (*_arg3)); | |
2716 | _resultobj = t_output_helper(_resultobj, o); | |
2717 | } | |
2718 | { | |
2719 | if (_obj1) | |
2720 | delete _arg1; | |
2721 | } | |
2722 | return _resultobj; | |
2723 | } | |
2724 | ||
af309447 | 2725 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2726 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2727 | PyObject * _resultobj; |
2728 | wxWindow * _arg0; | |
2729 | wxString * _arg1; | |
2730 | int * _arg2; | |
2731 | int temp; | |
2732 | int * _arg3; | |
2733 | int temp0; | |
2734 | int * _arg4; | |
2735 | int temp1; | |
2736 | int * _arg5; | |
2737 | int temp2; | |
1d99702e RD |
2738 | wxFont * _arg6 = (wxFont *) NULL; |
2739 | PyObject * _argo0 = 0; | |
af309447 | 2740 | PyObject * _obj1 = 0; |
1d99702e | 2741 | PyObject * _argo6 = 0; |
efc5f224 | 2742 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2743 | |
2744 | self = self; | |
2745 | { | |
2746 | _arg2 = &temp; | |
2747 | } | |
2748 | { | |
2749 | _arg3 = &temp0; | |
2750 | } | |
2751 | { | |
2752 | _arg4 = &temp1; | |
2753 | } | |
2754 | { | |
2755 | _arg5 = &temp2; | |
2756 | } | |
efc5f224 | 2757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2758 | return NULL; |
1d99702e RD |
2759 | if (_argo0) { |
2760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2763 | return NULL; | |
2764 | } | |
2765 | } | |
2766 | { | |
c8bc7bb8 RD |
2767 | _arg1 = wxString_in_helper(_obj1); |
2768 | if (_arg1 == NULL) | |
af309447 | 2769 | return NULL; |
af309447 | 2770 | } |
1d99702e RD |
2771 | if (_argo6) { |
2772 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2773 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2775 | return NULL; | |
2776 | } | |
2777 | } | |
cf694132 | 2778 | { |
4268f798 | 2779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2780 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 2781 | |
4268f798 | 2782 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2783 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2784 | } Py_INCREF(Py_None); |
af309447 RD |
2785 | _resultobj = Py_None; |
2786 | { | |
2787 | PyObject *o; | |
2788 | o = PyInt_FromLong((long) (*_arg2)); | |
2789 | _resultobj = t_output_helper(_resultobj, o); | |
2790 | } | |
2791 | { | |
2792 | PyObject *o; | |
2793 | o = PyInt_FromLong((long) (*_arg3)); | |
2794 | _resultobj = t_output_helper(_resultobj, o); | |
2795 | } | |
2796 | { | |
2797 | PyObject *o; | |
2798 | o = PyInt_FromLong((long) (*_arg4)); | |
2799 | _resultobj = t_output_helper(_resultobj, o); | |
2800 | } | |
2801 | { | |
2802 | PyObject *o; | |
2803 | o = PyInt_FromLong((long) (*_arg5)); | |
2804 | _resultobj = t_output_helper(_resultobj, o); | |
2805 | } | |
2806 | { | |
2807 | if (_obj1) | |
2808 | delete _arg1; | |
2809 | } | |
2810 | return _resultobj; | |
2811 | } | |
2812 | ||
8ab979d7 | 2813 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2814 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2815 | PyObject * _resultobj; |
2816 | wxString * _result; | |
2817 | wxWindow * _arg0; | |
1d99702e | 2818 | PyObject * _argo0 = 0; |
efc5f224 | 2819 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2820 | |
2821 | self = self; | |
efc5f224 | 2822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2823 | return NULL; |
1d99702e RD |
2824 | if (_argo0) { |
2825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2828 | return NULL; | |
2829 | } | |
2830 | } | |
8ab979d7 | 2831 | { |
4268f798 | 2832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2833 | _result = new wxString (wxWindow_GetTitle(_arg0)); |
cf694132 | 2834 | |
4268f798 | 2835 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2836 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2837 | }{ |
c8bc7bb8 | 2838 | #if wxUSE_UNICODE |
7e50db3f | 2839 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2840 | #else |
eec92d76 | 2841 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2842 | #endif |
8ab979d7 RD |
2843 | } |
2844 | { | |
2845 | delete _result; | |
2846 | } | |
2847 | return _resultobj; | |
2848 | } | |
2849 | ||
8bf5d46e | 2850 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2851 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2852 | PyObject * _resultobj; |
2853 | wxRegion * _result; | |
2854 | wxWindow * _arg0; | |
1d99702e | 2855 | PyObject * _argo0 = 0; |
efc5f224 | 2856 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2857 | char _ptemp[128]; |
2858 | ||
2859 | self = self; | |
efc5f224 | 2860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2861 | return NULL; |
1d99702e RD |
2862 | if (_argo0) { |
2863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2866 | return NULL; | |
2867 | } | |
2868 | } | |
2869 | { | |
4268f798 | 2870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2871 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); |
8bf5d46e | 2872 | |
4268f798 | 2873 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2874 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
2875 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); |
2876 | _resultobj = Py_BuildValue("s",_ptemp); | |
2877 | return _resultobj; | |
2878 | } | |
2879 | ||
8ab979d7 | 2880 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2881 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2882 | PyObject * _resultobj; |
2883 | long _result; | |
2884 | wxWindow * _arg0; | |
1d99702e | 2885 | PyObject * _argo0 = 0; |
efc5f224 | 2886 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2887 | |
2888 | self = self; | |
efc5f224 | 2889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2890 | return NULL; |
1d99702e RD |
2891 | if (_argo0) { |
2892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2895 | return NULL; | |
2896 | } | |
2897 | } | |
cf694132 | 2898 | { |
4268f798 | 2899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2900 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); |
cf694132 | 2901 | |
4268f798 | 2902 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2903 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2904 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2905 | return _resultobj; |
2906 | } | |
2907 | ||
f6bcfd97 BP |
2908 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2909 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2910 | PyObject * _resultobj; | |
2911 | wxWindow * _arg0; | |
2912 | long _arg1; | |
2913 | PyObject * _argo0 = 0; | |
2914 | char *_kwnames[] = { "self","style", NULL }; | |
2915 | ||
2916 | self = self; | |
2917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2918 | return NULL; | |
2919 | if (_argo0) { | |
2920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2923 | return NULL; | |
2924 | } | |
2925 | } | |
2926 | { | |
4268f798 | 2927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2928 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); |
f6bcfd97 | 2929 | |
4268f798 | 2930 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2931 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2932 | } Py_INCREF(Py_None); |
2933 | _resultobj = Py_None; | |
2934 | return _resultobj; | |
2935 | } | |
2936 | ||
2937 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2938 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2939 | PyObject * _resultobj; | |
2940 | wxWindow * _arg0; | |
2941 | long _arg1; | |
2942 | PyObject * _argo0 = 0; | |
2943 | char *_kwnames[] = { "self","style", NULL }; | |
2944 | ||
2945 | self = self; | |
2946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2947 | return NULL; | |
2948 | if (_argo0) { | |
2949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2952 | return NULL; | |
2953 | } | |
2954 | } | |
2955 | { | |
4268f798 | 2956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2957 | wxWindow_SetWindowStyle(_arg0,_arg1); |
f6bcfd97 | 2958 | |
4268f798 | 2959 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2960 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2961 | } Py_INCREF(Py_None); |
2962 | _resultobj = Py_None; | |
2963 | return _resultobj; | |
2964 | } | |
2965 | ||
23bed520 RD |
2966 | #define wxWindow_HasScrollbar(_swigobj,_swigarg0) (_swigobj->HasScrollbar(_swigarg0)) |
2967 | static PyObject *_wrap_wxWindow_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2968 | PyObject * _resultobj; | |
2969 | bool _result; | |
2970 | wxWindow * _arg0; | |
2971 | int _arg1; | |
2972 | PyObject * _argo0 = 0; | |
2973 | char *_kwnames[] = { "self","orient", NULL }; | |
2974 | ||
2975 | self = self; | |
2976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_HasScrollbar",_kwnames,&_argo0,&_arg1)) | |
2977 | return NULL; | |
2978 | if (_argo0) { | |
2979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasScrollbar. Expected _wxWindow_p."); | |
2982 | return NULL; | |
2983 | } | |
2984 | } | |
2985 | { | |
2986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2987 | _result = (bool )wxWindow_HasScrollbar(_arg0,_arg1); |
23bed520 RD |
2988 | |
2989 | wxPyEndAllowThreads(__tstate); | |
2990 | if (PyErr_Occurred()) return NULL; | |
2991 | } _resultobj = Py_BuildValue("i",_result); | |
2992 | return _resultobj; | |
2993 | } | |
2994 | ||
bb0054cd | 2995 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2996 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2997 | PyObject * _resultobj; |
2998 | bool _result; | |
2999 | wxWindow * _arg0; | |
1d99702e | 3000 | PyObject * _argo0 = 0; |
efc5f224 | 3001 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
3002 | |
3003 | self = self; | |
efc5f224 | 3004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 3005 | return NULL; |
1d99702e RD |
3006 | if (_argo0) { |
3007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
3010 | return NULL; | |
3011 | } | |
3012 | } | |
3013 | { | |
4268f798 | 3014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3015 | _result = (bool )wxWindow_Hide(_arg0); |
bb0054cd | 3016 | |
4268f798 | 3017 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3018 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3019 | } _resultobj = Py_BuildValue("i",_result); |
3020 | return _resultobj; | |
3021 | } | |
3022 | ||
23bed520 RD |
3023 | #define wxWindow_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0)) |
3024 | static PyObject *_wrap_wxWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3025 | PyObject * _resultobj; | |
3026 | wxHitTest _result; | |
3027 | wxWindow * _arg0; | |
3028 | wxPoint * _arg1; | |
3029 | PyObject * _argo0 = 0; | |
3030 | wxPoint temp; | |
3031 | PyObject * _obj1 = 0; | |
3032 | char *_kwnames[] = { "self","pt", NULL }; | |
3033 | ||
3034 | self = self; | |
3035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_HitTest",_kwnames,&_argo0,&_obj1)) | |
3036 | return NULL; | |
3037 | if (_argo0) { | |
3038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HitTest. Expected _wxWindow_p."); | |
3041 | return NULL; | |
3042 | } | |
3043 | } | |
3044 | { | |
3045 | _arg1 = &temp; | |
3046 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3047 | return NULL; | |
3048 | } | |
3049 | { | |
3050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3051 | _result = (wxHitTest )wxWindow_HitTest(_arg0,*_arg1); |
23bed520 RD |
3052 | |
3053 | wxPyEndAllowThreads(__tstate); | |
3054 | if (PyErr_Occurred()) return NULL; | |
3055 | } _resultobj = Py_BuildValue("i",_result); | |
3056 | return _resultobj; | |
3057 | } | |
3058 | ||
8ab979d7 | 3059 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 3060 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3061 | PyObject * _resultobj; |
3062 | wxWindow * _arg0; | |
1d99702e | 3063 | PyObject * _argo0 = 0; |
efc5f224 | 3064 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3065 | |
3066 | self = self; | |
efc5f224 | 3067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 3068 | return NULL; |
1d99702e RD |
3069 | if (_argo0) { |
3070 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3071 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
3073 | return NULL; | |
3074 | } | |
3075 | } | |
cf694132 | 3076 | { |
4268f798 | 3077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3078 | wxWindow_InitDialog(_arg0); |
cf694132 | 3079 | |
4268f798 | 3080 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3081 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3082 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3083 | _resultobj = Py_None; |
3084 | return _resultobj; | |
3085 | } | |
3086 | ||
3087 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 3088 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3089 | PyObject * _resultobj; |
3090 | bool _result; | |
3091 | wxWindow * _arg0; | |
1d99702e | 3092 | PyObject * _argo0 = 0; |
efc5f224 | 3093 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3094 | |
3095 | self = self; | |
efc5f224 | 3096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 3097 | return NULL; |
1d99702e RD |
3098 | if (_argo0) { |
3099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
3102 | return NULL; | |
3103 | } | |
3104 | } | |
cf694132 | 3105 | { |
4268f798 | 3106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3107 | _result = (bool )wxWindow_IsEnabled(_arg0); |
cf694132 | 3108 | |
4268f798 | 3109 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3110 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3111 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3112 | return _resultobj; |
3113 | } | |
3114 | ||
1b55cabf RD |
3115 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3116 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3117 | PyObject * _resultobj; | |
3118 | bool _result; | |
3119 | wxWindow * _arg0; | |
3120 | int _arg1; | |
3121 | int _arg2; | |
3122 | int _arg3 = (int ) 0; | |
3123 | int _arg4 = (int ) 0; | |
3124 | PyObject * _argo0 = 0; | |
3125 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
3126 | ||
3127 | self = self; | |
3128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
3129 | return NULL; | |
3130 | if (_argo0) { | |
3131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
3134 | return NULL; | |
3135 | } | |
3136 | } | |
3137 | { | |
4268f798 | 3138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3139 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); |
1b55cabf | 3140 | |
4268f798 | 3141 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3142 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3143 | } _resultobj = Py_BuildValue("i",_result); |
3144 | return _resultobj; | |
3145 | } | |
3146 | ||
3147 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
3148 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3149 | PyObject * _resultobj; | |
3150 | bool _result; | |
3151 | wxWindow * _arg0; | |
3152 | wxPoint * _arg1; | |
3153 | PyObject * _argo0 = 0; | |
3154 | wxPoint temp; | |
3155 | PyObject * _obj1 = 0; | |
3156 | char *_kwnames[] = { "self","pt", NULL }; | |
3157 | ||
3158 | self = self; | |
3159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
3160 | return NULL; | |
3161 | if (_argo0) { | |
3162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
3165 | return NULL; | |
3166 | } | |
3167 | } | |
3168 | { | |
3169 | _arg1 = &temp; | |
3170 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3171 | return NULL; | |
3172 | } | |
3173 | { | |
4268f798 | 3174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3175 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); |
1b55cabf | 3176 | |
4268f798 | 3177 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3178 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3179 | } _resultobj = Py_BuildValue("i",_result); |
3180 | return _resultobj; | |
3181 | } | |
3182 | ||
3183 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
3184 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3185 | PyObject * _resultobj; | |
3186 | bool _result; | |
3187 | wxWindow * _arg0; | |
3188 | wxRect * _arg1; | |
3189 | PyObject * _argo0 = 0; | |
3190 | wxRect temp; | |
3191 | PyObject * _obj1 = 0; | |
3192 | char *_kwnames[] = { "self","rect", NULL }; | |
3193 | ||
3194 | self = self; | |
3195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
3196 | return NULL; | |
3197 | if (_argo0) { | |
3198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
3201 | return NULL; | |
3202 | } | |
3203 | } | |
3204 | { | |
3205 | _arg1 = &temp; | |
3206 | if (! wxRect_helper(_obj1, &_arg1)) | |
3207 | return NULL; | |
3208 | } | |
3209 | { | |
4268f798 | 3210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3211 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); |
1b55cabf | 3212 | |
4268f798 | 3213 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3214 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3215 | } _resultobj = Py_BuildValue("i",_result); |
3216 | return _resultobj; | |
3217 | } | |
3218 | ||
8ab979d7 | 3219 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 3220 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3221 | PyObject * _resultobj; |
3222 | bool _result; | |
3223 | wxWindow * _arg0; | |
1d99702e | 3224 | PyObject * _argo0 = 0; |
efc5f224 | 3225 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3226 | |
3227 | self = self; | |
efc5f224 | 3228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 3229 | return NULL; |
1d99702e RD |
3230 | if (_argo0) { |
3231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
3234 | return NULL; | |
3235 | } | |
3236 | } | |
cf694132 | 3237 | { |
4268f798 | 3238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3239 | _result = (bool )wxWindow_IsRetained(_arg0); |
cf694132 | 3240 | |
4268f798 | 3241 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3242 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3243 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3244 | return _resultobj; |
3245 | } | |
3246 | ||
3247 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 3248 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3249 | PyObject * _resultobj; |
3250 | bool _result; | |
3251 | wxWindow * _arg0; | |
1d99702e | 3252 | PyObject * _argo0 = 0; |
efc5f224 | 3253 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3254 | |
3255 | self = self; | |
efc5f224 | 3256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 3257 | return NULL; |
1d99702e RD |
3258 | if (_argo0) { |
3259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
3262 | return NULL; | |
3263 | } | |
3264 | } | |
cf694132 | 3265 | { |
4268f798 | 3266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3267 | _result = (bool )wxWindow_IsShown(_arg0); |
cf694132 | 3268 | |
4268f798 | 3269 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3270 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3271 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3272 | return _resultobj; |
3273 | } | |
3274 | ||
bb0054cd | 3275 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 3276 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3277 | PyObject * _resultobj; |
3278 | bool _result; | |
3279 | wxWindow * _arg0; | |
1d99702e | 3280 | PyObject * _argo0 = 0; |
efc5f224 | 3281 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
3282 | |
3283 | self = self; | |
efc5f224 | 3284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 3285 | return NULL; |
1d99702e RD |
3286 | if (_argo0) { |
3287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
3290 | return NULL; | |
3291 | } | |
3292 | } | |
3293 | { | |
4268f798 | 3294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3295 | _result = (bool )wxWindow_IsTopLevel(_arg0); |
bb0054cd | 3296 | |
4268f798 | 3297 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3298 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3299 | } _resultobj = Py_BuildValue("i",_result); |
3300 | return _resultobj; | |
3301 | } | |
3302 | ||
8ab979d7 | 3303 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 3304 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3305 | PyObject * _resultobj; |
3306 | wxWindow * _arg0; | |
1d99702e | 3307 | PyObject * _argo0 = 0; |
efc5f224 | 3308 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3309 | |
3310 | self = self; | |
efc5f224 | 3311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 3312 | return NULL; |
1d99702e RD |
3313 | if (_argo0) { |
3314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
3317 | return NULL; | |
3318 | } | |
3319 | } | |
cf694132 | 3320 | { |
4268f798 | 3321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3322 | wxWindow_Layout(_arg0); |
cf694132 | 3323 | |
4268f798 | 3324 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3325 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3326 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3327 | _resultobj = Py_None; |
3328 | return _resultobj; | |
3329 | } | |
3330 | ||
8ab979d7 | 3331 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) |
efc5f224 | 3332 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3333 | PyObject * _resultobj; |
3334 | wxWindow * _arg0; | |
1d99702e | 3335 | PyObject * _argo0 = 0; |
efc5f224 | 3336 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3337 | |
3338 | self = self; | |
efc5f224 | 3339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3340 | return NULL; |
1d99702e RD |
3341 | if (_argo0) { |
3342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3345 | return NULL; | |
3346 | } | |
3347 | } | |
cf694132 | 3348 | { |
4268f798 | 3349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3350 | wxWindow_Lower(_arg0); |
cf694132 | 3351 | |
4268f798 | 3352 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3353 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3354 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3355 | _resultobj = Py_None; |
3356 | return _resultobj; | |
3357 | } | |
3358 | ||
3359 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3360 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3361 | PyObject * _resultobj; |
3362 | wxWindow * _arg0; | |
900d9886 | 3363 | bool _arg1 = (bool ) TRUE; |
1d99702e | 3364 | PyObject * _argo0 = 0; |
900d9886 | 3365 | int tempbool1 = (int) TRUE; |
efc5f224 | 3366 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3367 | |
3368 | self = self; | |
900d9886 | 3369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3370 | return NULL; |
1d99702e RD |
3371 | if (_argo0) { |
3372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3375 | return NULL; | |
3376 | } | |
3377 | } | |
3378 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3379 | { |
4268f798 | 3380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3381 | wxWindow_MakeModal(_arg0,_arg1); |
cf694132 | 3382 | |
4268f798 | 3383 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3384 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3385 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3386 | _resultobj = Py_None; |
3387 | return _resultobj; | |
3388 | } | |
3389 | ||
23bed520 | 3390 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Move(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3391 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3392 | PyObject * _resultobj; |
3393 | wxWindow * _arg0; | |
3394 | int _arg1; | |
3395 | int _arg2; | |
23bed520 | 3396 | int _arg3 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 3397 | PyObject * _argo0 = 0; |
23bed520 | 3398 | char *_kwnames[] = { "self","x","y","flags", NULL }; |
8ab979d7 RD |
3399 | |
3400 | self = self; | |
23bed520 | 3401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
af309447 | 3402 | return NULL; |
1d99702e RD |
3403 | if (_argo0) { |
3404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3407 | return NULL; | |
3408 | } | |
3409 | } | |
cf694132 | 3410 | { |
4268f798 | 3411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3412 | wxWindow_MoveXY(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3413 | |
4268f798 | 3414 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3415 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3416 | } Py_INCREF(Py_None); |
af309447 RD |
3417 | _resultobj = Py_None; |
3418 | return _resultobj; | |
3419 | } | |
3420 | ||
23bed520 | 3421 | #define wxWindow_Move(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3422 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3423 | PyObject * _resultobj; |
3424 | wxWindow * _arg0; | |
3425 | wxPoint * _arg1; | |
23bed520 | 3426 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 3427 | PyObject * _argo0 = 0; |
2f90df85 RD |
3428 | wxPoint temp; |
3429 | PyObject * _obj1 = 0; | |
23bed520 | 3430 | char *_kwnames[] = { "self","point","flags", NULL }; |
af309447 RD |
3431 | |
3432 | self = self; | |
23bed520 | 3433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_Move",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 3434 | return NULL; |
1d99702e RD |
3435 | if (_argo0) { |
3436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3439 | return NULL; | |
3440 | } | |
3441 | } | |
2f90df85 RD |
3442 | { |
3443 | _arg1 = &temp; | |
3444 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3445 | return NULL; |
2f90df85 | 3446 | } |
cf694132 | 3447 | { |
4268f798 | 3448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3449 | wxWindow_Move(_arg0,*_arg1,_arg2); |
cf694132 | 3450 | |
4268f798 | 3451 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3452 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3453 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3454 | _resultobj = Py_None; |
3455 | return _resultobj; | |
3456 | } | |
3457 | ||
1afc06c2 RD |
3458 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3459 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3460 | PyObject * _resultobj; | |
3461 | wxEvtHandler * _result; | |
3462 | wxWindow * _arg0; | |
3463 | bool _arg1 = (bool ) FALSE; | |
3464 | PyObject * _argo0 = 0; | |
3465 | int tempbool1 = (int) FALSE; | |
3466 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
1afc06c2 RD |
3467 | |
3468 | self = self; | |
3469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3470 | return NULL; | |
3471 | if (_argo0) { | |
3472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3475 | return NULL; | |
3476 | } | |
3477 | } | |
3478 | _arg1 = (bool ) tempbool1; | |
3479 | { | |
4268f798 | 3480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3481 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); |
1afc06c2 | 3482 | |
4268f798 | 3483 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3484 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 3485 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
3486 | return _resultobj; |
3487 | } | |
3488 | ||
3489 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3490 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3491 | PyObject * _resultobj; | |
3492 | wxWindow * _arg0; | |
3493 | wxEvtHandler * _arg1; | |
3494 | PyObject * _argo0 = 0; | |
3495 | PyObject * _argo1 = 0; | |
3496 | char *_kwnames[] = { "self","handler", NULL }; | |
3497 | ||
3498 | self = self; | |
3499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3500 | return NULL; | |
3501 | if (_argo0) { | |
3502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3505 | return NULL; | |
3506 | } | |
3507 | } | |
3508 | if (_argo1) { | |
3509 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3510 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3512 | return NULL; | |
3513 | } | |
3514 | } | |
3515 | { | |
4268f798 | 3516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3517 | wxWindow_PushEventHandler(_arg0,_arg1); |
1afc06c2 | 3518 | |
4268f798 | 3519 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3520 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
3521 | } Py_INCREF(Py_None); |
3522 | _resultobj = Py_None; | |
3523 | return _resultobj; | |
3524 | } | |
3525 | ||
c6c593e8 RD |
3526 | #define wxWindow_RemoveEventHandler(_swigobj,_swigarg0) (_swigobj->RemoveEventHandler(_swigarg0)) |
3527 | static PyObject *_wrap_wxWindow_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3528 | PyObject * _resultobj; | |
3529 | bool _result; | |
3530 | wxWindow * _arg0; | |
3531 | wxEvtHandler * _arg1; | |
3532 | PyObject * _argo0 = 0; | |
3533 | PyObject * _argo1 = 0; | |
3534 | char *_kwnames[] = { "self","handler", NULL }; | |
3535 | ||
3536 | self = self; | |
3537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveEventHandler",_kwnames,&_argo0,&_argo1)) | |
3538 | return NULL; | |
3539 | if (_argo0) { | |
3540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveEventHandler. Expected _wxWindow_p."); | |
3543 | return NULL; | |
3544 | } | |
3545 | } | |
3546 | if (_argo1) { | |
3547 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3548 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveEventHandler. Expected _wxEvtHandler_p."); | |
3550 | return NULL; | |
3551 | } | |
3552 | } | |
3553 | { | |
3554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3555 | _result = (bool )wxWindow_RemoveEventHandler(_arg0,_arg1); |
c6c593e8 RD |
3556 | |
3557 | wxPyEndAllowThreads(__tstate); | |
3558 | if (PyErr_Occurred()) return NULL; | |
3559 | } _resultobj = Py_BuildValue("i",_result); | |
3560 | return _resultobj; | |
3561 | } | |
3562 | ||
8bf5d46e | 3563 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3564 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3565 | PyObject * _resultobj; |
3566 | bool _result; | |
3567 | wxWindow * _arg0; | |
3568 | wxMenu * _arg1; | |
3569 | int _arg2; | |
3570 | int _arg3; | |
1d99702e RD |
3571 | PyObject * _argo0 = 0; |
3572 | PyObject * _argo1 = 0; | |
efc5f224 | 3573 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3574 | |
3575 | self = self; | |
efc5f224 | 3576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3577 | return NULL; |
1d99702e RD |
3578 | if (_argo0) { |
3579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3582 | return NULL; | |
3583 | } | |
3584 | } | |
1d99702e RD |
3585 | if (_argo1) { |
3586 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3587 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3589 | return NULL; | |
3590 | } | |
3591 | } | |
3592 | { | |
4268f798 | 3593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3594 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); |
8bf5d46e | 3595 | |
4268f798 | 3596 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3597 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
3598 | } _resultobj = Py_BuildValue("i",_result); |
3599 | return _resultobj; | |
3600 | } | |
3601 | ||
3602 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3603 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3604 | PyObject * _resultobj; |
3605 | bool _result; | |
3606 | wxWindow * _arg0; | |
3607 | wxMenu * _arg1; | |
3608 | wxPoint * _arg2; | |
1d99702e RD |
3609 | PyObject * _argo0 = 0; |
3610 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3611 | wxPoint temp; |
3612 | PyObject * _obj2 = 0; | |
efc5f224 | 3613 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3614 | |
3615 | self = self; | |
2f90df85 | 3616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3617 | return NULL; |
1d99702e RD |
3618 | if (_argo0) { |
3619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3622 | return NULL; | |
3623 | } | |
3624 | } | |
1d99702e RD |
3625 | if (_argo1) { |
3626 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3627 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3629 | return NULL; | |
3630 | } | |
3631 | } | |
2f90df85 RD |
3632 | { |
3633 | _arg2 = &temp; | |
3634 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3635 | return NULL; |
2f90df85 | 3636 | } |
cf694132 | 3637 | { |
4268f798 | 3638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3639 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 | 3640 | |
4268f798 | 3641 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3642 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3643 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3644 | return _resultobj; |
3645 | } | |
3646 | ||
3647 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3648 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3649 | PyObject * _resultobj; |
3650 | wxWindow * _arg0; | |
1d99702e | 3651 | PyObject * _argo0 = 0; |
efc5f224 | 3652 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3653 | |
3654 | self = self; | |
efc5f224 | 3655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3656 | return NULL; |
1d99702e RD |
3657 | if (_argo0) { |
3658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3661 | return NULL; | |
3662 | } | |
3663 | } | |
cf694132 | 3664 | { |
4268f798 | 3665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3666 | wxWindow_Raise(_arg0); |
cf694132 | 3667 | |
4268f798 | 3668 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3669 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3670 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3671 | _resultobj = Py_None; |
3672 | return _resultobj; | |
3673 | } | |
3674 | ||
3675 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3676 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3677 | PyObject * _resultobj; |
3678 | wxWindow * _arg0; | |
1d99702e RD |
3679 | bool _arg1 = (bool ) TRUE; |
3680 | wxRect * _arg2 = (wxRect *) NULL; | |
3681 | PyObject * _argo0 = 0; | |
3682 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3683 | wxRect temp; |
3684 | PyObject * _obj2 = 0; | |
efc5f224 | 3685 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3686 | |
3687 | self = self; | |
2f90df85 | 3688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3689 | return NULL; |
1d99702e RD |
3690 | if (_argo0) { |
3691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3694 | return NULL; | |
3695 | } | |
3696 | } | |
3697 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3698 | if (_obj2) |
3699 | { | |
3700 | _arg2 = &temp; | |
3701 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3702 | return NULL; |
2f90df85 | 3703 | } |
cf694132 | 3704 | { |
4268f798 | 3705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3706 | wxWindow_Refresh(_arg0,_arg1,_arg2); |
cf694132 | 3707 | |
4268f798 | 3708 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3709 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3710 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3711 | _resultobj = Py_None; |
3712 | return _resultobj; | |
3713 | } | |
3714 | ||
09f3d4e6 RD |
3715 | #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0)) |
3716 | static PyObject *_wrap_wxWindow_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3717 | PyObject * _resultobj; | |
3718 | wxWindow * _arg0; | |
3719 | wxRect * _arg1; | |
3720 | PyObject * _argo0 = 0; | |
3721 | wxRect temp; | |
3722 | PyObject * _obj1 = 0; | |
3723 | char *_kwnames[] = { "self","rect", NULL }; | |
3724 | ||
3725 | self = self; | |
3726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RefreshRect",_kwnames,&_argo0,&_obj1)) | |
3727 | return NULL; | |
3728 | if (_argo0) { | |
3729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p."); | |
3732 | return NULL; | |
3733 | } | |
3734 | } | |
3735 | { | |
3736 | _arg1 = &temp; | |
3737 | if (! wxRect_helper(_obj1, &_arg1)) | |
3738 | return NULL; | |
3739 | } | |
3740 | { | |
4268f798 | 3741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3742 | wxWindow_RefreshRect(_arg0,*_arg1); |
09f3d4e6 | 3743 | |
4268f798 | 3744 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
3745 | if (PyErr_Occurred()) return NULL; |
3746 | } Py_INCREF(Py_None); | |
3747 | _resultobj = Py_None; | |
3748 | return _resultobj; | |
3749 | } | |
3750 | ||
e67409dc RD |
3751 | #define wxWindow_AddChild(_swigobj,_swigarg0) (_swigobj->AddChild(_swigarg0)) |
3752 | static PyObject *_wrap_wxWindow_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3753 | PyObject * _resultobj; | |
3754 | wxWindow * _arg0; | |
3755 | wxWindow * _arg1; | |
3756 | PyObject * _argo0 = 0; | |
3757 | PyObject * _argo1 = 0; | |
3758 | char *_kwnames[] = { "self","child", NULL }; | |
3759 | ||
3760 | self = self; | |
3761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_AddChild",_kwnames,&_argo0,&_argo1)) | |
3762 | return NULL; | |
3763 | if (_argo0) { | |
3764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AddChild. Expected _wxWindow_p."); | |
3767 | return NULL; | |
3768 | } | |
3769 | } | |
3770 | if (_argo1) { | |
3771 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3772 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_AddChild. Expected _wxWindow_p."); | |
3774 | return NULL; | |
3775 | } | |
3776 | } | |
3777 | { | |
3778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3779 | wxWindow_AddChild(_arg0,_arg1); | |
3780 | ||
3781 | wxPyEndAllowThreads(__tstate); | |
3782 | if (PyErr_Occurred()) return NULL; | |
3783 | } Py_INCREF(Py_None); | |
3784 | _resultobj = Py_None; | |
3785 | return _resultobj; | |
3786 | } | |
3787 | ||
b7e72427 RD |
3788 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3789 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3790 | PyObject * _resultobj; | |
3791 | wxWindow * _arg0; | |
3792 | wxWindow * _arg1; | |
3793 | PyObject * _argo0 = 0; | |
3794 | PyObject * _argo1 = 0; | |
3795 | char *_kwnames[] = { "self","child", NULL }; | |
3796 | ||
3797 | self = self; | |
3798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3799 | return NULL; | |
3800 | if (_argo0) { | |
3801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3804 | return NULL; | |
3805 | } | |
3806 | } | |
3807 | if (_argo1) { | |
3808 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3809 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3811 | return NULL; | |
3812 | } | |
3813 | } | |
3814 | { | |
4268f798 | 3815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3816 | wxWindow_RemoveChild(_arg0,_arg1); |
b7e72427 | 3817 | |
4268f798 | 3818 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3819 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
3820 | } Py_INCREF(Py_None); |
3821 | _resultobj = Py_None; | |
3822 | return _resultobj; | |
3823 | } | |
3824 | ||
bb0054cd | 3825 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3826 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3827 | PyObject * _resultobj; |
3828 | bool _result; | |
3829 | wxWindow * _arg0; | |
3830 | wxWindow * _arg1; | |
1d99702e RD |
3831 | PyObject * _argo0 = 0; |
3832 | PyObject * _argo1 = 0; | |
efc5f224 | 3833 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3834 | |
3835 | self = self; | |
efc5f224 | 3836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3837 | return NULL; |
1d99702e RD |
3838 | if (_argo0) { |
3839 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3840 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3842 | return NULL; | |
3843 | } | |
3844 | } | |
1d99702e RD |
3845 | if (_argo1) { |
3846 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3847 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3849 | return NULL; | |
3850 | } | |
3851 | } | |
3852 | { | |
4268f798 | 3853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3854 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); |
bb0054cd | 3855 | |
4268f798 | 3856 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3857 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3858 | } _resultobj = Py_BuildValue("i",_result); |
3859 | return _resultobj; | |
3860 | } | |
3861 | ||
af309447 | 3862 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3863 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3864 | PyObject * _resultobj; |
3865 | wxWindow * _arg0; | |
3866 | int * _arg1; | |
3867 | int * _arg2; | |
1d99702e | 3868 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3869 | int temp; |
3870 | PyObject * _obj1 = 0; | |
3871 | int temp0; | |
3872 | PyObject * _obj2 = 0; | |
efc5f224 | 3873 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3874 | |
3875 | self = self; | |
efc5f224 | 3876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3877 | return NULL; |
1d99702e RD |
3878 | if (_argo0) { |
3879 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3880 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3882 | return NULL; |
3883 | } | |
3884 | } | |
3885 | { | |
3886 | temp = (int) PyInt_AsLong(_obj1); | |
3887 | _arg1 = &temp; | |
3888 | } | |
3889 | { | |
3890 | temp0 = (int) PyInt_AsLong(_obj2); | |
3891 | _arg2 = &temp0; | |
3892 | } | |
cf694132 | 3893 | { |
4268f798 | 3894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3895 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); |
cf694132 | 3896 | |
4268f798 | 3897 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3898 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3899 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3900 | _resultobj = Py_None; |
3901 | { | |
3902 | PyObject *o; | |
3903 | o = PyInt_FromLong((long) (*_arg1)); | |
3904 | _resultobj = t_output_helper(_resultobj, o); | |
3905 | } | |
3906 | { | |
3907 | PyObject *o; | |
3908 | o = PyInt_FromLong((long) (*_arg2)); | |
3909 | _resultobj = t_output_helper(_resultobj, o); | |
3910 | } | |
3911 | return _resultobj; | |
3912 | } | |
3913 | ||
af309447 | 3914 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3915 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3916 | PyObject * _resultobj; |
3917 | wxPoint * _result; | |
3918 | wxWindow * _arg0; | |
3919 | wxPoint * _arg1; | |
1d99702e | 3920 | PyObject * _argo0 = 0; |
2f90df85 RD |
3921 | wxPoint temp; |
3922 | PyObject * _obj1 = 0; | |
efc5f224 | 3923 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3924 | char _ptemp[128]; |
3925 | ||
3926 | self = self; | |
2f90df85 | 3927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3928 | return NULL; |
1d99702e RD |
3929 | if (_argo0) { |
3930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3933 | return NULL; | |
3934 | } | |
3935 | } | |
2f90df85 RD |
3936 | { |
3937 | _arg1 = &temp; | |
3938 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3939 | return NULL; |
2f90df85 | 3940 | } |
cf694132 | 3941 | { |
4268f798 | 3942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3943 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); |
cf694132 | 3944 | |
4268f798 | 3945 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3946 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3947 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
3948 | _resultobj = Py_BuildValue("s",_ptemp); |
3949 | return _resultobj; | |
3950 | } | |
3951 | ||
8ab979d7 | 3952 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3953 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3954 | PyObject * _resultobj; |
3955 | wxWindow * _arg0; | |
3956 | int _arg1; | |
3957 | int _arg2; | |
1d99702e RD |
3958 | wxRect * _arg3 = (wxRect *) NULL; |
3959 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3960 | wxRect temp; |
3961 | PyObject * _obj3 = 0; | |
efc5f224 | 3962 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3963 | |
3964 | self = self; | |
2f90df85 | 3965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3966 | return NULL; |
1d99702e RD |
3967 | if (_argo0) { |
3968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3971 | return NULL; | |
3972 | } | |
3973 | } | |
2f90df85 RD |
3974 | if (_obj3) |
3975 | { | |
3976 | _arg3 = &temp; | |
3977 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3978 | return NULL; |
2f90df85 | 3979 | } |
cf694132 | 3980 | { |
4268f798 | 3981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3982 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3983 | |
4268f798 | 3984 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3985 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3986 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3987 | _resultobj = Py_None; |
3988 | return _resultobj; | |
3989 | } | |
3990 | ||
3991 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) | |
efc5f224 | 3992 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3993 | PyObject * _resultobj; |
3994 | wxWindow * _arg0; | |
3995 | bool _arg1; | |
1d99702e | 3996 | PyObject * _argo0 = 0; |
8ab979d7 | 3997 | int tempbool1; |
efc5f224 | 3998 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3999 | |
4000 | self = self; | |
efc5f224 | 4001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4002 | return NULL; |
1d99702e RD |
4003 | if (_argo0) { |
4004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
4007 | return NULL; | |
4008 | } | |
4009 | } | |
4010 | _arg1 = (bool ) tempbool1; | |
cf694132 | 4011 | { |
4268f798 | 4012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4013 | wxWindow_SetAutoLayout(_arg0,_arg1); |
cf694132 | 4014 | |
4268f798 | 4015 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4016 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4017 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4018 | _resultobj = Py_None; |
4019 | return _resultobj; | |
4020 | } | |
4021 | ||
9d8bd15f RD |
4022 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
4023 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4024 | PyObject * _resultobj; | |
4025 | bool _result; | |
4026 | wxWindow * _arg0; | |
4027 | PyObject * _argo0 = 0; | |
4028 | char *_kwnames[] = { "self", NULL }; | |
4029 | ||
4030 | self = self; | |
4031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
4032 | return NULL; | |
4033 | if (_argo0) { | |
4034 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4035 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
4037 | return NULL; | |
4038 | } | |
4039 | } | |
4040 | { | |
4268f798 | 4041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4042 | _result = (bool )wxWindow_GetAutoLayout(_arg0); |
9d8bd15f | 4043 | |
4268f798 | 4044 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4045 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
4046 | } _resultobj = Py_BuildValue("i",_result); |
4047 | return _resultobj; | |
4048 | } | |
4049 | ||
8ab979d7 | 4050 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 4051 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4052 | PyObject * _resultobj; |
4053 | wxWindow * _arg0; | |
4054 | wxColour * _arg1; | |
1d99702e | 4055 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4056 | wxColour temp; |
4057 | PyObject * _obj1 = 0; | |
efc5f224 | 4058 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
4059 | |
4060 | self = self; | |
f6bcfd97 | 4061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4062 | return NULL; |
1d99702e RD |
4063 | if (_argo0) { |
4064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
4067 | return NULL; | |
4068 | } | |
4069 | } | |
f6bcfd97 BP |
4070 | { |
4071 | _arg1 = &temp; | |
4072 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4073 | return NULL; |
f6bcfd97 | 4074 | } |
cf694132 | 4075 | { |
4268f798 | 4076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4077 | wxWindow_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 4078 | |
4268f798 | 4079 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4080 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4081 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4082 | _resultobj = Py_None; |
4083 | return _resultobj; | |
4084 | } | |
4085 | ||
4086 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 4087 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4088 | PyObject * _resultobj; |
4089 | wxWindow * _arg0; | |
4090 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
4091 | PyObject * _argo0 = 0; |
4092 | PyObject * _argo1 = 0; | |
efc5f224 | 4093 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
4094 | |
4095 | self = self; | |
efc5f224 | 4096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4097 | return NULL; |
1d99702e RD |
4098 | if (_argo0) { |
4099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
4102 | return NULL; | |
4103 | } | |
4104 | } | |
1d99702e RD |
4105 | if (_argo1) { |
4106 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4107 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
4108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
4109 | return NULL; | |
4110 | } | |
4111 | } | |
cf694132 | 4112 | { |
4268f798 | 4113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4114 | wxWindow_SetConstraints(_arg0,_arg1); |
cf694132 | 4115 | |
4268f798 | 4116 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4117 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4118 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4119 | _resultobj = Py_None; |
4120 | return _resultobj; | |
4121 | } | |
4122 | ||
2f90df85 RD |
4123 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
4124 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4125 | PyObject * _resultobj; | |
4126 | wxWindow * _arg0; | |
4127 | wxLayoutConstraints * _arg1; | |
4128 | PyObject * _argo0 = 0; | |
4129 | PyObject * _argo1 = 0; | |
4130 | char *_kwnames[] = { "self","constraints", NULL }; | |
4131 | ||
4132 | self = self; | |
4133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
4134 | return NULL; | |
4135 | if (_argo0) { | |
4136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
4139 | return NULL; | |
4140 | } | |
4141 | } | |
4142 | if (_argo1) { | |
4143 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4144 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
4145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
4146 | return NULL; | |
4147 | } | |
4148 | } | |
4149 | { | |
4268f798 | 4150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4151 | wxWindow_UnsetConstraints(_arg0,_arg1); |
2f90df85 | 4152 | |
4268f798 | 4153 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4154 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4155 | } Py_INCREF(Py_None); |
4156 | _resultobj = Py_None; | |
4157 | return _resultobj; | |
4158 | } | |
4159 | ||
8ab979d7 | 4160 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 4161 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4162 | PyObject * _resultobj; |
4163 | wxWindow * _arg0; | |
1d99702e | 4164 | PyObject * _argo0 = 0; |
efc5f224 | 4165 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4166 | |
4167 | self = self; | |
efc5f224 | 4168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 4169 | return NULL; |
1d99702e RD |
4170 | if (_argo0) { |
4171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
4174 | return NULL; | |
4175 | } | |
4176 | } | |
cf694132 | 4177 | { |
4268f798 | 4178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4179 | wxWindow_SetFocus(_arg0); |
cf694132 | 4180 | |
4268f798 | 4181 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4182 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4183 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4184 | _resultobj = Py_None; |
4185 | return _resultobj; | |
4186 | } | |
4187 | ||
2a74d141 RD |
4188 | #define wxWindow_SetFocusFromKbd(_swigobj) (_swigobj->SetFocusFromKbd()) |
4189 | static PyObject *_wrap_wxWindow_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4190 | PyObject * _resultobj; | |
4191 | wxWindow * _arg0; | |
4192 | PyObject * _argo0 = 0; | |
4193 | char *_kwnames[] = { "self", NULL }; | |
4194 | ||
4195 | self = self; | |
4196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocusFromKbd",_kwnames,&_argo0)) | |
4197 | return NULL; | |
4198 | if (_argo0) { | |
4199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocusFromKbd. Expected _wxWindow_p."); | |
4202 | return NULL; | |
4203 | } | |
4204 | } | |
4205 | { | |
4206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4207 | wxWindow_SetFocusFromKbd(_arg0); | |
4208 | ||
4209 | wxPyEndAllowThreads(__tstate); | |
4210 | if (PyErr_Occurred()) return NULL; | |
4211 | } Py_INCREF(Py_None); | |
4212 | _resultobj = Py_None; | |
4213 | return _resultobj; | |
4214 | } | |
4215 | ||
2f90df85 RD |
4216 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
4217 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4218 | PyObject * _resultobj; | |
4219 | bool _result; | |
4220 | wxWindow * _arg0; | |
4221 | PyObject * _argo0 = 0; | |
4222 | char *_kwnames[] = { "self", NULL }; | |
4223 | ||
4224 | self = self; | |
4225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
4226 | return NULL; | |
4227 | if (_argo0) { | |
4228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
4231 | return NULL; | |
4232 | } | |
4233 | } | |
4234 | { | |
4268f798 | 4235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4236 | _result = (bool )wxWindow_AcceptsFocus(_arg0); |
2f90df85 | 4237 | |
4268f798 | 4238 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4239 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4240 | } _resultobj = Py_BuildValue("i",_result); |
4241 | return _resultobj; | |
4242 | } | |
4243 | ||
8ab979d7 | 4244 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 4245 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4246 | PyObject * _resultobj; |
4247 | wxWindow * _arg0; | |
4248 | wxFont * _arg1; | |
1d99702e RD |
4249 | PyObject * _argo0 = 0; |
4250 | PyObject * _argo1 = 0; | |
efc5f224 | 4251 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
4252 | |
4253 | self = self; | |
efc5f224 | 4254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4255 | return NULL; |
1d99702e RD |
4256 | if (_argo0) { |
4257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
4260 | return NULL; | |
4261 | } | |
4262 | } | |
1d99702e | 4263 | if (_argo1) { |
7e50db3f | 4264 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
8ab979d7 RD |
4265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
4266 | return NULL; | |
4267 | } | |
4268 | } | |
cf694132 | 4269 | { |
4268f798 | 4270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4271 | wxWindow_SetFont(_arg0,*_arg1); |
cf694132 | 4272 | |
4268f798 | 4273 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4274 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4275 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4276 | _resultobj = Py_None; |
4277 | return _resultobj; | |
4278 | } | |
4279 | ||
4280 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 4281 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4282 | PyObject * _resultobj; |
4283 | wxWindow * _arg0; | |
4284 | wxColour * _arg1; | |
1d99702e | 4285 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4286 | wxColour temp; |
4287 | PyObject * _obj1 = 0; | |
efc5f224 | 4288 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
4289 | |
4290 | self = self; | |
f6bcfd97 | 4291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4292 | return NULL; |
1d99702e RD |
4293 | if (_argo0) { |
4294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
4297 | return NULL; | |
4298 | } | |
4299 | } | |
f6bcfd97 BP |
4300 | { |
4301 | _arg1 = &temp; | |
4302 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4303 | return NULL; |
f6bcfd97 | 4304 | } |
cf694132 | 4305 | { |
4268f798 | 4306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4307 | wxWindow_SetForegroundColour(_arg0,*_arg1); |
cf694132 | 4308 | |
4268f798 | 4309 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4310 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4311 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4312 | _resultobj = Py_None; |
4313 | return _resultobj; | |
4314 | } | |
4315 | ||
4316 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 4317 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4318 | PyObject * _resultobj; |
4319 | wxWindow * _arg0; | |
4320 | int _arg1; | |
1d99702e | 4321 | PyObject * _argo0 = 0; |
efc5f224 | 4322 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
4323 | |
4324 | self = self; | |
efc5f224 | 4325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4326 | return NULL; |
1d99702e RD |
4327 | if (_argo0) { |
4328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
4331 | return NULL; | |
4332 | } | |
4333 | } | |
cf694132 | 4334 | { |
4268f798 | 4335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4336 | wxWindow_SetId(_arg0,_arg1); |
cf694132 | 4337 | |
4268f798 | 4338 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4339 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4340 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4341 | _resultobj = Py_None; |
4342 | return _resultobj; | |
4343 | } | |
4344 | ||
4345 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 4346 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4347 | PyObject * _resultobj; |
4348 | wxWindow * _arg0; | |
4349 | wxString * _arg1; | |
1d99702e | 4350 | PyObject * _argo0 = 0; |
8ab979d7 | 4351 | PyObject * _obj1 = 0; |
efc5f224 | 4352 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
4353 | |
4354 | self = self; | |
efc5f224 | 4355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4356 | return NULL; |
1d99702e RD |
4357 | if (_argo0) { |
4358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
4361 | return NULL; | |
4362 | } | |
4363 | } | |
4364 | { | |
c8bc7bb8 RD |
4365 | _arg1 = wxString_in_helper(_obj1); |
4366 | if (_arg1 == NULL) | |
185d7c3e | 4367 | return NULL; |
8ab979d7 | 4368 | } |
cf694132 | 4369 | { |
4268f798 | 4370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4371 | wxWindow_SetName(_arg0,*_arg1); |
cf694132 | 4372 | |
4268f798 | 4373 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4374 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4375 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4376 | _resultobj = Py_None; |
4377 | { | |
4378 | if (_obj1) | |
4379 | delete _arg1; | |
4380 | } | |
4381 | return _resultobj; | |
4382 | } | |
4383 | ||
8ab979d7 | 4384 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4385 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4386 | PyObject * _resultobj; |
4387 | wxWindow * _arg0; | |
4388 | int _arg1; | |
4389 | int _arg2; | |
4390 | int _arg3; | |
4391 | int _arg4; | |
eb715945 | 4392 | int _arg5 = (int ) TRUE; |
1d99702e | 4393 | PyObject * _argo0 = 0; |
efc5f224 | 4394 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4395 | |
4396 | self = self; | |
eb715945 | 4397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4398 | return NULL; |
1d99702e RD |
4399 | if (_argo0) { |
4400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4403 | return NULL; | |
4404 | } | |
4405 | } | |
cf694132 | 4406 | { |
4268f798 | 4407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4408 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 4409 | |
4268f798 | 4410 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4411 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4412 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4413 | _resultobj = Py_None; |
4414 | return _resultobj; | |
4415 | } | |
4416 | ||
4417 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4418 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4419 | PyObject * _resultobj; |
4420 | wxWindow * _arg0; | |
4421 | int _arg1; | |
4422 | int _arg2; | |
1d99702e RD |
4423 | bool _arg3 = (bool ) TRUE; |
4424 | PyObject * _argo0 = 0; | |
4425 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4426 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4427 | |
4428 | self = self; | |
efc5f224 | 4429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4430 | return NULL; |
1d99702e RD |
4431 | if (_argo0) { |
4432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4435 | return NULL; | |
4436 | } | |
4437 | } | |
4438 | _arg3 = (bool ) tempbool3; | |
cf694132 | 4439 | { |
4268f798 | 4440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4441 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 4442 | |
4268f798 | 4443 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4444 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4445 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4446 | _resultobj = Py_None; |
4447 | return _resultobj; | |
4448 | } | |
4449 | ||
4450 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4451 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4452 | PyObject * _resultobj; |
4453 | wxWindow * _arg0; | |
4454 | int _arg1; | |
4455 | int _arg2; | |
4456 | int _arg3; | |
4457 | int _arg4; | |
1d99702e RD |
4458 | int _arg5 = (int ) wxSIZE_AUTO; |
4459 | PyObject * _argo0 = 0; | |
efc5f224 | 4460 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4461 | |
4462 | self = self; | |
efc5f224 | 4463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
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_SetDimensions. Expected _wxWindow_p."); |
4469 | return NULL; | |
4470 | } | |
4471 | } | |
cf694132 | 4472 | { |
4268f798 | 4473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4474 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
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 | ||
4483 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4484 | self->SetSize(size); |
8ab979d7 | 4485 | } |
efc5f224 | 4486 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4487 | PyObject * _resultobj; |
4488 | wxWindow * _arg0; | |
4489 | wxSize * _arg1; | |
1d99702e | 4490 | PyObject * _argo0 = 0; |
2f90df85 RD |
4491 | wxSize temp; |
4492 | PyObject * _obj1 = 0; | |
efc5f224 | 4493 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4494 | |
4495 | self = self; | |
2f90df85 | 4496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4497 | return NULL; |
1d99702e RD |
4498 | if (_argo0) { |
4499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4502 | return NULL; | |
4503 | } | |
4504 | } | |
2f90df85 RD |
4505 | { |
4506 | _arg1 = &temp; | |
4507 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4508 | return NULL; |
2f90df85 | 4509 | } |
cf694132 | 4510 | { |
4268f798 | 4511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4512 | wxWindow_SetSize(_arg0,*_arg1); |
cf694132 | 4513 | |
4268f798 | 4514 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4515 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4516 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4517 | _resultobj = Py_None; |
4518 | return _resultobj; | |
4519 | } | |
4520 | ||
23bed520 RD |
4521 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos,int flags) { |
4522 | self->Move(pos, flags); | |
8ab979d7 | 4523 | } |
efc5f224 | 4524 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4525 | PyObject * _resultobj; |
4526 | wxWindow * _arg0; | |
4527 | wxPoint * _arg1; | |
23bed520 | 4528 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 4529 | PyObject * _argo0 = 0; |
2f90df85 RD |
4530 | wxPoint temp; |
4531 | PyObject * _obj1 = 0; | |
23bed520 | 4532 | char *_kwnames[] = { "self","pos","flags", NULL }; |
8ab979d7 RD |
4533 | |
4534 | self = self; | |
23bed520 | 4535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 4536 | return NULL; |
1d99702e RD |
4537 | if (_argo0) { |
4538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4541 | return NULL; | |
4542 | } | |
4543 | } | |
2f90df85 RD |
4544 | { |
4545 | _arg1 = &temp; | |
4546 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4547 | return NULL; |
2f90df85 | 4548 | } |
cf694132 | 4549 | { |
4268f798 | 4550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4551 | wxWindow_SetPosition(_arg0,*_arg1,_arg2); |
cf694132 | 4552 | |
4268f798 | 4553 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4554 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4555 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4556 | _resultobj = Py_None; |
4557 | return _resultobj; | |
4558 | } | |
4559 | ||
dbbb98cd RD |
4560 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4561 | self->SetSize(rect, sizeFlags); | |
4562 | } | |
4563 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4564 | PyObject * _resultobj; | |
4565 | wxWindow * _arg0; | |
4566 | wxRect * _arg1; | |
4567 | int _arg2 = (int ) wxSIZE_AUTO; | |
4568 | PyObject * _argo0 = 0; | |
4569 | wxRect temp; | |
4570 | PyObject * _obj1 = 0; | |
4571 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4572 | ||
4573 | self = self; | |
4574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4575 | return NULL; | |
4576 | if (_argo0) { | |
4577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4580 | return NULL; | |
4581 | } | |
4582 | } | |
4583 | { | |
4584 | _arg1 = &temp; | |
4585 | if (! wxRect_helper(_obj1, &_arg1)) | |
4586 | return NULL; | |
4587 | } | |
4588 | { | |
4268f798 | 4589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4590 | wxWindow_SetRect(_arg0,*_arg1,_arg2); |
dbbb98cd | 4591 | |
4268f798 | 4592 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4593 | if (PyErr_Occurred()) return NULL; |
dbbb98cd RD |
4594 | } Py_INCREF(Py_None); |
4595 | _resultobj = Py_None; | |
4596 | return _resultobj; | |
4597 | } | |
4598 | ||
8ab979d7 | 4599 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4600 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4601 | PyObject * _resultobj; |
4602 | wxWindow * _arg0; | |
2a74d141 RD |
4603 | int _arg1; |
4604 | int _arg2; | |
1d99702e RD |
4605 | int _arg3 = (int ) -1; |
4606 | int _arg4 = (int ) -1; | |
4607 | int _arg5 = (int ) -1; | |
4608 | int _arg6 = (int ) -1; | |
4609 | PyObject * _argo0 = 0; | |
efc5f224 | 4610 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4611 | |
4612 | self = self; | |
2a74d141 | 4613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|iiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4614 | return NULL; |
1d99702e RD |
4615 | if (_argo0) { |
4616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4619 | return NULL; | |
4620 | } | |
4621 | } | |
cf694132 | 4622 | { |
4268f798 | 4623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4624 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 4625 | |
4268f798 | 4626 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4627 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4628 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4629 | _resultobj = Py_None; |
4630 | return _resultobj; | |
4631 | } | |
4632 | ||
2a74d141 RD |
4633 | #define wxWindow_SetVirtualSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetVirtualSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4634 | static PyObject *_wrap_wxWindow_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4635 | PyObject * _resultobj; | |
4636 | wxWindow * _arg0; | |
4637 | int _arg1; | |
4638 | int _arg2; | |
4639 | int _arg3 = (int ) -1; | |
4640 | int _arg4 = (int ) -1; | |
4641 | PyObject * _argo0 = 0; | |
4642 | char *_kwnames[] = { "self","minW","minH","maxW","maxH", NULL }; | |
4643 | ||
4644 | self = self; | |
4645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_SetVirtualSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
4646 | return NULL; | |
4647 | if (_argo0) { | |
4648 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4649 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSizeHints. Expected _wxWindow_p."); | |
4651 | return NULL; | |
4652 | } | |
4653 | } | |
4654 | { | |
4655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4656 | wxWindow_SetVirtualSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4); | |
4657 | ||
4658 | wxPyEndAllowThreads(__tstate); | |
4659 | if (PyErr_Occurred()) return NULL; | |
4660 | } Py_INCREF(Py_None); | |
4661 | _resultobj = Py_None; | |
4662 | return _resultobj; | |
4663 | } | |
4664 | ||
4665 | #define wxWindow_SetVirtualSize(_swigobj,_swigarg0) (_swigobj->SetVirtualSize(_swigarg0)) | |
4666 | static PyObject *_wrap_wxWindow_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4667 | PyObject * _resultobj; | |
4668 | wxWindow * _arg0; | |
4669 | wxSize * _arg1; | |
4670 | PyObject * _argo0 = 0; | |
4671 | wxSize temp; | |
4672 | PyObject * _obj1 = 0; | |
4673 | char *_kwnames[] = { "self","size", NULL }; | |
4674 | ||
4675 | self = self; | |
4676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetVirtualSize",_kwnames,&_argo0,&_obj1)) | |
4677 | return NULL; | |
4678 | if (_argo0) { | |
4679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSize. Expected _wxWindow_p."); | |
4682 | return NULL; | |
4683 | } | |
4684 | } | |
4685 | { | |
4686 | _arg1 = &temp; | |
4687 | if (! wxSize_helper(_obj1, &_arg1)) | |
4688 | return NULL; | |
4689 | } | |
4690 | { | |
4691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4692 | wxWindow_SetVirtualSize(_arg0,*_arg1); | |
4693 | ||
4694 | wxPyEndAllowThreads(__tstate); | |
4695 | if (PyErr_Occurred()) return NULL; | |
4696 | } Py_INCREF(Py_None); | |
4697 | _resultobj = Py_None; | |
4698 | return _resultobj; | |
4699 | } | |
4700 | ||
4701 | #define wxWindow_SetVirtualSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetVirtualSize(_swigarg0,_swigarg1)) | |
4702 | static PyObject *_wrap_wxWindow_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4703 | PyObject * _resultobj; | |
4704 | wxWindow * _arg0; | |
4705 | int _arg1; | |
4706 | int _arg2; | |
4707 | PyObject * _argo0 = 0; | |
4708 | char *_kwnames[] = { "self","x","y", NULL }; | |
4709 | ||
4710 | self = self; | |
4711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetVirtualSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4712 | return NULL; | |
4713 | if (_argo0) { | |
4714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSizeWH. Expected _wxWindow_p."); | |
4717 | return NULL; | |
4718 | } | |
4719 | } | |
4720 | { | |
4721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4722 | wxWindow_SetVirtualSizeWH(_arg0,_arg1,_arg2); | |
4723 | ||
4724 | wxPyEndAllowThreads(__tstate); | |
4725 | if (PyErr_Occurred()) return NULL; | |
4726 | } Py_INCREF(Py_None); | |
4727 | _resultobj = Py_None; | |
4728 | return _resultobj; | |
4729 | } | |
4730 | ||
4731 | #define wxWindow_GetVirtualSize(_swigobj) (_swigobj->GetVirtualSize()) | |
4732 | static PyObject *_wrap_wxWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4733 | PyObject * _resultobj; | |
4734 | wxSize * _result; | |
4735 | wxWindow * _arg0; | |
4736 | PyObject * _argo0 = 0; | |
4737 | char *_kwnames[] = { "self", NULL }; | |
4738 | char _ptemp[128]; | |
4739 | ||
4740 | self = self; | |
4741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetVirtualSize",_kwnames,&_argo0)) | |
4742 | return NULL; | |
4743 | if (_argo0) { | |
4744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetVirtualSize. Expected _wxWindow_p."); | |
4747 | return NULL; | |
4748 | } | |
4749 | } | |
4750 | { | |
4751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4752 | _result = new wxSize (wxWindow_GetVirtualSize(_arg0)); | |
4753 | ||
4754 | wxPyEndAllowThreads(__tstate); | |
4755 | if (PyErr_Occurred()) return NULL; | |
4756 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4757 | _resultobj = Py_BuildValue("s",_ptemp); | |
4758 | return _resultobj; | |
4759 | } | |
4760 | ||
4761 | #define wxWindow_GetVirtualSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) | |
4762 | static PyObject *_wrap_wxWindow_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4763 | PyObject * _resultobj; | |
4764 | wxWindow * _arg0; | |
4765 | int * _arg1; | |
4766 | int temp; | |
4767 | int * _arg2; | |
4768 | int temp0; | |
4769 | PyObject * _argo0 = 0; | |
4770 | char *_kwnames[] = { "self", NULL }; | |
4771 | ||
4772 | self = self; | |
4773 | { | |
4774 | _arg1 = &temp; | |
4775 | } | |
4776 | { | |
4777 | _arg2 = &temp0; | |
4778 | } | |
4779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetVirtualSizeTuple",_kwnames,&_argo0)) | |
4780 | return NULL; | |
4781 | if (_argo0) { | |
4782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetVirtualSizeTuple. Expected _wxWindow_p."); | |
4785 | return NULL; | |
4786 | } | |
4787 | } | |
4788 | { | |
4789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4790 | wxWindow_GetVirtualSizeTuple(_arg0,_arg1,_arg2); | |
4791 | ||
4792 | wxPyEndAllowThreads(__tstate); | |
4793 | if (PyErr_Occurred()) return NULL; | |
4794 | } Py_INCREF(Py_None); | |
4795 | _resultobj = Py_None; | |
4796 | { | |
4797 | PyObject *o; | |
4798 | o = PyInt_FromLong((long) (*_arg1)); | |
4799 | _resultobj = t_output_helper(_resultobj, o); | |
4800 | } | |
4801 | { | |
4802 | PyObject *o; | |
4803 | o = PyInt_FromLong((long) (*_arg2)); | |
4804 | _resultobj = t_output_helper(_resultobj, o); | |
4805 | } | |
4806 | return _resultobj; | |
4807 | } | |
4808 | ||
7e50db3f RD |
4809 | #define wxWindow_GetBestVirtualSize(_swigobj) (_swigobj->GetBestVirtualSize()) |
4810 | static PyObject *_wrap_wxWindow_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4811 | PyObject * _resultobj; | |
4812 | wxSize * _result; | |
4813 | wxWindow * _arg0; | |
4814 | PyObject * _argo0 = 0; | |
4815 | char *_kwnames[] = { "self", NULL }; | |
4816 | char _ptemp[128]; | |
4817 | ||
4818 | self = self; | |
4819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestVirtualSize",_kwnames,&_argo0)) | |
4820 | return NULL; | |
4821 | if (_argo0) { | |
4822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestVirtualSize. Expected _wxWindow_p."); | |
4825 | return NULL; | |
4826 | } | |
4827 | } | |
4828 | { | |
4829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4830 | _result = new wxSize (wxWindow_GetBestVirtualSize(_arg0)); | |
4831 | ||
4832 | wxPyEndAllowThreads(__tstate); | |
4833 | if (PyErr_Occurred()) return NULL; | |
4834 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4835 | _resultobj = Py_BuildValue("s",_ptemp); | |
4836 | return _resultobj; | |
4837 | } | |
4838 | ||
af309447 | 4839 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4840 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4841 | PyObject * _resultobj; |
4842 | wxWindow * _arg0; | |
4843 | int _arg1; | |
4844 | int _arg2; | |
1d99702e | 4845 | PyObject * _argo0 = 0; |
efc5f224 | 4846 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4847 | |
4848 | self = self; | |
efc5f224 | 4849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4850 | return NULL; |
1d99702e RD |
4851 | if (_argo0) { |
4852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4855 | return NULL; | |
4856 | } | |
4857 | } | |
cf694132 | 4858 | { |
4268f798 | 4859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4860 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); |
cf694132 | 4861 | |
4268f798 | 4862 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4863 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4864 | } Py_INCREF(Py_None); |
af309447 RD |
4865 | _resultobj = Py_None; |
4866 | return _resultobj; | |
4867 | } | |
4868 | ||
4869 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4870 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4871 | PyObject * _resultobj; |
4872 | wxWindow * _arg0; | |
4873 | wxSize * _arg1; | |
1d99702e | 4874 | PyObject * _argo0 = 0; |
2f90df85 RD |
4875 | wxSize temp; |
4876 | PyObject * _obj1 = 0; | |
efc5f224 | 4877 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4878 | |
4879 | self = self; | |
2f90df85 | 4880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4881 | return NULL; |
1d99702e RD |
4882 | if (_argo0) { |
4883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4886 | return NULL; | |
4887 | } | |
4888 | } | |
2f90df85 RD |
4889 | { |
4890 | _arg1 = &temp; | |
4891 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4892 | return NULL; |
2f90df85 | 4893 | } |
cf694132 | 4894 | { |
4268f798 | 4895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4896 | wxWindow_SetClientSize(_arg0,*_arg1); |
cf694132 | 4897 | |
4268f798 | 4898 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4899 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4900 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4901 | _resultobj = Py_None; |
4902 | return _resultobj; | |
4903 | } | |
4904 | ||
4905 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4906 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4907 | PyObject * _resultobj; |
e67409dc | 4908 | bool _result; |
8ab979d7 RD |
4909 | wxWindow * _arg0; |
4910 | wxCursor * _arg1; | |
1d99702e RD |
4911 | PyObject * _argo0 = 0; |
4912 | PyObject * _argo1 = 0; | |
efc5f224 | 4913 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4914 | |
4915 | self = self; | |
efc5f224 | 4916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4917 | return NULL; |
1d99702e RD |
4918 | if (_argo0) { |
4919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4922 | return NULL; | |
4923 | } | |
4924 | } | |
1d99702e | 4925 | if (_argo1) { |
7e50db3f | 4926 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { |
8ab979d7 RD |
4927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4928 | return NULL; | |
4929 | } | |
4930 | } | |
cf694132 | 4931 | { |
4268f798 | 4932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e67409dc | 4933 | _result = (bool )wxWindow_SetCursor(_arg0,*_arg1); |
cf694132 | 4934 | |
4268f798 | 4935 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4936 | if (PyErr_Occurred()) return NULL; |
e67409dc RD |
4937 | } _resultobj = Py_BuildValue("i",_result); |
4938 | return _resultobj; | |
4939 | } | |
4940 | ||
4941 | #define wxWindow_GetCursor(_swigobj) (_swigobj->GetCursor()) | |
4942 | static PyObject *_wrap_wxWindow_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4943 | PyObject * _resultobj; | |
4944 | wxCursor * _result; | |
4945 | wxWindow * _arg0; | |
4946 | PyObject * _argo0 = 0; | |
4947 | char *_kwnames[] = { "self", NULL }; | |
4948 | char _ptemp[128]; | |
4949 | ||
4950 | self = self; | |
4951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCursor",_kwnames,&_argo0)) | |
4952 | return NULL; | |
4953 | if (_argo0) { | |
4954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCursor. Expected _wxWindow_p."); | |
4957 | return NULL; | |
4958 | } | |
4959 | } | |
4960 | { | |
4961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4962 | wxCursor & _result_ref = wxWindow_GetCursor(_arg0); | |
4963 | _result = (wxCursor *) &_result_ref; | |
4964 | ||
4965 | wxPyEndAllowThreads(__tstate); | |
4966 | if (PyErr_Occurred()) return NULL; | |
4967 | } if (_result) { | |
4968 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
4969 | _resultobj = Py_BuildValue("s",_ptemp); | |
4970 | } else { | |
4971 | Py_INCREF(Py_None); | |
4972 | _resultobj = Py_None; | |
4973 | } | |
8ab979d7 RD |
4974 | return _resultobj; |
4975 | } | |
4976 | ||
1afc06c2 RD |
4977 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4978 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4979 | PyObject * _resultobj; | |
4980 | wxWindow * _arg0; | |
4981 | wxEvtHandler * _arg1; | |
4982 | PyObject * _argo0 = 0; | |
4983 | PyObject * _argo1 = 0; | |
4984 | char *_kwnames[] = { "self","handler", NULL }; | |
4985 | ||
4986 | self = self; | |
4987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4988 | return NULL; | |
4989 | if (_argo0) { | |
4990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4993 | return NULL; | |
4994 | } | |
4995 | } | |
4996 | if (_argo1) { | |
4997 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4998 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
5000 | return NULL; | |
5001 | } | |
5002 | } | |
5003 | { | |
4268f798 | 5004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5005 | wxWindow_SetEventHandler(_arg0,_arg1); |
1afc06c2 | 5006 | |
4268f798 | 5007 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5008 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
5009 | } Py_INCREF(Py_None); |
5010 | _resultobj = Py_None; | |
5011 | return _resultobj; | |
5012 | } | |
5013 | ||
83b18bab RD |
5014 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
5015 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5016 | PyObject * _resultobj; | |
5017 | wxWindow * _arg0; | |
5018 | long _arg1; | |
5019 | PyObject * _argo0 = 0; | |
5020 | char *_kwnames[] = { "self","exStyle", NULL }; | |
5021 | ||
5022 | self = self; | |
5023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
5024 | return NULL; | |
5025 | if (_argo0) { | |
5026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
5029 | return NULL; | |
5030 | } | |
5031 | } | |
5032 | { | |
4268f798 | 5033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5034 | wxWindow_SetExtraStyle(_arg0,_arg1); |
83b18bab | 5035 | |
4268f798 | 5036 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5037 | if (PyErr_Occurred()) return NULL; |
83b18bab RD |
5038 | } Py_INCREF(Py_None); |
5039 | _resultobj = Py_None; | |
5040 | return _resultobj; | |
5041 | } | |
5042 | ||
8ab979d7 | 5043 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 5044 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5045 | PyObject * _resultobj; |
5046 | wxWindow * _arg0; | |
5047 | wxString * _arg1; | |
1d99702e | 5048 | PyObject * _argo0 = 0; |
8ab979d7 | 5049 | PyObject * _obj1 = 0; |
efc5f224 | 5050 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
5051 | |
5052 | self = self; | |
efc5f224 | 5053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5054 | return NULL; |
1d99702e RD |
5055 | if (_argo0) { |
5056 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5057 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
5059 | return NULL; | |
5060 | } | |
5061 | } | |
5062 | { | |
c8bc7bb8 RD |
5063 | _arg1 = wxString_in_helper(_obj1); |
5064 | if (_arg1 == NULL) | |
185d7c3e | 5065 | return NULL; |
8ab979d7 | 5066 | } |
cf694132 | 5067 | { |
4268f798 | 5068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5069 | wxWindow_SetTitle(_arg0,*_arg1); |
cf694132 | 5070 | |
4268f798 | 5071 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5072 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5073 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5074 | _resultobj = Py_None; |
5075 | { | |
5076 | if (_obj1) | |
5077 | delete _arg1; | |
5078 | } | |
5079 | return _resultobj; | |
5080 | } | |
5081 | ||
5082 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 5083 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5084 | PyObject * _resultobj; |
5085 | bool _result; | |
5086 | wxWindow * _arg0; | |
7b7ac0ab | 5087 | bool _arg1 = (bool ) TRUE; |
1d99702e | 5088 | PyObject * _argo0 = 0; |
7b7ac0ab | 5089 | int tempbool1 = (int) TRUE; |
efc5f224 | 5090 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
5091 | |
5092 | self = self; | |
7b7ac0ab | 5093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5094 | return NULL; |
1d99702e RD |
5095 | if (_argo0) { |
5096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
5099 | return NULL; | |
5100 | } | |
5101 | } | |
5102 | _arg1 = (bool ) tempbool1; | |
cf694132 | 5103 | { |
4268f798 | 5104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5105 | _result = (bool )wxWindow_Show(_arg0,_arg1); |
cf694132 | 5106 | |
4268f798 | 5107 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5108 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5109 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5110 | return _resultobj; |
5111 | } | |
5112 | ||
5113 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 5114 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5115 | PyObject * _resultobj; |
5116 | bool _result; | |
5117 | wxWindow * _arg0; | |
1d99702e | 5118 | PyObject * _argo0 = 0; |
efc5f224 | 5119 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5120 | |
5121 | self = self; | |
efc5f224 | 5122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 5123 | return NULL; |
1d99702e RD |
5124 | if (_argo0) { |
5125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
5128 | return NULL; | |
5129 | } | |
5130 | } | |
cf694132 | 5131 | { |
4268f798 | 5132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5133 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); |
cf694132 | 5134 | |
4268f798 | 5135 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5136 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5137 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5138 | return _resultobj; |
5139 | } | |
5140 | ||
5141 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 5142 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5143 | PyObject * _resultobj; |
5144 | bool _result; | |
5145 | wxWindow * _arg0; | |
1d99702e | 5146 | PyObject * _argo0 = 0; |
efc5f224 | 5147 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5148 | |
5149 | self = self; | |
efc5f224 | 5150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 5151 | return NULL; |
1d99702e RD |
5152 | if (_argo0) { |
5153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
5156 | return NULL; | |
5157 | } | |
5158 | } | |
cf694132 | 5159 | { |
4268f798 | 5160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5161 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); |
cf694132 | 5162 | |
4268f798 | 5163 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5164 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5165 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5166 | return _resultobj; |
5167 | } | |
5168 | ||
23bed520 RD |
5169 | #define wxWindow_UpdateWindowUI(_swigobj) (_swigobj->UpdateWindowUI()) |
5170 | static PyObject *_wrap_wxWindow_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5171 | PyObject * _resultobj; | |
5172 | wxWindow * _arg0; | |
5173 | PyObject * _argo0 = 0; | |
5174 | char *_kwnames[] = { "self", NULL }; | |
5175 | ||
5176 | self = self; | |
5177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_UpdateWindowUI",_kwnames,&_argo0)) | |
5178 | return NULL; | |
5179 | if (_argo0) { | |
5180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UpdateWindowUI. Expected _wxWindow_p."); | |
5183 | return NULL; | |
5184 | } | |
5185 | } | |
5186 | { | |
5187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5188 | wxWindow_UpdateWindowUI(_arg0); |
23bed520 RD |
5189 | |
5190 | wxPyEndAllowThreads(__tstate); | |
5191 | if (PyErr_Occurred()) return NULL; | |
5192 | } Py_INCREF(Py_None); | |
5193 | _resultobj = Py_None; | |
5194 | return _resultobj; | |
5195 | } | |
5196 | ||
8ab979d7 | 5197 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) |
efc5f224 | 5198 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5199 | PyObject * _resultobj; |
5200 | bool _result; | |
5201 | wxWindow * _arg0; | |
1d99702e | 5202 | PyObject * _argo0 = 0; |
efc5f224 | 5203 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5204 | |
5205 | self = self; | |
efc5f224 | 5206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 5207 | return NULL; |
1d99702e RD |
5208 | if (_argo0) { |
5209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
5212 | return NULL; | |
5213 | } | |
5214 | } | |
cf694132 | 5215 | { |
4268f798 | 5216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5217 | _result = (bool )wxWindow_Validate(_arg0); |
cf694132 | 5218 | |
4268f798 | 5219 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5220 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5221 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5222 | return _resultobj; |
5223 | } | |
5224 | ||
b8b8dda7 | 5225 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 5226 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5227 | PyObject * _resultobj; |
5228 | wxPoint * _result; | |
5229 | wxWindow * _arg0; | |
5230 | wxPoint * _arg1; | |
1d99702e | 5231 | PyObject * _argo0 = 0; |
2f90df85 RD |
5232 | wxPoint temp; |
5233 | PyObject * _obj1 = 0; | |
efc5f224 | 5234 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
5235 | char _ptemp[128]; |
5236 | ||
5237 | self = self; | |
2f90df85 | 5238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5239 | return NULL; |
1d99702e RD |
5240 | if (_argo0) { |
5241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
5244 | return NULL; | |
5245 | } | |
5246 | } | |
2f90df85 RD |
5247 | { |
5248 | _arg1 = &temp; | |
5249 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5250 | return NULL; |
2f90df85 | 5251 | } |
cf694132 | 5252 | { |
4268f798 | 5253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5254 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); |
cf694132 | 5255 | |
4268f798 | 5256 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5257 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5258 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
5259 | _resultobj = Py_BuildValue("s",_ptemp); |
5260 | return _resultobj; | |
5261 | } | |
5262 | ||
5263 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 5264 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5265 | PyObject * _resultobj; |
5266 | wxSize * _result; | |
5267 | wxWindow * _arg0; | |
5268 | wxSize * _arg1; | |
1d99702e | 5269 | PyObject * _argo0 = 0; |
2f90df85 RD |
5270 | wxSize temp; |
5271 | PyObject * _obj1 = 0; | |
efc5f224 | 5272 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
5273 | char _ptemp[128]; |
5274 | ||
5275 | self = self; | |
2f90df85 | 5276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5277 | return NULL; |
1d99702e RD |
5278 | if (_argo0) { |
5279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
5282 | return NULL; | |
5283 | } | |
5284 | } | |
2f90df85 RD |
5285 | { |
5286 | _arg1 = &temp; | |
5287 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5288 | return NULL; |
2f90df85 | 5289 | } |
cf694132 | 5290 | { |
4268f798 | 5291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5292 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); |
cf694132 | 5293 | |
4268f798 | 5294 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5295 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5296 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
5297 | _resultobj = Py_BuildValue("s",_ptemp); |
5298 | return _resultobj; | |
5299 | } | |
5300 | ||
5301 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 5302 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5303 | PyObject * _resultobj; |
5304 | wxPoint * _result; | |
5305 | wxWindow * _arg0; | |
5306 | wxPoint * _arg1; | |
1d99702e | 5307 | PyObject * _argo0 = 0; |
2f90df85 RD |
5308 | wxPoint temp; |
5309 | PyObject * _obj1 = 0; | |
efc5f224 | 5310 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
5311 | char _ptemp[128]; |
5312 | ||
5313 | self = self; | |
2f90df85 | 5314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5315 | return NULL; |
1d99702e RD |
5316 | if (_argo0) { |
5317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
5320 | return NULL; | |
5321 | } | |
5322 | } | |
2f90df85 RD |
5323 | { |
5324 | _arg1 = &temp; | |
5325 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5326 | return NULL; |
2f90df85 | 5327 | } |
cf694132 | 5328 | { |
4268f798 | 5329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5330 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); |
cf694132 | 5331 | |
4268f798 | 5332 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5333 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5334 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
5335 | _resultobj = Py_BuildValue("s",_ptemp); |
5336 | return _resultobj; | |
5337 | } | |
5338 | ||
5339 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 5340 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5341 | PyObject * _resultobj; |
5342 | wxSize * _result; | |
5343 | wxWindow * _arg0; | |
5344 | wxSize * _arg1; | |
1d99702e | 5345 | PyObject * _argo0 = 0; |
2f90df85 RD |
5346 | wxSize temp; |
5347 | PyObject * _obj1 = 0; | |
efc5f224 | 5348 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
5349 | char _ptemp[128]; |
5350 | ||
5351 | self = self; | |
2f90df85 | 5352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5353 | return NULL; |
1d99702e RD |
5354 | if (_argo0) { |
5355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
5358 | return NULL; | |
5359 | } | |
5360 | } | |
2f90df85 RD |
5361 | { |
5362 | _arg1 = &temp; | |
5363 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5364 | return NULL; |
2f90df85 | 5365 | } |
cf694132 | 5366 | { |
4268f798 | 5367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5368 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); |
cf694132 | 5369 | |
4268f798 | 5370 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5371 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5372 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
5373 | _resultobj = Py_BuildValue("s",_ptemp); |
5374 | return _resultobj; | |
5375 | } | |
5376 | ||
af309447 | 5377 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 5378 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5379 | PyObject * _resultobj; |
5380 | wxWindow * _arg0; | |
5381 | wxString * _arg1; | |
1d99702e | 5382 | PyObject * _argo0 = 0; |
af309447 | 5383 | PyObject * _obj1 = 0; |
efc5f224 | 5384 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
5385 | |
5386 | self = self; | |
efc5f224 | 5387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 5388 | return NULL; |
1d99702e RD |
5389 | if (_argo0) { |
5390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
5393 | return NULL; | |
5394 | } | |
5395 | } | |
5396 | { | |
c8bc7bb8 RD |
5397 | _arg1 = wxString_in_helper(_obj1); |
5398 | if (_arg1 == NULL) | |
185d7c3e | 5399 | return NULL; |
af309447 | 5400 | } |
cf694132 | 5401 | { |
4268f798 | 5402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5403 | wxWindow_SetToolTipString(_arg0,*_arg1); |
cf694132 | 5404 | |
4268f798 | 5405 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5406 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5407 | } Py_INCREF(Py_None); |
af309447 RD |
5408 | _resultobj = Py_None; |
5409 | { | |
5410 | if (_obj1) | |
5411 | delete _arg1; | |
5412 | } | |
5413 | return _resultobj; | |
5414 | } | |
5415 | ||
5416 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 5417 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5418 | PyObject * _resultobj; |
5419 | wxWindow * _arg0; | |
5420 | wxToolTip * _arg1; | |
1d99702e RD |
5421 | PyObject * _argo0 = 0; |
5422 | PyObject * _argo1 = 0; | |
efc5f224 | 5423 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
5424 | |
5425 | self = self; | |
efc5f224 | 5426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 5427 | return NULL; |
1d99702e RD |
5428 | if (_argo0) { |
5429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
5432 | return NULL; | |
5433 | } | |
5434 | } | |
1d99702e RD |
5435 | if (_argo1) { |
5436 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5437 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
5438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
5439 | return NULL; | |
5440 | } | |
5441 | } | |
cf694132 | 5442 | { |
4268f798 | 5443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5444 | wxWindow_SetToolTip(_arg0,_arg1); |
cf694132 | 5445 | |
4268f798 | 5446 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5447 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5448 | } Py_INCREF(Py_None); |
af309447 RD |
5449 | _resultobj = Py_None; |
5450 | return _resultobj; | |
5451 | } | |
5452 | ||
5453 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 5454 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5455 | PyObject * _resultobj; |
5456 | wxToolTip * _result; | |
5457 | wxWindow * _arg0; | |
1d99702e | 5458 | PyObject * _argo0 = 0; |
efc5f224 | 5459 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
5460 | |
5461 | self = self; | |
efc5f224 | 5462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 5463 | return NULL; |
1d99702e RD |
5464 | if (_argo0) { |
5465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
5468 | return NULL; | |
5469 | } | |
5470 | } | |
cf694132 | 5471 | { |
4268f798 | 5472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5473 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); |
cf694132 | 5474 | |
4268f798 | 5475 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5476 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5477 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
5478 | return _resultobj; |
5479 | } | |
5480 | ||
a541c325 | 5481 | #define wxWindow_SetSizer(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizer(_swigarg0,_swigarg1)) |
2f90df85 RD |
5482 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { |
5483 | PyObject * _resultobj; | |
5484 | wxWindow * _arg0; | |
5485 | wxSizer * _arg1; | |
a541c325 | 5486 | bool _arg2 = (bool ) TRUE; |
2f90df85 RD |
5487 | PyObject * _argo0 = 0; |
5488 | PyObject * _argo1 = 0; | |
a541c325 RD |
5489 | int tempbool2 = (int) TRUE; |
5490 | char *_kwnames[] = { "self","sizer","deleteOld", NULL }; | |
2f90df85 RD |
5491 | |
5492 | self = self; | |
a541c325 | 5493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1,&tempbool2)) |
2f90df85 RD |
5494 | return NULL; |
5495 | if (_argo0) { | |
5496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
5499 | return NULL; | |
5500 | } | |
5501 | } | |
5502 | if (_argo1) { | |
5503 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5504 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
5506 | return NULL; | |
5507 | } | |
5508 | } | |
a541c325 | 5509 | _arg2 = (bool ) tempbool2; |
2f90df85 | 5510 | { |
4268f798 | 5511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a541c325 | 5512 | wxWindow_SetSizer(_arg0,_arg1,_arg2); |
2f90df85 | 5513 | |
4268f798 | 5514 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5515 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5516 | } Py_INCREF(Py_None); |
5517 | _resultobj = Py_None; | |
5518 | return _resultobj; | |
5519 | } | |
5520 | ||
2a74d141 RD |
5521 | #define wxWindow_SetSizerAndFit(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizerAndFit(_swigarg0,_swigarg1)) |
5522 | static PyObject *_wrap_wxWindow_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5523 | PyObject * _resultobj; | |
5524 | wxWindow * _arg0; | |
5525 | wxSizer * _arg1; | |
5526 | bool _arg2 = (bool ) TRUE; | |
5527 | PyObject * _argo0 = 0; | |
5528 | PyObject * _argo1 = 0; | |
5529 | int tempbool2 = (int) TRUE; | |
5530 | char *_kwnames[] = { "self","sizer","deleteOld", NULL }; | |
5531 | ||
5532 | self = self; | |
5533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizerAndFit",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
5534 | return NULL; | |
5535 | if (_argo0) { | |
5536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizerAndFit. Expected _wxWindow_p."); | |
5539 | return NULL; | |
5540 | } | |
5541 | } | |
5542 | if (_argo1) { | |
5543 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5544 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizerAndFit. Expected _wxSizer_p."); | |
5546 | return NULL; | |
5547 | } | |
5548 | } | |
5549 | _arg2 = (bool ) tempbool2; | |
5550 | { | |
5551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5552 | wxWindow_SetSizerAndFit(_arg0,_arg1,_arg2); | |
5553 | ||
5554 | wxPyEndAllowThreads(__tstate); | |
5555 | if (PyErr_Occurred()) return NULL; | |
5556 | } Py_INCREF(Py_None); | |
5557 | _resultobj = Py_None; | |
5558 | return _resultobj; | |
5559 | } | |
5560 | ||
f6bcfd97 BP |
5561 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
5562 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5563 | PyObject * _resultobj; | |
5564 | wxSizer * _result; | |
5565 | wxWindow * _arg0; | |
5566 | PyObject * _argo0 = 0; | |
5567 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
5568 | |
5569 | self = self; | |
5570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
5571 | return NULL; | |
5572 | if (_argo0) { | |
5573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
5576 | return NULL; | |
5577 | } | |
5578 | } | |
5579 | { | |
4268f798 | 5580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5581 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); |
f6bcfd97 | 5582 | |
4268f798 | 5583 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5584 | if (PyErr_Occurred()) return NULL; |
2f4e9287 | 5585 | }{ _resultobj = wxPyMake_wxSizer(_result); } |
f6bcfd97 BP |
5586 | return _resultobj; |
5587 | } | |
5588 | ||
be90c029 RD |
5589 | #define wxWindow_SetContainingSizer(_swigobj,_swigarg0) (_swigobj->SetContainingSizer(_swigarg0)) |
5590 | static PyObject *_wrap_wxWindow_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5591 | PyObject * _resultobj; | |
5592 | wxWindow * _arg0; | |
5593 | wxSizer * _arg1; | |
5594 | PyObject * _argo0 = 0; | |
5595 | PyObject * _argo1 = 0; | |
5596 | char *_kwnames[] = { "self","sizer", NULL }; | |
5597 | ||
5598 | self = self; | |
5599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetContainingSizer",_kwnames,&_argo0,&_argo1)) | |
5600 | return NULL; | |
5601 | if (_argo0) { | |
5602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetContainingSizer. Expected _wxWindow_p."); | |
5605 | return NULL; | |
5606 | } | |
5607 | } | |
5608 | if (_argo1) { | |
5609 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5610 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetContainingSizer. Expected _wxSizer_p."); | |
5612 | return NULL; | |
5613 | } | |
5614 | } | |
5615 | { | |
5616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5617 | wxWindow_SetContainingSizer(_arg0,_arg1); |
be90c029 RD |
5618 | |
5619 | wxPyEndAllowThreads(__tstate); | |
5620 | if (PyErr_Occurred()) return NULL; | |
5621 | } Py_INCREF(Py_None); | |
5622 | _resultobj = Py_None; | |
5623 | return _resultobj; | |
5624 | } | |
5625 | ||
5626 | #define wxWindow_GetContainingSizer(_swigobj) (_swigobj->GetContainingSizer()) | |
5627 | static PyObject *_wrap_wxWindow_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5628 | PyObject * _resultobj; | |
5629 | wxSizer * _result; | |
5630 | wxWindow * _arg0; | |
5631 | PyObject * _argo0 = 0; | |
5632 | char *_kwnames[] = { "self", NULL }; | |
5633 | ||
5634 | self = self; | |
5635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetContainingSizer",_kwnames,&_argo0)) | |
5636 | return NULL; | |
5637 | if (_argo0) { | |
5638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetContainingSizer. Expected _wxWindow_p."); | |
5641 | return NULL; | |
5642 | } | |
5643 | } | |
5644 | { | |
5645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5646 | _result = (wxSizer *)wxWindow_GetContainingSizer(_arg0); |
be90c029 RD |
5647 | |
5648 | wxPyEndAllowThreads(__tstate); | |
5649 | if (PyErr_Occurred()) return NULL; | |
5650 | }{ _resultobj = wxPyMake_wxSizer(_result); } | |
5651 | return _resultobj; | |
5652 | } | |
5653 | ||
2f90df85 RD |
5654 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
5655 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5656 | PyObject * _resultobj; | |
5657 | wxValidator * _result; | |
5658 | wxWindow * _arg0; | |
5659 | PyObject * _argo0 = 0; | |
5660 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
5661 | |
5662 | self = self; | |
5663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
5664 | return NULL; | |
5665 | if (_argo0) { | |
5666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
5669 | return NULL; | |
5670 | } | |
5671 | } | |
5672 | { | |
4268f798 | 5673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5674 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); |
2f90df85 | 5675 | |
4268f798 | 5676 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5677 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5678 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
5679 | return _resultobj; |
5680 | } | |
5681 | ||
5682 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5683 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5684 | PyObject * _resultobj; | |
5685 | wxWindow * _arg0; | |
5686 | wxValidator * _arg1; | |
5687 | PyObject * _argo0 = 0; | |
5688 | PyObject * _argo1 = 0; | |
5689 | char *_kwnames[] = { "self","validator", NULL }; | |
5690 | ||
5691 | self = self; | |
5692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
5693 | return NULL; | |
5694 | if (_argo0) { | |
5695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5698 | return NULL; | |
5699 | } | |
5700 | } | |
5701 | if (_argo1) { | |
7e50db3f | 5702 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { |
2f90df85 RD |
5703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); |
5704 | return NULL; | |
5705 | } | |
5706 | } | |
5707 | { | |
4268f798 | 5708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5709 | wxWindow_SetValidator(_arg0,*_arg1); |
2f90df85 | 5710 | |
4268f798 | 5711 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5712 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5713 | } Py_INCREF(Py_None); |
5714 | _resultobj = Py_None; | |
5715 | return _resultobj; | |
5716 | } | |
5717 | ||
b1462dfa RD |
5718 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5719 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5720 | PyObject * _resultobj; | |
5721 | wxWindow * _arg0; | |
5722 | wxDropTarget * _arg1; | |
5723 | PyObject * _argo0 = 0; | |
5724 | PyObject * _argo1 = 0; | |
5725 | char *_kwnames[] = { "self","target", NULL }; | |
5726 | ||
5727 | self = self; | |
5728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5729 | return NULL; | |
5730 | if (_argo0) { | |
5731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5734 | return NULL; | |
5735 | } | |
5736 | } | |
5737 | if (_argo1) { | |
5738 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5739 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5741 | return NULL; | |
5742 | } | |
5743 | } | |
5744 | { | |
4268f798 | 5745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5746 | wxWindow_SetDropTarget(_arg0,_arg1); |
b1462dfa | 5747 | |
4268f798 | 5748 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5749 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5750 | } Py_INCREF(Py_None); |
5751 | _resultobj = Py_None; | |
5752 | return _resultobj; | |
5753 | } | |
5754 | ||
5755 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5756 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5757 | PyObject * _resultobj; | |
5758 | wxDropTarget * _result; | |
5759 | wxWindow * _arg0; | |
5760 | PyObject * _argo0 = 0; | |
5761 | char *_kwnames[] = { "self", NULL }; | |
5762 | char _ptemp[128]; | |
5763 | ||
5764 | self = self; | |
5765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5766 | return NULL; | |
5767 | if (_argo0) { | |
5768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5771 | return NULL; | |
5772 | } | |
5773 | } | |
5774 | { | |
4268f798 | 5775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5776 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); |
b1462dfa | 5777 | |
4268f798 | 5778 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5779 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5780 | } if (_result) { |
5781 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5782 | _resultobj = Py_BuildValue("s",_ptemp); | |
5783 | } else { | |
5784 | Py_INCREF(Py_None); | |
5785 | _resultobj = Py_None; | |
5786 | } | |
5787 | return _resultobj; | |
5788 | } | |
5789 | ||
694759cf RD |
5790 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5791 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5792 | PyObject * _resultobj; | |
5793 | wxSize * _result; | |
5794 | wxWindow * _arg0; | |
5795 | PyObject * _argo0 = 0; | |
5796 | char *_kwnames[] = { "self", NULL }; | |
5797 | char _ptemp[128]; | |
5798 | ||
5799 | self = self; | |
5800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5801 | return NULL; | |
5802 | if (_argo0) { | |
5803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5806 | return NULL; | |
5807 | } | |
5808 | } | |
5809 | { | |
4268f798 | 5810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5811 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); |
694759cf | 5812 | |
4268f798 | 5813 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5814 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5815 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5816 | _resultobj = Py_BuildValue("s",_ptemp); | |
5817 | return _resultobj; | |
5818 | } | |
5819 | ||
a541c325 RD |
5820 | #define wxWindow_GetMaxSize(_swigobj) (_swigobj->GetMaxSize()) |
5821 | static PyObject *_wrap_wxWindow_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5822 | PyObject * _resultobj; | |
5823 | wxSize * _result; | |
5824 | wxWindow * _arg0; | |
5825 | PyObject * _argo0 = 0; | |
5826 | char *_kwnames[] = { "self", NULL }; | |
5827 | char _ptemp[128]; | |
5828 | ||
5829 | self = self; | |
5830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetMaxSize",_kwnames,&_argo0)) | |
5831 | return NULL; | |
5832 | if (_argo0) { | |
5833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetMaxSize. Expected _wxWindow_p."); | |
5836 | return NULL; | |
5837 | } | |
5838 | } | |
5839 | { | |
5840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5841 | _result = new wxSize (wxWindow_GetMaxSize(_arg0)); | |
5842 | ||
5843 | wxPyEndAllowThreads(__tstate); | |
5844 | if (PyErr_Occurred()) return NULL; | |
5845 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5846 | _resultobj = Py_BuildValue("s",_ptemp); | |
5847 | return _resultobj; | |
5848 | } | |
5849 | ||
7e50db3f RD |
5850 | #define wxWindow_GetAdjustedBestSize(_swigobj) (_swigobj->GetAdjustedBestSize()) |
5851 | static PyObject *_wrap_wxWindow_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5852 | PyObject * _resultobj; | |
5853 | wxSize * _result; | |
5854 | wxWindow * _arg0; | |
5855 | PyObject * _argo0 = 0; | |
5856 | char *_kwnames[] = { "self", NULL }; | |
5857 | char _ptemp[128]; | |
5858 | ||
5859 | self = self; | |
5860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAdjustedBestSize",_kwnames,&_argo0)) | |
5861 | return NULL; | |
5862 | if (_argo0) { | |
5863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAdjustedBestSize. Expected _wxWindow_p."); | |
5866 | return NULL; | |
5867 | } | |
5868 | } | |
5869 | { | |
5870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5871 | _result = new wxSize (wxWindow_GetAdjustedBestSize(_arg0)); | |
5872 | ||
5873 | wxPyEndAllowThreads(__tstate); | |
5874 | if (PyErr_Occurred()) return NULL; | |
5875 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5876 | _resultobj = Py_BuildValue("s",_ptemp); | |
5877 | return _resultobj; | |
5878 | } | |
5879 | ||
a1df7a95 RD |
5880 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5881 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5882 | PyObject * _resultobj; | |
5883 | wxWindow * _arg0; | |
5884 | wxCaret * _arg1; | |
5885 | PyObject * _argo0 = 0; | |
5886 | PyObject * _argo1 = 0; | |
5887 | char *_kwnames[] = { "self","caret", NULL }; | |
5888 | ||
5889 | self = self; | |
5890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5891 | return NULL; | |
5892 | if (_argo0) { | |
5893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5896 | return NULL; | |
5897 | } | |
5898 | } | |
5899 | if (_argo1) { | |
5900 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5901 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5903 | return NULL; | |
5904 | } | |
5905 | } | |
5906 | { | |
4268f798 | 5907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5908 | wxWindow_SetCaret(_arg0,_arg1); |
a1df7a95 | 5909 | |
4268f798 | 5910 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5911 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5912 | } Py_INCREF(Py_None); |
5913 | _resultobj = Py_None; | |
5914 | return _resultobj; | |
5915 | } | |
5916 | ||
5917 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5918 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5919 | PyObject * _resultobj; | |
5920 | wxCaret * _result; | |
5921 | wxWindow * _arg0; | |
5922 | PyObject * _argo0 = 0; | |
5923 | char *_kwnames[] = { "self", NULL }; | |
5924 | char _ptemp[128]; | |
5925 | ||
5926 | self = self; | |
5927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5928 | return NULL; | |
5929 | if (_argo0) { | |
5930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5933 | return NULL; | |
5934 | } | |
5935 | } | |
5936 | { | |
4268f798 | 5937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5938 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); |
a1df7a95 | 5939 | |
4268f798 | 5940 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5941 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5942 | } if (_result) { |
5943 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5944 | _resultobj = Py_BuildValue("s",_ptemp); | |
5945 | } else { | |
5946 | Py_INCREF(Py_None); | |
5947 | _resultobj = Py_None; | |
5948 | } | |
5949 | return _resultobj; | |
5950 | } | |
5951 | ||
3a0958b1 RD |
5952 | #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze()) |
5953 | static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5954 | PyObject * _resultobj; | |
5955 | wxWindow * _arg0; | |
5956 | PyObject * _argo0 = 0; | |
5957 | char *_kwnames[] = { "self", NULL }; | |
5958 | ||
5959 | self = self; | |
5960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0)) | |
5961 | return NULL; | |
5962 | if (_argo0) { | |
5963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p."); | |
5966 | return NULL; | |
5967 | } | |
5968 | } | |
5969 | { | |
4268f798 | 5970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5971 | wxWindow_Freeze(_arg0); |
3a0958b1 | 5972 | |
4268f798 | 5973 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
5974 | if (PyErr_Occurred()) return NULL; |
5975 | } Py_INCREF(Py_None); | |
5976 | _resultobj = Py_None; | |
5977 | return _resultobj; | |
5978 | } | |
5979 | ||
5980 | #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw()) | |
5981 | static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5982 | PyObject * _resultobj; | |
5983 | wxWindow * _arg0; | |
5984 | PyObject * _argo0 = 0; | |
5985 | char *_kwnames[] = { "self", NULL }; | |
5986 | ||
5987 | self = self; | |
5988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0)) | |
5989 | return NULL; | |
5990 | if (_argo0) { | |
5991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p."); | |
5994 | return NULL; | |
5995 | } | |
5996 | } | |
5997 | { | |
4268f798 | 5998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5999 | wxWindow_Thaw(_arg0); |
3a0958b1 | 6000 | |
4268f798 | 6001 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
6002 | if (PyErr_Occurred()) return NULL; |
6003 | } Py_INCREF(Py_None); | |
6004 | _resultobj = Py_None; | |
6005 | return _resultobj; | |
6006 | } | |
6007 | ||
09f3d4e6 RD |
6008 | #define wxWindow_Update(_swigobj) (_swigobj->Update()) |
6009 | static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6010 | PyObject * _resultobj; | |
6011 | wxWindow * _arg0; | |
6012 | PyObject * _argo0 = 0; | |
6013 | char *_kwnames[] = { "self", NULL }; | |
6014 | ||
6015 | self = self; | |
6016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0)) | |
6017 | return NULL; | |
6018 | if (_argo0) { | |
6019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p."); | |
6022 | return NULL; | |
6023 | } | |
6024 | } | |
6025 | { | |
4268f798 | 6026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6027 | wxWindow_Update(_arg0); |
09f3d4e6 | 6028 | |
4268f798 | 6029 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6030 | if (PyErr_Occurred()) return NULL; |
6031 | } Py_INCREF(Py_None); | |
6032 | _resultobj = Py_None; | |
6033 | return _resultobj; | |
6034 | } | |
6035 | ||
4f3449b4 RD |
6036 | #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText()) |
6037 | static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6038 | PyObject * _resultobj; | |
6039 | wxString * _result; | |
6040 | wxWindow * _arg0; | |
6041 | PyObject * _argo0 = 0; | |
6042 | char *_kwnames[] = { "self", NULL }; | |
6043 | ||
6044 | self = self; | |
6045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0)) | |
6046 | return NULL; | |
6047 | if (_argo0) { | |
6048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p."); | |
6051 | return NULL; | |
6052 | } | |
6053 | } | |
6054 | { | |
4268f798 | 6055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6056 | _result = new wxString (wxWindow_GetHelpText(_arg0)); |
4f3449b4 | 6057 | |
4268f798 | 6058 | wxPyEndAllowThreads(__tstate); |
4f3449b4 RD |
6059 | if (PyErr_Occurred()) return NULL; |
6060 | }{ | |
c8bc7bb8 | 6061 | #if wxUSE_UNICODE |
7e50db3f | 6062 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6063 | #else |
4f3449b4 | 6064 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6065 | #endif |
4f3449b4 RD |
6066 | } |
6067 | { | |
6068 | delete _result; | |
6069 | } | |
6070 | return _resultobj; | |
6071 | } | |
6072 | ||
6073 | #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0)) | |
6074 | static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6075 | PyObject * _resultobj; | |
6076 | wxWindow * _arg0; | |
6077 | wxString * _arg1; | |
6078 | PyObject * _argo0 = 0; | |
6079 | PyObject * _obj1 = 0; | |
6080 | char *_kwnames[] = { "self","helpText", NULL }; | |
6081 | ||
6082 | self = self; | |
6083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1)) | |
6084 | return NULL; | |
6085 | if (_argo0) { | |
6086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p."); | |
6089 | return NULL; | |
6090 | } | |
6091 | } | |
6092 | { | |
c8bc7bb8 RD |
6093 | _arg1 = wxString_in_helper(_obj1); |
6094 | if (_arg1 == NULL) | |
4f3449b4 | 6095 | return NULL; |
4f3449b4 RD |
6096 | } |
6097 | { | |
4268f798 | 6098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6099 | wxWindow_SetHelpText(_arg0,*_arg1); |
4f3449b4 | 6100 | |
4268f798 | 6101 | wxPyEndAllowThreads(__tstate); |
4f3449b4 RD |
6102 | if (PyErr_Occurred()) return NULL; |
6103 | } Py_INCREF(Py_None); | |
6104 | _resultobj = Py_None; | |
6105 | { | |
6106 | if (_obj1) | |
6107 | delete _arg1; | |
6108 | } | |
6109 | return _resultobj; | |
6110 | } | |
6111 | ||
23bed520 RD |
6112 | #define wxWindow_SetHelpTextForId(_swigobj,_swigarg0) (_swigobj->SetHelpTextForId(_swigarg0)) |
6113 | static PyObject *_wrap_wxWindow_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6114 | PyObject * _resultobj; | |
6115 | wxWindow * _arg0; | |
6116 | wxString * _arg1; | |
6117 | PyObject * _argo0 = 0; | |
6118 | PyObject * _obj1 = 0; | |
6119 | char *_kwnames[] = { "self","text", NULL }; | |
6120 | ||
6121 | self = self; | |
6122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpTextForId",_kwnames,&_argo0,&_obj1)) | |
6123 | return NULL; | |
6124 | if (_argo0) { | |
6125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpTextForId. Expected _wxWindow_p."); | |
6128 | return NULL; | |
6129 | } | |
6130 | } | |
6131 | { | |
c8bc7bb8 RD |
6132 | _arg1 = wxString_in_helper(_obj1); |
6133 | if (_arg1 == NULL) | |
23bed520 | 6134 | return NULL; |
23bed520 RD |
6135 | } |
6136 | { | |
6137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 6138 | wxWindow_SetHelpTextForId(_arg0,*_arg1); |
23bed520 RD |
6139 | |
6140 | wxPyEndAllowThreads(__tstate); | |
6141 | if (PyErr_Occurred()) return NULL; | |
6142 | } Py_INCREF(Py_None); | |
6143 | _resultobj = Py_None; | |
6144 | { | |
6145 | if (_obj1) | |
6146 | delete _arg1; | |
6147 | } | |
6148 | return _resultobj; | |
6149 | } | |
6150 | ||
c7e7022c RD |
6151 | #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0)) |
6152 | static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6153 | PyObject * _resultobj; | |
6154 | bool _result; | |
6155 | wxWindow * _arg0; | |
6156 | int _arg1; | |
6157 | PyObject * _argo0 = 0; | |
6158 | char *_kwnames[] = { "self","lines", NULL }; | |
6159 | ||
6160 | self = self; | |
6161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1)) | |
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_ScrollLines. Expected _wxWindow_p."); | |
6167 | return NULL; | |
6168 | } | |
6169 | } | |
6170 | { | |
4268f798 | 6171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6172 | _result = (bool )wxWindow_ScrollLines(_arg0,_arg1); |
c7e7022c | 6173 | |
4268f798 | 6174 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
6175 | if (PyErr_Occurred()) return NULL; |
6176 | } _resultobj = Py_BuildValue("i",_result); | |
6177 | return _resultobj; | |
6178 | } | |
6179 | ||
6180 | #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0)) | |
6181 | static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6182 | PyObject * _resultobj; | |
6183 | bool _result; | |
6184 | wxWindow * _arg0; | |
6185 | int _arg1; | |
6186 | PyObject * _argo0 = 0; | |
6187 | char *_kwnames[] = { "self","pages", NULL }; | |
6188 | ||
6189 | self = self; | |
6190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1)) | |
6191 | return NULL; | |
6192 | if (_argo0) { | |
6193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p."); | |
6196 | return NULL; | |
6197 | } | |
6198 | } | |
6199 | { | |
4268f798 | 6200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6201 | _result = (bool )wxWindow_ScrollPages(_arg0,_arg1); |
c7e7022c | 6202 | |
4268f798 | 6203 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
6204 | if (PyErr_Occurred()) return NULL; |
6205 | } _resultobj = Py_BuildValue("i",_result); | |
6206 | return _resultobj; | |
6207 | } | |
6208 | ||
6209 | #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp()) | |
6210 | static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6211 | PyObject * _resultobj; | |
6212 | bool _result; | |
6213 | wxWindow * _arg0; | |
6214 | PyObject * _argo0 = 0; | |
6215 | char *_kwnames[] = { "self", NULL }; | |
6216 | ||
6217 | self = self; | |
6218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0)) | |
6219 | return NULL; | |
6220 | if (_argo0) { | |
6221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p."); | |
6224 | return NULL; | |
6225 | } | |
6226 | } | |
6227 | { | |
4268f798 | 6228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6229 | _result = (bool )wxWindow_LineUp(_arg0); |
c7e7022c | 6230 | |
4268f798 | 6231 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
6232 | if (PyErr_Occurred()) return NULL; |
6233 | } _resultobj = Py_BuildValue("i",_result); | |
6234 | return _resultobj; | |
6235 | } | |
6236 | ||
6237 | #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown()) | |
6238 | static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6239 | PyObject * _resultobj; | |
6240 | bool _result; | |
6241 | wxWindow * _arg0; | |
6242 | PyObject * _argo0 = 0; | |
6243 | char *_kwnames[] = { "self", NULL }; | |
6244 | ||
6245 | self = self; | |
6246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0)) | |
6247 | return NULL; | |
6248 | if (_argo0) { | |
6249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p."); | |
6252 | return NULL; | |
6253 | } | |
6254 | } | |
6255 | { | |
4268f798 | 6256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6257 | _result = (bool )wxWindow_LineDown(_arg0); |
c7e7022c | 6258 | |
4268f798 | 6259 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
6260 | if (PyErr_Occurred()) return NULL; |
6261 | } _resultobj = Py_BuildValue("i",_result); | |
6262 | return _resultobj; | |
6263 | } | |
6264 | ||
6265 | #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp()) | |
6266 | static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6267 | PyObject * _resultobj; | |
6268 | bool _result; | |
6269 | wxWindow * _arg0; | |
6270 | PyObject * _argo0 = 0; | |
6271 | char *_kwnames[] = { "self", NULL }; | |
6272 | ||
6273 | self = self; | |
6274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0)) | |
6275 | return NULL; | |
6276 | if (_argo0) { | |
6277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p."); | |
6280 | return NULL; | |
6281 | } | |
6282 | } | |
6283 | { | |
4268f798 | 6284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6285 | _result = (bool )wxWindow_PageUp(_arg0); |
c7e7022c | 6286 | |
4268f798 | 6287 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
6288 | if (PyErr_Occurred()) return NULL; |
6289 | } _resultobj = Py_BuildValue("i",_result); | |
6290 | return _resultobj; | |
6291 | } | |
6292 | ||
6293 | #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown()) | |
6294 | static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6295 | PyObject * _resultobj; | |
6296 | bool _result; | |
6297 | wxWindow * _arg0; | |
6298 | PyObject * _argo0 = 0; | |
6299 | char *_kwnames[] = { "self", NULL }; | |
6300 | ||
6301 | self = self; | |
6302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0)) | |
6303 | return NULL; | |
6304 | if (_argo0) { | |
6305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p."); | |
6308 | return NULL; | |
6309 | } | |
6310 | } | |
6311 | { | |
4268f798 | 6312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6313 | _result = (bool )wxWindow_PageDown(_arg0); |
c7e7022c | 6314 | |
4268f798 | 6315 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
6316 | if (PyErr_Occurred()) return NULL; |
6317 | } _resultobj = Py_BuildValue("i",_result); | |
6318 | return _resultobj; | |
6319 | } | |
6320 | ||
09f3d4e6 RD |
6321 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
6322 | PyObject * _resultobj; | |
6323 | wxWindow * _result; | |
6324 | char *_kwnames[] = { NULL }; | |
6325 | ||
6326 | self = self; | |
6327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
6328 | return NULL; | |
6329 | { | |
4268f798 | 6330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6331 | _result = (wxWindow *)wxWindow::FindFocus(); |
09f3d4e6 | 6332 | |
4268f798 | 6333 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6334 | if (PyErr_Occurred()) return NULL; |
6335 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6336 | return _resultobj; | |
6337 | } | |
6338 | ||
6339 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6340 | PyObject * _resultobj; | |
6341 | int _result; | |
6342 | char *_kwnames[] = { NULL }; | |
6343 | ||
6344 | self = self; | |
6345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
6346 | return NULL; | |
6347 | { | |
4268f798 | 6348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6349 | _result = (int )wxWindow::NewControlId(); |
09f3d4e6 | 6350 | |
4268f798 | 6351 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6352 | if (PyErr_Occurred()) return NULL; |
6353 | } _resultobj = Py_BuildValue("i",_result); | |
6354 | return _resultobj; | |
6355 | } | |
6356 | ||
6357 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6358 | PyObject * _resultobj; | |
6359 | int _result; | |
6360 | int _arg0; | |
6361 | char *_kwnames[] = { "id", NULL }; | |
6362 | ||
6363 | self = self; | |
6364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
6365 | return NULL; | |
6366 | { | |
4268f798 | 6367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6368 | _result = (int )wxWindow::NextControlId(_arg0); |
09f3d4e6 | 6369 | |
4268f798 | 6370 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6371 | if (PyErr_Occurred()) return NULL; |
6372 | } _resultobj = Py_BuildValue("i",_result); | |
6373 | return _resultobj; | |
6374 | } | |
6375 | ||
6376 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6377 | PyObject * _resultobj; | |
6378 | int _result; | |
6379 | int _arg0; | |
6380 | char *_kwnames[] = { "id", NULL }; | |
6381 | ||
6382 | self = self; | |
6383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
6384 | return NULL; | |
6385 | { | |
4268f798 | 6386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6387 | _result = (int )wxWindow::PrevControlId(_arg0); |
09f3d4e6 | 6388 | |
4268f798 | 6389 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6390 | if (PyErr_Occurred()) return NULL; |
6391 | } _resultobj = Py_BuildValue("i",_result); | |
6392 | return _resultobj; | |
6393 | } | |
6394 | ||
76bfdc78 RD |
6395 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
6396 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6397 | PyObject * _resultobj; | |
6398 | wxWindow * _arg0; | |
6399 | wxAcceleratorTable * _arg1; | |
6400 | PyObject * _argo0 = 0; | |
6401 | PyObject * _argo1 = 0; | |
6402 | char *_kwnames[] = { "self","accel", NULL }; | |
6403 | ||
6404 | self = self; | |
6405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) | |
6406 | return NULL; | |
6407 | if (_argo0) { | |
6408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); | |
6411 | return NULL; | |
6412 | } | |
6413 | } | |
6414 | if (_argo1) { | |
7e50db3f | 6415 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { |
76bfdc78 RD |
6416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); |
6417 | return NULL; | |
6418 | } | |
6419 | } | |
6420 | { | |
4268f798 | 6421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6422 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); |
76bfdc78 | 6423 | |
4268f798 | 6424 | wxPyEndAllowThreads(__tstate); |
76bfdc78 RD |
6425 | if (PyErr_Occurred()) return NULL; |
6426 | } Py_INCREF(Py_None); | |
6427 | _resultobj = Py_None; | |
6428 | return _resultobj; | |
6429 | } | |
6430 | ||
900d9886 RD |
6431 | #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable()) |
6432 | static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6433 | PyObject * _resultobj; | |
6434 | wxAcceleratorTable * _result; | |
6435 | wxWindow * _arg0; | |
6436 | PyObject * _argo0 = 0; | |
6437 | char *_kwnames[] = { "self", NULL }; | |
6438 | char _ptemp[128]; | |
6439 | ||
6440 | self = self; | |
6441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0)) | |
6442 | return NULL; | |
6443 | if (_argo0) { | |
6444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p."); | |
6447 | return NULL; | |
6448 | } | |
6449 | } | |
6450 | { | |
4268f798 | 6451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6452 | _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0); |
900d9886 | 6453 | |
4268f798 | 6454 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
6455 | if (PyErr_Occurred()) return NULL; |
6456 | } if (_result) { | |
6457 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p"); | |
6458 | _resultobj = Py_BuildValue("s",_ptemp); | |
6459 | } else { | |
6460 | Py_INCREF(Py_None); | |
6461 | _resultobj = Py_None; | |
6462 | } | |
6463 | return _resultobj; | |
6464 | } | |
6465 | ||
07c99b26 RD |
6466 | #define wxWindow_OnPaint(_swigobj,_swigarg0) (_swigobj->OnPaint(_swigarg0)) |
6467 | static PyObject *_wrap_wxWindow_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
78e8819c RD |
6468 | PyObject * _resultobj; |
6469 | wxWindow * _arg0; | |
6470 | wxPaintEvent * _arg1; | |
6471 | PyObject * _argo0 = 0; | |
6472 | PyObject * _argo1 = 0; | |
6473 | char *_kwnames[] = { "self","event", NULL }; | |
6474 | ||
6475 | self = self; | |
07c99b26 | 6476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_OnPaint",_kwnames,&_argo0,&_argo1)) |
78e8819c RD |
6477 | return NULL; |
6478 | if (_argo0) { | |
6479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
07c99b26 | 6481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_OnPaint. Expected _wxWindow_p."); |
78e8819c RD |
6482 | return NULL; |
6483 | } | |
6484 | } | |
6485 | if (_argo1) { | |
7e50db3f | 6486 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPaintEvent_p")) { |
07c99b26 | 6487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_OnPaint. Expected _wxPaintEvent_p."); |
78e8819c RD |
6488 | return NULL; |
6489 | } | |
6490 | } | |
6491 | { | |
4268f798 | 6492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6493 | wxWindow_OnPaint(_arg0,*_arg1); |
78e8819c | 6494 | |
4268f798 | 6495 | wxPyEndAllowThreads(__tstate); |
78e8819c RD |
6496 | if (PyErr_Occurred()) return NULL; |
6497 | } Py_INCREF(Py_None); | |
6498 | _resultobj = Py_None; | |
6499 | return _resultobj; | |
6500 | } | |
6501 | ||
5a2930ab RD |
6502 | #define wxWindow_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
6503 | static PyObject *_wrap_wxWindow_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6504 | PyObject * _resultobj; | |
26e335b8 | 6505 | wxWindow * _result; |
5a2930ab RD |
6506 | wxWindow * _arg0; |
6507 | PyObject * _argo0 = 0; | |
6508 | char *_kwnames[] = { "self", NULL }; | |
6509 | ||
6510 | self = self; | |
6511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDefaultItem",_kwnames,&_argo0)) | |
6512 | return NULL; | |
6513 | if (_argo0) { | |
6514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDefaultItem. Expected _wxWindow_p."); | |
6517 | return NULL; | |
6518 | } | |
6519 | } | |
6520 | { | |
6521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26e335b8 | 6522 | _result = (wxWindow *)wxWindow_GetDefaultItem(_arg0); |
5a2930ab RD |
6523 | |
6524 | wxPyEndAllowThreads(__tstate); | |
6525 | if (PyErr_Occurred()) return NULL; | |
6526 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6527 | return _resultobj; | |
6528 | } | |
6529 | ||
6530 | #define wxWindow_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
6531 | static PyObject *_wrap_wxWindow_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6532 | PyObject * _resultobj; | |
26e335b8 | 6533 | wxWindow * _result; |
5a2930ab | 6534 | wxWindow * _arg0; |
26e335b8 | 6535 | wxWindow * _arg1; |
5a2930ab RD |
6536 | PyObject * _argo0 = 0; |
6537 | PyObject * _argo1 = 0; | |
6538 | char *_kwnames[] = { "self","btn", NULL }; | |
6539 | ||
6540 | self = self; | |
6541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDefaultItem",_kwnames,&_argo0,&_argo1)) | |
6542 | return NULL; | |
6543 | if (_argo0) { | |
6544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
6547 | return NULL; | |
6548 | } | |
6549 | } | |
6550 | if (_argo1) { | |
6551 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
26e335b8 RD |
6552 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
6553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
5a2930ab RD |
6554 | return NULL; |
6555 | } | |
6556 | } | |
6557 | { | |
6558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26e335b8 | 6559 | _result = (wxWindow *)wxWindow_SetDefaultItem(_arg0,_arg1); |
5a2930ab RD |
6560 | |
6561 | wxPyEndAllowThreads(__tstate); | |
6562 | if (PyErr_Occurred()) return NULL; | |
26e335b8 | 6563 | }{ _resultobj = wxPyMake_wxObject(_result); } |
5a2930ab RD |
6564 | return _resultobj; |
6565 | } | |
6566 | ||
0b85cc38 RD |
6567 | #define wxWindow_SetTmpDefaultItem(_swigobj,_swigarg0) (_swigobj->SetTmpDefaultItem(_swigarg0)) |
6568 | static PyObject *_wrap_wxWindow_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6569 | PyObject * _resultobj; | |
6570 | wxWindow * _arg0; | |
6571 | wxWindow * _arg1; | |
6572 | PyObject * _argo0 = 0; | |
6573 | PyObject * _argo1 = 0; | |
6574 | char *_kwnames[] = { "self","win", NULL }; | |
6575 | ||
6576 | self = self; | |
6577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTmpDefaultItem",_kwnames,&_argo0,&_argo1)) | |
6578 | return NULL; | |
6579 | if (_argo0) { | |
6580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTmpDefaultItem. Expected _wxWindow_p."); | |
6583 | return NULL; | |
6584 | } | |
6585 | } | |
6586 | if (_argo1) { | |
6587 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6588 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetTmpDefaultItem. Expected _wxWindow_p."); | |
6590 | return NULL; | |
6591 | } | |
6592 | } | |
6593 | { | |
6594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6595 | wxWindow_SetTmpDefaultItem(_arg0,_arg1); | |
6596 | ||
6597 | wxPyEndAllowThreads(__tstate); | |
6598 | if (PyErr_Occurred()) return NULL; | |
6599 | } Py_INCREF(Py_None); | |
6600 | _resultobj = Py_None; | |
6601 | return _resultobj; | |
6602 | } | |
6603 | ||
6d26dc89 RD |
6604 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) |
6605 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6606 | PyObject * _resultobj; | |
6607 | wxWindow * _arg0; | |
6608 | int _arg1; | |
6609 | int _arg2; | |
6610 | PyObject * _argo0 = 0; | |
6611 | char *_kwnames[] = { "self","x","y", NULL }; | |
6612 | ||
6613 | self = self; | |
6614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6615 | return NULL; | |
6616 | if (_argo0) { | |
6617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); | |
6620 | return NULL; | |
6621 | } | |
6622 | } | |
6623 | { | |
6624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6625 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
6626 | ||
6627 | wxPyEndAllowThreads(__tstate); | |
6628 | if (PyErr_Occurred()) return NULL; | |
6629 | } Py_INCREF(Py_None); | |
6630 | _resultobj = Py_None; | |
6631 | return _resultobj; | |
6632 | } | |
6633 | ||
6634 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
6635 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6636 | PyObject * _resultobj; | |
6637 | wxWindow * _arg0; | |
6638 | PyObject * _argo0 = 0; | |
6639 | char *_kwnames[] = { "self", NULL }; | |
6640 | ||
6641 | self = self; | |
6642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) | |
6643 | return NULL; | |
6644 | if (_argo0) { | |
6645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); | |
6648 | return NULL; | |
6649 | } | |
6650 | } | |
6651 | { | |
6652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6653 | wxWindow_CaptureMouse(_arg0); | |
6654 | ||
6655 | wxPyEndAllowThreads(__tstate); | |
6656 | if (PyErr_Occurred()) return NULL; | |
6657 | } Py_INCREF(Py_None); | |
6658 | _resultobj = Py_None; | |
6659 | return _resultobj; | |
6660 | } | |
6661 | ||
6662 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
6663 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6664 | PyObject * _resultobj; | |
6665 | wxWindow * _arg0; | |
6666 | PyObject * _argo0 = 0; | |
6667 | char *_kwnames[] = { "self", NULL }; | |
6668 | ||
6669 | self = self; | |
6670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) | |
6671 | return NULL; | |
6672 | if (_argo0) { | |
6673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); | |
6676 | return NULL; | |
6677 | } | |
6678 | } | |
6679 | { | |
6680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6681 | wxWindow_ReleaseMouse(_arg0); | |
6682 | ||
6683 | wxPyEndAllowThreads(__tstate); | |
6684 | if (PyErr_Occurred()) return NULL; | |
6685 | } Py_INCREF(Py_None); | |
6686 | _resultobj = Py_None; | |
6687 | return _resultobj; | |
6688 | } | |
6689 | ||
6690 | static PyObject *_wrap_wxWindow_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6691 | PyObject * _resultobj; | |
6692 | wxWindow * _result; | |
6693 | char *_kwnames[] = { NULL }; | |
6694 | ||
6695 | self = self; | |
6696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_GetCapture",_kwnames)) | |
6697 | return NULL; | |
6698 | { | |
6699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6700 | _result = (wxWindow *)wxWindow::GetCapture(); | |
6701 | ||
6702 | wxPyEndAllowThreads(__tstate); | |
6703 | if (PyErr_Occurred()) return NULL; | |
6704 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6705 | return _resultobj; | |
6706 | } | |
6707 | ||
6708 | #define wxWindow_HasCapture(_swigobj) (_swigobj->HasCapture()) | |
6709 | static PyObject *_wrap_wxWindow_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6710 | PyObject * _resultobj; | |
6711 | bool _result; | |
6712 | wxWindow * _arg0; | |
6713 | PyObject * _argo0 = 0; | |
6714 | char *_kwnames[] = { "self", NULL }; | |
6715 | ||
6716 | self = self; | |
6717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_HasCapture",_kwnames,&_argo0)) | |
6718 | return NULL; | |
6719 | if (_argo0) { | |
6720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasCapture. Expected _wxWindow_p."); | |
6723 | return NULL; | |
6724 | } | |
6725 | } | |
6726 | { | |
6727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6728 | _result = (bool )wxWindow_HasCapture(_arg0); | |
6729 | ||
6730 | wxPyEndAllowThreads(__tstate); | |
6731 | if (PyErr_Occurred()) return NULL; | |
6732 | } _resultobj = Py_BuildValue("i",_result); | |
6733 | return _resultobj; | |
6734 | } | |
6735 | ||
8ab979d7 RD |
6736 | static void *SwigwxPanelTowxWindow(void *ptr) { |
6737 | wxPanel *src; | |
6738 | wxWindow *dest; | |
6739 | src = (wxPanel *) ptr; | |
6740 | dest = (wxWindow *) src; | |
6741 | return (void *) dest; | |
6742 | } | |
6743 | ||
6744 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
6745 | wxPanel *src; | |
6746 | wxEvtHandler *dest; | |
6747 | src = (wxPanel *) ptr; | |
6748 | dest = (wxEvtHandler *) src; | |
6749 | return (void *) dest; | |
6750 | } | |
6751 | ||
9416aa89 RD |
6752 | static void *SwigwxPanelTowxObject(void *ptr) { |
6753 | wxPanel *src; | |
6754 | wxObject *dest; | |
6755 | src = (wxPanel *) ptr; | |
6756 | dest = (wxObject *) src; | |
6757 | return (void *) dest; | |
6758 | } | |
6759 | ||
8ab979d7 | 6760 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6761 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6762 | PyObject * _resultobj; |
6763 | wxPanel * _result; | |
6764 | wxWindow * _arg0; | |
6765 | wxWindowID _arg1; | |
e508a2b6 RD |
6766 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6767 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 6768 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
137b5242 | 6769 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 6770 | PyObject * _argo0 = 0; |
2f90df85 RD |
6771 | wxPoint temp; |
6772 | PyObject * _obj2 = 0; | |
6773 | wxSize temp0; | |
6774 | PyObject * _obj3 = 0; | |
137b5242 | 6775 | PyObject * _obj5 = 0; |
efc5f224 | 6776 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6777 | char _ptemp[128]; |
6778 | ||
6779 | self = self; | |
137b5242 | 6780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 6781 | return NULL; |
1d99702e RD |
6782 | if (_argo0) { |
6783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
6786 | return NULL; | |
6787 | } | |
6788 | } | |
2f90df85 RD |
6789 | if (_obj2) |
6790 | { | |
6791 | _arg2 = &temp; | |
6792 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6793 | return NULL; |
2f90df85 RD |
6794 | } |
6795 | if (_obj3) | |
6796 | { | |
6797 | _arg3 = &temp0; | |
6798 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6799 | return NULL; |
137b5242 RD |
6800 | } |
6801 | if (_obj5) | |
6802 | { | |
6803 | _arg5 = wxString_in_helper(_obj5); | |
6804 | if (_arg5 == NULL) | |
6805 | return NULL; | |
2f90df85 | 6806 | } |
cf694132 | 6807 | { |
4268f798 | 6808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6809 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 6810 | |
4268f798 | 6811 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6812 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6813 | } if (_result) { |
6814 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6815 | _resultobj = Py_BuildValue("s",_ptemp); | |
6816 | } else { | |
6817 | Py_INCREF(Py_None); | |
6818 | _resultobj = Py_None; | |
6819 | } | |
137b5242 RD |
6820 | { |
6821 | if (_obj5) | |
6822 | delete _arg5; | |
6823 | } | |
8ab979d7 RD |
6824 | return _resultobj; |
6825 | } | |
6826 | ||
09f3d4e6 RD |
6827 | #define new_wxPrePanel() (new wxPanel()) |
6828 | static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6829 | PyObject * _resultobj; | |
6830 | wxPanel * _result; | |
6831 | char *_kwnames[] = { NULL }; | |
6832 | char _ptemp[128]; | |
6833 | ||
6834 | self = self; | |
6835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames)) | |
6836 | return NULL; | |
6837 | { | |
4268f798 | 6838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6839 | _result = (wxPanel *)new_wxPrePanel(); |
09f3d4e6 | 6840 | |
4268f798 | 6841 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6842 | if (PyErr_Occurred()) return NULL; |
6843 | } if (_result) { | |
6844 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6845 | _resultobj = Py_BuildValue("s",_ptemp); | |
6846 | } else { | |
6847 | Py_INCREF(Py_None); | |
6848 | _resultobj = Py_None; | |
6849 | } | |
6850 | return _resultobj; | |
6851 | } | |
6852 | ||
6853 | #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6854 | static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6855 | PyObject * _resultobj; | |
6856 | bool _result; | |
6857 | wxPanel * _arg0; | |
6858 | wxWindow * _arg1; | |
6859 | wxWindowID _arg2; | |
6860 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6861 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6862 | long _arg5 = (long ) wxTAB_TRAVERSAL; | |
137b5242 | 6863 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
09f3d4e6 RD |
6864 | PyObject * _argo0 = 0; |
6865 | PyObject * _argo1 = 0; | |
6866 | wxPoint temp; | |
6867 | PyObject * _obj3 = 0; | |
6868 | wxSize temp0; | |
6869 | PyObject * _obj4 = 0; | |
137b5242 | 6870 | PyObject * _obj6 = 0; |
09f3d4e6 RD |
6871 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
6872 | ||
6873 | self = self; | |
137b5242 | 6874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
09f3d4e6 RD |
6875 | return NULL; |
6876 | if (_argo0) { | |
6877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
6879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p."); | |
6880 | return NULL; | |
6881 | } | |
6882 | } | |
6883 | if (_argo1) { | |
6884 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6885 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p."); | |
6887 | return NULL; | |
6888 | } | |
6889 | } | |
6890 | if (_obj3) | |
6891 | { | |
6892 | _arg3 = &temp; | |
6893 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6894 | return NULL; | |
6895 | } | |
6896 | if (_obj4) | |
6897 | { | |
6898 | _arg4 = &temp0; | |
6899 | if (! wxSize_helper(_obj4, &_arg4)) | |
6900 | return NULL; | |
137b5242 RD |
6901 | } |
6902 | if (_obj6) | |
6903 | { | |
6904 | _arg6 = wxString_in_helper(_obj6); | |
6905 | if (_arg6 == NULL) | |
6906 | return NULL; | |
09f3d4e6 RD |
6907 | } |
6908 | { | |
4268f798 | 6909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6910 | _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
09f3d4e6 | 6911 | |
4268f798 | 6912 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6913 | if (PyErr_Occurred()) return NULL; |
6914 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
6915 | { |
6916 | if (_obj6) | |
6917 | delete _arg6; | |
6918 | } | |
09f3d4e6 RD |
6919 | return _resultobj; |
6920 | } | |
6921 | ||
8ab979d7 | 6922 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 6923 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6924 | PyObject * _resultobj; |
6925 | wxPanel * _arg0; | |
1d99702e | 6926 | PyObject * _argo0 = 0; |
efc5f224 | 6927 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6928 | |
6929 | self = self; | |
efc5f224 | 6930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 6931 | return NULL; |
1d99702e RD |
6932 | if (_argo0) { |
6933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
6935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
6936 | return NULL; | |
6937 | } | |
6938 | } | |
cf694132 | 6939 | { |
4268f798 | 6940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6941 | wxPanel_InitDialog(_arg0); |
cf694132 | 6942 | |
4268f798 | 6943 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6944 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6945 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6946 | _resultobj = Py_None; |
6947 | return _resultobj; | |
6948 | } | |
6949 | ||
bb0054cd RD |
6950 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
6951 | wxScrolledWindow *src; | |
6952 | wxPanel *dest; | |
6953 | src = (wxScrolledWindow *) ptr; | |
6954 | dest = (wxPanel *) src; | |
6955 | return (void *) dest; | |
6956 | } | |
6957 | ||
8ab979d7 RD |
6958 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
6959 | wxScrolledWindow *src; | |
6960 | wxWindow *dest; | |
6961 | src = (wxScrolledWindow *) ptr; | |
6962 | dest = (wxWindow *) src; | |
6963 | return (void *) dest; | |
6964 | } | |
6965 | ||
6966 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
6967 | wxScrolledWindow *src; | |
6968 | wxEvtHandler *dest; | |
6969 | src = (wxScrolledWindow *) ptr; | |
6970 | dest = (wxEvtHandler *) src; | |
6971 | return (void *) dest; | |
6972 | } | |
6973 | ||
9416aa89 RD |
6974 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
6975 | wxScrolledWindow *src; | |
6976 | wxObject *dest; | |
6977 | src = (wxScrolledWindow *) ptr; | |
6978 | dest = (wxObject *) src; | |
6979 | return (void *) dest; | |
6980 | } | |
6981 | ||
8ab979d7 | 6982 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6983 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6984 | PyObject * _resultobj; |
6985 | wxScrolledWindow * _result; | |
6986 | wxWindow * _arg0; | |
1d99702e | 6987 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
6988 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6989 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 6990 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
137b5242 | 6991 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 6992 | PyObject * _argo0 = 0; |
2f90df85 RD |
6993 | wxPoint temp; |
6994 | PyObject * _obj2 = 0; | |
6995 | wxSize temp0; | |
6996 | PyObject * _obj3 = 0; | |
137b5242 | 6997 | PyObject * _obj5 = 0; |
efc5f224 | 6998 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6999 | char _ptemp[128]; |
7000 | ||
7001 | self = self; | |
137b5242 | 7002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 7003 | return NULL; |
1d99702e RD |
7004 | if (_argo0) { |
7005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
7007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
7008 | return NULL; | |
7009 | } | |
7010 | } | |
2f90df85 RD |
7011 | if (_obj2) |
7012 | { | |
7013 | _arg2 = &temp; | |
7014 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 7015 | return NULL; |
2f90df85 RD |
7016 | } |
7017 | if (_obj3) | |
7018 | { | |
7019 | _arg3 = &temp0; | |
7020 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 7021 | return NULL; |
137b5242 RD |
7022 | } |
7023 | if (_obj5) | |
7024 | { | |
7025 | _arg5 = wxString_in_helper(_obj5); | |
7026 | if (_arg5 == NULL) | |
7027 | return NULL; | |
2f90df85 | 7028 | } |
cf694132 | 7029 | { |
4268f798 | 7030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 7031 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 7032 | |
4268f798 | 7033 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7034 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7035 | } if (_result) { |
7036 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
7037 | _resultobj = Py_BuildValue("s",_ptemp); | |
7038 | } else { | |
7039 | Py_INCREF(Py_None); | |
7040 | _resultobj = Py_None; | |
7041 | } | |
137b5242 RD |
7042 | { |
7043 | if (_obj5) | |
7044 | delete _arg5; | |
7045 | } | |
8ab979d7 RD |
7046 | return _resultobj; |
7047 | } | |
7048 | ||
09f3d4e6 RD |
7049 | #define new_wxPreScrolledWindow() (new wxScrolledWindow()) |
7050 | static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7051 | PyObject * _resultobj; | |
7052 | wxScrolledWindow * _result; | |
7053 | char *_kwnames[] = { NULL }; | |
7054 | char _ptemp[128]; | |
7055 | ||
7056 | self = self; | |
7057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames)) | |
7058 | return NULL; | |
7059 | { | |
4268f798 | 7060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7061 | _result = (wxScrolledWindow *)new_wxPreScrolledWindow(); |
09f3d4e6 | 7062 | |
4268f798 | 7063 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
7064 | if (PyErr_Occurred()) return NULL; |
7065 | } if (_result) { | |
7066 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
7067 | _resultobj = Py_BuildValue("s",_ptemp); | |
7068 | } else { | |
7069 | Py_INCREF(Py_None); | |
7070 | _resultobj = Py_None; | |
7071 | } | |
7072 | return _resultobj; | |
7073 | } | |
7074 | ||
7075 | #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
7076 | static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7077 | PyObject * _resultobj; | |
7078 | bool _result; | |
7079 | wxScrolledWindow * _arg0; | |
7080 | wxWindow * _arg1; | |
7081 | wxWindowID _arg2 = (wxWindowID ) -1; | |
7082 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
7083 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
7084 | long _arg5 = (long ) wxHSCROLL|wxVSCROLL; | |
137b5242 | 7085 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
09f3d4e6 RD |
7086 | PyObject * _argo0 = 0; |
7087 | PyObject * _argo1 = 0; | |
7088 | wxPoint temp; | |
7089 | PyObject * _obj3 = 0; | |
7090 | wxSize temp0; | |
7091 | PyObject * _obj4 = 0; | |
137b5242 | 7092 | PyObject * _obj6 = 0; |
09f3d4e6 RD |
7093 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
7094 | ||
7095 | self = self; | |
137b5242 | 7096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
09f3d4e6 RD |
7097 | return NULL; |
7098 | if (_argo0) { | |
7099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p."); | |
7102 | return NULL; | |
7103 | } | |
7104 | } | |
7105 | if (_argo1) { | |
7106 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7107 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p."); | |
7109 | return NULL; | |
7110 | } | |
7111 | } | |
7112 | if (_obj3) | |
7113 | { | |
7114 | _arg3 = &temp; | |
7115 | if (! wxPoint_helper(_obj3, &_arg3)) | |
7116 | return NULL; | |
7117 | } | |
7118 | if (_obj4) | |
7119 | { | |
7120 | _arg4 = &temp0; | |
7121 | if (! wxSize_helper(_obj4, &_arg4)) | |
7122 | return NULL; | |
137b5242 RD |
7123 | } |
7124 | if (_obj6) | |
7125 | { | |
7126 | _arg6 = wxString_in_helper(_obj6); | |
7127 | if (_arg6 == NULL) | |
7128 | return NULL; | |
09f3d4e6 RD |
7129 | } |
7130 | { | |
4268f798 | 7131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 7132 | _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
09f3d4e6 | 7133 | |
4268f798 | 7134 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
7135 | if (PyErr_Occurred()) return NULL; |
7136 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
7137 | { |
7138 | if (_obj6) | |
7139 | delete _arg6; | |
7140 | } | |
09f3d4e6 RD |
7141 | return _resultobj; |
7142 | } | |
7143 | ||
8ab979d7 | 7144 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) |
efc5f224 | 7145 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7146 | PyObject * _resultobj; |
7147 | wxScrolledWindow * _arg0; | |
7148 | bool _arg1; | |
7149 | bool _arg2; | |
1d99702e | 7150 | PyObject * _argo0 = 0; |
8ab979d7 RD |
7151 | int tempbool1; |
7152 | int tempbool2; | |
efc5f224 | 7153 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
7154 | |
7155 | self = self; | |
efc5f224 | 7156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 7157 | return NULL; |
1d99702e RD |
7158 | if (_argo0) { |
7159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
7162 | return NULL; | |
7163 | } | |
7164 | } | |
7165 | _arg1 = (bool ) tempbool1; | |
7166 | _arg2 = (bool ) tempbool2; | |
cf694132 | 7167 | { |
4268f798 | 7168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7169 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); |
cf694132 | 7170 | |
4268f798 | 7171 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7172 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7173 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7174 | _resultobj = Py_None; |
7175 | return _resultobj; | |
7176 | } | |
7177 | ||
b7e72427 RD |
7178 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
7179 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7180 | PyObject * _resultobj; | |
7181 | int _result; | |
7182 | wxScrolledWindow * _arg0; | |
7183 | int _arg1; | |
7184 | PyObject * _argo0 = 0; | |
7185 | char *_kwnames[] = { "self","orient", NULL }; | |
7186 | ||
7187 | self = self; | |
7188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
7189 | return NULL; | |
7190 | if (_argo0) { | |
7191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
7194 | return NULL; | |
7195 | } | |
7196 | } | |
7197 | { | |
4268f798 | 7198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7199 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); |
b7e72427 | 7200 | |
4268f798 | 7201 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7202 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
7203 | } _resultobj = Py_BuildValue("i",_result); |
7204 | return _resultobj; | |
7205 | } | |
7206 | ||
8ab979d7 | 7207 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 7208 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7209 | PyObject * _resultobj; |
7210 | wxScrolledWindow * _arg0; | |
7211 | int * _arg1; | |
7212 | int temp; | |
7213 | int * _arg2; | |
7214 | int temp0; | |
1d99702e | 7215 | PyObject * _argo0 = 0; |
efc5f224 | 7216 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7217 | |
7218 | self = self; | |
7219 | { | |
7220 | _arg1 = &temp; | |
7221 | } | |
7222 | { | |
7223 | _arg2 = &temp0; | |
7224 | } | |
efc5f224 | 7225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 7226 | return NULL; |
1d99702e RD |
7227 | if (_argo0) { |
7228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
7231 | return NULL; | |
7232 | } | |
7233 | } | |
cf694132 | 7234 | { |
4268f798 | 7235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7236 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); |
cf694132 | 7237 | |
4268f798 | 7238 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7239 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7240 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7241 | _resultobj = Py_None; |
7242 | { | |
7243 | PyObject *o; | |
7244 | o = PyInt_FromLong((long) (*_arg1)); | |
7245 | _resultobj = t_output_helper(_resultobj, o); | |
7246 | } | |
7247 | { | |
7248 | PyObject *o; | |
7249 | o = PyInt_FromLong((long) (*_arg2)); | |
7250 | _resultobj = t_output_helper(_resultobj, o); | |
7251 | } | |
7252 | return _resultobj; | |
7253 | } | |
7254 | ||
b7e72427 RD |
7255 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
7256 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7257 | PyObject * _resultobj; | |
7258 | wxWindow * _result; | |
7259 | wxScrolledWindow * _arg0; | |
7260 | PyObject * _argo0 = 0; | |
7261 | char *_kwnames[] = { "self", NULL }; | |
b7e72427 RD |
7262 | |
7263 | self = self; | |
7264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
7265 | return NULL; | |
7266 | if (_argo0) { | |
7267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
7270 | return NULL; | |
7271 | } | |
7272 | } | |
7273 | { | |
4268f798 | 7274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7275 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); |
b7e72427 | 7276 | |
4268f798 | 7277 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7278 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7279 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b7e72427 RD |
7280 | return _resultobj; |
7281 | } | |
7282 | ||
8ab979d7 | 7283 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 7284 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7285 | PyObject * _resultobj; |
7286 | bool _result; | |
7287 | wxScrolledWindow * _arg0; | |
1d99702e | 7288 | PyObject * _argo0 = 0; |
efc5f224 | 7289 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7290 | |
7291 | self = self; | |
efc5f224 | 7292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 7293 | return NULL; |
1d99702e RD |
7294 | if (_argo0) { |
7295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
7298 | return NULL; | |
7299 | } | |
7300 | } | |
cf694132 | 7301 | { |
4268f798 | 7302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7303 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); |
cf694132 | 7304 | |
4268f798 | 7305 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7306 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7307 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7308 | return _resultobj; |
7309 | } | |
7310 | ||
7311 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 7312 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7313 | PyObject * _resultobj; |
7314 | wxScrolledWindow * _arg0; | |
7315 | wxDC * _arg1; | |
1d99702e RD |
7316 | PyObject * _argo0 = 0; |
7317 | PyObject * _argo1 = 0; | |
efc5f224 | 7318 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
7319 | |
7320 | self = self; | |
efc5f224 | 7321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7322 | return NULL; |
1d99702e RD |
7323 | if (_argo0) { |
7324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
7327 | return NULL; | |
7328 | } | |
7329 | } | |
1d99702e | 7330 | if (_argo1) { |
7e50db3f | 7331 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { |
8ab979d7 RD |
7332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
7333 | return NULL; | |
7334 | } | |
7335 | } | |
cf694132 | 7336 | { |
4268f798 | 7337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7338 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); |
cf694132 | 7339 | |
4268f798 | 7340 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7341 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7342 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7343 | _resultobj = Py_None; |
7344 | return _resultobj; | |
7345 | } | |
7346 | ||
7347 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 7348 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7349 | PyObject * _resultobj; |
7350 | wxScrolledWindow * _arg0; | |
7351 | int _arg1; | |
7352 | int _arg2; | |
1d99702e | 7353 | PyObject * _argo0 = 0; |
efc5f224 | 7354 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7355 | |
7356 | self = self; | |
efc5f224 | 7357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7358 | return NULL; |
1d99702e RD |
7359 | if (_argo0) { |
7360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
7363 | return NULL; | |
7364 | } | |
7365 | } | |
cf694132 | 7366 | { |
4268f798 | 7367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7368 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); |
cf694132 | 7369 | |
4268f798 | 7370 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7371 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7372 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7373 | _resultobj = Py_None; |
7374 | return _resultobj; | |
7375 | } | |
7376 | ||
f6bcfd97 | 7377 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 7378 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7379 | PyObject * _resultobj; |
7380 | wxScrolledWindow * _arg0; | |
7381 | int _arg1; | |
7382 | int _arg2; | |
7383 | int _arg3; | |
7384 | int _arg4; | |
1d99702e RD |
7385 | int _arg5 = (int ) 0; |
7386 | int _arg6 = (int ) 0; | |
f6bcfd97 | 7387 | int _arg7 = (int ) FALSE; |
1d99702e | 7388 | PyObject * _argo0 = 0; |
f6bcfd97 | 7389 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
7390 | |
7391 | self = self; | |
f6bcfd97 | 7392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 7393 | return NULL; |
1d99702e RD |
7394 | if (_argo0) { |
7395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
7398 | return NULL; | |
7399 | } | |
7400 | } | |
cf694132 | 7401 | { |
4268f798 | 7402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7403 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 | 7404 | |
4268f798 | 7405 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7406 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7407 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7408 | _resultobj = Py_None; |
7409 | return _resultobj; | |
7410 | } | |
7411 | ||
b7e72427 RD |
7412 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
7413 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7414 | PyObject * _resultobj; | |
7415 | wxScrolledWindow * _arg0; | |
7416 | int _arg1; | |
7417 | int _arg2; | |
7418 | PyObject * _argo0 = 0; | |
7419 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
7420 | ||
7421 | self = self; | |
7422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7423 | return NULL; | |
7424 | if (_argo0) { | |
7425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
7428 | return NULL; | |
7429 | } | |
7430 | } | |
7431 | { | |
4268f798 | 7432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7433 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); |
b7e72427 | 7434 | |
4268f798 | 7435 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7436 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
7437 | } Py_INCREF(Py_None); |
7438 | _resultobj = Py_None; | |
7439 | return _resultobj; | |
7440 | } | |
7441 | ||
eb715945 RD |
7442 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
7443 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7444 | PyObject * _resultobj; | |
7445 | wxScrolledWindow * _arg0; | |
7446 | wxWindow * _arg1; | |
7447 | PyObject * _argo0 = 0; | |
7448 | PyObject * _argo1 = 0; | |
7449 | char *_kwnames[] = { "self","window", NULL }; | |
7450 | ||
7451 | self = self; | |
7452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
7453 | return NULL; | |
7454 | if (_argo0) { | |
7455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
7458 | return NULL; | |
7459 | } | |
7460 | } | |
7461 | if (_argo1) { | |
7462 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7463 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
7465 | return NULL; | |
7466 | } | |
7467 | } | |
7468 | { | |
4268f798 | 7469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7470 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); |
eb715945 | 7471 | |
4268f798 | 7472 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7473 | if (PyErr_Occurred()) return NULL; |
eb715945 RD |
7474 | } Py_INCREF(Py_None); |
7475 | _resultobj = Py_None; | |
7476 | return _resultobj; | |
7477 | } | |
7478 | ||
4c9993c3 RD |
7479 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
7480 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7481 | PyObject * _resultobj; | |
7482 | wxScrolledWindow * _arg0; | |
7483 | int * _arg1; | |
7484 | int temp; | |
7485 | int * _arg2; | |
7486 | int temp0; | |
7487 | PyObject * _argo0 = 0; | |
7488 | char *_kwnames[] = { "self", NULL }; | |
7489 | ||
7490 | self = self; | |
7491 | { | |
7492 | _arg1 = &temp; | |
7493 | } | |
7494 | { | |
7495 | _arg2 = &temp0; | |
7496 | } | |
7497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
7498 | return NULL; | |
7499 | if (_argo0) { | |
7500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
7503 | return NULL; | |
7504 | } | |
7505 | } | |
7506 | { | |
4268f798 | 7507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7508 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); |
4c9993c3 | 7509 | |
4268f798 | 7510 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7511 | if (PyErr_Occurred()) return NULL; |
4c9993c3 RD |
7512 | } Py_INCREF(Py_None); |
7513 | _resultobj = Py_None; | |
7514 | { | |
7515 | PyObject *o; | |
7516 | o = PyInt_FromLong((long) (*_arg1)); | |
7517 | _resultobj = t_output_helper(_resultobj, o); | |
7518 | } | |
7519 | { | |
7520 | PyObject *o; | |
7521 | o = PyInt_FromLong((long) (*_arg2)); | |
7522 | _resultobj = t_output_helper(_resultobj, o); | |
7523 | } | |
7524 | return _resultobj; | |
7525 | } | |
7526 | ||
e9159fe8 RD |
7527 | #define wxScrolledWindow_CalcScrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcScrolledPosition(_swigarg0)) |
7528 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7529 | PyObject * _resultobj; | |
7530 | wxPoint * _result; | |
7531 | wxScrolledWindow * _arg0; | |
7532 | wxPoint * _arg1; | |
7533 | PyObject * _argo0 = 0; | |
7534 | wxPoint temp; | |
7535 | PyObject * _obj1 = 0; | |
7536 | char *_kwnames[] = { "self","pt", NULL }; | |
7537 | char _ptemp[128]; | |
7538 | ||
7539 | self = self; | |
7540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcScrolledPosition1",_kwnames,&_argo0,&_obj1)) | |
7541 | return NULL; | |
7542 | if (_argo0) { | |
7543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition1. Expected _wxScrolledWindow_p."); | |
7546 | return NULL; | |
7547 | } | |
7548 | } | |
7549 | { | |
7550 | _arg1 = &temp; | |
7551 | if (! wxPoint_helper(_obj1, &_arg1)) | |
7552 | return NULL; | |
7553 | } | |
7554 | { | |
7555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7556 | _result = new wxPoint (wxScrolledWindow_CalcScrolledPosition1(_arg0,*_arg1)); | |
7557 | ||
7558 | wxPyEndAllowThreads(__tstate); | |
7559 | if (PyErr_Occurred()) return NULL; | |
7560 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
7561 | _resultobj = Py_BuildValue("s",_ptemp); | |
7562 | return _resultobj; | |
7563 | } | |
7564 | ||
7565 | #define wxScrolledWindow_CalcScrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7566 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d8bd15f RD |
7567 | PyObject * _resultobj; |
7568 | wxScrolledWindow * _arg0; | |
7569 | int _arg1; | |
7570 | int _arg2; | |
7571 | int * _arg3; | |
7572 | int temp; | |
7573 | int * _arg4; | |
7574 | int temp0; | |
7575 | PyObject * _argo0 = 0; | |
7576 | char *_kwnames[] = { "self","x","y", NULL }; | |
7577 | ||
7578 | self = self; | |
7579 | { | |
7580 | _arg3 = &temp; | |
7581 | } | |
7582 | { | |
7583 | _arg4 = &temp0; | |
7584 | } | |
e9159fe8 | 7585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) |
9d8bd15f RD |
7586 | return NULL; |
7587 | if (_argo0) { | |
7588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
e9159fe8 | 7590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition2. Expected _wxScrolledWindow_p."); |
9d8bd15f RD |
7591 | return NULL; |
7592 | } | |
7593 | } | |
7594 | { | |
4268f798 | 7595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 7596 | wxScrolledWindow_CalcScrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d8bd15f | 7597 | |
4268f798 | 7598 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7599 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
7600 | } Py_INCREF(Py_None); |
7601 | _resultobj = Py_None; | |
7602 | { | |
7603 | PyObject *o; | |
7604 | o = PyInt_FromLong((long) (*_arg3)); | |
7605 | _resultobj = t_output_helper(_resultobj, o); | |
7606 | } | |
7607 | { | |
7608 | PyObject *o; | |
7609 | o = PyInt_FromLong((long) (*_arg4)); | |
7610 | _resultobj = t_output_helper(_resultobj, o); | |
7611 | } | |
7612 | return _resultobj; | |
7613 | } | |
7614 | ||
e9159fe8 RD |
7615 | #define wxScrolledWindow_CalcUnscrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcUnscrolledPosition(_swigarg0)) |
7616 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7617 | PyObject * _resultobj; | |
7618 | wxPoint * _result; | |
7619 | wxScrolledWindow * _arg0; | |
7620 | wxPoint * _arg1; | |
7621 | PyObject * _argo0 = 0; | |
7622 | wxPoint temp; | |
7623 | PyObject * _obj1 = 0; | |
7624 | char *_kwnames[] = { "self","pt", NULL }; | |
7625 | char _ptemp[128]; | |
7626 | ||
7627 | self = self; | |
7628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcUnscrolledPosition1",_kwnames,&_argo0,&_obj1)) | |
7629 | return NULL; | |
7630 | if (_argo0) { | |
7631 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition1. Expected _wxScrolledWindow_p."); | |
7634 | return NULL; | |
7635 | } | |
7636 | } | |
7637 | { | |
7638 | _arg1 = &temp; | |
7639 | if (! wxPoint_helper(_obj1, &_arg1)) | |
7640 | return NULL; | |
7641 | } | |
7642 | { | |
7643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7644 | _result = new wxPoint (wxScrolledWindow_CalcUnscrolledPosition1(_arg0,*_arg1)); | |
7645 | ||
7646 | wxPyEndAllowThreads(__tstate); | |
7647 | if (PyErr_Occurred()) return NULL; | |
7648 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
7649 | _resultobj = Py_BuildValue("s",_ptemp); | |
7650 | return _resultobj; | |
7651 | } | |
7652 | ||
7653 | #define wxScrolledWindow_CalcUnscrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7654 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d8bd15f RD |
7655 | PyObject * _resultobj; |
7656 | wxScrolledWindow * _arg0; | |
7657 | int _arg1; | |
7658 | int _arg2; | |
7659 | int * _arg3; | |
7660 | int temp; | |
7661 | int * _arg4; | |
7662 | int temp0; | |
7663 | PyObject * _argo0 = 0; | |
7664 | char *_kwnames[] = { "self","x","y", NULL }; | |
7665 | ||
7666 | self = self; | |
7667 | { | |
7668 | _arg3 = &temp; | |
7669 | } | |
7670 | { | |
7671 | _arg4 = &temp0; | |
7672 | } | |
e9159fe8 | 7673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) |
9d8bd15f RD |
7674 | return NULL; |
7675 | if (_argo0) { | |
7676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
e9159fe8 | 7678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition2. Expected _wxScrolledWindow_p."); |
9d8bd15f RD |
7679 | return NULL; |
7680 | } | |
7681 | } | |
7682 | { | |
4268f798 | 7683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 7684 | wxScrolledWindow_CalcUnscrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d8bd15f | 7685 | |
4268f798 | 7686 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7687 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
7688 | } Py_INCREF(Py_None); |
7689 | _resultobj = Py_None; | |
7690 | { | |
7691 | PyObject *o; | |
7692 | o = PyInt_FromLong((long) (*_arg3)); | |
7693 | _resultobj = t_output_helper(_resultobj, o); | |
7694 | } | |
7695 | { | |
7696 | PyObject *o; | |
7697 | o = PyInt_FromLong((long) (*_arg4)); | |
7698 | _resultobj = t_output_helper(_resultobj, o); | |
7699 | } | |
7700 | return _resultobj; | |
7701 | } | |
7702 | ||
d1679124 RD |
7703 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
7704 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7705 | PyObject * _resultobj; | |
7706 | wxScrolledWindow * _arg0; | |
7707 | double _arg1; | |
7708 | double _arg2; | |
7709 | PyObject * _argo0 = 0; | |
7710 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
7711 | ||
7712 | self = self; | |
7713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7714 | return NULL; | |
7715 | if (_argo0) { | |
7716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
7719 | return NULL; | |
7720 | } | |
7721 | } | |
7722 | { | |
4268f798 | 7723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7724 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); |
d1679124 | 7725 | |
4268f798 | 7726 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7727 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
7728 | } Py_INCREF(Py_None); |
7729 | _resultobj = Py_None; | |
7730 | return _resultobj; | |
7731 | } | |
7732 | ||
7733 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
7734 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7735 | PyObject * _resultobj; | |
7736 | double _result; | |
7737 | wxScrolledWindow * _arg0; | |
7738 | PyObject * _argo0 = 0; | |
7739 | char *_kwnames[] = { "self", NULL }; | |
7740 | ||
7741 | self = self; | |
7742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
7743 | return NULL; | |
7744 | if (_argo0) { | |
7745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
7748 | return NULL; | |
7749 | } | |
7750 | } | |
7751 | { | |
4268f798 | 7752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 RD |
7753 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); |
7754 | ||
7755 | wxPyEndAllowThreads(__tstate); | |
7756 | if (PyErr_Occurred()) return NULL; | |
7757 | } _resultobj = Py_BuildValue("d",_result); | |
7758 | return _resultobj; | |
7759 | } | |
7760 | ||
7761 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
7762 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7763 | PyObject * _resultobj; | |
7764 | double _result; | |
7765 | wxScrolledWindow * _arg0; | |
7766 | PyObject * _argo0 = 0; | |
7767 | char *_kwnames[] = { "self", NULL }; | |
7768 | ||
7769 | self = self; | |
7770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
7771 | return NULL; | |
7772 | if (_argo0) { | |
7773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
7776 | return NULL; | |
7777 | } | |
7778 | } | |
7779 | { | |
7780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7781 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); | |
7782 | ||
7783 | wxPyEndAllowThreads(__tstate); | |
7784 | if (PyErr_Occurred()) return NULL; | |
7785 | } _resultobj = Py_BuildValue("d",_result); | |
7786 | return _resultobj; | |
7787 | } | |
7788 | ||
7789 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
7790 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7791 | PyObject * _resultobj; | |
7792 | wxScrolledWindow * _arg0; | |
7793 | PyObject * _argo0 = 0; | |
7794 | char *_kwnames[] = { "self", NULL }; | |
7795 | ||
7796 | self = self; | |
7797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
7798 | return NULL; | |
7799 | if (_argo0) { | |
7800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
7803 | return NULL; | |
7804 | } | |
7805 | } | |
7806 | { | |
7807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7808 | wxScrolledWindow_AdjustScrollbars(_arg0); | |
7809 | ||
7810 | wxPyEndAllowThreads(__tstate); | |
7811 | if (PyErr_Occurred()) return NULL; | |
7812 | } Py_INCREF(Py_None); | |
7813 | _resultobj = Py_None; | |
7814 | return _resultobj; | |
7815 | } | |
7816 | ||
7817 | #define wxScrolledWindow_Layout(_swigobj) (_swigobj->Layout()) | |
7818 | static PyObject *_wrap_wxScrolledWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7819 | PyObject * _resultobj; | |
7820 | bool _result; | |
7821 | wxScrolledWindow * _arg0; | |
7822 | PyObject * _argo0 = 0; | |
7823 | char *_kwnames[] = { "self", NULL }; | |
7824 | ||
7825 | self = self; | |
7826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_Layout",_kwnames,&_argo0)) | |
7827 | return NULL; | |
7828 | if (_argo0) { | |
7829 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7830 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Layout. Expected _wxScrolledWindow_p."); | |
7832 | return NULL; | |
7833 | } | |
7834 | } | |
7835 | { | |
7836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7837 | _result = (bool )wxScrolledWindow_Layout(_arg0); | |
7838 | ||
7839 | wxPyEndAllowThreads(__tstate); | |
7840 | if (PyErr_Occurred()) return NULL; | |
7841 | } _resultobj = Py_BuildValue("i",_result); | |
7842 | return _resultobj; | |
7843 | } | |
7844 | ||
2a74d141 RD |
7845 | #define wxScrolledWindow_SetScrollRate(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollRate(_swigarg0,_swigarg1)) |
7846 | static PyObject *_wrap_wxScrolledWindow_SetScrollRate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7847 | PyObject * _resultobj; | |
7848 | wxScrolledWindow * _arg0; | |
7849 | int _arg1; | |
7850 | int _arg2; | |
7851 | PyObject * _argo0 = 0; | |
7852 | char *_kwnames[] = { "self","xstep","ystep", NULL }; | |
7853 | ||
7854 | self = self; | |
7855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollRate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7856 | return NULL; | |
7857 | if (_argo0) { | |
7858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollRate. Expected _wxScrolledWindow_p."); | |
7861 | return NULL; | |
7862 | } | |
7863 | } | |
7864 | { | |
7865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7866 | wxScrolledWindow_SetScrollRate(_arg0,_arg1,_arg2); | |
7867 | ||
7868 | wxPyEndAllowThreads(__tstate); | |
7869 | if (PyErr_Occurred()) return NULL; | |
7870 | } Py_INCREF(Py_None); | |
7871 | _resultobj = Py_None; | |
7872 | return _resultobj; | |
7873 | } | |
7874 | ||
e9159fe8 RD |
7875 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
7876 | wxMenu *src; | |
7877 | wxEvtHandler *dest; | |
7878 | src = (wxMenu *) ptr; | |
7879 | dest = (wxEvtHandler *) src; | |
7880 | return (void *) dest; | |
7881 | } | |
7882 | ||
7883 | static void *SwigwxMenuTowxObject(void *ptr) { | |
7884 | wxMenu *src; | |
7885 | wxObject *dest; | |
7886 | src = (wxMenu *) ptr; | |
7887 | dest = (wxObject *) src; | |
7888 | return (void *) dest; | |
7889 | } | |
7890 | ||
7891 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) | |
7892 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7893 | PyObject * _resultobj; | |
7894 | wxMenu * _result; | |
137b5242 | 7895 | wxString * _arg0 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
7896 | long _arg1 = (long ) 0; |
7897 | PyObject * _obj0 = 0; | |
7898 | char *_kwnames[] = { "title","style", NULL }; | |
7899 | char _ptemp[128]; | |
7900 | ||
7901 | self = self; | |
7902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) | |
7903 | return NULL; | |
7904 | if (_obj0) | |
7905 | { | |
7906 | _arg0 = wxString_in_helper(_obj0); | |
7907 | if (_arg0 == NULL) | |
7908 | return NULL; | |
7909 | } | |
7910 | { | |
7911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7912 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); | |
7913 | ||
7914 | wxPyEndAllowThreads(__tstate); | |
7915 | if (PyErr_Occurred()) return NULL; | |
7916 | } if (_result) { | |
7917 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7918 | _resultobj = Py_BuildValue("s",_ptemp); | |
7919 | } else { | |
7920 | Py_INCREF(Py_None); | |
7921 | _resultobj = Py_None; | |
7922 | } | |
7923 | { | |
7924 | if (_obj0) | |
7925 | delete _arg0; | |
7926 | } | |
7927 | return _resultobj; | |
7928 | } | |
7929 | ||
7930 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7931 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7932 | PyObject * _resultobj; | |
7933 | wxMenu * _arg0; | |
7934 | int _arg1; | |
7935 | wxString * _arg2; | |
137b5242 | 7936 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
546bfbea | 7937 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
e9159fe8 RD |
7938 | PyObject * _argo0 = 0; |
7939 | PyObject * _obj2 = 0; | |
7940 | PyObject * _obj3 = 0; | |
7941 | char *_kwnames[] = { "self","id","item","helpString","kind", NULL }; | |
7942 | ||
7943 | self = self; | |
7944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
7945 | return NULL; | |
7946 | if (_argo0) { | |
7947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); | |
7950 | return NULL; | |
7951 | } | |
7952 | } | |
7953 | { | |
7954 | _arg2 = wxString_in_helper(_obj2); | |
7955 | if (_arg2 == NULL) | |
7956 | return NULL; | |
7957 | } | |
7958 | if (_obj3) | |
7959 | { | |
7960 | _arg3 = wxString_in_helper(_obj3); | |
7961 | if (_arg3 == NULL) | |
7962 | return NULL; | |
7963 | } | |
7964 | { | |
7965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7966 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
7967 | ||
7968 | wxPyEndAllowThreads(__tstate); | |
7969 | if (PyErr_Occurred()) return NULL; | |
7970 | } Py_INCREF(Py_None); | |
7971 | _resultobj = Py_None; | |
7972 | { | |
7973 | if (_obj2) | |
7974 | delete _arg2; | |
7975 | } | |
7976 | { | |
7977 | if (_obj3) | |
7978 | delete _arg3; | |
7979 | } | |
7980 | return _resultobj; | |
7981 | } | |
7982 | ||
7983 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7984 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7985 | PyObject * _resultobj; | |
7986 | wxMenu * _arg0; | |
7987 | int _arg1; | |
7988 | wxString * _arg2; | |
7989 | wxMenu * _arg3; | |
137b5242 | 7990 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
7991 | PyObject * _argo0 = 0; |
7992 | PyObject * _obj2 = 0; | |
7993 | PyObject * _argo3 = 0; | |
7994 | PyObject * _obj4 = 0; | |
7995 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; | |
7996 | ||
7997 | self = self; | |
7998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) | |
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_AppendMenu. Expected _wxMenu_p."); | |
8004 | return NULL; | |
8005 | } | |
8006 | } | |
8007 | { | |
8008 | _arg2 = wxString_in_helper(_obj2); | |
8009 | if (_arg2 == NULL) | |
8010 | return NULL; | |
8011 | } | |
8012 | if (_argo3) { | |
8013 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8014 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
8016 | return NULL; | |
8017 | } | |
8018 | } | |
8019 | if (_obj4) | |
8020 | { | |
8021 | _arg4 = wxString_in_helper(_obj4); | |
8022 | if (_arg4 == NULL) | |
8023 | return NULL; | |
8024 | } | |
8025 | { | |
8026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8027 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
8028 | ||
8029 | wxPyEndAllowThreads(__tstate); | |
8030 | if (PyErr_Occurred()) return NULL; | |
8031 | } Py_INCREF(Py_None); | |
8032 | _resultobj = Py_None; | |
8033 | { | |
8034 | if (_obj2) | |
8035 | delete _arg2; | |
8036 | } | |
8037 | { | |
8038 | if (_obj4) | |
8039 | delete _arg4; | |
8040 | } | |
8041 | return _resultobj; | |
8042 | } | |
8043 | ||
8044 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
8045 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8046 | PyObject * _resultobj; | |
8047 | wxMenu * _arg0; | |
8048 | wxMenuItem * _arg1; | |
8049 | PyObject * _argo0 = 0; | |
8050 | PyObject * _argo1 = 0; | |
8051 | char *_kwnames[] = { "self","item", NULL }; | |
8052 | ||
8053 | self = self; | |
8054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) | |
8055 | return NULL; | |
8056 | if (_argo0) { | |
8057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); | |
8060 | return NULL; | |
8061 | } | |
8062 | } | |
8063 | if (_argo1) { | |
8064 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8065 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); | |
8067 | return NULL; | |
8068 | } | |
8069 | } | |
8070 | { | |
8071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8072 | wxMenu_AppendItem(_arg0,_arg1); | |
8073 | ||
8074 | wxPyEndAllowThreads(__tstate); | |
8075 | if (PyErr_Occurred()) return NULL; | |
8076 | } Py_INCREF(Py_None); | |
8077 | _resultobj = Py_None; | |
8078 | return _resultobj; | |
8079 | } | |
8080 | ||
8081 | #define wxMenu_AppendCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendCheckItem(_swigarg0,_swigarg1,_swigarg2)) | |
8082 | static PyObject *_wrap_wxMenu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8083 | PyObject * _resultobj; | |
8084 | wxMenu * _arg0; | |
8085 | int _arg1; | |
8086 | wxString * _arg2; | |
137b5242 | 8087 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
8088 | PyObject * _argo0 = 0; |
8089 | PyObject * _obj2 = 0; | |
8090 | PyObject * _obj3 = 0; | |
8091 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
8092 | ||
8093 | self = self; | |
8094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) | |
8095 | return NULL; | |
8096 | if (_argo0) { | |
8097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendCheckItem. Expected _wxMenu_p."); | |
8100 | return NULL; | |
8101 | } | |
8102 | } | |
8103 | { | |
8104 | _arg2 = wxString_in_helper(_obj2); | |
8105 | if (_arg2 == NULL) | |
8106 | return NULL; | |
8107 | } | |
8108 | if (_obj3) | |
8109 | { | |
8110 | _arg3 = wxString_in_helper(_obj3); | |
8111 | if (_arg3 == NULL) | |
8112 | return NULL; | |
8113 | } | |
8114 | { | |
8115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8116 | wxMenu_AppendCheckItem(_arg0,_arg1,*_arg2,*_arg3); | |
8117 | ||
8118 | wxPyEndAllowThreads(__tstate); | |
8119 | if (PyErr_Occurred()) return NULL; | |
8120 | } Py_INCREF(Py_None); | |
8121 | _resultobj = Py_None; | |
8122 | { | |
8123 | if (_obj2) | |
8124 | delete _arg2; | |
8125 | } | |
8126 | { | |
8127 | if (_obj3) | |
8128 | delete _arg3; | |
8129 | } | |
8130 | return _resultobj; | |
8131 | } | |
8132 | ||
8133 | #define wxMenu_AppendRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendRadioItem(_swigarg0,_swigarg1,_swigarg2)) | |
8134 | static PyObject *_wrap_wxMenu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8135 | PyObject * _resultobj; | |
8136 | wxMenu * _arg0; | |
8137 | int _arg1; | |
8138 | wxString * _arg2; | |
137b5242 | 8139 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
8140 | PyObject * _argo0 = 0; |
8141 | PyObject * _obj2 = 0; | |
8142 | PyObject * _obj3 = 0; | |
8143 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
8144 | ||
8145 | self = self; | |
8146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) | |
8147 | return NULL; | |
8148 | if (_argo0) { | |
8149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendRadioItem. Expected _wxMenu_p."); | |
8152 | return NULL; | |
8153 | } | |
8154 | } | |
8155 | { | |
8156 | _arg2 = wxString_in_helper(_obj2); | |
8157 | if (_arg2 == NULL) | |
8158 | return NULL; | |
8159 | } | |
8160 | if (_obj3) | |
8161 | { | |
8162 | _arg3 = wxString_in_helper(_obj3); | |
8163 | if (_arg3 == NULL) | |
8164 | return NULL; | |
8165 | } | |
8166 | { | |
8167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8168 | wxMenu_AppendRadioItem(_arg0,_arg1,*_arg2,*_arg3); | |
8169 | ||
8170 | wxPyEndAllowThreads(__tstate); | |
8171 | if (PyErr_Occurred()) return NULL; | |
8172 | } Py_INCREF(Py_None); | |
8173 | _resultobj = Py_None; | |
8174 | { | |
8175 | if (_obj2) | |
8176 | delete _arg2; | |
8177 | } | |
8178 | { | |
8179 | if (_obj3) | |
8180 | delete _arg3; | |
8181 | } | |
8182 | return _resultobj; | |
8183 | } | |
8184 | ||
8185 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) | |
8186 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8187 | PyObject * _resultobj; | |
8188 | wxMenu * _arg0; | |
8189 | PyObject * _argo0 = 0; | |
8190 | char *_kwnames[] = { "self", NULL }; | |
8191 | ||
8192 | self = self; | |
8193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) | |
8194 | return NULL; | |
8195 | if (_argo0) { | |
8196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); | |
8199 | return NULL; | |
8200 | } | |
8201 | } | |
8202 | { | |
8203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8204 | wxMenu_AppendSeparator(_arg0); | |
8205 | ||
8206 | wxPyEndAllowThreads(__tstate); | |
8207 | if (PyErr_Occurred()) return NULL; | |
8208 | } Py_INCREF(Py_None); | |
8209 | _resultobj = Py_None; | |
8210 | return _resultobj; | |
8211 | } | |
8212 | ||
8213 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
8214 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8215 | PyObject * _resultobj; | |
8216 | wxMenu * _arg0; | |
8217 | size_t _arg1; | |
8218 | int _arg2; | |
8219 | wxString * _arg3; | |
137b5242 | 8220 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
546bfbea | 8221 | wxItemKind _arg5 = (wxItemKind ) wxITEM_NORMAL; |
e9159fe8 RD |
8222 | PyObject * _argo0 = 0; |
8223 | PyObject * _obj3 = 0; | |
8224 | PyObject * _obj4 = 0; | |
8225 | char *_kwnames[] = { "self","pos","id","text","help","kind", NULL }; | |
8226 | ||
8227 | self = self; | |
8228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|Oi:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
8229 | return NULL; | |
8230 | if (_argo0) { | |
8231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); | |
8234 | return NULL; | |
8235 | } | |
8236 | } | |
8237 | { | |
8238 | _arg3 = wxString_in_helper(_obj3); | |
8239 | if (_arg3 == NULL) | |
8240 | return NULL; | |
8241 | } | |
8242 | if (_obj4) | |
8243 | { | |
8244 | _arg4 = wxString_in_helper(_obj4); | |
8245 | if (_arg4 == NULL) | |
8246 | return NULL; | |
8247 | } | |
8248 | { | |
8249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8250 | wxMenu_Insert(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); | |
8251 | ||
8252 | wxPyEndAllowThreads(__tstate); | |
8253 | if (PyErr_Occurred()) return NULL; | |
8254 | } Py_INCREF(Py_None); | |
8255 | _resultobj = Py_None; | |
8256 | { | |
8257 | if (_obj3) | |
8258 | delete _arg3; | |
8259 | } | |
8260 | { | |
8261 | if (_obj4) | |
8262 | delete _arg4; | |
8263 | } | |
8264 | return _resultobj; | |
8265 | } | |
8266 | ||
8267 | #define wxMenu_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0)) | |
8268 | static PyObject *_wrap_wxMenu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8269 | PyObject * _resultobj; | |
8270 | wxMenu * _arg0; | |
8271 | size_t _arg1; | |
8272 | PyObject * _argo0 = 0; | |
8273 | char *_kwnames[] = { "self","pos", NULL }; | |
8274 | ||
8275 | self = self; | |
8276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_InsertSeparator",_kwnames,&_argo0,&_arg1)) | |
8277 | return NULL; | |
8278 | if (_argo0) { | |
8279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertSeparator. Expected _wxMenu_p."); | |
8282 | return NULL; | |
8283 | } | |
8284 | } | |
8285 | { | |
8286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8287 | wxMenu_InsertSeparator(_arg0,_arg1); | |
8288 | ||
8289 | wxPyEndAllowThreads(__tstate); | |
8290 | if (PyErr_Occurred()) return NULL; | |
8291 | } Py_INCREF(Py_None); | |
8292 | _resultobj = Py_None; | |
8293 | return _resultobj; | |
8294 | } | |
8295 | ||
8296 | #define wxMenu_InsertCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertCheckItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8297 | static PyObject *_wrap_wxMenu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8298 | PyObject * _resultobj; | |
8299 | wxMenu * _arg0; | |
8300 | size_t _arg1; | |
8301 | int _arg2; | |
8302 | wxString * _arg3; | |
137b5242 | 8303 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
8304 | PyObject * _argo0 = 0; |
8305 | PyObject * _obj3 = 0; | |
8306 | PyObject * _obj4 = 0; | |
8307 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; | |
8308 | ||
8309 | self = self; | |
8310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertCheckItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) | |
8311 | return NULL; | |
8312 | if (_argo0) { | |
8313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertCheckItem. Expected _wxMenu_p."); | |
8316 | return NULL; | |
8317 | } | |
8318 | } | |
8319 | { | |
8320 | _arg3 = wxString_in_helper(_obj3); | |
8321 | if (_arg3 == NULL) | |
8322 | return NULL; | |
8323 | } | |
8324 | if (_obj4) | |
8325 | { | |
8326 | _arg4 = wxString_in_helper(_obj4); | |
8327 | if (_arg4 == NULL) | |
8328 | return NULL; | |
8329 | } | |
8330 | { | |
8331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8332 | wxMenu_InsertCheckItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
8333 | ||
8334 | wxPyEndAllowThreads(__tstate); | |
8335 | if (PyErr_Occurred()) return NULL; | |
8336 | } Py_INCREF(Py_None); | |
8337 | _resultobj = Py_None; | |
8338 | { | |
8339 | if (_obj3) | |
8340 | delete _arg3; | |
8341 | } | |
8342 | { | |
8343 | if (_obj4) | |
8344 | delete _arg4; | |
8345 | } | |
8346 | return _resultobj; | |
8347 | } | |
8348 | ||
8349 | #define wxMenu_InsertRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertRadioItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8350 | static PyObject *_wrap_wxMenu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8351 | PyObject * _resultobj; | |
8352 | wxMenu * _arg0; | |
8353 | size_t _arg1; | |
8354 | int _arg2; | |
8355 | wxString * _arg3; | |
137b5242 | 8356 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
8357 | PyObject * _argo0 = 0; |
8358 | PyObject * _obj3 = 0; | |
8359 | PyObject * _obj4 = 0; | |
8360 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; | |
8361 | ||
8362 | self = self; | |
8363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertRadioItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) | |
8364 | return NULL; | |
8365 | if (_argo0) { | |
8366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertRadioItem. Expected _wxMenu_p."); | |
8369 | return NULL; | |
8370 | } | |
8371 | } | |
8372 | { | |
8373 | _arg3 = wxString_in_helper(_obj3); | |
8374 | if (_arg3 == NULL) | |
8375 | return NULL; | |
8376 | } | |
8377 | if (_obj4) | |
8378 | { | |
8379 | _arg4 = wxString_in_helper(_obj4); | |
8380 | if (_arg4 == NULL) | |
8381 | return NULL; | |
8382 | } | |
8383 | { | |
8384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8385 | wxMenu_InsertRadioItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
8386 | ||
8387 | wxPyEndAllowThreads(__tstate); | |
8388 | if (PyErr_Occurred()) return NULL; | |
8389 | } Py_INCREF(Py_None); | |
8390 | _resultobj = Py_None; | |
8391 | { | |
8392 | if (_obj3) | |
8393 | delete _arg3; | |
8394 | } | |
8395 | { | |
8396 | if (_obj4) | |
8397 | delete _arg4; | |
8398 | } | |
8399 | return _resultobj; | |
8400 | } | |
8401 | ||
8402 | #define wxMenu_InsertMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
8403 | static PyObject *_wrap_wxMenu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8404 | PyObject * _resultobj; | |
8405 | wxMenu * _arg0; | |
8406 | size_t _arg1; | |
8407 | int _arg2; | |
8408 | wxString * _arg3; | |
8409 | wxMenu * _arg4; | |
137b5242 | 8410 | wxString * _arg5 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
8411 | PyObject * _argo0 = 0; |
8412 | PyObject * _obj3 = 0; | |
8413 | PyObject * _argo4 = 0; | |
8414 | PyObject * _obj5 = 0; | |
8415 | char *_kwnames[] = { "self","pos","id","text","submenu","help", NULL }; | |
8416 | ||
8417 | self = self; | |
8418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOO|O:wxMenu_InsertMenu",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_argo4,&_obj5)) | |
8419 | return NULL; | |
8420 | if (_argo0) { | |
8421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertMenu. Expected _wxMenu_p."); | |
8424 | return NULL; | |
8425 | } | |
8426 | } | |
8427 | { | |
8428 | _arg3 = wxString_in_helper(_obj3); | |
8429 | if (_arg3 == NULL) | |
8430 | return NULL; | |
8431 | } | |
8432 | if (_argo4) { | |
8433 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8434 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxMenu_p")) { | |
8435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxMenu_InsertMenu. Expected _wxMenu_p."); | |
8436 | return NULL; | |
8437 | } | |
8438 | } | |
8439 | if (_obj5) | |
8440 | { | |
8441 | _arg5 = wxString_in_helper(_obj5); | |
8442 | if (_arg5 == NULL) | |
8443 | return NULL; | |
8444 | } | |
8445 | { | |
8446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8447 | wxMenu_InsertMenu(_arg0,_arg1,_arg2,*_arg3,_arg4,*_arg5); | |
d1679124 | 8448 | |
4268f798 | 8449 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8450 | if (PyErr_Occurred()) return NULL; |
e9159fe8 RD |
8451 | } Py_INCREF(Py_None); |
8452 | _resultobj = Py_None; | |
8453 | { | |
8454 | if (_obj3) | |
8455 | delete _arg3; | |
8456 | } | |
8457 | { | |
8458 | if (_obj5) | |
8459 | delete _arg5; | |
8460 | } | |
d1679124 RD |
8461 | return _resultobj; |
8462 | } | |
8463 | ||
e9159fe8 RD |
8464 | #define wxMenu_InsertItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
8465 | static PyObject *_wrap_wxMenu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d1679124 | 8466 | PyObject * _resultobj; |
e9159fe8 RD |
8467 | bool _result; |
8468 | wxMenu * _arg0; | |
8469 | size_t _arg1; | |
8470 | wxMenuItem * _arg2; | |
d1679124 | 8471 | PyObject * _argo0 = 0; |
e9159fe8 RD |
8472 | PyObject * _argo2 = 0; |
8473 | char *_kwnames[] = { "self","pos","item", NULL }; | |
d1679124 RD |
8474 | |
8475 | self = self; | |
e9159fe8 | 8476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_InsertItem",_kwnames,&_argo0,&_arg1,&_argo2)) |
d1679124 RD |
8477 | return NULL; |
8478 | if (_argo0) { | |
8479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
e9159fe8 RD |
8480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertItem. Expected _wxMenu_p."); | |
8482 | return NULL; | |
8483 | } | |
8484 | } | |
8485 | if (_argo2) { | |
8486 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8487 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
8488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_InsertItem. Expected _wxMenuItem_p."); | |
d1679124 RD |
8489 | return NULL; |
8490 | } | |
8491 | } | |
8492 | { | |
4268f798 | 8493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8494 | _result = (bool )wxMenu_InsertItem(_arg0,_arg1,_arg2); |
d1679124 | 8495 | |
4268f798 | 8496 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8497 | if (PyErr_Occurred()) return NULL; |
e9159fe8 | 8498 | } _resultobj = Py_BuildValue("i",_result); |
d1679124 RD |
8499 | return _resultobj; |
8500 | } | |
8501 | ||
e9159fe8 RD |
8502 | #define wxMenu_Prepend(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8503 | static PyObject *_wrap_wxMenu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d1679124 | 8504 | PyObject * _resultobj; |
e9159fe8 RD |
8505 | wxMenu * _arg0; |
8506 | int _arg1; | |
8507 | wxString * _arg2; | |
137b5242 | 8508 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
546bfbea | 8509 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
d1679124 | 8510 | PyObject * _argo0 = 0; |
e9159fe8 RD |
8511 | PyObject * _obj2 = 0; |
8512 | PyObject * _obj3 = 0; | |
8513 | char *_kwnames[] = { "self","id","text","help","kind", NULL }; | |
d1679124 RD |
8514 | |
8515 | self = self; | |
e9159fe8 | 8516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Prepend",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
d1679124 RD |
8517 | return NULL; |
8518 | if (_argo0) { | |
8519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
e9159fe8 RD |
8520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Prepend. Expected _wxMenu_p."); | |
d1679124 RD |
8522 | return NULL; |
8523 | } | |
8524 | } | |
e9159fe8 RD |
8525 | { |
8526 | _arg2 = wxString_in_helper(_obj2); | |
8527 | if (_arg2 == NULL) | |
8528 | return NULL; | |
8529 | } | |
8530 | if (_obj3) | |
8531 | { | |
8532 | _arg3 = wxString_in_helper(_obj3); | |
8533 | if (_arg3 == NULL) | |
8534 | return NULL; | |
8535 | } | |
d1679124 | 8536 | { |
4268f798 | 8537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8538 | wxMenu_Prepend(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
d1679124 | 8539 | |
4268f798 | 8540 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8541 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
8542 | } Py_INCREF(Py_None); |
8543 | _resultobj = Py_None; | |
e9159fe8 RD |
8544 | { |
8545 | if (_obj2) | |
8546 | delete _arg2; | |
8547 | } | |
8548 | { | |
8549 | if (_obj3) | |
8550 | delete _arg3; | |
8551 | } | |
d1679124 RD |
8552 | return _resultobj; |
8553 | } | |
8554 | ||
e9159fe8 RD |
8555 | #define wxMenu_PrependSeparator(_swigobj) (_swigobj->PrependSeparator()) |
8556 | static PyObject *_wrap_wxMenu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26e335b8 | 8557 | PyObject * _resultobj; |
e9159fe8 | 8558 | wxMenu * _arg0; |
26e335b8 RD |
8559 | PyObject * _argo0 = 0; |
8560 | char *_kwnames[] = { "self", NULL }; | |
8561 | ||
8562 | self = self; | |
e9159fe8 | 8563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_PrependSeparator",_kwnames,&_argo0)) |
26e335b8 RD |
8564 | return NULL; |
8565 | if (_argo0) { | |
8566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
e9159fe8 RD |
8567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependSeparator. Expected _wxMenu_p."); | |
26e335b8 RD |
8569 | return NULL; |
8570 | } | |
8571 | } | |
8572 | { | |
8573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e9159fe8 | 8574 | wxMenu_PrependSeparator(_arg0); |
26e335b8 RD |
8575 | |
8576 | wxPyEndAllowThreads(__tstate); | |
8577 | if (PyErr_Occurred()) return NULL; | |
e9159fe8 RD |
8578 | } Py_INCREF(Py_None); |
8579 | _resultobj = Py_None; | |
26e335b8 RD |
8580 | return _resultobj; |
8581 | } | |
8582 | ||
e9159fe8 RD |
8583 | #define wxMenu_PrependCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependCheckItem(_swigarg0,_swigarg1,_swigarg2)) |
8584 | static PyObject *_wrap_wxMenu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8585 | PyObject * _resultobj; |
e9159fe8 RD |
8586 | wxMenu * _arg0; |
8587 | int _arg1; | |
8588 | wxString * _arg2; | |
137b5242 | 8589 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
e9159fe8 RD |
8590 | PyObject * _argo0 = 0; |
8591 | PyObject * _obj2 = 0; | |
8592 | PyObject * _obj3 = 0; | |
8593 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
8ab979d7 RD |
8594 | |
8595 | self = self; | |
e9159fe8 | 8596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
8ab979d7 | 8597 | return NULL; |
e9159fe8 RD |
8598 | if (_argo0) { |
8599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependCheckItem. Expected _wxMenu_p."); | |
8602 | return NULL; | |
8603 | } | |
8604 | } | |
8ab979d7 | 8605 | { |
e9159fe8 RD |
8606 | _arg2 = wxString_in_helper(_obj2); |
8607 | if (_arg2 == NULL) | |
8608 | return NULL; | |
8609 | } | |
8610 | if (_obj3) | |
8611 | { | |
8612 | _arg3 = wxString_in_helper(_obj3); | |
8613 | if (_arg3 == NULL) | |
185d7c3e | 8614 | return NULL; |
8ab979d7 | 8615 | } |
cf694132 | 8616 | { |
4268f798 | 8617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8618 | wxMenu_PrependCheckItem(_arg0,_arg1,*_arg2,*_arg3); |
cf694132 | 8619 | |
4268f798 | 8620 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8621 | if (PyErr_Occurred()) return NULL; |
e9159fe8 RD |
8622 | } Py_INCREF(Py_None); |
8623 | _resultobj = Py_None; | |
8ab979d7 | 8624 | { |
e9159fe8 RD |
8625 | if (_obj2) |
8626 | delete _arg2; | |
8627 | } | |
8628 | { | |
8629 | if (_obj3) | |
8630 | delete _arg3; | |
8ab979d7 RD |
8631 | } |
8632 | return _resultobj; | |
8633 | } | |
8634 | ||
e9159fe8 RD |
8635 | #define wxMenu_PrependRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependRadioItem(_swigarg0,_swigarg1,_swigarg2)) |
8636 | static PyObject *_wrap_wxMenu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8637 | PyObject * _resultobj; |
8638 | wxMenu * _arg0; | |
8639 | int _arg1; | |
8640 | wxString * _arg2; | |
137b5242 | 8641 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
1d99702e | 8642 | PyObject * _argo0 = 0; |
8ab979d7 RD |
8643 | PyObject * _obj2 = 0; |
8644 | PyObject * _obj3 = 0; | |
e9159fe8 | 8645 | char *_kwnames[] = { "self","id","text","help", NULL }; |
8ab979d7 RD |
8646 | |
8647 | self = self; | |
e9159fe8 | 8648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
8ab979d7 | 8649 | return NULL; |
1d99702e RD |
8650 | if (_argo0) { |
8651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
e9159fe8 | 8653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependRadioItem. Expected _wxMenu_p."); |
8ab979d7 RD |
8654 | return NULL; |
8655 | } | |
8656 | } | |
8657 | { | |
c8bc7bb8 RD |
8658 | _arg2 = wxString_in_helper(_obj2); |
8659 | if (_arg2 == NULL) | |
8ab979d7 | 8660 | return NULL; |
8ab979d7 RD |
8661 | } |
8662 | if (_obj3) | |
8663 | { | |
c8bc7bb8 RD |
8664 | _arg3 = wxString_in_helper(_obj3); |
8665 | if (_arg3 == NULL) | |
8ab979d7 | 8666 | return NULL; |
8ab979d7 | 8667 | } |
cf694132 | 8668 | { |
4268f798 | 8669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8670 | wxMenu_PrependRadioItem(_arg0,_arg1,*_arg2,*_arg3); |
cf694132 | 8671 | |
4268f798 | 8672 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8673 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8674 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8675 | _resultobj = Py_None; |
8676 | { | |
8677 | if (_obj2) | |
8678 | delete _arg2; | |
8679 | } | |
8680 | { | |
8681 | if (_obj3) | |
8682 | delete _arg3; | |
8683 | } | |
8684 | return _resultobj; | |
8685 | } | |
8686 | ||
e9159fe8 RD |
8687 | #define wxMenu_PrependMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8688 | static PyObject *_wrap_wxMenu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8689 | PyObject * _resultobj; |
8690 | wxMenu * _arg0; | |
8691 | int _arg1; | |
8692 | wxString * _arg2; | |
8693 | wxMenu * _arg3; | |
137b5242 | 8694 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
1d99702e | 8695 | PyObject * _argo0 = 0; |
8ab979d7 | 8696 | PyObject * _obj2 = 0; |
1d99702e | 8697 | PyObject * _argo3 = 0; |
8ab979d7 | 8698 | PyObject * _obj4 = 0; |
e9159fe8 | 8699 | char *_kwnames[] = { "self","id","text","submenu","help", NULL }; |
8ab979d7 RD |
8700 | |
8701 | self = self; | |
e9159fe8 | 8702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_PrependMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 8703 | return NULL; |
1d99702e RD |
8704 | if (_argo0) { |
8705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
e9159fe8 | 8707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependMenu. Expected _wxMenu_p."); |
8ab979d7 RD |
8708 | return NULL; |
8709 | } | |
8710 | } | |
8711 | { | |
c8bc7bb8 RD |
8712 | _arg2 = wxString_in_helper(_obj2); |
8713 | if (_arg2 == NULL) | |
185d7c3e | 8714 | return NULL; |
8ab979d7 | 8715 | } |
1d99702e RD |
8716 | if (_argo3) { |
8717 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8718 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
e9159fe8 | 8719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_PrependMenu. Expected _wxMenu_p."); |
8ab979d7 RD |
8720 | return NULL; |
8721 | } | |
8722 | } | |
8723 | if (_obj4) | |
8724 | { | |
c8bc7bb8 RD |
8725 | _arg4 = wxString_in_helper(_obj4); |
8726 | if (_arg4 == NULL) | |
185d7c3e | 8727 | return NULL; |
8ab979d7 | 8728 | } |
cf694132 | 8729 | { |
4268f798 | 8730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8731 | wxMenu_PrependMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); |
cf694132 | 8732 | |
4268f798 | 8733 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8734 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8735 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8736 | _resultobj = Py_None; |
8737 | { | |
8738 | if (_obj2) | |
8739 | delete _arg2; | |
8740 | } | |
8741 | { | |
8742 | if (_obj4) | |
8743 | delete _arg4; | |
8744 | } | |
8745 | return _resultobj; | |
8746 | } | |
8747 | ||
e9159fe8 RD |
8748 | #define wxMenu_PrependItem(_swigobj,_swigarg0) (_swigobj->Prepend(_swigarg0)) |
8749 | static PyObject *_wrap_wxMenu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
8750 | PyObject * _resultobj; |
8751 | wxMenu * _arg0; | |
8752 | wxMenuItem * _arg1; | |
1d99702e RD |
8753 | PyObject * _argo0 = 0; |
8754 | PyObject * _argo1 = 0; | |
efc5f224 | 8755 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
8756 | |
8757 | self = self; | |
e9159fe8 | 8758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_PrependItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 8759 | return NULL; |
1d99702e RD |
8760 | if (_argo0) { |
8761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
e9159fe8 | 8763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependItem. Expected _wxMenu_p."); |
af309447 RD |
8764 | return NULL; |
8765 | } | |
8766 | } | |
1d99702e RD |
8767 | if (_argo1) { |
8768 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8769 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
e9159fe8 | 8770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_PrependItem. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8771 | return NULL; |
8772 | } | |
8773 | } | |
cf694132 | 8774 | { |
4268f798 | 8775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8776 | wxMenu_PrependItem(_arg0,_arg1); |
cf694132 | 8777 | |
4268f798 | 8778 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8779 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8780 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8781 | _resultobj = Py_None; |
8782 | return _resultobj; | |
8783 | } | |
8784 | ||
8785 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 8786 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8787 | PyObject * _resultobj; |
8788 | wxMenu * _arg0; | |
1d99702e | 8789 | PyObject * _argo0 = 0; |
efc5f224 | 8790 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8791 | |
8792 | self = self; | |
efc5f224 | 8793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 8794 | return NULL; |
1d99702e RD |
8795 | if (_argo0) { |
8796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
8799 | return NULL; | |
8800 | } | |
8801 | } | |
cf694132 | 8802 | { |
4268f798 | 8803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8804 | wxMenu_Break(_arg0); |
cf694132 | 8805 | |
4268f798 | 8806 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8807 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8808 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8809 | _resultobj = Py_None; |
8810 | return _resultobj; | |
8811 | } | |
8812 | ||
8813 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 8814 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8815 | PyObject * _resultobj; |
8816 | wxMenu * _arg0; | |
8817 | int _arg1; | |
8818 | bool _arg2; | |
1d99702e | 8819 | PyObject * _argo0 = 0; |
8ab979d7 | 8820 | int tempbool2; |
efc5f224 | 8821 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
8822 | |
8823 | self = self; | |
efc5f224 | 8824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 8825 | return NULL; |
1d99702e RD |
8826 | if (_argo0) { |
8827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
8830 | return NULL; | |
8831 | } | |
8832 | } | |
8833 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8834 | { |
4268f798 | 8835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8836 | wxMenu_Check(_arg0,_arg1,_arg2); |
cf694132 | 8837 | |
4268f798 | 8838 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8839 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8840 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8841 | _resultobj = Py_None; |
8842 | return _resultobj; | |
8843 | } | |
8844 | ||
b1462dfa RD |
8845 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8846 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8847 | PyObject * _resultobj; | |
8848 | bool _result; | |
8849 | wxMenu * _arg0; | |
8850 | int _arg1; | |
8851 | PyObject * _argo0 = 0; | |
8852 | char *_kwnames[] = { "self","id", NULL }; | |
8853 | ||
8854 | self = self; | |
8855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
8856 | return NULL; | |
8857 | if (_argo0) { | |
8858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
8861 | return NULL; | |
8862 | } | |
8863 | } | |
8864 | { | |
4268f798 | 8865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8866 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); |
b1462dfa | 8867 | |
4268f798 | 8868 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8869 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8870 | } _resultobj = Py_BuildValue("i",_result); |
8871 | return _resultobj; | |
8872 | } | |
8873 | ||
8ab979d7 | 8874 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 8875 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8876 | PyObject * _resultobj; |
8877 | wxMenu * _arg0; | |
8878 | int _arg1; | |
8879 | bool _arg2; | |
1d99702e | 8880 | PyObject * _argo0 = 0; |
8ab979d7 | 8881 | int tempbool2; |
efc5f224 | 8882 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
8883 | |
8884 | self = self; | |
efc5f224 | 8885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 8886 | return NULL; |
1d99702e RD |
8887 | if (_argo0) { |
8888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
8891 | return NULL; | |
8892 | } | |
8893 | } | |
8894 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8895 | { |
4268f798 | 8896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8897 | wxMenu_Enable(_arg0,_arg1,_arg2); |
cf694132 | 8898 | |
4268f798 | 8899 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8900 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8901 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8902 | _resultobj = Py_None; |
8903 | return _resultobj; | |
8904 | } | |
8905 | ||
b1462dfa RD |
8906 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8907 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8908 | PyObject * _resultobj; | |
8909 | bool _result; | |
8910 | wxMenu * _arg0; | |
8911 | int _arg1; | |
8912 | PyObject * _argo0 = 0; | |
8913 | char *_kwnames[] = { "self","id", NULL }; | |
8914 | ||
8915 | self = self; | |
8916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
8917 | return NULL; | |
8918 | if (_argo0) { | |
8919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
8922 | return NULL; | |
8923 | } | |
8924 | } | |
8925 | { | |
4268f798 | 8926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8927 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); |
b1462dfa | 8928 | |
4268f798 | 8929 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8930 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8931 | } _resultobj = Py_BuildValue("i",_result); |
8932 | return _resultobj; | |
8933 | } | |
8934 | ||
8ab979d7 | 8935 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 8936 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8937 | PyObject * _resultobj; |
8938 | int _result; | |
8939 | wxMenu * _arg0; | |
8940 | wxString * _arg1; | |
1d99702e | 8941 | PyObject * _argo0 = 0; |
8ab979d7 | 8942 | PyObject * _obj1 = 0; |
efc5f224 | 8943 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
8944 | |
8945 | self = self; | |
efc5f224 | 8946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8947 | return NULL; |
1d99702e RD |
8948 | if (_argo0) { |
8949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
8952 | return NULL; | |
8953 | } | |
8954 | } | |
8955 | { | |
c8bc7bb8 RD |
8956 | _arg1 = wxString_in_helper(_obj1); |
8957 | if (_arg1 == NULL) | |
185d7c3e | 8958 | return NULL; |
8ab979d7 | 8959 | } |
cf694132 | 8960 | { |
4268f798 | 8961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8962 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); |
cf694132 | 8963 | |
4268f798 | 8964 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8965 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8966 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8967 | { |
8968 | if (_obj1) | |
8969 | delete _arg1; | |
8970 | } | |
8971 | return _resultobj; | |
8972 | } | |
8973 | ||
b1462dfa RD |
8974 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
8975 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8976 | PyObject * _resultobj; | |
8977 | wxMenuItem * _result; | |
8978 | wxMenu * _arg0; | |
8979 | int _arg1; | |
8980 | PyObject * _argo0 = 0; | |
8981 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
8982 | |
8983 | self = self; | |
8984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8985 | return NULL; | |
8986 | if (_argo0) { | |
8987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
8990 | return NULL; | |
8991 | } | |
8992 | } | |
8993 | { | |
4268f798 | 8994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8995 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); |
b1462dfa | 8996 | |
4268f798 | 8997 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8998 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8999 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
9000 | return _resultobj; |
9001 | } | |
9002 | ||
8ab979d7 | 9003 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 9004 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9005 | PyObject * _resultobj; |
9006 | wxString * _result; | |
9007 | wxMenu * _arg0; | |
1d99702e | 9008 | PyObject * _argo0 = 0; |
efc5f224 | 9009 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9010 | |
9011 | self = self; | |
efc5f224 | 9012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 9013 | return NULL; |
1d99702e RD |
9014 | if (_argo0) { |
9015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
9017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
9018 | return NULL; | |
9019 | } | |
9020 | } | |
8ab979d7 | 9021 | { |
4268f798 | 9022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9023 | _result = new wxString (wxMenu_GetTitle(_arg0)); |
cf694132 | 9024 | |
4268f798 | 9025 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9026 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9027 | }{ |
c8bc7bb8 | 9028 | #if wxUSE_UNICODE |
7e50db3f | 9029 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9030 | #else |
eec92d76 | 9031 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9032 | #endif |
8ab979d7 RD |
9033 | } |
9034 | { | |
9035 | delete _result; | |
9036 | } | |
9037 | return _resultobj; | |
9038 | } | |
9039 | ||
9040 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 9041 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9042 | PyObject * _resultobj; |
9043 | wxMenu * _arg0; | |
9044 | wxString * _arg1; | |
1d99702e | 9045 | PyObject * _argo0 = 0; |
8ab979d7 | 9046 | PyObject * _obj1 = 0; |
efc5f224 | 9047 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
9048 | |
9049 | self = self; | |
efc5f224 | 9050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9051 | return NULL; |
1d99702e RD |
9052 | if (_argo0) { |
9053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
9055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
9056 | return NULL; | |
9057 | } | |
9058 | } | |
9059 | { | |
c8bc7bb8 RD |
9060 | _arg1 = wxString_in_helper(_obj1); |
9061 | if (_arg1 == NULL) | |
185d7c3e | 9062 | return NULL; |
8ab979d7 | 9063 | } |
cf694132 | 9064 | { |
4268f798 | 9065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9066 | wxMenu_SetTitle(_arg0,*_arg1); |
cf694132 | 9067 | |
4268f798 | 9068 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9069 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9070 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9071 | _resultobj = Py_None; |
9072 | { | |
9073 | if (_obj1) | |
9074 | delete _arg1; | |
9075 | } | |
9076 | return _resultobj; | |
9077 | } | |
9078 | ||
b1462dfa RD |
9079 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
9080 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9081 | PyObject * _resultobj; |
b1462dfa | 9082 | wxString * _result; |
8ab979d7 RD |
9083 | wxMenu * _arg0; |
9084 | int _arg1; | |
1d99702e | 9085 | PyObject * _argo0 = 0; |
efc5f224 | 9086 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9087 | |
9088 | self = self; | |
b1462dfa | 9089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9090 | return NULL; |
1d99702e RD |
9091 | if (_argo0) { |
9092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
9095 | return NULL; |
9096 | } | |
9097 | } | |
cf694132 | 9098 | { |
4268f798 | 9099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9100 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 | 9101 | |
4268f798 | 9102 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9103 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9104 | }{ |
c8bc7bb8 | 9105 | #if wxUSE_UNICODE |
7e50db3f | 9106 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9107 | #else |
eec92d76 | 9108 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9109 | #endif |
b1462dfa RD |
9110 | } |
9111 | { | |
9112 | delete _result; | |
9113 | } | |
8ab979d7 RD |
9114 | return _resultobj; |
9115 | } | |
9116 | ||
b1462dfa RD |
9117 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
9118 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9119 | PyObject * _resultobj; |
8ab979d7 RD |
9120 | wxMenu * _arg0; |
9121 | int _arg1; | |
b1462dfa | 9122 | wxString * _arg2; |
1d99702e | 9123 | PyObject * _argo0 = 0; |
b1462dfa RD |
9124 | PyObject * _obj2 = 0; |
9125 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
9126 | |
9127 | self = self; | |
b1462dfa | 9128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 9129 | return NULL; |
1d99702e RD |
9130 | if (_argo0) { |
9131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
9134 | return NULL; |
9135 | } | |
9136 | } | |
b1462dfa | 9137 | { |
c8bc7bb8 RD |
9138 | _arg2 = wxString_in_helper(_obj2); |
9139 | if (_arg2 == NULL) | |
185d7c3e | 9140 | return NULL; |
b1462dfa | 9141 | } |
8ab979d7 | 9142 | { |
4268f798 | 9143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9144 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 9145 | |
4268f798 | 9146 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9147 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9148 | } Py_INCREF(Py_None); |
9149 | _resultobj = Py_None; | |
8ab979d7 | 9150 | { |
b1462dfa RD |
9151 | if (_obj2) |
9152 | delete _arg2; | |
8ab979d7 RD |
9153 | } |
9154 | return _resultobj; | |
9155 | } | |
9156 | ||
b1462dfa RD |
9157 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
9158 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9159 | PyObject * _resultobj; |
9160 | wxString * _result; | |
9161 | wxMenu * _arg0; | |
9162 | int _arg1; | |
1d99702e | 9163 | PyObject * _argo0 = 0; |
efc5f224 | 9164 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9165 | |
9166 | self = self; | |
b1462dfa | 9167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9168 | return NULL; |
1d99702e RD |
9169 | if (_argo0) { |
9170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
9173 | return NULL; |
9174 | } | |
9175 | } | |
8ab979d7 | 9176 | { |
4268f798 | 9177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9178 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 | 9179 | |
4268f798 | 9180 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9181 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9182 | }{ |
c8bc7bb8 | 9183 | #if wxUSE_UNICODE |
7e50db3f | 9184 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9185 | #else |
eec92d76 | 9186 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9187 | #endif |
8ab979d7 RD |
9188 | } |
9189 | { | |
9190 | delete _result; | |
9191 | } | |
9192 | return _resultobj; | |
9193 | } | |
9194 | ||
9195 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 9196 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9197 | PyObject * _resultobj; |
9198 | wxMenu * _arg0; | |
9199 | int _arg1; | |
9200 | wxString * _arg2; | |
1d99702e | 9201 | PyObject * _argo0 = 0; |
8ab979d7 | 9202 | PyObject * _obj2 = 0; |
efc5f224 | 9203 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
9204 | |
9205 | self = self; | |
efc5f224 | 9206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 9207 | return NULL; |
1d99702e RD |
9208 | if (_argo0) { |
9209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
9211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
9212 | return NULL; | |
9213 | } | |
9214 | } | |
9215 | { | |
c8bc7bb8 RD |
9216 | _arg2 = wxString_in_helper(_obj2); |
9217 | if (_arg2 == NULL) | |
185d7c3e | 9218 | return NULL; |
8ab979d7 | 9219 | } |
cf694132 | 9220 | { |
4268f798 | 9221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9222 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); |
cf694132 | 9223 | |
4268f798 | 9224 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9225 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9226 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9227 | _resultobj = Py_None; |
9228 | { | |
9229 | if (_obj2) | |
9230 | delete _arg2; | |
9231 | } | |
9232 | return _resultobj; | |
9233 | } | |
9234 | ||
b1462dfa RD |
9235 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
9236 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9237 | PyObject * _resultobj; |
8ab979d7 | 9238 | wxMenu * _arg0; |
b1462dfa | 9239 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 9240 | PyObject * _argo0 = 0; |
b1462dfa RD |
9241 | PyObject * _argo1 = 0; |
9242 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
9243 | |
9244 | self = self; | |
b1462dfa | 9245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9246 | return NULL; |
1d99702e RD |
9247 | if (_argo0) { |
9248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
9250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
9251 | return NULL; | |
9252 | } | |
9253 | } | |
9254 | if (_argo1) { | |
9255 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9256 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
9257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
9258 | return NULL; |
9259 | } | |
9260 | } | |
cf694132 | 9261 | { |
4268f798 | 9262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9263 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 | 9264 | |
4268f798 | 9265 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9266 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9267 | } Py_INCREF(Py_None); |
9268 | _resultobj = Py_None; | |
8ab979d7 RD |
9269 | return _resultobj; |
9270 | } | |
9271 | ||
b1462dfa RD |
9272 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
9273 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9274 | PyObject * _resultobj; |
9275 | bool _result; | |
9276 | wxMenu * _arg0; | |
9277 | int _arg1; | |
1d99702e | 9278 | PyObject * _argo0 = 0; |
efc5f224 | 9279 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9280 | |
9281 | self = self; | |
b1462dfa | 9282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9283 | return NULL; |
1d99702e RD |
9284 | if (_argo0) { |
9285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
9288 | return NULL; |
9289 | } | |
9290 | } | |
cf694132 | 9291 | { |
4268f798 | 9292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9293 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 | 9294 | |
4268f798 | 9295 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9296 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9297 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9298 | return _resultobj; |
9299 | } | |
9300 | ||
b1462dfa RD |
9301 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
9302 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9303 | PyObject * _resultobj; |
b1462dfa | 9304 | bool _result; |
8ab979d7 | 9305 | wxMenu * _arg0; |
b1462dfa | 9306 | wxMenuItem * _arg1; |
1d99702e | 9307 | PyObject * _argo0 = 0; |
b1462dfa RD |
9308 | PyObject * _argo1 = 0; |
9309 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
9310 | |
9311 | self = self; | |
b1462dfa | 9312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9313 | return NULL; |
1d99702e RD |
9314 | if (_argo0) { |
9315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
9318 | return NULL; |
9319 | } | |
9320 | } | |
b1462dfa RD |
9321 | if (_argo1) { |
9322 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9323 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
9324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 9325 | return NULL; |
b1462dfa | 9326 | } |
8ab979d7 | 9327 | } |
cf694132 | 9328 | { |
4268f798 | 9329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9330 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 | 9331 | |
4268f798 | 9332 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9333 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9334 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9335 | return _resultobj; |
9336 | } | |
9337 | ||
b1462dfa RD |
9338 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
9339 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 9340 | PyObject * _resultobj; |
b1462dfa | 9341 | wxMenuItem * _result; |
efc5f224 | 9342 | wxMenu * _arg0; |
b1462dfa | 9343 | int _arg1; |
efc5f224 | 9344 | PyObject * _argo0 = 0; |
b1462dfa | 9345 | char *_kwnames[] = { "self","id", NULL }; |
efc5f224 RD |
9346 | |
9347 | self = self; | |
b1462dfa | 9348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
9349 | return NULL; |
9350 | if (_argo0) { | |
9351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
9354 | return NULL; |
9355 | } | |
9356 | } | |
9357 | { | |
4268f798 | 9358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9359 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 | 9360 | |
4268f798 | 9361 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9362 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9363 | }{ _resultobj = wxPyMake_wxObject(_result); } |
efc5f224 RD |
9364 | return _resultobj; |
9365 | } | |
9366 | ||
b1462dfa RD |
9367 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
9368 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9369 | PyObject * _resultobj; |
b1462dfa RD |
9370 | wxMenuItem * _result; |
9371 | wxMenu * _arg0; | |
9372 | wxMenuItem * _arg1; | |
9373 | PyObject * _argo0 = 0; | |
9374 | PyObject * _argo1 = 0; | |
9375 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
9376 | |
9377 | self = self; | |
b1462dfa RD |
9378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
9379 | return NULL; | |
9380 | if (_argo0) { | |
9381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
9384 | return NULL; | |
9385 | } | |
9386 | } | |
9387 | if (_argo1) { | |
9388 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9389 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
9390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 9391 | return NULL; |
b1462dfa RD |
9392 | } |
9393 | } | |
cf694132 | 9394 | { |
4268f798 | 9395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9396 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 | 9397 | |
4268f798 | 9398 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9399 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9400 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9401 | return _resultobj; |
9402 | } | |
9403 | ||
eb715945 | 9404 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 9405 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 9406 | PyObject * _resultobj; |
b1462dfa | 9407 | wxMenu * _arg0; |
1d99702e | 9408 | PyObject * _argo0 = 0; |
b1462dfa | 9409 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9410 | |
9411 | self = self; | |
b1462dfa | 9412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 9413 | return NULL; |
1d99702e RD |
9414 | if (_argo0) { |
9415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
9418 | return NULL; |
9419 | } | |
9420 | } | |
cf694132 | 9421 | { |
4268f798 | 9422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9423 | wxMenu_Destroy(_arg0); |
cf694132 | 9424 | |
4268f798 | 9425 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9426 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9427 | } Py_INCREF(Py_None); |
8ab979d7 | 9428 | _resultobj = Py_None; |
8ab979d7 RD |
9429 | return _resultobj; |
9430 | } | |
9431 | ||
b1462dfa RD |
9432 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
9433 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9434 | PyObject * _resultobj; |
b1462dfa RD |
9435 | bool _result; |
9436 | wxMenu * _arg0; | |
8ab979d7 | 9437 | int _arg1; |
1d99702e | 9438 | PyObject * _argo0 = 0; |
b1462dfa | 9439 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9440 | |
9441 | self = self; | |
b1462dfa | 9442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9443 | return NULL; |
1d99702e RD |
9444 | if (_argo0) { |
9445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
9448 | return NULL; |
9449 | } | |
9450 | } | |
cf694132 | 9451 | { |
4268f798 | 9452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9453 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 | 9454 | |
4268f798 | 9455 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9456 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9457 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9458 | return _resultobj; |
9459 | } | |
9460 | ||
b1462dfa RD |
9461 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
9462 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9463 | PyObject * _resultobj; |
b1462dfa RD |
9464 | bool _result; |
9465 | wxMenu * _arg0; | |
9466 | wxMenuItem * _arg1; | |
1d99702e | 9467 | PyObject * _argo0 = 0; |
b1462dfa RD |
9468 | PyObject * _argo1 = 0; |
9469 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
9470 | |
9471 | self = self; | |
b1462dfa | 9472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9473 | return NULL; |
1d99702e RD |
9474 | if (_argo0) { |
9475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
9478 | return NULL; | |
9479 | } | |
9480 | } | |
9481 | if (_argo1) { | |
9482 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9483 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
9484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
9485 | return NULL; |
9486 | } | |
9487 | } | |
cf694132 | 9488 | { |
4268f798 | 9489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9490 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 | 9491 | |
4268f798 | 9492 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9493 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9494 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9495 | return _resultobj; |
9496 | } | |
9497 | ||
b1462dfa RD |
9498 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
9499 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9500 | PyObject * _resultobj; |
b1462dfa RD |
9501 | size_t _result; |
9502 | wxMenu * _arg0; | |
1d99702e | 9503 | PyObject * _argo0 = 0; |
b1462dfa | 9504 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9505 | |
9506 | self = self; | |
b1462dfa | 9507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 9508 | return NULL; |
1d99702e RD |
9509 | if (_argo0) { |
9510 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9511 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
9513 | return NULL; |
9514 | } | |
9515 | } | |
cf694132 | 9516 | { |
4268f798 | 9517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9518 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 | 9519 | |
4268f798 | 9520 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9521 | if (PyErr_Occurred()) return NULL; |
2abc0a0f | 9522 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9523 | return _resultobj; |
9524 | } | |
9525 | ||
b1462dfa RD |
9526 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
9527 | wxMenuItemList& list = self->GetMenuItems(); | |
9528 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
9529 | } | |
9530 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9531 | PyObject * _resultobj; |
b1462dfa RD |
9532 | PyObject * _result; |
9533 | wxMenu * _arg0; | |
1d99702e | 9534 | PyObject * _argo0 = 0; |
b1462dfa | 9535 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9536 | |
9537 | self = self; | |
b1462dfa | 9538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 9539 | return NULL; |
1d99702e RD |
9540 | if (_argo0) { |
9541 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9542 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
9544 | return NULL; |
9545 | } | |
9546 | } | |
cf694132 | 9547 | { |
4268f798 | 9548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9549 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 | 9550 | |
4268f798 | 9551 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9552 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9553 | }{ |
9554 | _resultobj = _result; | |
9555 | } | |
8ab979d7 RD |
9556 | return _resultobj; |
9557 | } | |
9558 | ||
b1462dfa RD |
9559 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
9560 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9561 | PyObject * _resultobj; |
b1462dfa RD |
9562 | wxMenu * _arg0; |
9563 | wxEvtHandler * _arg1; | |
1d99702e | 9564 | PyObject * _argo0 = 0; |
b1462dfa RD |
9565 | PyObject * _argo1 = 0; |
9566 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
9567 | |
9568 | self = self; | |
b1462dfa | 9569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9570 | return NULL; |
1d99702e RD |
9571 | if (_argo0) { |
9572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
9575 | return NULL; |
9576 | } | |
9577 | } | |
b1462dfa RD |
9578 | if (_argo1) { |
9579 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9580 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
9581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 9582 | return NULL; |
b1462dfa | 9583 | } |
8ab979d7 | 9584 | } |
cf694132 | 9585 | { |
4268f798 | 9586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9587 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 | 9588 | |
4268f798 | 9589 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9590 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9591 | } Py_INCREF(Py_None); |
9592 | _resultobj = Py_None; | |
8ab979d7 RD |
9593 | return _resultobj; |
9594 | } | |
9595 | ||
b1462dfa RD |
9596 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
9597 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9598 | PyObject * _resultobj; |
b1462dfa RD |
9599 | wxEvtHandler * _result; |
9600 | wxMenu * _arg0; | |
1d99702e | 9601 | PyObject * _argo0 = 0; |
b1462dfa | 9602 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9603 | |
9604 | self = self; | |
b1462dfa | 9605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 9606 | return NULL; |
1d99702e RD |
9607 | if (_argo0) { |
9608 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9609 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
9611 | return NULL; |
9612 | } | |
9613 | } | |
cf694132 | 9614 | { |
4268f798 | 9615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9616 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 | 9617 | |
4268f798 | 9618 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9619 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9620 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9621 | return _resultobj; |
9622 | } | |
9623 | ||
b1462dfa RD |
9624 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
9625 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 9626 | PyObject * _resultobj; |
b1462dfa RD |
9627 | wxMenu * _arg0; |
9628 | wxWindow * _arg1; | |
2f90df85 | 9629 | PyObject * _argo0 = 0; |
b1462dfa RD |
9630 | PyObject * _argo1 = 0; |
9631 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
9632 | |
9633 | self = self; | |
b1462dfa | 9634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
9635 | return NULL; |
9636 | if (_argo0) { | |
9637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
9640 | return NULL; |
9641 | } | |
9642 | } | |
b1462dfa RD |
9643 | if (_argo1) { |
9644 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9645 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 9647 | return NULL; |
b1462dfa | 9648 | } |
2f90df85 | 9649 | } |
2f90df85 | 9650 | { |
4268f798 | 9651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9652 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 | 9653 | |
4268f798 | 9654 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9655 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
9656 | } Py_INCREF(Py_None); |
9657 | _resultobj = Py_None; | |
2f90df85 RD |
9658 | return _resultobj; |
9659 | } | |
9660 | ||
b1462dfa RD |
9661 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
9662 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9663 | PyObject * _resultobj; |
b1462dfa RD |
9664 | wxWindow * _result; |
9665 | wxMenu * _arg0; | |
1d99702e | 9666 | PyObject * _argo0 = 0; |
b1462dfa | 9667 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9668 | |
9669 | self = self; | |
b1462dfa | 9670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 9671 | return NULL; |
1d99702e RD |
9672 | if (_argo0) { |
9673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
9676 | return NULL; |
9677 | } | |
9678 | } | |
cf694132 | 9679 | { |
4268f798 | 9680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9681 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 | 9682 | |
4268f798 | 9683 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9684 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9685 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9686 | return _resultobj; |
9687 | } | |
9688 | ||
b1462dfa RD |
9689 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
9690 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9691 | PyObject * _resultobj; |
b1462dfa RD |
9692 | long _result; |
9693 | wxMenu * _arg0; | |
1d99702e | 9694 | PyObject * _argo0 = 0; |
b1462dfa | 9695 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9696 | |
9697 | self = self; | |
b1462dfa | 9698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 9699 | return NULL; |
1d99702e RD |
9700 | if (_argo0) { |
9701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
9704 | return NULL; |
9705 | } | |
9706 | } | |
8ab979d7 | 9707 | { |
4268f798 | 9708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9709 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 | 9710 | |
4268f798 | 9711 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9712 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9713 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9714 | return _resultobj; |
9715 | } | |
9716 | ||
b1462dfa RD |
9717 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
9718 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9719 | PyObject * _resultobj; |
b1462dfa RD |
9720 | bool _result; |
9721 | wxMenu * _arg0; | |
1d99702e | 9722 | PyObject * _argo0 = 0; |
b1462dfa | 9723 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9724 | |
9725 | self = self; | |
b1462dfa | 9726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 9727 | return NULL; |
1d99702e RD |
9728 | if (_argo0) { |
9729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
9732 | return NULL; |
9733 | } | |
9734 | } | |
8ab979d7 | 9735 | { |
4268f798 | 9736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9737 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 | 9738 | |
4268f798 | 9739 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9740 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9741 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9742 | return _resultobj; |
9743 | } | |
9744 | ||
b1462dfa RD |
9745 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
9746 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9747 | PyObject * _resultobj; |
b1462dfa RD |
9748 | wxMenu * _arg0; |
9749 | wxMenu * _arg1; | |
1d99702e | 9750 | PyObject * _argo0 = 0; |
b1462dfa RD |
9751 | PyObject * _argo1 = 0; |
9752 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
9753 | |
9754 | self = self; | |
b1462dfa | 9755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9756 | return NULL; |
1d99702e RD |
9757 | if (_argo0) { |
9758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
9761 | return NULL; |
9762 | } | |
9763 | } | |
b1462dfa RD |
9764 | if (_argo1) { |
9765 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9766 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 9768 | return NULL; |
b1462dfa | 9769 | } |
8ab979d7 | 9770 | } |
cf694132 | 9771 | { |
4268f798 | 9772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9773 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 | 9774 | |
4268f798 | 9775 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9776 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9777 | } Py_INCREF(Py_None); |
8ab979d7 | 9778 | _resultobj = Py_None; |
8ab979d7 RD |
9779 | return _resultobj; |
9780 | } | |
9781 | ||
b1462dfa RD |
9782 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
9783 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9784 | PyObject * _resultobj; |
b1462dfa RD |
9785 | wxMenu * _result; |
9786 | wxMenu * _arg0; | |
1d99702e | 9787 | PyObject * _argo0 = 0; |
b1462dfa | 9788 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9789 | |
9790 | self = self; | |
b1462dfa | 9791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 9792 | return NULL; |
1d99702e RD |
9793 | if (_argo0) { |
9794 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9795 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
9797 | return NULL; |
9798 | } | |
9799 | } | |
8ab979d7 | 9800 | { |
4268f798 | 9801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9802 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 | 9803 | |
4268f798 | 9804 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9805 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9806 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 9807 | return _resultobj; |
8ab979d7 | 9808 | } |
b1462dfa RD |
9809 | |
9810 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
9811 | wxMenuBar *src; | |
9812 | wxWindow *dest; | |
9813 | src = (wxMenuBar *) ptr; | |
9814 | dest = (wxWindow *) src; | |
9815 | return (void *) dest; | |
9816 | } | |
9817 | ||
9818 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
9819 | wxMenuBar *src; | |
9820 | wxEvtHandler *dest; | |
9821 | src = (wxMenuBar *) ptr; | |
9822 | dest = (wxEvtHandler *) src; | |
9823 | return (void *) dest; | |
8ab979d7 | 9824 | } |
b1462dfa | 9825 | |
9416aa89 RD |
9826 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
9827 | wxMenuBar *src; | |
9828 | wxObject *dest; | |
9829 | src = (wxMenuBar *) ptr; | |
9830 | dest = (wxObject *) src; | |
9831 | return (void *) dest; | |
9832 | } | |
9833 | ||
c368d904 | 9834 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
9835 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9836 | PyObject * _resultobj; | |
9837 | wxMenuBar * _result; | |
c368d904 RD |
9838 | long _arg0 = (long ) 0; |
9839 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
9840 | char _ptemp[128]; |
9841 | ||
9842 | self = self; | |
c368d904 | 9843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
9844 | return NULL; |
9845 | { | |
4268f798 | 9846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9847 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa | 9848 | |
4268f798 | 9849 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9850 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9851 | } if (_result) { |
9852 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
9853 | _resultobj = Py_BuildValue("s",_ptemp); | |
9854 | } else { | |
9855 | Py_INCREF(Py_None); | |
9856 | _resultobj = Py_None; | |
9857 | } | |
8ab979d7 RD |
9858 | return _resultobj; |
9859 | } | |
9860 | ||
b1462dfa RD |
9861 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
9862 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9863 | PyObject * _resultobj; |
b1462dfa | 9864 | bool _result; |
8ab979d7 | 9865 | wxMenuBar * _arg0; |
b1462dfa | 9866 | wxMenu * _arg1; |
8ab979d7 | 9867 | wxString * _arg2; |
1d99702e | 9868 | PyObject * _argo0 = 0; |
b1462dfa | 9869 | PyObject * _argo1 = 0; |
8ab979d7 | 9870 | PyObject * _obj2 = 0; |
b1462dfa | 9871 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
9872 | |
9873 | self = self; | |
b1462dfa | 9874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 9875 | return NULL; |
1d99702e RD |
9876 | if (_argo0) { |
9877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
9879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
9880 | return NULL; | |
9881 | } | |
9882 | } | |
9883 | if (_argo1) { | |
9884 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9885 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
9887 | return NULL; |
9888 | } | |
9889 | } | |
9890 | { | |
c8bc7bb8 RD |
9891 | _arg2 = wxString_in_helper(_obj2); |
9892 | if (_arg2 == NULL) | |
185d7c3e | 9893 | return NULL; |
8ab979d7 | 9894 | } |
cf694132 | 9895 | { |
4268f798 | 9896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9897 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 | 9898 | |
4268f798 | 9899 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9900 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9901 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9902 | { |
9903 | if (_obj2) | |
9904 | delete _arg2; | |
9905 | } | |
9906 | return _resultobj; | |
9907 | } | |
9908 | ||
b1462dfa RD |
9909 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
9910 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9911 | PyObject * _resultobj; |
b1462dfa | 9912 | bool _result; |
8ab979d7 | 9913 | wxMenuBar * _arg0; |
b1462dfa RD |
9914 | size_t _arg1; |
9915 | wxMenu * _arg2; | |
9916 | wxString * _arg3; | |
1d99702e | 9917 | PyObject * _argo0 = 0; |
b1462dfa RD |
9918 | PyObject * _argo2 = 0; |
9919 | PyObject * _obj3 = 0; | |
9920 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
9921 | |
9922 | self = self; | |
b1462dfa | 9923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 9924 | return NULL; |
1d99702e RD |
9925 | if (_argo0) { |
9926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
9928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
9929 | return NULL; | |
9930 | } | |
9931 | } | |
9932 | if (_argo2) { | |
9933 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9934 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
9935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
9936 | return NULL; |
9937 | } | |
9938 | } | |
b1462dfa | 9939 | { |
c8bc7bb8 RD |
9940 | _arg3 = wxString_in_helper(_obj3); |
9941 | if (_arg3 == NULL) | |
185d7c3e | 9942 | return NULL; |
b1462dfa | 9943 | } |
cf694132 | 9944 | { |
4268f798 | 9945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9946 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 9947 | |
4268f798 | 9948 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9949 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9950 | } _resultobj = Py_BuildValue("i",_result); |
b1462dfa RD |
9951 | { |
9952 | if (_obj3) | |
9953 | delete _arg3; | |
9954 | } | |
8ab979d7 RD |
9955 | return _resultobj; |
9956 | } | |
9957 | ||
b1462dfa RD |
9958 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
9959 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9960 | PyObject * _resultobj; |
b1462dfa | 9961 | size_t _result; |
8ab979d7 | 9962 | wxMenuBar * _arg0; |
1d99702e | 9963 | PyObject * _argo0 = 0; |
b1462dfa | 9964 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9965 | |
9966 | self = self; | |
b1462dfa | 9967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 9968 | return NULL; |
1d99702e RD |
9969 | if (_argo0) { |
9970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 9972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
9973 | return NULL; |
9974 | } | |
9975 | } | |
cf694132 | 9976 | { |
4268f798 | 9977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9978 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 | 9979 | |
4268f798 | 9980 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9981 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9982 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9983 | return _resultobj; |
9984 | } | |
9985 | ||
b1462dfa RD |
9986 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
9987 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 9988 | PyObject * _resultobj; |
b1462dfa | 9989 | wxMenu * _result; |
06c0fba4 | 9990 | wxMenuBar * _arg0; |
b1462dfa | 9991 | size_t _arg1; |
06c0fba4 | 9992 | PyObject * _argo0 = 0; |
b1462dfa | 9993 | char *_kwnames[] = { "self","pos", NULL }; |
06c0fba4 RD |
9994 | |
9995 | self = self; | |
b1462dfa | 9996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
9997 | return NULL; |
9998 | if (_argo0) { | |
9999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 10001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
10002 | return NULL; |
10003 | } | |
10004 | } | |
10005 | { | |
4268f798 | 10006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10007 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 | 10008 | |
4268f798 | 10009 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10010 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 10011 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
10012 | return _resultobj; |
10013 | } | |
10014 | ||
2abc0a0f RD |
10015 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
10016 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10017 | PyObject * _resultobj; | |
10018 | wxMenu * _result; | |
10019 | wxMenuBar * _arg0; | |
10020 | size_t _arg1; | |
10021 | wxMenu * _arg2; | |
10022 | wxString * _arg3; | |
10023 | PyObject * _argo0 = 0; | |
10024 | PyObject * _argo2 = 0; | |
10025 | PyObject * _obj3 = 0; | |
10026 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
2abc0a0f RD |
10027 | |
10028 | self = self; | |
10029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
10030 | return NULL; | |
10031 | if (_argo0) { | |
10032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
10035 | return NULL; | |
10036 | } | |
10037 | } | |
10038 | if (_argo2) { | |
10039 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10040 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
10041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
10042 | return NULL; | |
10043 | } | |
10044 | } | |
10045 | { | |
c8bc7bb8 RD |
10046 | _arg3 = wxString_in_helper(_obj3); |
10047 | if (_arg3 == NULL) | |
185d7c3e | 10048 | return NULL; |
2abc0a0f RD |
10049 | } |
10050 | { | |
4268f798 | 10051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10052 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); |
2abc0a0f | 10053 | |
4268f798 | 10054 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10055 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 10056 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
10057 | { |
10058 | if (_obj3) | |
10059 | delete _arg3; | |
10060 | } | |
10061 | return _resultobj; | |
10062 | } | |
10063 | ||
10064 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
10065 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10066 | PyObject * _resultobj; | |
10067 | wxMenu * _result; | |
10068 | wxMenuBar * _arg0; | |
10069 | size_t _arg1; | |
10070 | PyObject * _argo0 = 0; | |
10071 | char *_kwnames[] = { "self","pos", NULL }; | |
2abc0a0f RD |
10072 | |
10073 | self = self; | |
10074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
10075 | return NULL; | |
10076 | if (_argo0) { | |
10077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
10080 | return NULL; | |
10081 | } | |
10082 | } | |
10083 | { | |
4268f798 | 10084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10085 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); |
2abc0a0f | 10086 | |
4268f798 | 10087 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10088 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 10089 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
10090 | return _resultobj; |
10091 | } | |
10092 | ||
b1462dfa RD |
10093 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
10094 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10095 | PyObject * _resultobj; |
b1462dfa RD |
10096 | wxMenuBar * _arg0; |
10097 | size_t _arg1; | |
10098 | bool _arg2; | |
10099 | PyObject * _argo0 = 0; | |
10100 | int tempbool2; | |
10101 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
10102 | ||
10103 | self = self; | |
10104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
10105 | return NULL; | |
10106 | if (_argo0) { | |
10107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
10110 | return NULL; | |
10111 | } | |
10112 | } | |
10113 | _arg2 = (bool ) tempbool2; | |
10114 | { | |
4268f798 | 10115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10116 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); |
b1462dfa | 10117 | |
4268f798 | 10118 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10119 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10120 | } Py_INCREF(Py_None); |
10121 | _resultobj = Py_None; | |
10122 | return _resultobj; | |
10123 | } | |
10124 | ||
7e50db3f RD |
10125 | #define wxMenuBar_IsEnabledTop(_swigobj,_swigarg0) (_swigobj->IsEnabledTop(_swigarg0)) |
10126 | static PyObject *_wrap_wxMenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10127 | PyObject * _resultobj; | |
10128 | bool _result; | |
10129 | wxMenuBar * _arg0; | |
10130 | size_t _arg1; | |
10131 | PyObject * _argo0 = 0; | |
10132 | char *_kwnames[] = { "self","pos", NULL }; | |
10133 | ||
10134 | self = self; | |
10135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabledTop",_kwnames,&_argo0,&_arg1)) | |
10136 | return NULL; | |
10137 | if (_argo0) { | |
10138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabledTop. Expected _wxMenuBar_p."); | |
10141 | return NULL; | |
10142 | } | |
10143 | } | |
10144 | { | |
10145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10146 | _result = (bool )wxMenuBar_IsEnabledTop(_arg0,_arg1); | |
10147 | ||
10148 | wxPyEndAllowThreads(__tstate); | |
10149 | if (PyErr_Occurred()) return NULL; | |
10150 | } _resultobj = Py_BuildValue("i",_result); | |
10151 | return _resultobj; | |
10152 | } | |
10153 | ||
b1462dfa RD |
10154 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) |
10155 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10156 | PyObject * _resultobj; | |
10157 | wxMenuBar * _arg0; | |
10158 | size_t _arg1; | |
10159 | wxString * _arg2; | |
1d99702e | 10160 | PyObject * _argo0 = 0; |
cf694132 | 10161 | PyObject * _obj2 = 0; |
b1462dfa | 10162 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
10163 | |
10164 | self = self; | |
b1462dfa | 10165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 10166 | return NULL; |
1d99702e RD |
10167 | if (_argo0) { |
10168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
10171 | return NULL; |
10172 | } | |
10173 | } | |
cf694132 | 10174 | { |
c8bc7bb8 RD |
10175 | _arg2 = wxString_in_helper(_obj2); |
10176 | if (_arg2 == NULL) | |
185d7c3e | 10177 | return NULL; |
cf694132 | 10178 | } |
cf694132 | 10179 | { |
4268f798 | 10180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10181 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); |
b1462dfa | 10182 | |
4268f798 | 10183 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10184 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10185 | } Py_INCREF(Py_None); |
10186 | _resultobj = Py_None; | |
10187 | { | |
10188 | if (_obj2) | |
10189 | delete _arg2; | |
10190 | } | |
10191 | return _resultobj; | |
10192 | } | |
10193 | ||
10194 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
10195 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10196 | PyObject * _resultobj; | |
10197 | wxString * _result; | |
10198 | wxMenuBar * _arg0; | |
10199 | size_t _arg1; | |
10200 | PyObject * _argo0 = 0; | |
10201 | char *_kwnames[] = { "self","pos", NULL }; | |
10202 | ||
10203 | self = self; | |
10204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
10205 | return NULL; | |
10206 | if (_argo0) { | |
10207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
10210 | return NULL; | |
10211 | } | |
10212 | } | |
10213 | { | |
4268f798 | 10214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10215 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); |
b1462dfa | 10216 | |
4268f798 | 10217 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10218 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10219 | }{ |
c8bc7bb8 | 10220 | #if wxUSE_UNICODE |
7e50db3f | 10221 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10222 | #else |
eec92d76 | 10223 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10224 | #endif |
b1462dfa RD |
10225 | } |
10226 | { | |
10227 | delete _result; | |
10228 | } | |
10229 | return _resultobj; | |
10230 | } | |
10231 | ||
3a0958b1 RD |
10232 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) |
10233 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10234 | PyObject * _resultobj; | |
10235 | int _result; | |
10236 | wxMenuBar * _arg0; | |
10237 | wxString * _arg1; | |
10238 | PyObject * _argo0 = 0; | |
10239 | PyObject * _obj1 = 0; | |
10240 | char *_kwnames[] = { "self","title", NULL }; | |
10241 | ||
10242 | self = self; | |
10243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) | |
10244 | return NULL; | |
10245 | if (_argo0) { | |
10246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); | |
10249 | return NULL; | |
10250 | } | |
10251 | } | |
10252 | { | |
c8bc7bb8 RD |
10253 | _arg1 = wxString_in_helper(_obj1); |
10254 | if (_arg1 == NULL) | |
3a0958b1 | 10255 | return NULL; |
3a0958b1 RD |
10256 | } |
10257 | { | |
4268f798 | 10258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10259 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); |
3a0958b1 | 10260 | |
4268f798 | 10261 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
10262 | if (PyErr_Occurred()) return NULL; |
10263 | } _resultobj = Py_BuildValue("i",_result); | |
10264 | { | |
10265 | if (_obj1) | |
10266 | delete _arg1; | |
10267 | } | |
10268 | return _resultobj; | |
10269 | } | |
10270 | ||
b1462dfa RD |
10271 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) |
10272 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10273 | PyObject * _resultobj; | |
10274 | int _result; | |
10275 | wxMenuBar * _arg0; | |
10276 | wxString * _arg1; | |
10277 | wxString * _arg2; | |
10278 | PyObject * _argo0 = 0; | |
10279 | PyObject * _obj1 = 0; | |
10280 | PyObject * _obj2 = 0; | |
10281 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
10282 | ||
10283 | self = self; | |
10284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
10285 | return NULL; | |
10286 | if (_argo0) { | |
10287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
10290 | return NULL; | |
10291 | } | |
10292 | } | |
10293 | { | |
c8bc7bb8 RD |
10294 | _arg1 = wxString_in_helper(_obj1); |
10295 | if (_arg1 == NULL) | |
185d7c3e | 10296 | return NULL; |
cf694132 | 10297 | } |
b1462dfa | 10298 | { |
c8bc7bb8 RD |
10299 | _arg2 = wxString_in_helper(_obj2); |
10300 | if (_arg2 == NULL) | |
b1462dfa | 10301 | return NULL; |
b1462dfa RD |
10302 | } |
10303 | { | |
4268f798 | 10304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10305 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); |
b1462dfa | 10306 | |
4268f798 | 10307 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10308 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10309 | } _resultobj = Py_BuildValue("i",_result); |
10310 | { | |
10311 | if (_obj1) | |
10312 | delete _arg1; | |
10313 | } | |
10314 | { | |
10315 | if (_obj2) | |
10316 | delete _arg2; | |
10317 | } | |
10318 | return _resultobj; | |
10319 | } | |
10320 | ||
10321 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
10322 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10323 | PyObject * _resultobj; | |
10324 | wxMenuItem * _result; | |
10325 | wxMenuBar * _arg0; | |
10326 | int _arg1; | |
10327 | PyObject * _argo0 = 0; | |
10328 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
10329 | |
10330 | self = self; | |
10331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
10332 | return NULL; | |
10333 | if (_argo0) { | |
10334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
10337 | return NULL; |
10338 | } | |
10339 | } | |
10340 | { | |
4268f798 | 10341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10342 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 | 10343 | |
4268f798 | 10344 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10345 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 10346 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 10347 | return _resultobj; |
cf694132 | 10348 | } |
b1462dfa RD |
10349 | |
10350 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
10351 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10352 | PyObject * _resultobj; | |
10353 | wxMenuBar * _arg0; | |
10354 | int _arg1; | |
10355 | bool _arg2; | |
10356 | PyObject * _argo0 = 0; | |
10357 | int tempbool2; | |
10358 | char *_kwnames[] = { "self","id","enable", NULL }; | |
10359 | ||
10360 | self = self; | |
10361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
10362 | return NULL; | |
10363 | if (_argo0) { | |
10364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
10367 | return NULL; | |
10368 | } | |
10369 | } | |
10370 | _arg2 = (bool ) tempbool2; | |
cf694132 | 10371 | { |
4268f798 | 10372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10373 | wxMenuBar_Enable(_arg0,_arg1,_arg2); |
b1462dfa | 10374 | |
4268f798 | 10375 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10376 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10377 | } Py_INCREF(Py_None); |
10378 | _resultobj = Py_None; | |
10379 | return _resultobj; | |
cf694132 | 10380 | } |
b1462dfa RD |
10381 | |
10382 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
10383 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10384 | PyObject * _resultobj; | |
10385 | wxMenuBar * _arg0; | |
10386 | int _arg1; | |
10387 | bool _arg2; | |
10388 | PyObject * _argo0 = 0; | |
10389 | int tempbool2; | |
10390 | char *_kwnames[] = { "self","id","check", NULL }; | |
10391 | ||
10392 | self = self; | |
10393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
10394 | return NULL; | |
10395 | if (_argo0) { | |
10396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
10399 | return NULL; | |
10400 | } | |
10401 | } | |
10402 | _arg2 = (bool ) tempbool2; | |
10403 | { | |
4268f798 | 10404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10405 | wxMenuBar_Check(_arg0,_arg1,_arg2); |
b1462dfa | 10406 | |
4268f798 | 10407 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10408 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10409 | } Py_INCREF(Py_None); |
10410 | _resultobj = Py_None; | |
cf694132 RD |
10411 | return _resultobj; |
10412 | } | |
10413 | ||
b1462dfa RD |
10414 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
10415 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10416 | PyObject * _resultobj; |
10417 | bool _result; | |
b1462dfa RD |
10418 | wxMenuBar * _arg0; |
10419 | int _arg1; | |
1d99702e | 10420 | PyObject * _argo0 = 0; |
b1462dfa | 10421 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10422 | |
10423 | self = self; | |
b1462dfa | 10424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10425 | return NULL; |
1d99702e RD |
10426 | if (_argo0) { |
10427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10430 | return NULL; |
10431 | } | |
10432 | } | |
cf694132 | 10433 | { |
4268f798 | 10434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10435 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 | 10436 | |
4268f798 | 10437 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10438 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10439 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10440 | return _resultobj; |
10441 | } | |
10442 | ||
b1462dfa RD |
10443 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
10444 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10445 | PyObject * _resultobj; |
10446 | bool _result; | |
b1462dfa RD |
10447 | wxMenuBar * _arg0; |
10448 | int _arg1; | |
1d99702e | 10449 | PyObject * _argo0 = 0; |
b1462dfa | 10450 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10451 | |
10452 | self = self; | |
b1462dfa | 10453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10454 | return NULL; |
1d99702e RD |
10455 | if (_argo0) { |
10456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10459 | return NULL; |
10460 | } | |
10461 | } | |
cf694132 | 10462 | { |
4268f798 | 10463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10464 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 | 10465 | |
4268f798 | 10466 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10467 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10468 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10469 | return _resultobj; |
10470 | } | |
10471 | ||
b1462dfa RD |
10472 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
10473 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10474 | PyObject * _resultobj; |
b1462dfa RD |
10475 | wxMenuBar * _arg0; |
10476 | int _arg1; | |
10477 | wxString * _arg2; | |
1d99702e | 10478 | PyObject * _argo0 = 0; |
b1462dfa RD |
10479 | PyObject * _obj2 = 0; |
10480 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
10481 | |
10482 | self = self; | |
b1462dfa | 10483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 10484 | return NULL; |
1d99702e RD |
10485 | if (_argo0) { |
10486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10489 | return NULL; |
10490 | } | |
10491 | } | |
b1462dfa | 10492 | { |
c8bc7bb8 RD |
10493 | _arg2 = wxString_in_helper(_obj2); |
10494 | if (_arg2 == NULL) | |
b1462dfa | 10495 | return NULL; |
b1462dfa | 10496 | } |
cf694132 | 10497 | { |
4268f798 | 10498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10499 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 10500 | |
4268f798 | 10501 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10502 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10503 | } Py_INCREF(Py_None); |
10504 | _resultobj = Py_None; | |
10505 | { | |
10506 | if (_obj2) | |
10507 | delete _arg2; | |
10508 | } | |
8ab979d7 RD |
10509 | return _resultobj; |
10510 | } | |
10511 | ||
b1462dfa RD |
10512 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
10513 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10514 | PyObject * _resultobj; |
b1462dfa RD |
10515 | wxString * _result; |
10516 | wxMenuBar * _arg0; | |
10517 | int _arg1; | |
1d99702e | 10518 | PyObject * _argo0 = 0; |
b1462dfa | 10519 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10520 | |
10521 | self = self; | |
b1462dfa | 10522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10523 | return NULL; |
1d99702e RD |
10524 | if (_argo0) { |
10525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
10528 | return NULL; | |
10529 | } | |
10530 | } | |
10531 | { | |
4268f798 | 10532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10533 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); |
b1462dfa | 10534 | |
4268f798 | 10535 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10536 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10537 | }{ |
c8bc7bb8 | 10538 | #if wxUSE_UNICODE |
7e50db3f | 10539 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10540 | #else |
eec92d76 | 10541 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10542 | #endif |
b1462dfa RD |
10543 | } |
10544 | { | |
10545 | delete _result; | |
10546 | } | |
10547 | return _resultobj; | |
10548 | } | |
10549 | ||
10550 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
10551 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10552 | PyObject * _resultobj; | |
10553 | wxMenuBar * _arg0; | |
10554 | int _arg1; | |
10555 | wxString * _arg2; | |
10556 | PyObject * _argo0 = 0; | |
10557 | PyObject * _obj2 = 0; | |
10558 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
10559 | ||
10560 | self = self; | |
10561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
10562 | return NULL; | |
10563 | if (_argo0) { | |
10564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
10567 | return NULL; | |
10568 | } | |
10569 | } | |
10570 | { | |
c8bc7bb8 RD |
10571 | _arg2 = wxString_in_helper(_obj2); |
10572 | if (_arg2 == NULL) | |
b1462dfa | 10573 | return NULL; |
b1462dfa RD |
10574 | } |
10575 | { | |
4268f798 | 10576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10577 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); |
b1462dfa | 10578 | |
4268f798 | 10579 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10580 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10581 | } Py_INCREF(Py_None); |
10582 | _resultobj = Py_None; | |
10583 | { | |
10584 | if (_obj2) | |
10585 | delete _arg2; | |
10586 | } | |
10587 | return _resultobj; | |
10588 | } | |
10589 | ||
10590 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
10591 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10592 | PyObject * _resultobj; | |
10593 | wxString * _result; | |
10594 | wxMenuBar * _arg0; | |
10595 | int _arg1; | |
10596 | PyObject * _argo0 = 0; | |
10597 | char *_kwnames[] = { "self","id", NULL }; | |
10598 | ||
10599 | self = self; | |
10600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
10601 | return NULL; | |
10602 | if (_argo0) { | |
10603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10606 | return NULL; |
10607 | } | |
10608 | } | |
cf694132 | 10609 | { |
4268f798 | 10610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10611 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 | 10612 | |
4268f798 | 10613 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10614 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10615 | }{ |
c8bc7bb8 | 10616 | #if wxUSE_UNICODE |
7e50db3f | 10617 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10618 | #else |
eec92d76 | 10619 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10620 | #endif |
b1462dfa RD |
10621 | } |
10622 | { | |
10623 | delete _result; | |
10624 | } | |
8ab979d7 RD |
10625 | return _resultobj; |
10626 | } | |
10627 | ||
9416aa89 RD |
10628 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
10629 | wxMenuItem *src; | |
10630 | wxObject *dest; | |
10631 | src = (wxMenuItem *) ptr; | |
10632 | dest = (wxObject *) src; | |
10633 | return (void *) dest; | |
10634 | } | |
10635 | ||
b1462dfa RD |
10636 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
10637 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10638 | PyObject * _resultobj; |
b1462dfa RD |
10639 | wxMenuItem * _result; |
10640 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 10641 | int _arg1 = (int ) wxID_SEPARATOR; |
137b5242 RD |
10642 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
10643 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
546bfbea | 10644 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
b1462dfa | 10645 | wxMenu * _arg5 = (wxMenu *) NULL; |
1d99702e | 10646 | PyObject * _argo0 = 0; |
b1462dfa RD |
10647 | PyObject * _obj2 = 0; |
10648 | PyObject * _obj3 = 0; | |
b1462dfa | 10649 | PyObject * _argo5 = 0; |
e9159fe8 | 10650 | char *_kwnames[] = { "parentMenu","id","text","help","kind","subMenu", NULL }; |
b1462dfa | 10651 | char _ptemp[128]; |
8ab979d7 RD |
10652 | |
10653 | self = self; | |
e9159fe8 | 10654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5)) |
8ab979d7 | 10655 | return NULL; |
1d99702e RD |
10656 | if (_argo0) { |
10657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
10659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
10660 | return NULL; | |
10661 | } | |
10662 | } | |
10663 | if (_obj2) | |
10664 | { | |
c8bc7bb8 RD |
10665 | _arg2 = wxString_in_helper(_obj2); |
10666 | if (_arg2 == NULL) | |
b1462dfa | 10667 | return NULL; |
b1462dfa RD |
10668 | } |
10669 | if (_obj3) | |
10670 | { | |
c8bc7bb8 RD |
10671 | _arg3 = wxString_in_helper(_obj3); |
10672 | if (_arg3 == NULL) | |
b1462dfa | 10673 | return NULL; |
b1462dfa | 10674 | } |
b1462dfa RD |
10675 | if (_argo5) { |
10676 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
10677 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
10678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
10679 | return NULL; |
10680 | } | |
10681 | } | |
cf694132 | 10682 | { |
4268f798 | 10683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10684 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 | 10685 | |
4268f798 | 10686 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10687 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10688 | } if (_result) { |
10689 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
10690 | _resultobj = Py_BuildValue("s",_ptemp); | |
10691 | } else { | |
10692 | Py_INCREF(Py_None); | |
10693 | _resultobj = Py_None; | |
10694 | } | |
10695 | { | |
10696 | if (_obj2) | |
10697 | delete _arg2; | |
10698 | } | |
10699 | { | |
10700 | if (_obj3) | |
10701 | delete _arg3; | |
10702 | } | |
8ab979d7 RD |
10703 | return _resultobj; |
10704 | } | |
10705 | ||
b1462dfa RD |
10706 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
10707 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10708 | PyObject * _resultobj; |
b1462dfa | 10709 | wxMenu * _result; |
8ab979d7 | 10710 | wxMenuItem * _arg0; |
1d99702e | 10711 | PyObject * _argo0 = 0; |
efc5f224 | 10712 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10713 | |
10714 | self = self; | |
b1462dfa | 10715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 10716 | return NULL; |
1d99702e RD |
10717 | if (_argo0) { |
10718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10721 | return NULL; |
10722 | } | |
10723 | } | |
cf694132 | 10724 | { |
4268f798 | 10725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10726 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 | 10727 | |
4268f798 | 10728 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10729 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 10730 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
10731 | return _resultobj; |
10732 | } | |
10733 | ||
2abc0a0f RD |
10734 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
10735 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10736 | PyObject * _resultobj; |
10737 | wxMenuItem * _arg0; | |
2abc0a0f | 10738 | int _arg1; |
1d99702e | 10739 | PyObject * _argo0 = 0; |
2abc0a0f | 10740 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10741 | |
10742 | self = self; | |
2abc0a0f | 10743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10744 | return NULL; |
1d99702e RD |
10745 | if (_argo0) { |
10746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 10748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10749 | return NULL; |
10750 | } | |
10751 | } | |
cf694132 | 10752 | { |
4268f798 | 10753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10754 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 | 10755 | |
4268f798 | 10756 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10757 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10758 | } Py_INCREF(Py_None); |
8ab979d7 | 10759 | _resultobj = Py_None; |
8ab979d7 RD |
10760 | return _resultobj; |
10761 | } | |
10762 | ||
b1462dfa RD |
10763 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
10764 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10765 | PyObject * _resultobj; |
b1462dfa | 10766 | int _result; |
8ab979d7 | 10767 | wxMenuItem * _arg0; |
1d99702e | 10768 | PyObject * _argo0 = 0; |
efc5f224 | 10769 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10770 | |
10771 | self = self; | |
b1462dfa | 10772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 10773 | return NULL; |
1d99702e RD |
10774 | if (_argo0) { |
10775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10778 | return NULL; |
10779 | } | |
10780 | } | |
8ab979d7 | 10781 | { |
4268f798 | 10782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10783 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 | 10784 | |
4268f798 | 10785 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10786 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10787 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10788 | return _resultobj; |
10789 | } | |
10790 | ||
b1462dfa RD |
10791 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
10792 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10793 | PyObject * _resultobj; |
b1462dfa | 10794 | bool _result; |
8ab979d7 | 10795 | wxMenuItem * _arg0; |
1d99702e | 10796 | PyObject * _argo0 = 0; |
efc5f224 | 10797 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10798 | |
10799 | self = self; | |
b1462dfa | 10800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 10801 | return NULL; |
1d99702e RD |
10802 | if (_argo0) { |
10803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10806 | return NULL; |
10807 | } | |
10808 | } | |
8ab979d7 | 10809 | { |
4268f798 | 10810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10811 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 | 10812 | |
4268f798 | 10813 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10814 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10815 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10816 | return _resultobj; |
10817 | } | |
10818 | ||
b1462dfa RD |
10819 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
10820 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10821 | PyObject * _resultobj; |
10822 | wxMenuItem * _arg0; | |
10823 | wxString * _arg1; | |
1d99702e | 10824 | PyObject * _argo0 = 0; |
8ab979d7 | 10825 | PyObject * _obj1 = 0; |
b1462dfa | 10826 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
10827 | |
10828 | self = self; | |
b1462dfa | 10829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 10830 | return NULL; |
1d99702e RD |
10831 | if (_argo0) { |
10832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10833 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10835 | return NULL; |
10836 | } | |
10837 | } | |
10838 | { | |
c8bc7bb8 RD |
10839 | _arg1 = wxString_in_helper(_obj1); |
10840 | if (_arg1 == NULL) | |
185d7c3e | 10841 | return NULL; |
8ab979d7 | 10842 | } |
cf694132 | 10843 | { |
4268f798 | 10844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10845 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 | 10846 | |
4268f798 | 10847 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10848 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10849 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10850 | _resultobj = Py_None; |
10851 | { | |
10852 | if (_obj1) | |
10853 | delete _arg1; | |
10854 | } | |
10855 | return _resultobj; | |
10856 | } | |
10857 | ||
b1462dfa RD |
10858 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
10859 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10860 | PyObject * _resultobj; |
b1462dfa | 10861 | wxString * _result; |
8ab979d7 | 10862 | wxMenuItem * _arg0; |
1d99702e | 10863 | PyObject * _argo0 = 0; |
b1462dfa | 10864 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10865 | |
10866 | self = self; | |
b1462dfa | 10867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 10868 | return NULL; |
1d99702e RD |
10869 | if (_argo0) { |
10870 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10871 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10873 | return NULL; |
10874 | } | |
10875 | } | |
cf694132 | 10876 | { |
4268f798 | 10877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10878 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 | 10879 | |
4268f798 | 10880 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10881 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10882 | }{ |
c8bc7bb8 | 10883 | #if wxUSE_UNICODE |
7e50db3f | 10884 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10885 | #else |
eec92d76 | 10886 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10887 | #endif |
8ab979d7 | 10888 | } |
cf694132 | 10889 | { |
b1462dfa RD |
10890 | delete _result; |
10891 | } | |
cf694132 RD |
10892 | return _resultobj; |
10893 | } | |
10894 | ||
b1462dfa RD |
10895 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
10896 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10897 | PyObject * _resultobj; |
b1462dfa | 10898 | wxString * _result; |
cf694132 | 10899 | wxMenuItem * _arg0; |
1d99702e | 10900 | PyObject * _argo0 = 0; |
efc5f224 | 10901 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10902 | |
10903 | self = self; | |
b1462dfa | 10904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 10905 | return NULL; |
1d99702e RD |
10906 | if (_argo0) { |
10907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
10910 | return NULL; |
10911 | } | |
10912 | } | |
10913 | { | |
4268f798 | 10914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10915 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
b1462dfa | 10916 | _result = (wxString *) &_result_ref; |
cf694132 | 10917 | |
4268f798 | 10918 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10919 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10920 | }{ |
c8bc7bb8 | 10921 | #if wxUSE_UNICODE |
7e50db3f | 10922 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10923 | #else |
eec92d76 | 10924 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10925 | #endif |
cf694132 | 10926 | } |
cf694132 RD |
10927 | return _resultobj; |
10928 | } | |
10929 | ||
e9159fe8 RD |
10930 | #define wxMenuItem_GetKind(_swigobj) (_swigobj->GetKind()) |
10931 | static PyObject *_wrap_wxMenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10932 | PyObject * _resultobj; | |
10933 | wxItemKind _result; | |
10934 | wxMenuItem * _arg0; | |
10935 | PyObject * _argo0 = 0; | |
10936 | char *_kwnames[] = { "self", NULL }; | |
10937 | ||
10938 | self = self; | |
10939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetKind",_kwnames,&_argo0)) | |
10940 | return NULL; | |
10941 | if (_argo0) { | |
10942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetKind. Expected _wxMenuItem_p."); | |
10945 | return NULL; | |
10946 | } | |
10947 | } | |
10948 | { | |
10949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10950 | _result = (wxItemKind )wxMenuItem_GetKind(_arg0); | |
10951 | ||
10952 | wxPyEndAllowThreads(__tstate); | |
10953 | if (PyErr_Occurred()) return NULL; | |
10954 | } _resultobj = Py_BuildValue("i",_result); | |
10955 | return _resultobj; | |
10956 | } | |
10957 | ||
b1462dfa RD |
10958 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
10959 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10960 | PyObject * _resultobj; |
cf694132 | 10961 | wxMenuItem * _arg0; |
b1462dfa | 10962 | bool _arg1; |
1d99702e | 10963 | PyObject * _argo0 = 0; |
b1462dfa RD |
10964 | int tempbool1; |
10965 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
10966 | |
10967 | self = self; | |
b1462dfa | 10968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 10969 | return NULL; |
1d99702e RD |
10970 | if (_argo0) { |
10971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
10974 | return NULL; |
10975 | } | |
10976 | } | |
b1462dfa | 10977 | _arg1 = (bool ) tempbool1; |
cf694132 | 10978 | { |
4268f798 | 10979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10980 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 | 10981 | |
4268f798 | 10982 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10983 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10984 | } Py_INCREF(Py_None); |
10985 | _resultobj = Py_None; | |
cf694132 RD |
10986 | return _resultobj; |
10987 | } | |
10988 | ||
b1462dfa RD |
10989 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
10990 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10991 | PyObject * _resultobj; |
b1462dfa | 10992 | bool _result; |
cf694132 | 10993 | wxMenuItem * _arg0; |
1d99702e | 10994 | PyObject * _argo0 = 0; |
efc5f224 | 10995 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10996 | |
10997 | self = self; | |
b1462dfa | 10998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 10999 | return NULL; |
1d99702e RD |
11000 | if (_argo0) { |
11001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
11004 | return NULL; |
11005 | } | |
11006 | } | |
11007 | { | |
4268f798 | 11008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11009 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 | 11010 | |
4268f798 | 11011 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11012 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
11013 | } _resultobj = Py_BuildValue("i",_result); |
11014 | return _resultobj; | |
11015 | } | |
11016 | ||
b1462dfa RD |
11017 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
11018 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 11019 | PyObject * _resultobj; |
b1462dfa | 11020 | bool _result; |
cf694132 | 11021 | wxMenuItem * _arg0; |
1d99702e | 11022 | PyObject * _argo0 = 0; |
efc5f224 | 11023 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
11024 | |
11025 | self = self; | |
b1462dfa | 11026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 11027 | return NULL; |
1d99702e RD |
11028 | if (_argo0) { |
11029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
11032 | return NULL; |
11033 | } | |
11034 | } | |
11035 | { | |
4268f798 | 11036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11037 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 | 11038 | |
4268f798 | 11039 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11040 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 11041 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
11042 | return _resultobj; |
11043 | } | |
11044 | ||
b1462dfa RD |
11045 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
11046 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
11047 | PyObject * _resultobj; |
11048 | wxMenuItem * _arg0; | |
b1462dfa | 11049 | wxMenu * _arg1; |
1d99702e RD |
11050 | PyObject * _argo0 = 0; |
11051 | PyObject * _argo1 = 0; | |
b1462dfa | 11052 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
11053 | |
11054 | self = self; | |
b1462dfa | 11055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 11056 | return NULL; |
1d99702e RD |
11057 | if (_argo0) { |
11058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
11061 | return NULL; |
11062 | } | |
11063 | } | |
1d99702e RD |
11064 | if (_argo1) { |
11065 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
11066 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
11067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
11068 | return NULL; |
11069 | } | |
11070 | } | |
11071 | { | |
4268f798 | 11072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11073 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 | 11074 | |
4268f798 | 11075 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11076 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
11077 | } Py_INCREF(Py_None); |
11078 | _resultobj = Py_None; | |
11079 | return _resultobj; | |
11080 | } | |
11081 | ||
b1462dfa RD |
11082 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
11083 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 11084 | PyObject * _resultobj; |
b1462dfa | 11085 | wxMenu * _result; |
cf694132 | 11086 | wxMenuItem * _arg0; |
1d99702e | 11087 | PyObject * _argo0 = 0; |
b1462dfa | 11088 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
11089 | |
11090 | self = self; | |
b1462dfa | 11091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 11092 | return NULL; |
1d99702e RD |
11093 | if (_argo0) { |
11094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
11097 | return NULL; |
11098 | } | |
11099 | } | |
b1462dfa | 11100 | { |
4268f798 | 11101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11102 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); |
b1462dfa | 11103 | |
4268f798 | 11104 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11105 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 11106 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
11107 | return _resultobj; |
11108 | } | |
11109 | ||
11110 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
11111 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11112 | PyObject * _resultobj; | |
11113 | wxMenuItem * _arg0; | |
11114 | bool _arg1 = (bool ) TRUE; | |
11115 | PyObject * _argo0 = 0; | |
11116 | int tempbool1 = (int) TRUE; | |
11117 | char *_kwnames[] = { "self","enable", NULL }; | |
11118 | ||
11119 | self = self; | |
11120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
11121 | return NULL; | |
11122 | if (_argo0) { | |
11123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
11126 | return NULL; |
11127 | } | |
11128 | } | |
b1462dfa | 11129 | _arg1 = (bool ) tempbool1; |
cf694132 | 11130 | { |
4268f798 | 11131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11132 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 | 11133 | |
4268f798 | 11134 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11135 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
11136 | } Py_INCREF(Py_None); |
11137 | _resultobj = Py_None; | |
11138 | return _resultobj; | |
11139 | } | |
11140 | ||
b1462dfa RD |
11141 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
11142 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 11143 | PyObject * _resultobj; |
b1462dfa | 11144 | bool _result; |
cf694132 | 11145 | wxMenuItem * _arg0; |
1d99702e | 11146 | PyObject * _argo0 = 0; |
b1462dfa | 11147 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
11148 | |
11149 | self = self; | |
b1462dfa | 11150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 11151 | return NULL; |
1d99702e RD |
11152 | if (_argo0) { |
11153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
11156 | return NULL; |
11157 | } | |
11158 | } | |
11159 | { | |
4268f798 | 11160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11161 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 | 11162 | |
4268f798 | 11163 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11164 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 11165 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
11166 | return _resultobj; |
11167 | } | |
11168 | ||
b1462dfa RD |
11169 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
11170 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
11171 | PyObject * _resultobj; |
11172 | wxMenuItem * _arg0; | |
b1462dfa | 11173 | bool _arg1 = (bool ) TRUE; |
1d99702e | 11174 | PyObject * _argo0 = 0; |
b1462dfa RD |
11175 | int tempbool1 = (int) TRUE; |
11176 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
11177 | |
11178 | self = self; | |
b1462dfa | 11179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 11180 | return NULL; |
1d99702e RD |
11181 | if (_argo0) { |
11182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
11185 | return NULL; |
11186 | } | |
11187 | } | |
b1462dfa | 11188 | _arg1 = (bool ) tempbool1; |
cf694132 | 11189 | { |
4268f798 | 11190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11191 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 | 11192 | |
4268f798 | 11193 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11194 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
11195 | } Py_INCREF(Py_None); |
11196 | _resultobj = Py_None; | |
11197 | return _resultobj; | |
11198 | } | |
11199 | ||
b1462dfa RD |
11200 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
11201 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 11202 | PyObject * _resultobj; |
b1462dfa | 11203 | bool _result; |
2abc0a0f | 11204 | wxMenuItem * _arg0; |
2abc0a0f | 11205 | PyObject * _argo0 = 0; |
b1462dfa | 11206 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
11207 | |
11208 | self = self; | |
b1462dfa | 11209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
11210 | return NULL; |
11211 | if (_argo0) { | |
11212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
11215 | return NULL; |
11216 | } | |
11217 | } | |
2abc0a0f | 11218 | { |
4268f798 | 11219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11220 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f | 11221 | |
4268f798 | 11222 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11223 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 11224 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
11225 | return _resultobj; |
11226 | } | |
11227 | ||
b1462dfa RD |
11228 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
11229 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 11230 | PyObject * _resultobj; |
2abc0a0f RD |
11231 | wxMenuItem * _arg0; |
11232 | PyObject * _argo0 = 0; | |
11233 | char *_kwnames[] = { "self", NULL }; | |
11234 | ||
11235 | self = self; | |
b1462dfa | 11236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
11237 | return NULL; |
11238 | if (_argo0) { | |
11239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
11242 | return NULL; |
11243 | } | |
11244 | } | |
11245 | { | |
4268f798 | 11246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11247 | wxMenuItem_Toggle(_arg0); |
2abc0a0f | 11248 | |
4268f798 | 11249 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11250 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
11251 | } Py_INCREF(Py_None); |
11252 | _resultobj = Py_None; | |
2abc0a0f RD |
11253 | return _resultobj; |
11254 | } | |
11255 | ||
b1462dfa RD |
11256 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
11257 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
11258 | PyObject * _resultobj; |
11259 | wxMenuItem * _arg0; | |
b1462dfa | 11260 | wxString * _arg1; |
1d99702e | 11261 | PyObject * _argo0 = 0; |
b1462dfa RD |
11262 | PyObject * _obj1 = 0; |
11263 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
11264 | |
11265 | self = self; | |
b1462dfa | 11266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 11267 | return NULL; |
1d99702e RD |
11268 | if (_argo0) { |
11269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
11272 | return NULL; |
11273 | } | |
11274 | } | |
b1462dfa | 11275 | { |
c8bc7bb8 RD |
11276 | _arg1 = wxString_in_helper(_obj1); |
11277 | if (_arg1 == NULL) | |
185d7c3e | 11278 | return NULL; |
b1462dfa | 11279 | } |
cf694132 | 11280 | { |
4268f798 | 11281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11282 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 | 11283 | |
4268f798 | 11284 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11285 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11286 | } Py_INCREF(Py_None); |
8ab979d7 | 11287 | _resultobj = Py_None; |
b1462dfa RD |
11288 | { |
11289 | if (_obj1) | |
11290 | delete _arg1; | |
11291 | } | |
8ab979d7 RD |
11292 | return _resultobj; |
11293 | } | |
11294 | ||
b1462dfa RD |
11295 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
11296 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 11297 | PyObject * _resultobj; |
b1462dfa | 11298 | wxString * _result; |
be4d9c1f | 11299 | wxMenuItem * _arg0; |
1d99702e | 11300 | PyObject * _argo0 = 0; |
efc5f224 | 11301 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
11302 | |
11303 | self = self; | |
b1462dfa | 11304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 11305 | return NULL; |
1d99702e RD |
11306 | if (_argo0) { |
11307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
11310 | return NULL; |
11311 | } | |
11312 | } | |
cf694132 | 11313 | { |
4268f798 | 11314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11315 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
b1462dfa | 11316 | _result = (wxString *) &_result_ref; |
cf694132 | 11317 | |
4268f798 | 11318 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11319 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 11320 | }{ |
c8bc7bb8 | 11321 | #if wxUSE_UNICODE |
7e50db3f | 11322 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11323 | #else |
eec92d76 | 11324 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11325 | #endif |
b1462dfa | 11326 | } |
be4d9c1f RD |
11327 | return _resultobj; |
11328 | } | |
11329 | ||
b1462dfa RD |
11330 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
11331 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 11332 | PyObject * _resultobj; |
b1462dfa | 11333 | wxAcceleratorEntry * _result; |
2abc0a0f | 11334 | wxMenuItem * _arg0; |
2abc0a0f | 11335 | PyObject * _argo0 = 0; |
b1462dfa RD |
11336 | char *_kwnames[] = { "self", NULL }; |
11337 | char _ptemp[128]; | |
2abc0a0f RD |
11338 | |
11339 | self = self; | |
b1462dfa | 11340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
11341 | return NULL; |
11342 | if (_argo0) { | |
11343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
11346 | return NULL; |
11347 | } | |
11348 | } | |
2abc0a0f | 11349 | { |
4268f798 | 11350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11351 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f | 11352 | |
4268f798 | 11353 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11354 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
11355 | } if (_result) { |
11356 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
11357 | _resultobj = Py_BuildValue("s",_ptemp); | |
11358 | } else { | |
11359 | Py_INCREF(Py_None); | |
11360 | _resultobj = Py_None; | |
11361 | } | |
2abc0a0f RD |
11362 | return _resultobj; |
11363 | } | |
11364 | ||
b1462dfa RD |
11365 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
11366 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
11367 | PyObject * _resultobj; |
11368 | wxMenuItem * _arg0; | |
b1462dfa | 11369 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
11370 | PyObject * _argo0 = 0; |
11371 | PyObject * _argo1 = 0; | |
b1462dfa | 11372 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
11373 | |
11374 | self = self; | |
b1462dfa | 11375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
11376 | return NULL; |
11377 | if (_argo0) { | |
11378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
11381 | return NULL; |
11382 | } | |
11383 | } | |
11384 | if (_argo1) { | |
11385 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
11386 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
11387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
11388 | return NULL; |
11389 | } | |
11390 | } | |
11391 | { | |
4268f798 | 11392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11393 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f | 11394 | |
4268f798 | 11395 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11396 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
11397 | } Py_INCREF(Py_None); |
11398 | _resultobj = Py_None; | |
11399 | return _resultobj; | |
11400 | } | |
11401 | ||
1b62f00d RD |
11402 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
11403 | PyObject * _resultobj; | |
11404 | wxString * _result; | |
11405 | wxString * _arg0; | |
11406 | PyObject * _obj0 = 0; | |
11407 | char *_kwnames[] = { "text", NULL }; | |
11408 | ||
11409 | self = self; | |
11410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
11411 | return NULL; | |
11412 | { | |
c8bc7bb8 RD |
11413 | _arg0 = wxString_in_helper(_obj0); |
11414 | if (_arg0 == NULL) | |
1b62f00d | 11415 | return NULL; |
1b62f00d RD |
11416 | } |
11417 | { | |
4268f798 | 11418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11419 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); |
1b62f00d | 11420 | |
4268f798 | 11421 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11422 | if (PyErr_Occurred()) return NULL; |
1b62f00d | 11423 | }{ |
c8bc7bb8 | 11424 | #if wxUSE_UNICODE |
7e50db3f | 11425 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11426 | #else |
1b62f00d | 11427 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11428 | #endif |
1b62f00d RD |
11429 | } |
11430 | { | |
11431 | if (_obj0) | |
11432 | delete _arg0; | |
11433 | } | |
11434 | { | |
11435 | delete _result; | |
11436 | } | |
11437 | return _resultobj; | |
11438 | } | |
11439 | ||
f3d9dc1d RD |
11440 | #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
11441 | static PyObject *_wrap_wxMenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11442 | PyObject * _resultobj; | |
11443 | wxMenuItem * _arg0; | |
11444 | wxFont * _arg1; | |
11445 | PyObject * _argo0 = 0; | |
11446 | PyObject * _argo1 = 0; | |
11447 | char *_kwnames[] = { "self","font", NULL }; | |
11448 | ||
11449 | self = self; | |
11450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
11451 | return NULL; | |
11452 | if (_argo0) { | |
11453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p."); | |
11456 | return NULL; | |
11457 | } | |
11458 | } | |
11459 | if (_argo1) { | |
7e50db3f | 11460 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
f3d9dc1d RD |
11461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p."); |
11462 | return NULL; | |
11463 | } | |
11464 | } | |
11465 | { | |
4268f798 | 11466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11467 | wxMenuItem_SetFont(_arg0,*_arg1); |
f3d9dc1d | 11468 | |
4268f798 | 11469 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11470 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11471 | } Py_INCREF(Py_None); |
11472 | _resultobj = Py_None; | |
11473 | return _resultobj; | |
11474 | } | |
11475 | ||
11476 | #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
11477 | static PyObject *_wrap_wxMenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11478 | PyObject * _resultobj; | |
11479 | wxFont * _result; | |
11480 | wxMenuItem * _arg0; | |
11481 | PyObject * _argo0 = 0; | |
11482 | char *_kwnames[] = { "self", NULL }; | |
11483 | char _ptemp[128]; | |
11484 | ||
11485 | self = self; | |
11486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetFont",_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_GetFont. Expected _wxMenuItem_p."); | |
11492 | return NULL; | |
11493 | } | |
11494 | } | |
11495 | { | |
4268f798 | 11496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11497 | _result = new wxFont (wxMenuItem_GetFont(_arg0)); |
f3d9dc1d | 11498 | |
4268f798 | 11499 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11500 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
11501 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
11502 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
11503 | return _resultobj; |
11504 | } | |
11505 | ||
11506 | #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
11507 | static PyObject *_wrap_wxMenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11508 | PyObject * _resultobj; | |
11509 | wxMenuItem * _arg0; | |
11510 | wxColour * _arg1; | |
11511 | PyObject * _argo0 = 0; | |
11512 | wxColour temp; | |
11513 | PyObject * _obj1 = 0; | |
11514 | char *_kwnames[] = { "self","colText", NULL }; | |
11515 | ||
11516 | self = self; | |
11517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
11518 | return NULL; | |
11519 | if (_argo0) { | |
11520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p."); | |
11523 | return NULL; | |
11524 | } | |
11525 | } | |
11526 | { | |
11527 | _arg1 = &temp; | |
11528 | if (! wxColour_helper(_obj1, &_arg1)) | |
11529 | return NULL; | |
11530 | } | |
11531 | { | |
4268f798 | 11532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11533 | wxMenuItem_SetTextColour(_arg0,*_arg1); |
f3d9dc1d | 11534 | |
4268f798 | 11535 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11536 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11537 | } Py_INCREF(Py_None); |
11538 | _resultobj = Py_None; | |
11539 | return _resultobj; | |
11540 | } | |
11541 | ||
11542 | #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
11543 | static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11544 | PyObject * _resultobj; | |
11545 | wxColour * _result; | |
11546 | wxMenuItem * _arg0; | |
11547 | PyObject * _argo0 = 0; | |
11548 | char *_kwnames[] = { "self", NULL }; | |
11549 | char _ptemp[128]; | |
11550 | ||
11551 | self = self; | |
11552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetTextColour",_kwnames,&_argo0)) | |
11553 | return NULL; | |
11554 | if (_argo0) { | |
11555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p."); | |
11558 | return NULL; | |
11559 | } | |
11560 | } | |
11561 | { | |
4268f798 | 11562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11563 | _result = new wxColour (wxMenuItem_GetTextColour(_arg0)); |
f3d9dc1d | 11564 | |
4268f798 | 11565 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11566 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
11567 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
11568 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
11569 | return _resultobj; |
11570 | } | |
11571 | ||
11572 | #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
11573 | static PyObject *_wrap_wxMenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11574 | PyObject * _resultobj; | |
11575 | wxMenuItem * _arg0; | |
11576 | wxColour * _arg1; | |
11577 | PyObject * _argo0 = 0; | |
11578 | wxColour temp; | |
11579 | PyObject * _obj1 = 0; | |
11580 | char *_kwnames[] = { "self","colBack", NULL }; | |
11581 | ||
11582 | self = self; | |
11583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
11584 | return NULL; | |
11585 | if (_argo0) { | |
11586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p."); | |
11589 | return NULL; | |
11590 | } | |
11591 | } | |
11592 | { | |
11593 | _arg1 = &temp; | |
11594 | if (! wxColour_helper(_obj1, &_arg1)) | |
11595 | return NULL; | |
11596 | } | |
11597 | { | |
4268f798 | 11598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11599 | wxMenuItem_SetBackgroundColour(_arg0,*_arg1); |
f3d9dc1d | 11600 | |
4268f798 | 11601 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11602 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11603 | } Py_INCREF(Py_None); |
11604 | _resultobj = Py_None; | |
11605 | return _resultobj; | |
11606 | } | |
11607 | ||
11608 | #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
11609 | static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11610 | PyObject * _resultobj; | |
11611 | wxColour * _result; | |
11612 | wxMenuItem * _arg0; | |
11613 | PyObject * _argo0 = 0; | |
11614 | char *_kwnames[] = { "self", NULL }; | |
11615 | char _ptemp[128]; | |
11616 | ||
11617 | self = self; | |
11618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBackgroundColour",_kwnames,&_argo0)) | |
11619 | return NULL; | |
11620 | if (_argo0) { | |
11621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p."); | |
11624 | return NULL; | |
11625 | } | |
11626 | } | |
11627 | { | |
4268f798 | 11628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11629 | _result = new wxColour (wxMenuItem_GetBackgroundColour(_arg0)); |
f3d9dc1d | 11630 | |
4268f798 | 11631 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11632 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
11633 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
11634 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
11635 | return _resultobj; |
11636 | } | |
11637 | ||
11638 | #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1)) | |
11639 | static PyObject *_wrap_wxMenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11640 | PyObject * _resultobj; | |
11641 | wxMenuItem * _arg0; | |
11642 | wxBitmap * _arg1; | |
11643 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
11644 | PyObject * _argo0 = 0; | |
11645 | PyObject * _argo1 = 0; | |
11646 | PyObject * _argo2 = 0; | |
11647 | char *_kwnames[] = { "self","bmpChecked","bmpUnchecked", NULL }; | |
11648 | ||
11649 | self = self; | |
11650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxMenuItem_SetBitmaps",_kwnames,&_argo0,&_argo1,&_argo2)) | |
11651 | return NULL; | |
11652 | if (_argo0) { | |
11653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p."); | |
11656 | return NULL; | |
11657 | } | |
11658 | } | |
11659 | if (_argo1) { | |
7e50db3f | 11660 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { |
f3d9dc1d RD |
11661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); |
11662 | return NULL; | |
11663 | } | |
11664 | } | |
11665 | if (_argo2) { | |
7e50db3f | 11666 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { |
f3d9dc1d RD |
11667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); |
11668 | return NULL; | |
11669 | } | |
11670 | } | |
11671 | { | |
4268f798 | 11672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11673 | wxMenuItem_SetBitmaps(_arg0,*_arg1,*_arg2); |
f3d9dc1d | 11674 | |
4268f798 | 11675 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11676 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11677 | } Py_INCREF(Py_None); |
11678 | _resultobj = Py_None; | |
11679 | return _resultobj; | |
11680 | } | |
11681 | ||
f3d9dc1d RD |
11682 | #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0)) |
11683 | static PyObject *_wrap_wxMenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11684 | PyObject * _resultobj; | |
11685 | wxMenuItem * _arg0; | |
11686 | int _arg1; | |
11687 | PyObject * _argo0 = 0; | |
11688 | char *_kwnames[] = { "self","nWidth", NULL }; | |
11689 | ||
11690 | self = self; | |
11691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetMarginWidth",_kwnames,&_argo0,&_arg1)) | |
11692 | return NULL; | |
11693 | if (_argo0) { | |
11694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p."); | |
11697 | return NULL; | |
11698 | } | |
11699 | } | |
11700 | { | |
4268f798 | 11701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11702 | wxMenuItem_SetMarginWidth(_arg0,_arg1); |
f3d9dc1d | 11703 | |
4268f798 | 11704 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11705 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11706 | } Py_INCREF(Py_None); |
11707 | _resultobj = Py_None; | |
11708 | return _resultobj; | |
11709 | } | |
11710 | ||
11711 | #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth()) | |
11712 | static PyObject *_wrap_wxMenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11713 | PyObject * _resultobj; | |
11714 | int _result; | |
11715 | wxMenuItem * _arg0; | |
11716 | PyObject * _argo0 = 0; | |
11717 | char *_kwnames[] = { "self", NULL }; | |
11718 | ||
11719 | self = self; | |
11720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMarginWidth",_kwnames,&_argo0)) | |
11721 | return NULL; | |
11722 | if (_argo0) { | |
11723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p."); | |
11726 | return NULL; | |
11727 | } | |
11728 | } | |
11729 | { | |
4268f798 | 11730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11731 | _result = (int )wxMenuItem_GetMarginWidth(_arg0); |
f3d9dc1d | 11732 | |
4268f798 | 11733 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11734 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11735 | } _resultobj = Py_BuildValue("i",_result); |
11736 | return _resultobj; | |
11737 | } | |
11738 | ||
11739 | static PyObject *_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11740 | PyObject * _resultobj; | |
11741 | int _result; | |
11742 | char *_kwnames[] = { NULL }; | |
11743 | ||
11744 | self = self; | |
11745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMenuItem_GetDefaultMarginWidth",_kwnames)) | |
11746 | return NULL; | |
11747 | { | |
4268f798 | 11748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11749 | _result = (int )wxMenuItem::GetDefaultMarginWidth(); |
f3d9dc1d | 11750 | |
4268f798 | 11751 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11752 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11753 | } _resultobj = Py_BuildValue("i",_result); |
11754 | return _resultobj; | |
11755 | } | |
11756 | ||
11757 | #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn()) | |
11758 | static PyObject *_wrap_wxMenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11759 | PyObject * _resultobj; | |
11760 | bool _result; | |
11761 | wxMenuItem * _arg0; | |
11762 | PyObject * _argo0 = 0; | |
11763 | char *_kwnames[] = { "self", NULL }; | |
11764 | ||
11765 | self = self; | |
11766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsOwnerDrawn",_kwnames,&_argo0)) | |
11767 | return NULL; | |
11768 | if (_argo0) { | |
11769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p."); | |
11772 | return NULL; | |
11773 | } | |
11774 | } | |
11775 | { | |
4268f798 | 11776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11777 | _result = (bool )wxMenuItem_IsOwnerDrawn(_arg0); |
f3d9dc1d | 11778 | |
4268f798 | 11779 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11780 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11781 | } _resultobj = Py_BuildValue("i",_result); |
11782 | return _resultobj; | |
11783 | } | |
11784 | ||
11785 | #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn()) | |
11786 | static PyObject *_wrap_wxMenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11787 | PyObject * _resultobj; | |
11788 | wxMenuItem * _arg0; | |
11789 | PyObject * _argo0 = 0; | |
11790 | char *_kwnames[] = { "self", NULL }; | |
11791 | ||
11792 | self = self; | |
11793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_ResetOwnerDrawn",_kwnames,&_argo0)) | |
11794 | return NULL; | |
11795 | if (_argo0) { | |
11796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p."); | |
11799 | return NULL; | |
11800 | } | |
11801 | } | |
11802 | { | |
4268f798 | 11803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11804 | wxMenuItem_ResetOwnerDrawn(_arg0); |
f3d9dc1d | 11805 | |
4268f798 | 11806 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11807 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11808 | } Py_INCREF(Py_None); |
11809 | _resultobj = Py_None; | |
11810 | return _resultobj; | |
11811 | } | |
11812 | ||
032b1ef1 RD |
11813 | #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) |
11814 | static PyObject *_wrap_wxMenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11815 | PyObject * _resultobj; | |
11816 | wxMenuItem * _arg0; | |
11817 | wxBitmap * _arg1; | |
11818 | PyObject * _argo0 = 0; | |
11819 | PyObject * _argo1 = 0; | |
11820 | char *_kwnames[] = { "self","bitmap", NULL }; | |
11821 | ||
11822 | self = self; | |
11823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
11824 | return NULL; | |
11825 | if (_argo0) { | |
11826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p."); | |
11829 | return NULL; | |
11830 | } | |
11831 | } | |
11832 | if (_argo1) { | |
7e50db3f | 11833 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { |
032b1ef1 RD |
11834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p."); |
11835 | return NULL; | |
11836 | } | |
11837 | } | |
11838 | { | |
11839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11840 | wxMenuItem_SetBitmap(_arg0,*_arg1); | |
11841 | ||
11842 | wxPyEndAllowThreads(__tstate); | |
11843 | if (PyErr_Occurred()) return NULL; | |
11844 | } Py_INCREF(Py_None); | |
11845 | _resultobj = Py_None; | |
11846 | return _resultobj; | |
11847 | } | |
11848 | ||
11849 | #define wxMenuItem_GetBitmap(_swigobj) (_swigobj->GetBitmap()) | |
11850 | static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11851 | PyObject * _resultobj; | |
11852 | wxBitmap * _result; | |
11853 | wxMenuItem * _arg0; | |
11854 | PyObject * _argo0 = 0; | |
11855 | char *_kwnames[] = { "self", NULL }; | |
11856 | char _ptemp[128]; | |
11857 | ||
11858 | self = self; | |
11859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBitmap",_kwnames,&_argo0)) | |
11860 | return NULL; | |
11861 | if (_argo0) { | |
11862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p."); | |
11865 | return NULL; | |
11866 | } | |
11867 | } | |
11868 | { | |
11869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11870 | const wxBitmap & _result_ref = wxMenuItem_GetBitmap(_arg0); | |
11871 | _result = (wxBitmap *) &_result_ref; | |
11872 | ||
11873 | wxPyEndAllowThreads(__tstate); | |
11874 | if (PyErr_Occurred()) return NULL; | |
11875 | } if (_result) { | |
11876 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
11877 | _resultobj = Py_BuildValue("s",_ptemp); | |
11878 | } else { | |
11879 | Py_INCREF(Py_None); | |
11880 | _resultobj = Py_None; | |
11881 | } | |
11882 | return _resultobj; | |
11883 | } | |
11884 | ||
8ab979d7 | 11885 | static PyMethodDef windowscMethods[] = { |
032b1ef1 RD |
11886 | { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, |
11887 | { "wxMenuItem_SetBitmap", (PyCFunction) _wrap_wxMenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
f3d9dc1d RD |
11888 | { "wxMenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, |
11889 | { "wxMenuItem_IsOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
11890 | { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
11891 | { "wxMenuItem_GetMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
11892 | { "wxMenuItem_SetMarginWidth", (PyCFunction) _wrap_wxMenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
f3d9dc1d RD |
11893 | { "wxMenuItem_SetBitmaps", (PyCFunction) _wrap_wxMenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, |
11894 | { "wxMenuItem_GetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11895 | { "wxMenuItem_SetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11896 | { "wxMenuItem_GetTextColour", (PyCFunction) _wrap_wxMenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11897 | { "wxMenuItem_SetTextColour", (PyCFunction) _wrap_wxMenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11898 | { "wxMenuItem_GetFont", (PyCFunction) _wrap_wxMenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11899 | { "wxMenuItem_SetFont", (PyCFunction) _wrap_wxMenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 11900 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11901 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
11902 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
11903 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
11904 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
11905 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
11906 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11907 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11908 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11909 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11910 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11911 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 11912 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11913 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11914 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
e9159fe8 | 11915 | { "wxMenuItem_GetKind", (PyCFunction) _wrap_wxMenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11916 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, |
11917 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11918 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11919 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11920 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
11921 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11922 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11923 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11924 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11925 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
11926 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 11927 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
11928 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
11929 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11930 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11931 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
11932 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
11933 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
3a0958b1 | 11934 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11935 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, |
11936 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
7e50db3f | 11937 | { "wxMenuBar_IsEnabledTop", (PyCFunction) _wrap_wxMenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11938 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, |
11939 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11940 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11941 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
11942 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
11943 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11944 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
11945 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
11946 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
11947 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
11948 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
11949 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11950 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
11951 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
11952 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11953 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11954 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
11955 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
11956 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
11957 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11958 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11959 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
11960 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
11961 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, |
11962 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11963 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11964 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11965 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11966 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
11967 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11968 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
11969 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 11970 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11971 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11972 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11973 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11974 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11975 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
11976 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
e9159fe8 RD |
11977 | { "wxMenu_PrependItem", (PyCFunction) _wrap_wxMenu_PrependItem, METH_VARARGS | METH_KEYWORDS }, |
11978 | { "wxMenu_PrependMenu", (PyCFunction) _wrap_wxMenu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
11979 | { "wxMenu_PrependRadioItem", (PyCFunction) _wrap_wxMenu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
11980 | { "wxMenu_PrependCheckItem", (PyCFunction) _wrap_wxMenu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
11981 | { "wxMenu_PrependSeparator", (PyCFunction) _wrap_wxMenu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
11982 | { "wxMenu_Prepend", (PyCFunction) _wrap_wxMenu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
11983 | { "wxMenu_InsertItem", (PyCFunction) _wrap_wxMenu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
11984 | { "wxMenu_InsertMenu", (PyCFunction) _wrap_wxMenu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
11985 | { "wxMenu_InsertRadioItem", (PyCFunction) _wrap_wxMenu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
11986 | { "wxMenu_InsertCheckItem", (PyCFunction) _wrap_wxMenu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
11987 | { "wxMenu_InsertSeparator", (PyCFunction) _wrap_wxMenu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
11988 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11989 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, |
e9159fe8 RD |
11990 | { "wxMenu_AppendRadioItem", (PyCFunction) _wrap_wxMenu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, |
11991 | { "wxMenu_AppendCheckItem", (PyCFunction) _wrap_wxMenu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11992 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, |
11993 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
11994 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
11995 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
2a74d141 | 11996 | { "wxScrolledWindow_SetScrollRate", (PyCFunction) _wrap_wxScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS }, |
26e335b8 | 11997 | { "wxScrolledWindow_Layout", (PyCFunction) _wrap_wxScrolledWindow_Layout, METH_VARARGS | METH_KEYWORDS }, |
d1679124 RD |
11998 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
11999 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
12000 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
12001 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
e9159fe8 RD |
12002 | { "wxScrolledWindow_CalcUnscrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition2, METH_VARARGS | METH_KEYWORDS }, |
12003 | { "wxScrolledWindow_CalcUnscrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition1, METH_VARARGS | METH_KEYWORDS }, | |
12004 | { "wxScrolledWindow_CalcScrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition2, METH_VARARGS | METH_KEYWORDS }, | |
12005 | { "wxScrolledWindow_CalcScrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition1, METH_VARARGS | METH_KEYWORDS }, | |
4c9993c3 | 12006 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 12007 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 12008 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
12009 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
12010 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
12011 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
12012 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 12013 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 12014 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 12015 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 12016 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
12017 | { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
12018 | { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 12019 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 12020 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
12021 | { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS }, |
12022 | { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 12023 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, |
6d26dc89 RD |
12024 | { "wxWindow_HasCapture", (PyCFunction) _wrap_wxWindow_HasCapture, METH_VARARGS | METH_KEYWORDS }, |
12025 | { "wxWindow_GetCapture", (PyCFunction) _wrap_wxWindow_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
12026 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
12027 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
12028 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
0b85cc38 | 12029 | { "wxWindow_SetTmpDefaultItem", (PyCFunction) _wrap_wxWindow_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
5a2930ab RD |
12030 | { "wxWindow_SetDefaultItem", (PyCFunction) _wrap_wxWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
12031 | { "wxWindow_GetDefaultItem", (PyCFunction) _wrap_wxWindow_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
07c99b26 | 12032 | { "wxWindow_OnPaint", (PyCFunction) _wrap_wxWindow_OnPaint, METH_VARARGS | METH_KEYWORDS }, |
900d9886 | 12033 | { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 | 12034 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
12035 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
12036 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
12037 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
12038 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c RD |
12039 | { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS }, |
12040 | { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
12041 | { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
12042 | { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
12043 | { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
12044 | { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
23bed520 | 12045 | { "wxWindow_SetHelpTextForId", (PyCFunction) _wrap_wxWindow_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, |
4f3449b4 RD |
12046 | { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS }, |
12047 | { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 | 12048 | { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS }, |
3a0958b1 RD |
12049 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, |
12050 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
12051 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
12052 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
7e50db3f | 12053 | { "wxWindow_GetAdjustedBestSize", (PyCFunction) _wrap_wxWindow_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, |
a541c325 | 12054 | { "wxWindow_GetMaxSize", (PyCFunction) _wrap_wxWindow_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, |
694759cf | 12055 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
12056 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
12057 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
12058 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
12059 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
be90c029 RD |
12060 | { "wxWindow_GetContainingSizer", (PyCFunction) _wrap_wxWindow_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, |
12061 | { "wxWindow_SetContainingSizer", (PyCFunction) _wrap_wxWindow_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 12062 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2a74d141 | 12063 | { "wxWindow_SetSizerAndFit", (PyCFunction) _wrap_wxWindow_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 12064 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
12065 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
12066 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
12067 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
12068 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
12069 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
12070 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
12071 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
12072 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
12073 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 12074 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, |
23bed520 | 12075 | { "wxWindow_UpdateWindowUI", (PyCFunction) _wrap_wxWindow_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
12076 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, |
12077 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
12078 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
12079 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
83b18bab | 12080 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 12081 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
e67409dc | 12082 | { "wxWindow_GetCursor", (PyCFunction) _wrap_wxWindow_GetCursor, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
12083 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
12084 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
12085 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
7e50db3f | 12086 | { "wxWindow_GetBestVirtualSize", (PyCFunction) _wrap_wxWindow_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, |
2a74d141 RD |
12087 | { "wxWindow_GetVirtualSizeTuple", (PyCFunction) _wrap_wxWindow_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
12088 | { "wxWindow_GetVirtualSize", (PyCFunction) _wrap_wxWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
12089 | { "wxWindow_SetVirtualSizeWH", (PyCFunction) _wrap_wxWindow_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
12090 | { "wxWindow_SetVirtualSize", (PyCFunction) _wrap_wxWindow_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
12091 | { "wxWindow_SetVirtualSizeHints", (PyCFunction) _wrap_wxWindow_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 12092 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, |
dbbb98cd | 12093 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
12094 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
12095 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
12096 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
12097 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
12098 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
12099 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
12100 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
12101 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
12102 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 12103 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
2a74d141 | 12104 | { "wxWindow_SetFocusFromKbd", (PyCFunction) _wrap_wxWindow_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 12105 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 12106 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
12107 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
12108 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 12109 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 12110 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
12111 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, |
12112 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
12113 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
12114 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 12115 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
e67409dc | 12116 | { "wxWindow_AddChild", (PyCFunction) _wrap_wxWindow_AddChild, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 | 12117 | { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
12118 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, |
12119 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
12120 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
12121 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
c6c593e8 | 12122 | { "wxWindow_RemoveEventHandler", (PyCFunction) _wrap_wxWindow_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12123 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
12124 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
12125 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
12126 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
12127 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
12128 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
12129 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, |
12130 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
12131 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
12132 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
12133 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
12134 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
12135 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
12136 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
12137 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
23bed520 | 12138 | { "wxWindow_HitTest", (PyCFunction) _wrap_wxWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 12139 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, |
23bed520 | 12140 | { "wxWindow_HasScrollbar", (PyCFunction) _wrap_wxWindow_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
12141 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
12142 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
12143 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
12144 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
12145 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
12146 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
12147 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
12148 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
12149 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
12150 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
12151 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
12152 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
12153 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
12154 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
12155 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
12156 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
12157 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
12158 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
12159 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
12160 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 12161 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
12162 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
12163 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
12164 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 12165 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 12166 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
23bed520 RD |
12167 | { "wxWindow_GetClientRect", (PyCFunction) _wrap_wxWindow_GetClientRect, METH_VARARGS | METH_KEYWORDS }, |
12168 | { "wxWindow_GetClientAreaOrigin", (PyCFunction) _wrap_wxWindow_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
12169 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, |
12170 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
12171 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
12172 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 12173 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
23bed520 | 12174 | { "wxWindow_GetBorder", (PyCFunction) _wrap_wxWindow_GetBorder, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 12175 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
7e50db3f | 12176 | { "wxWindow_FitInside", (PyCFunction) _wrap_wxWindow_FitInside, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
12177 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, |
12178 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
12179 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
7e50db3f | 12180 | { "wxWindow_Disable", (PyCFunction) _wrap_wxWindow_Disable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
12181 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, |
12182 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 12183 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
12184 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, |
12185 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
12186 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
12187 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
12188 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
d56cebe7 | 12189 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, |
3ca6a5f0 BP |
12190 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
12191 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
12192 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
12193 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
12194 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
12195 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
12196 | { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
12197 | { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 12198 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, |
0122b7e3 | 12199 | { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 12200 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
9416aa89 RD |
12201 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
12202 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
12203 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
12204 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
12205 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
12206 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 12207 | { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 12208 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 12209 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
12210 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
12211 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
12212 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
12213 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
12214 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
12215 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 12216 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 12217 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 12218 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
e67409dc RD |
12219 | { "wxFindWindowByLabel", (PyCFunction) _wrap_wxFindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, |
12220 | { "wxFindWindowByName", (PyCFunction) _wrap_wxFindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
12221 | { "wxFindWindowById", (PyCFunction) _wrap_wxFindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 12222 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
12223 | { NULL, NULL } |
12224 | }; | |
1d99702e RD |
12225 | #ifdef __cplusplus |
12226 | } | |
12227 | #endif | |
12228 | /* | |
12229 | * This table is used by the pointer type-checker | |
12230 | */ | |
12231 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 12232 | { "_signed_long","_long",0}, |
b1462dfa | 12233 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
12234 | { "_wxPrintQuality","_int",0}, |
12235 | { "_wxPrintQuality","_signed_int",0}, | |
12236 | { "_wxPrintQuality","_unsigned_int",0}, | |
12237 | { "_wxPrintQuality","_wxWindowID",0}, | |
12238 | { "_wxPrintQuality","_uint",0}, | |
12239 | { "_wxPrintQuality","_EBool",0}, | |
12240 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 12241 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 12242 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
12243 | { "_long","_unsigned_long",0}, |
12244 | { "_long","_signed_long",0}, | |
b1462dfa | 12245 | { "_size_t","_wxCoord",0}, |
1d99702e | 12246 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 12247 | { "_size_t","_time_t",0}, |
1d99702e RD |
12248 | { "_size_t","_unsigned_int",0}, |
12249 | { "_size_t","_int",0}, | |
12250 | { "_size_t","_wxWindowID",0}, | |
12251 | { "_size_t","_uint",0}, | |
1d99702e | 12252 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
b1462dfa | 12253 | { "_uint","_wxCoord",0}, |
1d99702e | 12254 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 12255 | { "_uint","_time_t",0}, |
1d99702e RD |
12256 | { "_uint","_size_t",0}, |
12257 | { "_uint","_unsigned_int",0}, | |
12258 | { "_uint","_int",0}, | |
12259 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 12260 | { "_wxChar","_char",0}, |
f6bcfd97 | 12261 | { "_char","_wxChar",0}, |
cdf14688 | 12262 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 12263 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
12264 | { "_EBool","_wxPrintQuality",0}, |
12265 | { "_EBool","_signed_int",0}, | |
12266 | { "_EBool","_int",0}, | |
12267 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 12268 | { "_unsigned_long","_long",0}, |
cdf14688 | 12269 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 12270 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
12271 | { "_signed_int","_wxPrintQuality",0}, |
12272 | { "_signed_int","_EBool",0}, | |
12273 | { "_signed_int","_wxWindowID",0}, | |
12274 | { "_signed_int","_int",0}, | |
1d99702e RD |
12275 | { "_WXTYPE","_short",0}, |
12276 | { "_WXTYPE","_signed_short",0}, | |
12277 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
12278 | { "_unsigned_short","_WXTYPE",0}, |
12279 | { "_unsigned_short","_short",0}, | |
9416aa89 | 12280 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, |
9416aa89 | 12281 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, |
9416aa89 | 12282 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, |
9416aa89 | 12283 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, |
9416aa89 | 12284 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, |
9416aa89 | 12285 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, |
9416aa89 | 12286 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, |
9416aa89 | 12287 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, |
9416aa89 | 12288 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, |
1d99702e RD |
12289 | { "_signed_short","_WXTYPE",0}, |
12290 | { "_signed_short","_short",0}, | |
1d99702e | 12291 | { "_unsigned_char","_byte",0}, |
b1462dfa | 12292 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 12293 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 12294 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
12295 | { "_unsigned_int","_size_t",0}, |
12296 | { "_unsigned_int","_uint",0}, | |
12297 | { "_unsigned_int","_wxWindowID",0}, | |
12298 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
12299 | { "_short","_WXTYPE",0}, |
12300 | { "_short","_unsigned_short",0}, | |
12301 | { "_short","_signed_short",0}, | |
b1462dfa | 12302 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 12303 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 12304 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
12305 | { "_wxWindowID","_size_t",0}, |
12306 | { "_wxWindowID","_EBool",0}, | |
12307 | { "_wxWindowID","_uint",0}, | |
12308 | { "_wxWindowID","_int",0}, | |
12309 | { "_wxWindowID","_signed_int",0}, | |
12310 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 12311 | { "_int","_wxCoord",0}, |
1d99702e | 12312 | { "_int","_wxPrintQuality",0}, |
c368d904 | 12313 | { "_int","_time_t",0}, |
1d99702e RD |
12314 | { "_int","_size_t",0}, |
12315 | { "_int","_EBool",0}, | |
12316 | { "_int","_uint",0}, | |
12317 | { "_int","_wxWindowID",0}, | |
12318 | { "_int","_unsigned_int",0}, | |
12319 | { "_int","_signed_int",0}, | |
c368d904 RD |
12320 | { "_time_t","_wxCoord",0}, |
12321 | { "_time_t","_wxPrintQuality",0}, | |
12322 | { "_time_t","_unsigned_int",0}, | |
12323 | { "_time_t","_int",0}, | |
12324 | { "_time_t","_wxWindowID",0}, | |
12325 | { "_time_t","_uint",0}, | |
12326 | { "_time_t","_size_t",0}, | |
2f90df85 | 12327 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
b1462dfa RD |
12328 | { "_wxCoord","_int",0}, |
12329 | { "_wxCoord","_signed_int",0}, | |
12330 | { "_wxCoord","_unsigned_int",0}, | |
12331 | { "_wxCoord","_wxWindowID",0}, | |
12332 | { "_wxCoord","_uint",0}, | |
12333 | { "_wxCoord","_EBool",0}, | |
12334 | { "_wxCoord","_size_t",0}, | |
c368d904 | 12335 | { "_wxCoord","_time_t",0}, |
b1462dfa | 12336 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 12337 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
1d99702e | 12338 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, |
1d99702e | 12339 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, |
1d99702e | 12340 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, |
1d99702e | 12341 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, |
2f90df85 | 12342 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
2f90df85 | 12343 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, |
b1462dfa | 12344 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, |
1d99702e | 12345 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
1d99702e | 12346 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, |
1d99702e RD |
12347 | {0,0,0}}; |
12348 | ||
8ab979d7 RD |
12349 | static PyObject *SWIG_globals; |
12350 | #ifdef __cplusplus | |
12351 | extern "C" | |
12352 | #endif | |
1d99702e | 12353 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
12354 | PyObject *m, *d; |
12355 | SWIG_globals = SWIG_newvarlink(); | |
12356 | m = Py_InitModule("windowsc", windowscMethods); | |
12357 | d = PyModule_GetDict(m); | |
1d99702e RD |
12358 | { |
12359 | int i; | |
12360 | for (i = 0; _swig_mapping[i].n1; i++) | |
12361 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
12362 | } | |
8ab979d7 | 12363 | } |